/* Landing page and contact page styles. Values come from design-tokens.css. */

/* "How it works" tour scenes are screenshots of the real app, framed by the navy screen. */
.nhs-tour-scene:has(> .nhs-tour-shot) {
  display: flex;
  align-items: center;
  padding: 18px 0 14px;
}

.nhs-tour-scene[hidden] {
  display: none;
}

.nhs-tour-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-control);
  box-shadow: var(--shadow);
}

.nhs-contact-page {
  min-height: calc(100dvh - 72px);
  background: var(--color-canvas);
}

.nhs-footer-top {
  grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr));
}

.nhs-contact-main {
  width: min(calc(100% - 48px), 1160px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 82px) 0 clamp(56px, 8vw, 108px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
  align-items: start;
  gap: clamp(40px, 8vw, 112px);
}

.nhs-contact-intro h1 {
  max-width: 550px;
  margin: 0 0 20px;
  color: var(--color-primary-strong);
  font: 800 var(--fs-display)/1.08 var(--font-sans);
  letter-spacing: -.04em;
}

.nhs-contact-intro > p,
.nhs-contact-guidance p {
  color: var(--color-text-soft);
  font-size: var(--fs-md);
  line-height: 1.65;
}

.nhs-contact-intro > p {
  max-width: 490px;
  margin: 0;
}

.nhs-contact-guidance {
  max-width: 460px;
  margin-top: clamp(48px, 8vw, 104px);
  padding: 28px 30px;
  background: var(--color-positive-surface);
}

.nhs-contact-guidance h2 {
  margin: 0 0 10px;
  color: var(--color-primary-strong);
  font-size: var(--fs-lg);
  line-height: 1.25;
}

.nhs-contact-guidance p {
  margin: 0;
}

.nhs-contact-form {
  padding: clamp(28px, 4vw, 44px);
  background: var(--color-surface);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}

.nhs-contact-form h2 {
  margin: 0 0 10px;
  color: var(--color-primary-strong);
  font-size: var(--fs-xl);
  line-height: 1.25;
}

.nhs-contact-form-note {
  margin: 0 0 26px;
  color: var(--color-text-soft);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.nhs-contact-fields {
  display: grid;
  gap: 9px;
}

.nhs-contact-fields label {
  margin-top: 9px;
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.nhs-contact-fields input,
.nhs-contact-fields select,
.nhs-contact-fields textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
  font: 400 var(--fs-sm)/1.45 var(--font-sans);
}

.nhs-contact-fields textarea {
  min-height: 132px;
  resize: vertical;
}

.nhs-contact-fields input:disabled,
.nhs-contact-fields select:disabled,
.nhs-contact-fields textarea:disabled {
  background: var(--color-canvas);
  color: var(--color-text-soft);
  cursor: not-allowed;
}

.nhs-contact-form .btn {
  margin-top: var(--space-6);
}

@media (max-width:780px) {
  .nhs-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nhs-footer-brand {
    grid-column: 1 / -1;
  }

  .nhs-contact-main {
    width: min(100% - 36px, 600px);
    padding-block: 36px 64px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .nhs-contact-intro h1 {
    font-size: var(--fs-display);
  }

  .nhs-contact-guidance {
    margin-top: 32px;
    padding: 22px;
  }

  .nhs-contact-form {
    padding: 26px 22px;
  }
}

@media (max-width:780px) {
  .nhs-footer-top {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------
   Landing hero, rebuilt to the approved reference layout (2026-11-10).

   One tinted panel holds the copy on the left and a full-bleed photograph on
   the right; three value cards sit under it and overlap its bottom edge. The
   palette and the two typefaces are unchanged — every colour below resolves
   through an existing token in app.css. Kept here, not in app.css, because
   that file is regenerated verbatim from the prototype.
   --------------------------------------------------------------------------- */

.so-announcement {
  padding: 10px 16px;
  text-align: center;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* Sits above the header in the shared layout; the landing screen is the only one that shows it. */
.app:not(.landing-active) > .so-announcement { display: none; }

.so-hero {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(14px, 2vw, 32px) 0;
  margin-bottom: 30px;
}

.so-hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: stretch;
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: linear-gradient(118deg, var(--color-positive-surface) 0%, var(--color-positive-surface) 54%, var(--color-positive-surface) 100%);
}

.so-hero-copy {
  align-self: center;
  padding: clamp(36px, 4.2vw, 62px) clamp(20px, 2.5vw, 34px) clamp(36px, 4.2vw, 62px) clamp(28px, 4vw, 60px);
}

.so-hero-copy h1 {
  margin: 0 0 18px;
  color: var(--color-primary-strong);
  font-family: var(--font-sans);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.so-hero-copy p {
  max-width: 560px;
  margin: 0 0 30px;
  color: var(--color-text-soft);
  font-size: var(--fs-md);
  line-height: 1.62;
}

.so-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.so-hero-media {
  position: relative;
  min-height: 440px;
}

.so-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 45%;
}

/* Softens the seam where the photograph meets the tinted panel. */
.so-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-positive-surface) 0%, transparent 30%);
}

.so-hero-cards {
  position: relative;
  z-index: 2;
  margin: -40px 24px 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.so-hero-cards li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
  color: var(--color-text-soft);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.so-hero-cards strong {
  display: block;
  margin-bottom: 3px;
  color: var(--color-primary-strong);
  font-size: var(--fs-sm);
}

.so-card-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-round);
  background: var(--color-positive-surface);
  color: var(--color-action);
}

.so-card-icon svg {
  width: 22px;
  height: 22px;
}

@media (max-width:1080px) {
  .so-hero-media { min-height: 400px; }
  .so-hero-cards { margin-inline: 0; gap: 14px; }
  .so-hero-cards li { padding: 18px; }
}

@media (max-width:780px) {
  .so-hero-panel { grid-template-columns: 1fr; border-radius: var(--radius-panel); }
  .so-hero-copy { padding: 36px 24px 32px; }
  .so-hero-media { min-height: 0; height: 280px; }
  .so-hero-media::after {
    background: linear-gradient(0deg, transparent 70%, var(--color-positive-surface) 100%);
  }
  .so-hero-cards { grid-template-columns: 1fr; margin: 18px 0 0; gap: 12px; }
}

/* ---------------------------------------------------------------------------
   "How it works" — the four-step strip, rebuilt as a full-bleed navy band of
   photo cards (2026-11-10), to the client's reference. It replaces
   `.nhs-route-strip` in the landing view; those rules stay in app.css, unused
   by this page. The band carries the #how-it-works anchor the hero scrolls to.
   Navy is the app's own --nhs-dark-blue, as used by .nhs-final-cta.
   --------------------------------------------------------------------------- */

.so-how {
  background: var(--color-primary-strong);
  color: var(--color-surface);
  padding: clamp(44px, 5.5vw, 76px) 0;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.so-how-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 48px);
}

