/* ============================================================
   home-alt.css — "Client Style" experiment (EN home page only)
   Navy / white / light-gray minimal layout replicating the
   client's reference mockup. Self-contained: this file alone
   styles en/index.html on the client-alt-style branch — it does
   NOT load variables.css / base.css / header.css / footer.css,
   so the rest of the site is untouched.
   ============================================================ */

/* ---- Tokens ------------------------------------------------ */
:root {
  --navy:        #122a44;   /* primary dark surface (header/hero/footer) */
  --navy-deep:   #0b1c30;   /* deepest band */
  --navy-band:   #15283f;   /* "why work" band */
  --ink:         #16263a;   /* body text on light */
  --ink-soft:    #4a5663;   /* secondary text on light */
  --line:        #e2e1e0;   /* hairlines on light */
  --line-dark:   rgba(255,255,255,.16);
  --paper:       #ffffff;   /* white sections */
  --stone:       #f1f3f5;   /* neutral light-gray "About" surface */
  --cream:       #f1f3f5;   /* neutral light-gray alt section */
  --on-dark:     #f4f6f8;   /* primary text on navy */
  --on-dark-soft:rgba(238,242,246,.82); /* secondary text on navy */
  --accent:      #122a44;   /* accent on light surfaces = navy (strict navy/white palette) */
  --accent-on-dark: #ffffff;/* accent on dark surfaces = white */
  --sold:        #c0392b;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 2px;

  --font-display: 'Italiana', Georgia, 'Times New Roman', serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-condensed: 'Roboto Condensed', 'Roboto', sans-serif;
}

/* ---- Reset / base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;   /* 18px — design-guide body */
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; text-wrap: balance; }
p { margin: 0 0 1rem; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Buttons ---------------------------------------------- */
.alt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .95rem 2rem;
  font-size: 1rem; font-weight: 700; letter-spacing: .01em; /* 16px — design-guide UI label */
  border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-condensed);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.alt-btn:hover { background: #fff; color: var(--navy); border-color: var(--navy); }

.alt-btn--ghost {
  background: transparent; color: var(--navy);
}
.alt-btn--ghost:hover { background: var(--navy); color: #fff; }

.alt-btn--light {
  background: #fff; color: var(--navy); border-color: #fff;
}
.alt-btn--light:hover { background: transparent; color: #fff; }

.alt-btn--outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.55);
}
.alt-btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Uppercase UI labels → Roboto Condensed (matches the reference) */
.alt-topbar-tag,
.alt-brand-corp,
.alt-footer-corp,
.alt-contact-eyebrow,
.alt-footer-col-title,
.alt-stat span { font-family: var(--font-condensed); }

/* ---- Section titles (serif, centered, underline) ---------- */
.alt-section-head { text-align: center; margin-bottom: 3rem; }
.alt-section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1rem + 2.4vw, 2.25rem); /* h2 — caps at 36px scale */
  letter-spacing: .01em;
  color: var(--ink);
}
.alt-section-title .accent-italic { font-style: normal; }
.alt-section-rule {
  width: 64px; height: 2px; background: var(--accent);
  margin: 1rem auto 0;
}
.alt-section-sub {
  display: inline-flex; align-items: center; gap: .85rem;
  font-family: var(--font-condensed); font-weight: 500;
  font-size: .875rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: .65rem;
}
/* Short rule leading into the sub-label ("— WITH ME", "— BY ME") */
.alt-section-sub::before {
  content: ''; width: 42px; height: 1px; background: currentColor; opacity: .55;
}

/* ============================================================
   TOP UTILITY BAR
   ============================================================ */
