/* ============================================================================
   home.css — Page-scoped styles for index.html (Home).
   Uses only var(--gv-*) tokens. No shared files edited.
   ============================================================================ */

/* ---- Shared button primitives (home-page scope) --------------------------- */

.gv-btn-primary,
.gv-btn-ghost,
.gv-btn-gold,
.gv-btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--gv-font-label);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  min-height: 56px;
  padding: 0 28px;
  cursor: pointer;
  border: none;
  transition:
    transform var(--gv-dur-press) var(--gv-ease-out),
    filter var(--gv-dur) var(--gv-ease),
    box-shadow var(--gv-dur) var(--gv-ease);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Primary: dark CTA gradient fill — hero section on cream */
.gv-btn-primary {
  background: var(--gv-grad-cta);
  color: var(--gv-on-dark);
}
.gv-btn-primary:hover {
  filter: brightness(1.04);
  box-shadow: var(--gv-shadow-lg);
}
.gv-btn-primary:active {
  transform: scale(0.97);
  filter: brightness(0.96);
}

/* Ghost: gold-outline, transparent fill — secondary CTA on cream.
   Hierarchy (colors locked): label muted + 1px hairline border so the dark
   primary pill clearly wins the eye; restores full ink + border on hover. */
.gv-btn-ghost {
  background: transparent;
  color: var(--gv-text-muted);
  border: 1px solid var(--gv-gold);
  transition:
    transform var(--gv-dur-press) var(--gv-ease-out),
    color var(--gv-dur) var(--gv-ease),
    border-color var(--gv-dur) var(--gv-ease),
    background-color var(--gv-dur) var(--gv-ease);
}
.gv-btn-ghost:hover {
  background: rgba(196, 140, 60, 0.08);
  color: var(--gv-dark);
}
.gv-btn-ghost:active {
  transform: scale(0.97);
}

/* Gold-fill: maximum contrast on dark card — closing section */
.gv-btn-gold {
  background: var(--gv-grad-gold);
  color: var(--gv-ink-deepest);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(196, 140, 60, 0.3);
}
.gv-btn-gold:hover {
  filter: brightness(1.04);
  box-shadow: var(--gv-shadow-lg);
}
.gv-btn-gold:active {
  transform: scale(0.97);
}

/* Ghost light: on dark card surface */
.gv-btn-ghost-light {
  background: transparent;
  color: var(--gv-on-dark);
  border: 1.5px solid rgba(244, 232, 200, 0.4);
  font-weight: 600;
}
.gv-btn-ghost-light:hover {
  border-color: rgba(244, 232, 200, 0.7);
  background: rgba(244, 232, 200, 0.06);
}
.gv-btn-ghost-light:active {
  transform: scale(0.97);
}

.gv-btn__arrow {
  flex-shrink: 0;
  transition: transform var(--gv-dur) var(--gv-ease);
}
.gv-btn-primary:hover .gv-btn__arrow,
.gv-btn-gold:hover .gv-btn__arrow {
  transform: translateX(3px);
}

/* Focus-visible — split by surface (LOCKED contrast rule):
   -primary/-ghost sit on cream  → --gv-gold-text (#8A5A18, 5.47:1 on cream)
   -gold/-ghost-light sit on dark card → --gv-gold-light (#D4A85B, 6.26:1 on dark) */
.gv-btn-primary:focus-visible,
.gv-btn-ghost:focus-visible {
  outline: 3px solid var(--gv-gold-text);
  outline-offset: 3px;
}
.gv-btn-gold:focus-visible,
.gv-btn-ghost-light:focus-visible {
  outline: 3px solid var(--gv-gold-light);
  outline-offset: 3px;
}

/* ============================================================================
   SECTION 1 · HERO
   ============================================================================ */

.gv-hero {
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 10vw, 112px);
  overflow: hidden;
  position: relative;
}