.so-how h2 {
  margin: 0 0 clamp(22px, 2.6vw, 34px);
  color: var(--color-surface);
  font-family: var(--font-sans);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.so-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 24px);
}

.so-steps li {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--color-primary-strong);
}

.so-steps img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Each photograph has its subject in a different place; these keep the face
   or the document inside the frame. */
.so-steps li:nth-child(1) img { object-position: 50% 30%; }
.so-steps li:nth-child(2) img { object-position: 50% 40%; }
.so-steps li:nth-child(3) img { object-position: 68% 40%; }
.so-steps li:nth-child(4) img { object-position: 54% 18%; }

/* Scrim behind the numeral, so it stays legible over a light photograph. */
.so-steps li::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 46%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-primary-hover) 62%, transparent), color-mix(in srgb, var(--color-primary-hover) 22%, transparent) 55%, transparent);
}

.so-step-num {
  position: absolute;
  top: clamp(10px, 1.1vw, 16px);
  left: clamp(12px, 1.3vw, 20px);
  color: var(--color-surface);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 2px 16px color-mix(in srgb, var(--color-text) 55%, transparent);
}

.so-step-body {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(12px, 1.1vw, 16px);
  background: color-mix(in srgb, var(--color-primary-strong) 62%, transparent);
  backdrop-filter: blur(10px) saturate(1.5);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  border-top: 1px solid color-mix(in srgb, var(--color-surface) 18%, transparent);
}

.so-step-body strong {
  display: block;
  color: var(--color-surface);
  font-size: var(--fs-lg);
  line-height: 1.25;
  letter-spacing: -.01em;
}

.so-step-body small {
  display: block;
  margin-top: clamp(4px, .5vw, 8px);
  color: color-mix(in srgb, var(--color-surface) 84%, transparent);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.so-how .btn {
  margin-top: clamp(22px, 2.6vw, 34px);
}

@media (max-width:780px) {
  .so-steps { grid-template-columns: 1fr; }
  .so-hero-actions .btn { width: 100%; }
}

@media (max-width:520px) {
  .so-steps li { aspect-ratio: 16 / 11; }
  .so-how .btn { width: 100%; }
}

/* app.css caps the tour, reviews, final-CTA and footer bands at a fixed
   1160px with fixed 40px gutters, leaving large dead margins on wide
   screens. Widen them to match .so-hero/.so-how-inner above and switch to
   the same fluid gutter so they also track the viewport. Only the inline
   padding is overridden; app.css still owns each band's vertical padding,
   grid and mobile-breakpoint rules. */
.nhs-tour,
.nhs-reviews,
.nhs-final-cta,
.nhs-footer-top,
.nhs-footer-bottom {
  max-width: 1600px;
  padding-inline: clamp(22px, 4vw, 48px);
}

.nhs-reviews {
  margin: 0 auto;
  padding-block: clamp(38px, 5vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.nhs-reviews-intro h2 {
  margin: 14px 0 12px;
  color: var(--color-primary-strong);
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.nhs-reviews-intro > p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.nhs-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nhs-review {
  margin: 0;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: var(--radius-card);
  background: var(--color-positive-surface);
}

.nhs-review:nth-child(2) {
  background: var(--color-accent-surface);
}

.nhs-review > p {
  margin: 0;
  color: var(--color-text);
  font-size: var(--fs-lg);
  line-height: 1.65;
}

.nhs-review footer {
  display: grid;
  gap: 4px;
  margin-top: 24px;
}

.nhs-review cite {
  color: var(--color-primary-strong);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 700;
}

.nhs-review footer span {
  color: var(--color-text-soft);
  font-size: var(--fs-xs);
}

@media (max-width:780px) {
  .nhs-reviews {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width:780px) {
  .nhs-reviews {
    padding-inline: 18px;
    padding-block: 34px;
  }

  .nhs-review-list {
    grid-template-columns: 1fr;
  }
}
