/* ==========================================================================
   Landing page

   Structure: the page ground is a shade darker than the content, and each
   section is a rounded panel sitting on it with a fine seam between.
   ========================================================================== */

body { background: var(--ground); }

.panels {
  display: flex;
  flex-direction: column;
  gap: var(--panel-gap);
  padding: 0 var(--panel-inset) var(--panel-inset);
}

.panel {
  background: var(--bg);
  border-radius: var(--r-panel);
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ground);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line-strong); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 62px;
}

.site-header__title {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.site-header__note {
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--ink-faint);
  white-space: nowrap;
}

.site-header__menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-inline-end: -8px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--ink);
  cursor: pointer;
}
.site-header__menuIcon { width: 22px; height: 22px; }

/* Menu: anchors within this page, plus the CTA. */
.site-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-3) clamp(20px, 5vw, 56px) var(--s-5);
  border-top: 1px solid var(--line);
  background: var(--ground);
}
.site-menu[hidden] { display: none; }
.site-menu a {
  padding: 13px 0;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-menu a:last-child { border-bottom: 0; }
.site-menu__cta {
  margin-top: var(--s-4);
  padding: 15px 20px !important;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--accent);
  color: #FBF7F1 !important;
  border-radius: var(--r-btn);
}

@media (max-width: 780px) {
  .site-header__inner { min-height: 56px; }
  /* Mobile order: note (start) · title (centre) · menu (end) */
  .site-header__note {
    order: -1;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    padding: 7px 13px;
    background: var(--bg);
    color: var(--ink-soft);
  }
  .site-header__title { text-align: center; }
  .site-header__menu { display: inline-flex; }
}
@media (max-width: 480px) {
  .site-header__note { padding: 6px 10px; font-size: 0.6875rem; }
  .site-header__title { font-size: 0.6875rem; }
}
@media (max-width: 340px) {
  .site-header__title { display: none; }
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(48px, 6vw, 84px); }

.h-center {
  font-size: clamp(1.5rem, 2.9vw, 2.1rem);
  font-weight: 700;
  line-height: 1.32;
  text-align: center;
  letter-spacing: -0.015em;
  max-width: 26ch;
  margin-inline: auto;
  text-wrap: balance;
}
.h-center--stack { max-width: 30ch; }
.h-center em { font-style: normal; color: var(--accent); }

/* Hairline · gold star · hairline */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  margin: var(--s-5) auto var(--s-7);
  max-width: 340px;
}
.divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(to var(--to, left), var(--line-strong), transparent);
}
.divider span:first-child { background: linear-gradient(to right, transparent, var(--line-strong)); }
.divider span:last-child { background: linear-gradient(to left, transparent, var(--line-strong)); }
.divider svg {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--gold);
}
.divider--start {
  justify-content: flex-start;
  margin-inline: 0;
  max-width: 220px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.hero__copy {
  grid-column: 1;
  align-self: center;
  padding: clamp(40px, 5vw, 72px) clamp(20px, 4.5vw, 64px);
  max-width: 640px;
  justify-self: end;
  width: 100%;
}

.hero__title {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: -0.028em;
}
.hero__title em { font-style: normal; color: var(--accent); }

.hero__sub {
  margin-top: var(--s-5);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--gold);
}

.hero__body {
  margin-top: var(--s-4);
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero__cta { margin-top: var(--s-6); }

/* Trust row: icon + label, split by hairlines */
.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-5);
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-micro);
  color: var(--ink-soft);
  white-space: nowrap;
}
.trust__item + .trust__item {
  padding-inline-start: var(--s-5);
  border-inline-start: 1px solid var(--line-strong);
}
.trust__icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--accent);
}

/* Media bleeds to the panel edge on the inline-end side */
.hero__media {
  grid-column: 2;
  position: relative;
  min-height: 100%;
  background: var(--bg-alt);
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The photo is far wider than this column, so cover crops the sides.
     Biasing right keeps the lit reception desk — the most characteristic
     part of the scene — in frame instead of only the corridor. */
  object-position: 72% center;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  /* Copy leads, image follows underneath */
  .hero__copy {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
    max-width: none;
    text-align: center;
    padding-block: clamp(28px, 6vw, 48px) var(--s-6);
  }
  .hero__body { margin-inline: auto; }
  .hero__media {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .hero__media img { position: static; }
  .trust { gap: var(--s-3); }
  .trust__item + .trust__item { padding-inline-start: var(--s-3); }
}

/* The three trust items stay on one line down to the narrowest phones. */
@media (max-width: 560px) {
  .trust { flex-wrap: nowrap; gap: 0; justify-content: center; }
  .trust__item {
    gap: 5px;
    font-size: 0.6875rem;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
  }
  .trust__item + .trust__item { padding-inline-start: 9px; margin-inline-start: 9px; }
  .trust__icon { width: 13px; height: 13px; }
}
@media (max-width: 400px) {
  .trust__item { font-size: 0.625rem; gap: 4px; }
  .trust__item + .trust__item { padding-inline-start: 7px; margin-inline-start: 7px; }
  .trust__icon { width: 12px; height: 12px; }
}
/* Narrower than the reference phone: one line no longer fits, so stack. */
@media (max-width: 359px) {
  .trust { flex-wrap: wrap; flex-direction: column; align-items: center; gap: 9px; }
  .trust__item {
    white-space: normal;
    text-align: center;
    font-size: 0.6875rem;
    flex: 0 0 auto;
  }
  .trust__item + .trust__item {
    padding-inline-start: 0;
    margin-inline-start: 0;
    border-inline-start: 0;
  }
}

/* --------------------------------------------------------------------------
   Qualification — four columns split by vertical hairlines
   -------------------------------------------------------------------------- */

.quals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.qual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  text-align: center;
}
.qual + .qual { border-inline-end: 1px solid var(--line); }
.qual__icon {
  width: 38px;
  height: 38px;
  color: var(--gold);
}
.qual__label {
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.quals__note {
  margin-top: var(--s-7);
  font-size: var(--fs-micro);
  color: var(--ink-faint);
  text-align: center;
}

/* Stays a single row of four on phones, as in the reference */
@media (max-width: 820px) {
  .qual { padding-inline: var(--s-3); gap: var(--s-3); }
  .qual__icon { width: 32px; height: 32px; }
  .qual__label { font-size: 0.8125rem; line-height: 1.5; }
}
@media (max-width: 480px) {
  .qual { padding: var(--s-2) 6px; }
  .qual__icon { width: 27px; height: 27px; }
  .qual__label { font-size: 0.6875rem; line-height: 1.45; }
}
@media (max-width: 340px) {
  .quals { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-5); }
  .qual + .qual { border-inline-end: 0; }
  .qual:nth-child(odd) { border-inline-start: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   How it works — numbered badges joined by a dotted rule
   -------------------------------------------------------------------------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

/* One dotted rule behind the row, running between the first and last badge
   centres. The badges are opaque, so it reads as three separate connectors. */
.steps::before {
  content: "";
  position: absolute;
  top: 19px;
  inset-inline: calc(100% / 6);
  border-top: 2px dotted var(--line-strong);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: var(--s-3);
}

.step__badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #FBF7F1;
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-5);
}