/* Decorative faint paper texture behind the whole hero. Low opacity so it never
   reduces text contrast; sits behind the content (which is non-positioned and
   therefore paints above this z-index:0 layer). aria-hidden in markup. */
.gv-hero__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: image-set(
    url("/assets/images/hero-paper-texture-1200w.webp") type("image/webp"),
    url("/assets/images/hero-paper-texture-1200w.jpg") type("image/jpeg")
  );
  background-image: -webkit-image-set(
    url("/assets/images/hero-paper-texture-1200w.webp") type("image/webp"),
    url("/assets/images/hero-paper-texture-1200w.jpg") type("image/jpeg")
  );
  /* Fallback for browsers without image-set support */
  background-color: transparent;
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  pointer-events: none;
}
/* Keep hero content above the texture layer */
.gv-hero__inner { position: relative; z-index: 1; }

.gv-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

/* Eyebrow */
.gv-hero__eyebrow {
  margin-bottom: 16px;
}

/* H1 */
.gv-hero__h1 {
  font-size: clamp(34px, 7vw, 62px);
  line-height: var(--gv-display-lh);
  letter-spacing: var(--gv-display-tracking);
  color: var(--gv-text);
  margin-bottom: 20px;
  max-width: 16ch;
}

/* Subhead */
.gv-hero__subhead {
  font-family: var(--gv-font-body);
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: var(--gv-body-lh);
  color: var(--gv-text-body);
  max-width: 52ch;
  margin-bottom: 0;
}

/* Accent rule below headline block */
.gv-hero__rule {
  max-width: 320px;
  margin: 24px 0;
}

/* CTA row */
.gv-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Mobile: full-width buttons */
@media (max-width: 639px) {
  .gv-btn-primary,
  .gv-btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .gv-hero__ctas {
    flex-direction: column;
  }
}

/* Portrait dark card — hidden on mobile, shown desktop */
.gv-hero__portrait-card {
  display: none;
}

/* ---- Desktop hero: 2-zone grid ------------------------------------------ */
@media (min-width: 768px) {
  .gv-hero__inner {
    grid-template-columns: 58fr 42fr;
    gap: 48px;
    align-items: center;
  }

  .gv-hero__h1 {
    max-width: 20ch;
  }

  .gv-hero__subhead {
    max-width: 60ch;
  }

  .gv-hero__rule {
    max-width: 50%;
  }

  .gv-hero__ctas {
    flex-direction: row;
  }

  .gv-btn-primary,
  .gv-btn-ghost {
    width: auto;
  }

  /* Portrait card visible on desktop */
  .gv-hero__portrait-card {
    display: flex;
    flex-direction: column;
    background: var(--gv-grad-cardback);
    border-radius: var(--gv-radius-lg);
    overflow: hidden;
    box-shadow: var(--gv-shadow-lg);
    border: 1px solid rgba(196, 140, 60, 0.18);
    position: relative;
  }

  .gv-hero__card-logo {
    padding: 20px 24px 8px;
    display: flex;
    align-items: center;
  }

  .gv-hero__card-logo img {
    height: 30px;
    width: auto;
    display: block;
    opacity: 0.92;
  }

  .gv-hero__portrait-frame {
    flex: 1;
    overflow: hidden;
  }

  .gv-hero__portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    /* Warm photo treatment: subtle sepia-gold tone via filter */
    filter: saturate(1.05);
    transition: filter var(--gv-dur) var(--gv-ease);
  }
}

/* ============================================================================
   SECTION 2 · HOW I HELP
   ============================================================================ */

.gv-how {
  padding-block: clamp(56px, 9vw, 96px);
}

.gv-how__eyebrow {
  text-align: center;
  margin-bottom: 20px;
}

.gv-how__rule {
  max-width: 240px;
  margin: 0 auto 40px;
}

/* 3-card grid */
.gv-how__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .gv-how__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Card base — tighter TOP padding on mobile so the gold numeral + heading
   anchor near the card top instead of after a dead cream band on scroll. */