.alt-topbar {
  background: var(--navy-deep);
  position: relative; z-index: 40;
  color: var(--on-dark-soft);
  font-size: .875rem;
  letter-spacing: .04em;
}
.alt-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 40px;
}
.alt-topbar-tag {
  text-transform: uppercase; letter-spacing: .18em; font-weight: 600;
  color: var(--on-dark);
}
.alt-topbar-end { display: flex; align-items: center; gap: 1.5rem; }
.alt-topbar-link { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.alt-topbar-link:hover { color: #fff; }
.alt-topbar-link svg { width: 15px; height: 15px; flex: none; }

/* Language switcher (reuses main.js wiring) */
.lang-switcher { position: relative; }
.lang-switcher-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  background: transparent; border: 1px solid var(--line-dark);
  color: var(--on-dark-soft);
  padding: .25rem .6rem; border-radius: var(--radius);
  font-size: .875rem; letter-spacing: .06em;
}
.lang-switcher-toggle:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.lang-switcher-caret { width: 13px; height: 13px; }
.lang-switcher.is-open .lang-switcher-caret { transform: rotate(180deg); }
.lang-switcher-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 168px; margin: 0; padding: .35rem;
  list-style: none; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(8,18,30,.18); z-index: 60;
}
.lang-switcher-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .7rem; font-size: 1rem; border-radius: var(--radius);
}
.lang-switcher-menu a:hover { background: var(--stone); }
.lang-switcher-menu a.is-active { color: var(--accent); font-weight: 600; }
.lang-switcher-check { width: 16px; height: 16px; }

/* ============================================================
   MAIN HEADER / NAV
   ============================================================ */
/* Topbar + nav move together as one sticky unit */
.alt-nav-wrap { position: sticky; top: 0; z-index: 50; }
.alt-header {
  background: var(--navy);
  position: relative;
}
.alt-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px;
}
/* Separator hairline, inset to line up with the hero social rail */
.alt-header::after {
  content: '';
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 1px; background: var(--line-dark);
}

/* The nav is solid navy (opaque) everywhere — including over the home hero —
   so it never fades from transparent to filled on scroll. */
.alt-brand {
  display: flex; flex-direction: column; line-height: 1.1;
  flex-shrink: 0; text-decoration: none;
  transition: opacity .25s ease;
}
.alt-brand:hover { opacity: .82; }
.alt-brand-name {
  font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; font-weight: 500;
}
.alt-brand-corp {
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-soft); margin-top: 2px;
}

.alt-nav { display: flex; align-items: center; gap: 1.75rem; }
/* Persistent nav CTA — light button that pops on the navy header, inverts on
   hover. Lives inside .alt-nav so it trails the links on desktop and drops
   into the off-canvas panel on mobile. */