.step__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.step__icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--gold);
}
.step__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.step__text {
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 32ch;
}

@media (max-width: 640px) {
  .steps { gap: var(--s-3); }
  .step { padding-inline: 2px; }
  .step__head { flex-direction: column; gap: var(--s-2); }
  .step__icon { width: 26px; height: 26px; }
  .step__title { font-size: 0.9375rem; }
  .step__text { font-size: 0.8125rem; line-height: 1.65; }
}

/* --------------------------------------------------------------------------
   Why an audit matters
   -------------------------------------------------------------------------- */

.why { background: var(--bg-alt); }

/* Single column: the copy reads first, the photograph sits beneath it.
   The media comes first in the DOM, so both need an explicit row — without
   one, auto-placement would put the image above the text. */
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  padding: clamp(28px, 3.5vw, 48px);
  /* Caps the measure so the paragraphs do not run the full panel width. */
  max-width: 920px;
  margin-inline: auto;
}

.why__copy { grid-row: 1; }

.why__media {
  grid-row: 2;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg);
}
/* No fixed aspect and no cropping: the photograph is shown whole. */
.why__media img {
  width: 100%;
  height: auto;
  display: block;
}

.why__title {
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
}
.why__standfirst {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1.6;
}
.why__body { margin-top: var(--s-5); }
.why__body p {
  font-size: var(--fs-small);
  line-height: 1.9;
  color: var(--ink-soft);
}
.why__body p + p { margin-top: var(--s-4); }

@media (max-width: 860px) {
  .why__grid {
    gap: var(--s-5);
    padding: var(--s-6) var(--s-4);
  }
  .why__standfirst { margin-top: var(--s-3); }
  .why .divider--start { margin-block: var(--s-4); max-width: 180px; }
}

/* --------------------------------------------------------------------------
   What we examine — three bordered cards
   -------------------------------------------------------------------------- */

.examine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.ex-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(20px, 2.4vw, 32px);
}
.ex-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.ex-card__heading { min-width: 0; }
.ex-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.ex-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ex-card__icon {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--gold);
}
.ex-card__rule {
  display: block;
  width: 34px;
  height: 2px;
  background: var(--gold-soft);
  margin: var(--s-4) 0;
}
.ex-card__text {
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .examine { gap: var(--s-3); }
  .ex-card { padding: var(--s-4) var(--s-3); text-align: center; }
  .ex-card__head { flex-direction: column-reverse; gap: var(--s-3); }
  .ex-card__icon { width: 34px; height: 34px; }
  .ex-card__num { font-size: 0.9375rem; }
  .ex-card__title { font-size: 0.9375rem; }
  .ex-card__rule { margin-inline: auto; }
  .ex-card__text { font-size: 0.8125rem; line-height: 1.7; }
}

/* --------------------------------------------------------------------------
   Final CTA — burgundy card, inset from the page edge
   -------------------------------------------------------------------------- */

.final {
  position: relative;
  overflow: hidden;
  margin-inline: clamp(0px, 2.4vw, 34px);
  border-radius: var(--r-panel);
  background: var(--dark);
  color: var(--dark-text);
  padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 64px);
  text-align: center;
  isolation: isolate;
}

.final__vase {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 0;   /* visually left in RTL */
  width: clamp(150px, 22vw, 250px);
  height: auto;
  opacity: 0.95;
  pointer-events: none;
}

.final__inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin-inline: auto;
}
.final__title {
  font-size: clamp(1.4rem, 2.9vw, 2.05rem);
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.3;
  text-wrap: balance;
}
.final__text {
  margin-top: var(--s-4);
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--dark-text-mute);
}
.final__cta { margin-top: var(--s-6); min-width: min(340px, 100%); }
.final__support {
  margin-top: var(--s-4);
  font-size: var(--fs-micro);
  color: var(--dark-text-mute);
}

@media (max-width: 640px) {
  .final { margin-inline: 0; }
  .final__cta { width: 100%; }
  /* The vase would crowd the copy at phone widths */
  .final__vase { width: 130px; opacity: 0.5; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: var(--s-5) var(--s-6);
  background: var(--ground);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: var(--fs-micro);
  color: var(--ink-faint);
}