.gv-card {
  background-color: var(--gv-card);
  border: 1px solid var(--gv-rule);
  border-radius: var(--gv-radius);
  padding: 18px 24px 26px;
  box-shadow: var(--gv-shadow);
  /* Warm inner edge highlight (double-bezel) */
  box-shadow:
    var(--gv-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .gv-card {
    padding: 32px 28px;
  }
}

/* Roman numeral mark */
.gv-card__mark {
  font-family: var(--gv-font-display);
  font-size: var(--gv-font-size-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gv-gold-text); /* roman-numeral mark conveys meaning on cream — >=3:1 */
  margin-bottom: 14px;
  text-transform: uppercase;
}

.gv-card__heading {
  font-family: var(--gv-font-display);
  font-size: clamp(22px, 2.8vw, 26px);
  line-height: 1.15;
  color: var(--gv-text);
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: var(--gv-display-tracking);
}

.gv-card__body {
  font-family: var(--gv-font-body);
  font-size: 18px;
  line-height: var(--gv-body-lh);
  color: var(--gv-text-body);
  margin: 0;
}

/* Scroll-reveal: elements start invisible and slide up */
[data-gv-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--gv-dur-reveal) var(--gv-ease-out),
    transform var(--gv-dur-reveal) var(--gv-ease-out);
}

[data-gv-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-gv-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================================
   SECTION 3 · TRUST STRIP
   ============================================================================ */

.gv-trust {
  padding-block: clamp(48px, 8vw, 96px); /* normalized 80->96 to hold the section cadence */
}

.gv-trust__inner {
  text-align: center;
}

.gv-trust__rule-top {
  max-width: 320px;
  margin: 0 auto 40px;
}

.gv-trust__rule-bottom {
  max-width: 320px;
  margin: 40px auto 0;
}

.gv-trust__statement {
  font-family: var(--gv-font-body);
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.7;
  color: var(--gv-text-body);
  margin: 0 0 20px;
  max-width: 65ch;
  margin-inline: auto;
}

.gv-trust__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--gv-font-body);
  font-size: 17px;
  color: var(--gv-dark);
  text-decoration: underline;
  text-decoration-color: var(--gv-gold);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  min-height: 48px;
  padding-block: 4px;
  transition:
    text-decoration-color var(--gv-dur) var(--gv-ease),
    color var(--gv-dur) var(--gv-ease);
}

.gv-trust__link:hover {
  color: var(--gv-gold);
  text-decoration-color: transparent;
}

.gv-trust__arrow {
  font-style: normal;
  transition: transform var(--gv-dur) var(--gv-ease);
}

.gv-trust__link:hover .gv-trust__arrow {
  transform: translateX(4px);
}

/* ============================================================================
   SECTION 4 · CLOSING CTA — warm dark card
   ============================================================================ */

.gv-closing {
  padding-block: clamp(56px, 9vw, 96px);
}

.gv-closing__outer {
  /* Narrow the column for intimacy */
  max-width: 780px;
}

/* The dark warm card (element-scale — cream margins visible left/right) */
.gv-closing__card {
  background: var(--gv-grad-cardback);
  border-radius: var(--gv-radius-lg);
  padding: clamp(32px, 6vw, 64px) clamp(28px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--gv-shadow-lg);
  border: 1px solid rgba(196, 140, 60, 0.2);
  /* Inner highlight */
  box-shadow:
    var(--gv-shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

/* Decorative dark backdrop image: fills the card behind the radial glow + content.
   The source is already dark; a dark overlay (::after) guarantees cream text holds
   AA contrast over the lighter regions. aria-hidden in markup. */
.gv-closing__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.gv-closing__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Darkening overlay over the backdrop image to protect cream-text contrast */
.gv-closing__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 31, 18, 0.62), rgba(42, 31, 18, 0.78));
}