.alt-nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .55rem 1.15rem; white-space: nowrap;
  font-family: var(--font-condensed); font-weight: 700;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  background: #fff; color: var(--navy);
  border: 1.5px solid #fff; border-radius: var(--radius);
  text-shadow: none; /* cancel the hero header's text-shadow on the button label */
  transition: background .25s ease, color .25s ease;
}
.alt-nav-cta:hover { background: transparent; color: #fff; }
/* On the transparent home hero the header carries a text-shadow for legibility;
   keep cream text readable but drop the shadow once the button inverts. */
body.alt-home .alt-nav-cta { text-shadow: none; }
.alt-nav-list {
  display: flex; align-items: center; gap: 1.9rem;
  list-style: none; margin: 0; padding: 0;
}
.alt-nav-list a {
  font-family: var(--font-condensed);
  font-size: .875rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 500; color: var(--on-dark-soft);
  padding: .5rem 0; position: relative;
}
.alt-nav-list a:hover { color: #fff; }
.alt-nav-list a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent-on-dark); transform: scaleX(0);
  transition: transform .25s ease;
}
.alt-nav-list a:hover::after,
.alt-nav-list li.is-active > a::after { transform: scaleX(1); }
.alt-nav-list li.is-active > a { color: #fff; }

/* Listings dropdown ------------------------------------------------------- */
.alt-nav-has-menu { position: relative; }
.alt-nav-has-menu > a { display: inline-flex; align-items: center; gap: .3rem; }
.alt-nav-caret { width: 11px; height: 11px; transition: transform .2s ease; }
.alt-nav-has-menu:hover > a .alt-nav-caret,
.alt-nav-has-menu:focus-within > a .alt-nav-caret { transform: rotate(180deg); }
.alt-nav-submenu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); margin-top: 10px;
  min-width: 190px; padding: .4rem; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(8,18,30,.18);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility .2s;
  z-index: 60;
}
/* invisible bridge so the cursor can travel from the link to the menu */
.alt-nav-submenu::before {
  content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
}
.alt-nav-has-menu:hover > .alt-nav-submenu,
.alt-nav-has-menu:focus-within > .alt-nav-submenu {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.alt-nav-submenu a {
  display: block; padding: .55rem .7rem; border-radius: var(--radius);
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 500; color: var(--ink); white-space: nowrap;
}
.alt-nav-submenu a::after { display: none; }
.alt-nav-submenu a:hover { background: var(--stone); color: var(--navy); }

/* Mobile nav toggle */
.alt-nav-toggle {
  display: none; background: transparent; border: 0; color: #fff;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.alt-nav-toggle svg { width: 26px; height: 26px; }
.alt-nav-toggle .icon-close { display: none; }
.alt-nav-toggle.is-open .icon-open { display: none; }
.alt-nav-toggle.is-open .icon-close { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.alt-hero {
  position: relative; z-index: 0;
  background:
    linear-gradient(180deg, rgba(8,18,30,.55) 0%, rgba(8,18,30,.15) 40%, rgba(11,28,48,.78) 100%),
    radial-gradient(120% 90% at 80% 20%, #1d3a5c 0%, #122a44 45%, #0b1c30 100%);
  color: var(--on-dark);
  overflow: hidden;
}
/* Cityscape background video (sits over the gradient fallback) */
.alt-hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
/* Contrast scrim so the white hero copy stays legible over the footage */
.alt-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,18,30,.6) 0%, rgba(8,18,30,.28) 42%, rgba(11,28,48,.85) 100%),
    linear-gradient(95deg, rgba(8,18,30,.85) 0%, rgba(8,18,30,.5) 46%, rgba(8,18,30,.12) 100%);
}
.alt-hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 620px;
  padding-top: 3.5rem;
  padding-bottom: 0; /* headshot bleeds to the bottom edge like the reference */
}
.alt-hero-copy { max-width: 620px; } /* aligns with page content edge; the social rail sits out in the gutter */
.alt-hero-eyebrow {
  font-family: var(--font-condensed); font-weight: 300; /* light */
  font-size: clamp(2.25rem, 1rem + 3.6vw, 4rem); /* hero name — display exception, 64px */
  line-height: 1; letter-spacing: .03em;
  text-transform: uppercase; color: #fff; margin-bottom: .4rem;
}
.alt-hero-role {
  font-family: var(--font-condensed); font-weight: 500;
  font-size: 1rem;              /* 16px — design-guide scale */
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-soft); margin: 0 0 2.25rem;
}
.alt-hero-title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(2rem, 1rem + 2.4vw, 3rem); /* hero slogan — display exception, 48px */
  line-height: 1.1; letter-spacing: 0; text-transform: uppercase;
  color: #fff; margin: 0 0 2.75rem;
}
.alt-hero-lead {
  font-size: 1.125rem; line-height: 1.7; color: var(--on-dark-soft);
  max-width: 50ch; margin-bottom: 2rem;
}
.alt-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.alt-hero-portrait { align-self: end; position: relative; z-index: 2; }
.alt-hero-portrait img {
  width: clamp(300px, 34vw, 480px);
  height: auto;
  display: block;
}

/* Vertical social rail — bare white glyphs with a hairline above and below */
.alt-hero-social {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem; z-index: 3;
}
.alt-hero-social::before,
.alt-hero-social::after {
  content: ''; width: 1px; height: 56px; background: rgba(255,255,255,.45);
}
.alt-hero-social a,
.alt-hero-social .wechat-cta-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; transition: opacity .2s ease;
}
.alt-hero-social a:hover,
.alt-hero-social .wechat-cta-toggle:hover { opacity: .6; }
.alt-hero-social svg { width: 20px; height: 20px; }

