/* native-cta: token-only styling. Colour, type, radius and spacing come from theme variables (contracts/THEME.md). */

/* photo-band: full-width band, centred content, tall enough to read as a closing section */
.nc-root {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22rem;
  padding: var(--space-section) var(--space-gap);
  font-family: var(--font-body);
  color: var(--color-text-on-dark);
  background: var(--color-dark-bg);
  text-align: center;
}
.nc-root *, .nc-root *::before, .nc-root *::after { box-sizing: border-box; }
.nc-root :focus-visible { outline: 3px solid var(--color-accent-fg); outline-offset: 3px; }

/* background photo sits under a light tint; without an image the flat dark background stays */
.nc-bg { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.nc-tint { position: absolute; inset: 0; z-index: 1; background: var(--tint-hero); }
.nc-inner { position: relative; z-index: 2; width: 100%; max-width: 48rem; margin: 0 auto; }

.nc-heading {
  margin: 0 0 var(--space-gap);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  font-size: calc(clamp(1.75rem, 1.2rem + 2vw, 2.6rem) * var(--heading-scale));
  line-height: 1.15;
  text-wrap: balance;
  color: var(--color-text-on-dark);
  /* the lighter tint (by design) doesn't guarantee contrast against a bright patch of the photo underneath -
     a shadow keeps text readable everywhere on the image, same token-driven approach captainsmith-hero.css uses */
  text-shadow: 0 2px 10px color-mix(in srgb, var(--color-dark-bg) 65%, transparent);
}
.nc-text {
  margin: 0 auto var(--space-gap);
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-shadow: 0 1px 6px color-mix(in srgb, var(--color-dark-bg) 70%, transparent);
  color: var(--color-text-on-dark-muted);
}

/* buttons: stacked full-width on phones (under 420px), a row from 26.25rem (420px) */
.nc-actions { display: grid; gap: 12px; }
.nc-btn,
.nc-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 28px;
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out-expo), border-color 0.2s var(--ease-out-expo);
}
.nc-btn {
  background: var(--color-accent);
  color: var(--color-accent-fg);
  box-shadow: var(--shadow-sm);
}
.nc-btn:hover { background: var(--color-accent-hover); }

/* outline Call button: same look as the hero's (captainsmith-hero.css .csh-call) */
.nc-call {
  background: transparent;
  color: var(--color-text-on-dark);
  border-color: var(--color-text-on-dark);
}
.nc-call:hover { background: color-mix(in srgb, var(--color-text-on-dark) 14%, transparent); }
.nc-call__icon { width: 20px; height: 20px; flex-shrink: 0; }

.nc-dev {
  padding: var(--space-gap);
  border: var(--border-width) solid var(--color-accent);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
}

/* 26.25rem (420px) and up: buttons sit side by side */
@media (min-width: 26.25rem) {
  .nc-actions { grid-auto-flow: column; justify-content: center; }
  .nc-btn,
  .nc-call { width: auto; min-width: 12rem; }
}

/* 48rem and up: taller band and larger type room */
@media (min-width: 48rem) {
  .nc-root { min-height: 28rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nc-btn,
  .nc-call { transition: none; }
}