/* Subtle warm radial glow in top-right corner (element-level, no section-wide gradient) */
.gv-closing__card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(196, 140, 60, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
/* Card content sits above both the backdrop image and the radial glow */
.gv-closing__mark,
.gv-closing__heading,
.gv-closing__invite,
.gv-closing__reassure,
.gv-closing__rule,
.gv-closing__ctas {
  position: relative;
  z-index: 2;
}

/* Signature mark: gold initial circle */
.gv-closing__mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gv-grad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 2px 16px rgba(196, 140, 60, 0.35);
}

.gv-closing__initial {
  font-family: var(--gv-font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--gv-ink-deepest);
  line-height: 1;
  display: block;
}

.gv-closing__heading {
  font-family: var(--gv-font-display);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: var(--gv-display-tracking);
  color: var(--gv-on-dark);
  margin-bottom: 16px;
  font-weight: 500;
}

.gv-closing__invite {
  font-family: var(--gv-font-body);
  font-size: 18px;
  line-height: var(--gv-body-lh);
  color: rgba(244, 232, 200, 0.82);
  max-width: 50ch;
  margin: 0 auto;
}

.gv-closing__rule {
  max-width: 240px;
  margin: 28px auto;
  opacity: 0.7;
}

/* CTA stack inside dark card */
.gv-closing__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 480px) {
  .gv-closing__ctas {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
}


/* ============================================================================
   SECTION 2 · TWO-LINE ENTRY — two equal cards (Medicare · Final Expense)
   ============================================================================ */
.gv-entry {
  padding-block: clamp(40px, 7vw, 72px);
}
.gv-entry__eyebrow {
  text-align: center;
  margin-bottom: 20px;
}
.gv-entry__rule {
  max-width: 240px;
  margin: 0 auto 36px;
}
.gv-entry__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .gv-entry__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
  }
}
/* Equal-height cards; CTA link pinned to a shared baseline */
.gv-entry__card {
  display: flex;
  flex-direction: column;
}
.gv-entry__card .gv-card__body {
  flex: 1;
  margin-bottom: 20px;
}
/* Entry-card still: a near-square top window that bleeds to the card edges.
   Masters are portrait 4:5 with center-weighted subjects; a 5:4 desktop /
   4:3 mobile window frames the subject instead of slicing a thin band.
   aspect-ratio (not fixed height) = responsive + zero CLS. */
.gv-entry__media {
  display: block;
  margin: -18px -24px 22px;                 /* bleed to card padding edges (mobile) */
  border-radius: var(--gv-radius) var(--gv-radius) 0 0;
  overflow: hidden;
}
.gv-entry__img {
  display: block;
  width: 100%;
  height: auto;                               /* show the whole photo — no crop */
  filter: saturate(1.05);
}
@media (min-width: 768px) {
  .gv-entry__media {
    margin: -32px -28px 24px;
  }
}
.gv-entry__mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(196, 140, 60, 0.1);
  color: var(--gv-gold-text);
  margin-bottom: 16px;
}
.gv-entry__mark svg { width: 24px; height: 24px; }
.gv-entry__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 48px;
  padding-block: 4px;
  font-family: var(--gv-font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--gv-gold-text);
  text-decoration: underline;
  text-decoration-color: var(--gv-gold);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition:
    text-decoration-color var(--gv-dur) var(--gv-ease),
    color var(--gv-dur) var(--gv-ease);
}
.gv-entry__link:hover {
  text-decoration-color: transparent;
}
.gv-entry__arrow {
  transition: transform var(--gv-dur) var(--gv-ease);
}
.gv-entry__link:hover .gv-entry__arrow {
  transform: translateX(4px);
}
@media (prefers-reduced-motion: reduce) {
  .gv-entry__link, .gv-entry__arrow { transition: none; }
}

/* Closing CTA — no-cost/no-obligation reassurance micro-line */
.gv-closing__reassure {
  font-family: var(--gv-font-body);
  font-size: 16px;
  color: rgba(244, 232, 200, 0.78);
  margin: 14px auto 0;
  max-width: 44ch;
}