/* Hero stat rings — sit in the hero copy column (replace the old CTAs).
   Outlined circles over the dark hero: big serif number, hairline divider,
   short uppercase label. */
.alt-hero-stats {
  display: flex; flex-wrap: wrap;
  gap: clamp(.5rem, .85vw, .75rem);
  list-style: none; margin: 0; padding: 0;
}
.alt-hero-stat {
  width: clamp(112px, 8.9vw, 128px);
  height: clamp(112px, 8.9vw, 128px);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: .5rem;
}
.alt-hero-stat strong {
  font-family: var(--font-condensed); font-weight: 400;
  font-size: 1.5rem; line-height: 1; color: #fff;   /* 24px — design-guide scale */
  letter-spacing: .02em; white-space: nowrap;
}
.alt-hero-stat-rule {
  width: 28px; height: 1px; background: rgba(255,255,255,.55);
  margin: .5rem 0;
}
.alt-hero-stat-label {
  font-family: var(--font-condensed);
  font-size: 1.125rem;          /* 18px — design-guide scale */
  letter-spacing: .03em; text-transform: uppercase;
  color: var(--on-dark-soft); line-height: 1.15;
}

/* ============================================================
   ABOUT VICTOR
   ============================================================ */
.alt-about {
  /* Coal Harbour aerial as a soft backdrop; light stone wash keeps the
     dark body copy readable (overlay tuned to stay above WCAG AA). */
  background:
    linear-gradient(rgba(241,243,245,.82), rgba(241,243,245,.88)),
    url(../images/about/coal-harbour.webp) center / cover no-repeat;
  background-color: var(--stone); /* fallback if the image fails */
  padding: 6.5rem 0 4.5rem;
}
.alt-about-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem;
}
.alt-about-title {
  font-family: var(--font-display); font-weight: 400; font-style: normal;
  font-size: clamp(1.75rem, 1rem + 1.6vw, 2.25rem); letter-spacing: .02em; /* h2 — caps at 36px */
  text-transform: uppercase; color: var(--ink);
}
.alt-about-title strong { font-family: var(--font-condensed); font-weight: 700; }
.alt-about-more {
  font-size: .875rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink); border-bottom: 1.5px solid var(--accent); padding-bottom: 2px;
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  transition: gap .2s ease, opacity .2s ease;
}
.alt-about-more svg { transition: transform .2s ease; }
.alt-about-more:hover { gap: .7rem; opacity: .72; }
.alt-about-more:hover svg { transform: translate(3px, -3px); }
.alt-about-body { max-width: 980px; margin: 0; text-align: left; color: var(--ink-soft); font-size: 1.125rem; }

.alt-awards { text-align: center; margin: 2.75rem 0; }
.alt-awards img {
  width: 100%; max-width: 820px; height: auto; display: inline-block;
}

.alt-about-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ============================================================
   FEATURED LISTINGS / RECENTLY SOLD (iframe sections)
   ============================================================ */
.alt-listings { background: var(--paper); padding: 5.5rem 0; }
.alt-listings--alt { background: var(--cream); }

.alt-iframe-wrap { width: 100%; position: relative; }
/* Language-neutral loading spinner sits behind the iframe; once the MLS feed
   paints its (opaque) grid it covers this. If the feed is slow/empty the user
   sees a "loading" state instead of a blank void. No text → no i18n needed. */
.alt-iframe-wrap::before {
  content: ''; position: absolute; top: 110px; left: 50%; z-index: 0;
  width: 38px; height: 38px; margin-left: -19px;
  border: 3px solid var(--line); border-top-color: var(--navy); border-radius: 50%;
  animation: alt-iframe-spin .8s linear infinite;
}
@keyframes alt-iframe-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .alt-iframe-wrap::before { animation: none; border-top-color: var(--line); opacity: .5; }
}
.alt-iframe-wrap iframe {
  position: relative; z-index: 1;
  width: 100%; border: 0; display: block;
  min-height: 900px;
}
/* Fallback heights for the "page" embeds (Listings + Sold). js/main.js auto-fits
   these to their posted height once MyGoodReal reports it; until then — or if that
   message is delayed/dropped on a phone — these min-heights must be tall enough to
   show the full page of listings rather than clipping it. Sized to the 1-column
   phone layout (≈4200px for a page of listings) with headroom. */
