/* Zheng Realty: shared styles for every page and language.
   Balanced light/dark: dark hero, process band, listings band and footer; light everywhere else. */
:root {
  --paper: #f4f6f5;
  --surface: #ffffff;
  --ink: #13252d;
  --muted: #56666d;
  --line: #dbe2e0;
  --deep: #0d222a;          /* dark sections */
  --deep-2: #12303a;
  --on-deep: #eef5f3;
  --on-deep-muted: #a9bdb9;
  --accent: #2b6a58;        /* green on light */
  --accent-ink: #ffffff;
  --accent-bright: #6fd0ad; /* green on dark */
  --error: #a3341f;

  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --r: 14px;
  --wrap: 74rem;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --sec: clamp(3.5rem, 8vw, 7rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1b20; --surface: #15252c; --ink: #e8efed; --muted: #a2b3b0; --line: #26373e;
    --deep: #0a171c; --deep-2: #10242c; --accent: #6fd0ad; --accent-ink: #0c1c17; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1b20; --surface: #15252c; --ink: #e8efed; --muted: #a2b3b0; --line: #26373e;
  --deep: #0a171c; --deep-2: #10242c; --accent: #6fd0ad; --accent-ink: #0c1c17; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font); font-weight: 650; line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Section labels: "01 — Services" */
.label { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label b { font-weight: 500; color: var(--accent); }
.label::after { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: .45; }
.deep .label { color: var(--on-deep-muted); }
.deep .label b { color: var(--accent-bright); }

section { padding-block: var(--sec); }
.head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.head p { color: var(--muted); font-size: 1.08rem; max-width: 38em; }
.deep { background: var(--deep); color: var(--on-deep); }
.deep .head p, .deep p { color: var(--on-deep-muted); }
.deep h2, .deep h3 { color: var(--on-deep); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.4rem; border-radius: 999px; font-weight: 650; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -16px rgba(20, 60, 50, .8); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-light { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.btn-light:hover { background: rgba(255, 255, 255, .16); }
.deep .btn-primary, .vhero .btn-primary { background: var(--accent-bright); color: #0c1c17; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.text-link { font-weight: 650; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Floating glass header */
.site-head { position: fixed; z-index: 30; top: 12px; left: 12px; right: 12px; transition: top .3s ease; }
.site-head .bar { max-width: calc(var(--wrap) + 2rem); margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: .7rem .8rem .7rem 1.2rem; border-radius: 16px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 12px 30px -22px rgba(10, 30, 36, .55); transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 1.08rem; letter-spacing: -.01em; white-space: nowrap; margin-right: auto; }
.brand .mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .95rem; font-weight: 750; }
.nav { display: flex; align-items: center; gap: .2rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 550; padding: .45rem .7rem; border-radius: 999px; transition: background-color .2s ease, color .2s ease; }
.nav a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .nav-cta { background: var(--accent); color: var(--accent-ink); margin-left: .3rem; }
.nav .nav-cta:hover { background: var(--accent); filter: brightness(1.08); }
.lang { display: inline-flex; gap: .1rem; margin-left: .4rem; padding: .2rem; border-radius: 999px; border: 1px solid var(--line); }
.lang a { padding: .2rem .55rem; font-size: .82rem; font-weight: 600; border-radius: 999px; color: var(--muted); }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; align-items: center; gap: .45rem; font: inherit; font-weight: 650; font-size: .92rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem; cursor: pointer; }
.menu-btn .bars { width: 16px; height: 10px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, top .25s ease; }
.menu-btn .bars::before { top: 1px; } .menu-btn .bars::after { top: 7px; }
.menu-open .menu-btn .bars::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn .bars::after { top: 4px; transform: rotate(-45deg); }

/* Header over the home video: transparent until you scroll */
.home .site-head:not(.scrolled):not(.menu-open) .bar { background: rgba(10, 24, 30, .28); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.home .site-head:not(.scrolled):not(.menu-open) .brand,
.home .site-head:not(.scrolled):not(.menu-open) .nav a:not(.nav-cta),
.home .site-head:not(.scrolled):not(.menu-open) .menu-btn { color: #fff; }
.home .site-head:not(.scrolled):not(.menu-open) .lang { border-color: rgba(255, 255, 255, .25); }
.home .site-head:not(.scrolled):not(.menu-open) .lang a { color: rgba(255, 255, 255, .8); }
.home .site-head:not(.scrolled):not(.menu-open) .lang a[aria-current] { background: #fff; color: var(--deep); }
.home .site-head:not(.scrolled):not(.menu-open) .menu-btn { border-color: rgba(255, 255, 255, .3); }
.home .site-head:not(.scrolled):not(.menu-open) .nav .nav-cta { background: var(--accent-bright); color: #0c1c17; }
.page-top { padding-top: 7.5rem; }

/* Hero */
.vhero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: hidden; isolation: isolate; padding: 0;
  background: #13252d url("/assets/hero-poster.jpg") center / cover no-repeat; }
.vhero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .001; transition: opacity 1.2s ease; }
.vhero-media.ready { opacity: 1; }
.vhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 20, 26, .55) 0%, rgba(8, 20, 26, .2) 38%, rgba(8, 20, 26, .78) 100%); }
.vhero-inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; padding-block: 9rem 3.5rem; }
.vhero-copy { display: grid; gap: 1.25rem; max-width: 44rem; }
.vhero .label { color: rgba(255, 255, 255, .78); }
.vhero .label b { color: var(--accent-bright); }
.vhero h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); color: #fff; letter-spacing: -.03em; }
.vhero h1 em { font-style: normal; color: var(--accent-bright); }
.vhero .lede { color: rgba(255, 255, 255, .86); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 36em; }
.facts { display: grid; gap: .5rem; padding: 1rem; min-width: 15rem; border-radius: var(--r); background: rgba(12, 28, 34, .42); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.facts .facts-title { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); display: flex; align-items: center; gap: .5rem; }
.facts .facts-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(111, 208, 173, .2); }
.fact { display: flex; align-items: baseline; gap: .7rem; padding: .6rem .75rem; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.fact b { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; color: var(--accent-bright); min-width: 2.6rem; }
.fact span { font-size: .9rem; color: rgba(255, 255, 255, .88); }
.cred { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: rgba(255, 255, 255, .68); }
.video-toggle { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 1.1rem; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(10, 24, 30, .35); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.video-toggle::before { content: ""; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.video-toggle.paused::before { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.rise { opacity: 0; transform: translateY(16px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.rise:nth-child(2) { animation-delay: .1s; } .rise:nth-child(3) { animation-delay: .2s; } .rise:nth-child(4) { animation-delay: .3s; } .rise:nth-child(5) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Cards that swipe on phones */
.swipe { display: grid; gap: 1rem; }
.services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc { display: grid; gap: .8rem; align-content: start; padding: 1.6rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.svc:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgba(10, 30, 36, .55); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.svc .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-family: var(--mono); font-weight: 500; font-size: .85rem; }
.svc h3 { font-size: 1.15rem; }
.svc p { color: var(--muted); font-size: .96rem; }
.svc .text-link { margin-top: auto; font-size: .93rem; }
.swipe-hint { display: none; }

/* Process stepper (dark) */
.process-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.process-grid .head { margin-bottom: 0; position: sticky; top: 8rem; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: .5rem; }
.steps::before { content: ""; position: absolute; left: 15px; top: 1.2rem; bottom: 1.2rem; width: 1px; background: rgba(255, 255, 255, .14); }
.step { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 1.1rem; padding: 1.1rem 0; opacity: .45; transition: opacity .4s ease; }
.step.active, .no-js .step { opacity: 1; }
.step .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: .78rem; color: var(--on-deep-muted); background: var(--deep); border: 1px solid rgba(255, 255, 255, .25); transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
.step.active .dot { background: var(--accent-bright); color: #0c1c17; border-color: var(--accent-bright); box-shadow: 0 0 0 6px rgba(111, 208, 173, .14); }
.step small { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-bright); }
.step h3 { font-size: 1.35rem; margin: .15rem 0 .35rem; }
.step p { color: var(--on-deep-muted); max-width: 32em; }

/* Example review carousel */
.carousel { position: relative; }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 1.25rem; border-radius: var(--r); }
.slides::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.slide-copy { padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: .9rem; align-content: start; }
.slide-copy .tag { justify-self: start; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: .3rem .6rem; border-radius: 999px; }
.slide-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.slide-copy p { color: var(--muted); }
.slide-copy .result { margin-top: .4rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.slide-data { background: var(--deep-2); color: var(--on-deep); padding: clamp(1.2rem, 3vw, 2rem); display: grid; align-content: center; }
.slide-data table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .84rem; font-variant-numeric: tabular-nums; }
.slide-data th, .slide-data td { text-align: left; padding: .65rem .4rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.slide-data th { font-weight: 500; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-muted); }
.slide-data .num { text-align: right; }
.slide-data td small { display: block; font-size: .72rem; color: var(--on-deep-muted); }
.slide-data tfoot td { border-bottom: 0; color: var(--accent-bright); font-weight: 500; }
.slide-note { margin-top: .9rem; font-size: .78rem; color: var(--on-deep-muted); font-family: var(--font); }
.controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.controls button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.1rem; transition: border-color .2s ease, transform .2s ease; }
.controls button:hover { border-color: var(--accent); transform: translateY(-1px); }
.controls button:disabled { opacity: .35; cursor: default; transform: none; }
.dots { display: flex; gap: .4rem; }
.dots span { width: 7px; height: 7px; border-radius: 999px; background: var(--line); transition: width .3s ease, background-color .3s ease; }
.dots span.on { width: 22px; background: var(--accent); }
.counter { font-family: var(--mono); font-size: .8rem; color: var(--muted); min-width: 3rem; text-align: center; }

/* Areas */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.area { display: grid; gap: .4rem; padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.area + .area { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.area .county { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.area h3 { font-size: 1.3rem; }
.area p { color: var(--muted); font-size: .95rem; }
.elsewhere { margin-top: 1.25rem; color: var(--muted); font-size: .95rem; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-grid .head { margin-bottom: 0; }
.about-card { display: grid; gap: .3rem; margin-top: 1.5rem; padding: 1.2rem 1.3rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }
.about-card b { font-weight: 700; }
.about-card span { color: var(--muted); }
.about-body { display: grid; gap: 1rem; color: var(--muted); }
.about-body strong { color: var(--ink); }
.more summary { list-style: none; cursor: pointer; font-weight: 650; color: var(--accent); display: inline-flex; gap: .4rem; align-items: center; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-family: var(--mono); }
.more[open] summary::after { content: "–"; }
.more[open] summary { margin-bottom: 1rem; }
.more div { display: grid; gap: 1rem; }

/* FAQ */
.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 0; font-weight: 650; font-size: 1.04rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-family: var(--mono); font-weight: 400; color: var(--accent); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 2.5rem 1.25rem 0; color: var(--muted); display: grid; gap: .6rem; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content, .more::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
  .faq details[open]::details-content, .more[open]::details-content { block-size: auto; }
}

/* Listings band (dark) */
.band { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.band p { margin-top: .5rem; max-width: 36em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contact-grid .head { margin-bottom: 1.5rem; }
.contact-list { margin: 0; display: grid; border-top: 1px solid var(--line); }
.contact-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-list dt { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* Footer (dark) */
.site-foot { background: var(--deep); color: var(--on-deep-muted); padding-block: 3.5rem 2rem; font-size: .88rem; }
.foot-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot-top .brand { color: var(--on-deep); }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot-links a { color: var(--on-deep-muted); text-decoration: none; }
.foot-links a:hover { color: var(--on-deep); }
.foot-legal { display: grid; gap: .5rem; padding-top: 1.5rem; max-width: 60rem; }
.foot-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-deep-muted); }
.zh-note { font-size: .8rem; }

/* Sticky phone button */
.sticky-cta { display: none; }

/* Listings page */
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tabs button { font: inherit; font-weight: 650; font-size: .92rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1rem; cursor: pointer; transition: all .2s ease; }
.tabs button span { font-family: var(--mono); font-weight: 400; font-size: .78rem; margin-left: .35rem; opacity: .75; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.listing { display: grid; gap: .55rem; align-content: start; padding: 1.4rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.listing:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgba(10, 30, 36, .55); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.listing .kind { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.listing h3 { font-size: 1.15rem; }
.listing .city { color: var(--muted); font-size: .92rem; }
.listing .tag { justify-self: start; font-size: .74rem; font-weight: 650; padding: .15rem .55rem; border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.listing .price { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: .8rem; margin-top: .2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.listing .price b { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.listing .price a { font-weight: 650; font-size: .9rem; text-decoration: none; }
.empty { display: grid; gap: 1rem; justify-items: start; padding: 2rem; border-radius: var(--r); background: var(--surface); border: 1px dashed var(--line); }
.empty p { color: var(--muted); }
.find-more { margin-top: 1.5rem; padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.find-more a { font-weight: 650; }

/* Form pages */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: start; padding-block: 8rem 5rem; }
.copy { display: grid; gap: 1.1rem; min-width: 0; }
.copy h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.copy p { color: var(--muted); max-width: 34em; }
.copy strong { color: var(--ink); }
.points { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.points li { padding: .4rem .85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; font-weight: 600; }
.steps-mini { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .9rem; counter-reset: s; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: .7rem; align-items: start; color: var(--muted); }
.steps-mini li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: .88rem; }
.steps-mini b { color: var(--ink); font-weight: 650; display: block; }
.signoff { padding-top: 1rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.signoff b { display: block; color: var(--ink); font-weight: 700; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.3rem, 3vw, 2.1rem); box-shadow: 0 24px 50px -34px rgba(10, 30, 36, .5); min-width: 0; }
.card h2 { font-size: 1.5rem; margin-bottom: .35rem; }
.card > p { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
form { display: grid; gap: 1.1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
label, legend { font-weight: 650; font-size: .92rem; }
label span, legend span { font-weight: 400; color: var(--muted); }
input, textarea, select { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: .75rem .85rem; width: 100%; transition: border-color .2s ease, box-shadow .2s ease; }
textarea { min-height: 6.5rem; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
input:user-invalid, textarea:user-invalid { border-color: var(--error); }
.hint { font-size: .82rem; color: var(--muted); }
.hidden { position: absolute; left: -9999px; }
button[type="submit"] { font: inherit; font-weight: 700; font-size: 1.02rem; padding: 1rem 1.4rem; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; transition: filter .2s ease, transform .2s ease; }
button[type="submit"]:hover { filter: brightness(1.08); transform: translateY(-1px); }
.fine { font-size: .8rem; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { margin-bottom: .45rem; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .45rem .85rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .9rem; font-weight: 400; color: var(--ink); transition: border-color .2s ease, background-color .2s ease; }
.chip input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--paper)); font-weight: 650; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.mini-head .bar { padding-block: .55rem; }
.thanks { min-height: 100svh; display: grid; place-items: center; padding: 7rem 20px 3rem; }
.thanks .card { max-width: 34rem; display: grid; gap: 1rem; }
.thanks h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); }
.thanks p { color: var(--muted); }

/* Reveal on scroll (content stays visible without JavaScript) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a.hide-md { display: none; }
}

/* ---------- Phone: menu button, swiping cards, shorter sections ---------- */
@media (max-width: 860px) {
  :root { --sec: 3.4rem; }
  body { font-size: 1rem; }
  .menu-btn { display: inline-flex; }
  .site-head .bar { flex-wrap: wrap; padding: .55rem .55rem .55rem 1rem; }
  .nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: .15rem; padding: .5rem 0 .3rem; border-top: 1px solid var(--line); margin-top: .5rem; }
  .menu-open .nav { display: flex; }
  .nav a { padding: .75rem .6rem; font-size: 1rem; border-radius: 10px; }
  .nav a.hide-md { display: block; }
  .nav .nav-cta { margin: .4rem 0 0; text-align: center; }
  .lang { order: 2; margin-left: 0; }
  .site-head .bar > .lang { display: inline-flex; }
  .head { margin-bottom: 1.6rem; gap: .7rem; }
  .head p { font-size: 1rem; }

  .vhero { min-height: 92svh; }
  .vhero-inner { grid-template-columns: 1fr; padding-block: 7.5rem 4.5rem; gap: 1.4rem; }
  .facts { min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: .55rem; gap: .4rem; }
  .facts .facts-title { display: none; }
  .fact { flex-direction: column; gap: .1rem; padding: .5rem .55rem; }
  .fact b { font-size: .95rem; min-width: 0; }
  .fact span { font-size: .76rem; line-height: 1.3; }
  .vhero .actions .btn { flex: 1 1 auto; }

  /* swipe rows: one card ~ 84% of the screen, the next one peeks in */
  .swipe { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: .3rem; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { scroll-snap-align: start; }
  .swipe-hint { display: block; margin-top: .7rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .svc { padding: 1.3rem; }

  .process-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .process-grid .head { position: static; }
  .step { padding: .75rem 0; opacity: 1; }
  .step h3 { font-size: 1.15rem; }

  .slide { grid-template-columns: 1fr; }
  .slide-copy { gap: .65rem; }
  .slide-copy p:not(.result) { display: none; }
  .slide-data { padding: 1rem 1.1rem; }

  .areas { grid-template-columns: 1fr; }
  .area, .area + .area { padding: 1rem 0; border-left: 0; }
  .about-card { margin-top: 1rem; }
  .faq summary { padding: 1rem 0; font-size: 1rem; }
  .faq .answer { padding-right: 0; }

  .layout { grid-template-columns: 1fr; padding-block: 6.5rem 3.5rem; gap: 2rem; }
  .row { grid-template-columns: 1fr; }
  .listings { gap: .7rem; }
  .listing { padding: 1.05rem 1.15rem; gap: .25rem; }
  .listing h3 { font-size: 1.08rem; }
  .listing .price { padding-top: .65rem; margin-top: .35rem; }
  .listing .price b { font-size: 1rem; }
  /* state tabs: one row that scrolls sideways */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; padding: .5rem .85rem; }
  .page-top { padding-top: 6.5rem; }

  .sticky-cta { display: flex; position: fixed; z-index: 25; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); gap: .5rem; padding: .45rem; border-radius: 999px;
    background: color-mix(in srgb, var(--paper) 92%, transparent); border: 1px solid var(--line); box-shadow: 0 16px 34px -18px rgba(10, 30, 36, .6);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translateY(160%); transition: transform .35s ease; }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { flex: 1; padding: .8rem 1rem; }
  .sticky-cta .call { flex: none; width: 48px; padding: 0; }
  .site-foot { padding-bottom: 6rem; }
}

/* Phone: keep the home page short */
@media (max-width: 860px) {
  :root { --sec: 2.6rem; }
  .m-hide { display: none; }
  .head h2 { font-size: 1.65rem; }
  .svc p { font-size: .92rem; }
  .steps { gap: 0; }
  .step { padding: .55rem 0; gap: .85rem; }
  .step small { display: none; }
  .step p { font-size: .92rem; }
  .slide-copy { padding: 1.1rem 1.2rem; }
  .slide-copy .result { margin-top: 0; padding-top: .7rem; font-size: .93rem; }
  .slide-data th, .slide-data td { padding: .45rem .25rem; font-size: .76rem; }
  .slide-note { margin-top: .6rem; font-size: .72rem; }
  .controls { margin-top: .8rem; }
  .area { grid-template-columns: 1fr auto; align-items: baseline; padding: .8rem 0; }
  .area p { display: none; }
  .area .county { order: 2; text-align: right; }
  .about-body { gap: .8rem; }
  .contact-grid .actions .btn-ghost { display: none; }
  .contact-grid .actions .btn-primary { width: 100%; }
  .band { gap: 1rem; }
  .band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .svc:hover, .listing:hover, .controls button:hover { transform: none; }
  .vhero-media, .step, .step .dot, .dots span, .sticky-cta, .faq summary::after { transition: none; }
  .faq details::details-content, .more::details-content { transition: none; }
}
.thanks a.btn { justify-self: start; background: var(--accent); color: var(--accent-ink); }

/* Small labels used on the form pages */
.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* Phone header: brand, language switch and Menu button on one row */
@media (max-width: 860px) {
  .site-head .bar { flex-wrap: wrap; gap: .5rem; }
  .brand { font-size: 1rem; gap: .5rem; }
  .brand .mark { width: 28px; height: 28px; }
  .site-head .bar > .lang { order: 1; }
  .menu-btn { order: 2; padding: .45rem .75rem; }
  .lang a { padding: .2rem .45rem; font-size: .8rem; }
  .nav { order: 3; }
  .mini-head .text-link { display: none; }
}
@media (max-width: 430px) { .menu-btn .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .menu-btn { padding: .55rem .7rem; } }


/* Logo: Z with three row houses (assets/logo.svg). Plain mark that takes the text color. */
.brand svg.mark { width: 40px; height: 32px; flex: none; display: block; background: none; border-radius: 0; color: var(--ink); --logo-accent: var(--accent); }
.home .site-head:not(.scrolled):not(.menu-open) .brand svg.mark, .site-foot .brand svg.mark { color: #fff; --logo-accent: var(--accent-bright); }
.site-foot .brand svg.mark { color: var(--on-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand svg.mark { --logo-accent: var(--accent-bright); } }
@media (max-width: 860px) { .brand svg.mark { width: 34px; height: 27px; } }

/* Listing cards: stack type, name, address and tag cleanly; tag is a small pill */
.listing > div:not(.price) { display: grid; gap: .3rem; min-width: 0; }
.listing .tag { display: inline-block; justify-self: start; width: auto; margin-top: .35rem; }
.listing a[href^="x-apple"], .listing .city a { color: inherit; text-decoration: none; }

.form-error { color: var(--error); font-weight: 600; font-size: .92rem; }