@media (max-width: 1024px) { .alt-iframe-wrap iframe { min-height: 2600px; } }
@media (max-width: 640px)  { .alt-iframe-wrap iframe { min-height: 4400px; } }

/* Homepage Featured / Recently Sold are "widget" embeds (type=1) that show 6
   listings and — unlike the "page" embed on the Listings page — do NOT post
   their height, so they can't be auto-fit by js/main.js. We size them with
   fixed min-heights instead, tuned so all 6 cards show with no internal
   scrollbar. Breakpoints follow the EMBED's own column reflow (not the site's):
   3 columns / 2 rows above ~960px, 2 columns / 3 rows down to ~620px, then
   1 column / 6 rows below that. Each tier is set to its tallest case, so the
   only cost is some slack (cream/white) on the shorter layouts. */
.alt-listings .alt-iframe-wrap iframe { min-height: 920px; }             /* 3-col, 2 rows */
@media (max-width: 960px) { .alt-listings .alt-iframe-wrap iframe { min-height: 1520px; } } /* 2-col, 3 rows */
@media (max-width: 640px) { .alt-listings .alt-iframe-wrap iframe { min-height: 3560px; } } /* 1-col, 6 rows (wider cards = taller) */
/* Phones in portrait (~360–430px): these are fixed-height "widget" embeds that
   post no height, so we size to the real 1-column content. The two sections
   differ — Featured cards carry an extra brokerage line + longer addresses, so
   they run taller than the Sold cards. Sized to the fully-loaded height + a
   small margin; revisit if the listing card layout changes. */
@media (max-width: 440px) {
  .alt-listings .alt-iframe-wrap iframe { min-height: 2480px; }        /* Sold / shorter cards */
  #featured-listings .alt-iframe-wrap iframe { min-height: 2640px; }   /* Featured / taller cards */
}

.alt-listings-cta { text-align: center; margin-top: 2.75rem; }
.alt-listings-cta p {
  font-family: var(--font-body); font-style: italic;
  font-size: 1.125rem; color: var(--ink-soft); margin-bottom: 1.25rem;
}

/* Shared closing CTA band — sits at the foot of every page (except Contact),
   just above the footer. Defined here in home-alt.css (loaded site-wide) so it
   styles consistently on the home page and the inner pages alike. */
.alt-closing-cta { padding: 5.5rem 0; background: var(--paper); text-align: center; }
.alt-closing-cta p {
  max-width: 760px; margin: 0 auto;
  font-size: 1.125rem; line-height: 1.7; color: var(--ink-soft);
}
.alt-closing-cta .alt-btn { margin-top: 1.75rem; }

/* ---- Listing cards (Figma layout) ------------------------- */

/* Shared listing typography */
.alt-price {
  font-size: 1.35rem; font-weight: 700; color: var(--navy); line-height: 1.1;
  margin-bottom: .45rem;
}
.alt-addr { color: var(--ink-soft); font-size: .92rem; line-height: 1.4; margin-bottom: .9rem; }
.alt-area { color: #8b949d; font-size: .8rem; margin-bottom: 1rem; }
.alt-meta {
  display: flex; flex-wrap: wrap; gap: .25rem 1.1rem;
  font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: .6rem;
}
.alt-meta span { position: relative; }
.alt-meta span + span::before {
  content: ''; position: absolute; left: -.58rem; top: 50%; transform: translateY(-50%);
  width: 1px; height: 11px; background: var(--line);
}
.alt-broker {
  font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: #9aa3ac;
}

/* Wide featured card: image | details | description */
.alt-fcards { margin-bottom: 2rem; }
.alt-fcard {
  display: grid; grid-template-columns: 300px 1.25fr 1fr;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(18,42,68,.06);
  border-radius: var(--radius); overflow: hidden;
}
.alt-fcard + .alt-fcard { margin-top: 1.5rem; }
.alt-fcard-media { min-height: 210px; }
.alt-fcard-media img { width: 100%; height: 100%; object-fit: cover; }
.alt-fcard-body { padding: 1.6rem 1.8rem; }
.alt-fcard-desc { padding: 1.6rem 1.8rem; border-left: 1px solid var(--line); }
.alt-desc-title { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: .55rem; }
.alt-desc-text { font-size: .85rem; color: var(--ink-soft); line-height: 1.65; margin: 0; }

/* Card grids */
.alt-grid { display: grid; gap: 1.75rem; margin-top: .5rem; }
.alt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.alt-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

.alt-card {
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(18,42,68,.06);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.alt-card-media { position: relative; aspect-ratio: 4 / 3; }
.alt-card-media img { width: 100%; height: 100%; object-fit: cover; }
.alt-card-body { padding: 1.15rem 1.25rem 1.35rem; }

.alt-sold-badge {
  position: absolute; top: 14px; left: 0;
  background: var(--sold); color: #fff;
  font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .32rem .75rem;
}
.alt-card-fav { position: absolute; top: 12px; right: 12px; display: flex; gap: .4rem; }
.alt-card-fav span {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; color: var(--navy);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.alt-card-fav svg { width: 15px; height: 15px; }

/* ============================================================
   WHY WORK WITH ME (dark band)
   ============================================================ */
.alt-why {
  background: var(--navy-band);
  color: var(--on-dark);
  padding: 5.5rem 0;
}
.alt-why .alt-section-title { color: #fff; }
.alt-why .alt-section-sub { color: var(--on-dark-soft); }
.alt-why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.alt-why-col {
  padding: 0 2.25rem; text-align: center;
}
.alt-why-col + .alt-why-col { border-left: 1px solid var(--line-dark); }
.alt-why-col h3 {
  font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: 1rem;
  letter-spacing: .01em;
}
.alt-why-col p { color: var(--on-dark-soft); font-size: 1.125rem; margin: 0; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.alt-quotes { background: var(--paper); padding: 5.5rem 0; }
.alt-quotes-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  max-width: 980px; margin-inline: auto;
}
.alt-quote { position: relative; padding-top: 2.5rem; }
.alt-quote::before {
  content: '\201C'; font-family: var(--font-display);
  position: absolute; top: -1rem; left: 0;
  font-size: 4rem; line-height: 1; color: var(--accent);
}
.alt-quote-body { font-size: 1.125rem; color: var(--ink); }
.alt-quote-attr {
  text-align: right; color: var(--ink-soft); font-size: .875rem; margin-top: .5rem;
}
.alt-quote-attr::before { content: '— '; }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.alt-footer {
  background: var(--navy-deep);
  color: var(--on-dark);
  padding: 5rem 0 0;
  position: relative;
}
.alt-footer-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem;
  padding-bottom: 4rem;
}
/* Divider between the left link cluster and the right contact form */
.alt-footer-grid > div:last-child {
  border-left: 1px solid var(--line-dark);
  padding-left: 4rem;
}
.alt-footer-brand-logo { width: 120px; height: auto; margin-bottom: 1.5rem; }
.alt-footer-name {
  font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; margin-bottom: .25rem;
}
.alt-footer-corp {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-soft); margin-bottom: 1.75rem;
}
.alt-footer-cols { display: flex; flex-wrap: wrap; gap: 3rem; }
.alt-footer-col-title {
  font-size: .875rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; font-weight: 600; margin-bottom: 1rem;
}
.alt-footer-contact { list-style: none; margin: 0; padding: 0; }
.alt-footer-contact li {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem;
  color: var(--on-dark-soft); font-size: 1rem;
}
.alt-footer-contact a:hover { color: #fff; }
.alt-footer-contact svg { width: 16px; height: 16px; flex: none; color: var(--on-dark-soft); }
.alt-footer-links { list-style: none; margin: 0; padding: 0; }
.alt-footer-links li { margin-bottom: .7rem; }
.alt-footer-links a { color: var(--on-dark-soft); font-size: 1rem; }
.alt-footer-links a:hover { color: #fff; }

.alt-footer-social { display: flex; gap: .25rem; margin-top: 1.5rem; margin-left: -.5rem; }
.alt-footer-social a,
.alt-footer-social .wechat-cta-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .5rem; /* ~38px tap target around the bare glyph (no circle) */
  color: var(--on-dark-soft); transition: color .2s ease;
}
.alt-footer-social a:hover,
.alt-footer-social .wechat-cta-toggle:hover { color: #fff; }
.alt-footer-social svg { width: 22px; height: 22px; }

/* WeChat QR popover — used by the hero rail and footer social row. The alt home
   page is self-contained (loads only home-alt.css), so the popover styling that
   lives in footer.css isn't available here; it's redefined below. */
.wechat-popover-anchor { position: relative; display: inline-flex; }
.wechat-cta-toggle {
  appearance: none; -webkit-appearance: none; background: none; border: 0;
  padding: 0; margin: 0; font: inherit; cursor: pointer;
}
.wechat-popover {
  position: absolute; z-index: 60; width: 180px; padding: .5rem;
  background: #fff; border: 1px solid rgba(10, 34, 64, .15); border-radius: 2px;
  box-shadow: 0 16px 40px rgba(6, 22, 41, .45);
}
.wechat-popover[hidden] { display: none; }
.wechat-popover img { display: block; width: 100%; height: auto; border-radius: 2px; }
/* Hero rail hugs the far-left edge and is vertically centred → open to the right. */
.alt-hero-social .wechat-popover { left: calc(100% + .75rem); top: 50%; transform: translateY(-50%); }
/* Footer row sits low in the layout → open upward, aligned to the icon's left edge. */
.alt-footer-social .wechat-popover { left: 0; bottom: calc(100% + .625rem); }

/* Contact form */
.alt-contact-eyebrow {
  font-size: .875rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-soft); margin-bottom: .35rem; text-align: center;
}
.alt-contact-title {
  font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; /* h2 */
  color: #fff; margin-bottom: 1.75rem; text-align: center;
}
.alt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-dark-soft); margin-bottom: .5rem;
}
.form-group input,
.form-group textarea {
  width: 100%; background: transparent; color: #fff;
  border: 0; border-bottom: 1px solid var(--line-dark);
  padding: .55rem 0; font-family: inherit; font-size: 1rem;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-bottom-color: var(--accent-on-dark);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(238,242,246,.4); }
.form-group--error input,
.form-group--error textarea { border-bottom-color: #e8836f; }
.form-error-text { display: block; color: #f0a596; font-size: .875rem; margin-top: .4rem; min-height: 1em; }
.alt-form .alt-btn { display: flex; width: fit-content; margin: .5rem auto 0; }
.form-message { margin-top: 1.25rem; font-size: 1rem; }
.form-message--success { color: #8fd6a8; }
.form-message--error { color: #f0a596; }
/* honeypot */
.alt-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.alt-footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  font-size: .875rem; color: var(--on-dark-soft);
}
.alt-footer-bottom a {
  color: inherit; text-decoration: underline; text-underline-offset: 2px;
  transition: color .25s ease;
}
.alt-footer-bottom a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  /* z-60 keeps the toggle (which swaps to a close X when open) above the
     off-canvas panel (z-55) so it stays tappable to close. */
  .alt-nav-toggle { display: inline-flex; position: relative; z-index: 60; }
  .alt-header-inner { justify-content: space-between; } /* nav off-canvas; brand left, toggle right */
  .alt-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: var(--navy); flex-direction: column; align-items: flex-start;
    padding: 6rem 2rem 2rem; gap: 1.5rem;
    transform: translateX(100%); transition: transform .3s ease;
    box-shadow: -20px 0 50px rgba(0,0,0,.4); z-index: 55;
  }
  .alt-nav.is-open { transform: translateX(0); }
  .alt-nav-list { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .alt-nav-list a { font-size: 1rem; }
  .alt-nav-cta { align-self: flex-start; margin-top: .5rem; font-size: .9rem; padding: .7rem 1.4rem; }
  /* Dropdown expands inline (indented) inside the off-canvas panel */
  .alt-nav-caret { display: none; }
  .alt-nav-submenu {
    position: static; transform: none; margin: .75rem 0 0; padding: 0 0 0 1rem;
    min-width: 0; opacity: 1; visibility: visible; pointer-events: auto;
    background: transparent; border: 0; box-shadow: none;
  }
  .alt-nav-submenu::before { display: none; }
  .alt-nav-submenu a { color: var(--on-dark-soft); padding: .4rem 0; font-size: .95rem; text-transform: none; letter-spacing: 0; }
  .alt-nav-submenu a:hover { background: transparent; color: #fff; }
  /* Dim + click-to-close backdrop behind the off-canvas panel. Sits below the
     header bar (z-50) and panel (z-55) so the close (X) toggle stays tappable. */
  body.nav-open::after {
    content: ''; position: fixed; inset: 0; z-index: 49;
    background: rgba(6, 18, 33, .55);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  }
}

@media (max-width: 1024px) {
  .alt-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .alt-hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 2.5rem; padding-bottom: 4rem; }
  .alt-hero-copy { padding-left: 0; }
  .alt-hero-portrait { display: none; }
  /* The vertical social rail is a desktop edge-gutter flourish; on phones it
     became three tiny glyphs floating above the hero name. Drop it here — the
     same channels live in the footer, presented properly. */
  .alt-hero-social { display: none; }
  .alt-why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .alt-why-col { padding: 0; }
  .alt-why-col + .alt-why-col { border-left: 0; border-top: 1px solid var(--line-dark); padding-top: 2.5rem; }
  .alt-quotes-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .alt-footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .alt-footer-grid > div:last-child {
    border-left: 0; border-top: 1px solid var(--line-dark);
    padding-left: 0; padding-top: 3rem;
  }
  .alt-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .alt-fcard { grid-template-columns: 1fr; }
  .alt-fcard-media { min-height: 220px; }
  .alt-fcard-desc { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .alt-topbar-tag { display: none; }
  .alt-topbar-end { gap: 1rem; }
  .alt-form-row { grid-template-columns: 1fr; }
  .alt-stat { width: 116px; height: 116px; }
  .alt-grid--3, .alt-grid--4 { grid-template-columns: 1fr; }
  /* Hero stat rings: a clean 2×2 grid (was a flex row that wrapped 3 + 1),
     with larger circles + slightly smaller labels so the text fits. */
  .alt-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; justify-items: center; }
  .alt-hero-stat { width: 100%; max-width: 158px; height: auto; aspect-ratio: 1 / 1; padding: .75rem; }
  .alt-hero-stat-label { font-size: 1rem; line-height: 1.2; }
}

/* Phones: give every primary button the same length so CTAs line up
   consistently instead of each hugging its own label width. */
@media (max-width: 640px) {
  .alt-btn,
  .alt-form .alt-btn {
    display: flex; width: 100%; max-width: 340px;
    margin-left: auto; margin-right: auto;
  }
}

/* Narrow phones: the email address is too wide for the topbar — keep the
   tap-to-call phone (it's the priority) and drop email here. Email still
   lives in the footer + on the contact page. */
@media (max-width: 480px) {
  .alt-topbar-link[href^="mailto"] { display: none; }
}

/* ---- Scroll reveal ---------------------------------------- */
/* Visible by default so the page is fully readable with JS off or if the
   observer never runs. JS "arms" below-fold sections (.is-armed) to hide
   them, then swaps to .is-revealed as they scroll into view. */
.reveal { opacity: 1; transform: none; }
.reveal.is-armed { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal.is-armed { opacity: 1; transform: none; transition: none; }
  .alt-hero-video { display: none; }
}

/* Skip the background video on small screens to save data + battery
   (the gradient fallback shows instead) */
@media (max-width: 768px) {
  .alt-hero-video { display: none; }
}
