/* ACE Diamond Pest Solution — site styles */
:root {
  --navy: #0b172e;
  --navy-2: #13254a;
  --ink: #16202f;
  --muted: #5a6474;
  --red: #d0202a;
  --red-dark: #a8141d;
  --paper: #f6f3ec;
  --paper-2: #ece7dc;
  --line: #d9d2c3;
  --white: #ffffff;
  --ok: #1f7a4d;
  --wa: #1fa855;
  --radius: 6px;
  --wrap: 1180px;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

/* Label "stamp" used as eyebrow */
.tag {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1.1rem;
}
.tag::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%;
  background: radial-gradient(circle, currentColor 2px, transparent 2.5px); }
.on-dark .tag { color: #ff6b6b; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.35em; border-radius: var(--radius); border: 2px solid transparent;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178c46; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
.topbar { background: var(--navy); color: #c9d2e3; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; }
.topbar a { text-decoration: none; color: #fff; font-weight: 600; }
/* Language toggle (top right) */
.langs { display: inline-flex; flex: none; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 2px; gap: 2px; }
.topbar .langs a { color: #c9d2e3; font-weight: 600; font-size: .78rem; line-height: 1; padding: .38rem .7rem; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.topbar .langs a:hover { color: #fff; background: rgba(255,255,255,.1); }
.topbar .langs a[aria-current] { background: #fff; color: var(--navy); }
.topbar .wrap { align-items: center; }
@media (max-width: 640px) { .topbar .hide-sm { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { height: 58px; width: auto; }
.brand small { font: 500 .7rem/1.25 var(--body); color: var(--muted); border-left: 1px solid var(--line); padding-left: .8rem; max-width: 130px; }
@media (max-width: 480px) { .brand small { display: none; } }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--red); transition: right .2s ease; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .btn { padding: .7em 1em; color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 28px; height: 28px; }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .25rem 16px 1rem; display: none;
    max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; box-shadow: 0 18px 30px -18px rgba(11,23,46,.35); }
  .nav.open { display: flex; }
  .nav a { padding: 0; min-height: 50px; display: flex; align-items: center; font-size: 1.05rem; border-bottom: 1px solid var(--paper-2); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: .8rem; padding: .9em; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(1.06); animation: settle 2.4s ease-out forwards; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,23,46,.97) 0%, rgba(11,23,46,.88) 42%, rgba(11,23,46,.35) 100%); }
@media (max-width: 720px) { .hero-media::after { background: linear-gradient(180deg, rgba(11,23,46,.78), rgba(11,23,46,.95)); } }
.hero .wrap { position: relative; padding-top: clamp(4rem, 10vw, 7.5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.hero-copy { max-width: 640px; }
.hero h1 em { font-style: normal; color: #ff5a5f; }
.hero .lede { font-size: 1.2rem; color: #d7deeb; max-width: 540px; margin-bottom: 2rem; }
.hero .btn-ghost { color: #fff; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .92rem; color: #c9d2e3; }
.hero-proof span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof svg { width: 18px; height: 18px; color: #ff5a5f; }
.hero > .wrap > * { opacity: 0; animation: rise .7s ease-out forwards; }
.hero-copy > * { opacity: 0; animation: rise .7s ease-out forwards; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero > .wrap > .hero-copy { opacity: 1; animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { to { transform: scale(1); } }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(2.6rem, 6vw, 4rem); }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); max-width: 820px; }
.page-hero p { color: #d7deeb; font-size: 1.15rem; max-width: 640px; }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.on-dark { background: var(--navy); color: #fff; }
.on-dark .section-head p, .on-dark .muted { color: #b9c3d6; }
.alt { background: var(--white); }
.muted { color: var(--muted); }

/* Persona chooser */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.path { background: var(--white); padding: 1.6rem 1.4rem 1.4rem; text-decoration: none; display: flex; flex-direction: column; gap: .5rem; transition: background .2s ease; position: relative; }
.path:hover { background: #fffaf4; }
.path .num { font: 600 .75rem/1 var(--mono); color: var(--red); letter-spacing: .1em; }
.path h3 { margin: .2rem 0 0; font-size: 1.2rem; }
.path p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.path .go { font-weight: 700; font-size: .9rem; color: var(--red); display: inline-flex; gap: .3rem; align-items: center; margin-top: .6rem; }
.path .go::after { content: "→"; transition: transform .2s ease; }
.path:hover .go::after { transform: translateX(4px); }

/* Promises — numbered ledger */
.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 3.5rem; counter-reset: p; }
.ledger article { border-top: 2px solid var(--ink); padding: 1.4rem 0 2rem; counter-increment: p; }
.on-dark .ledger article { border-color: rgba(255,255,255,.35); }
.ledger article::before { content: counter(p, decimal-leading-zero); font: 600 .8rem/1 var(--mono); color: var(--red); display: block; margin-bottom: .9rem; letter-spacing: .1em; }
.ledger h3 { font-size: 1.35rem; }
.ledger .worry { font: italic 400 .95rem/1.4 var(--body); color: var(--muted); margin-bottom: .7rem; }
.ledger p:last-child { margin: 0; }
.on-dark .ledger .worry { color: #9fb0cc; }

/* Split image/text */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.photo { position: relative; border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(11,23,46,.85); color: #fff; font: 500 .78rem/1.3 var(--mono); padding: .45rem .7rem; border-radius: 4px; }

/* Report card — mock inspection report */
.report { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(11,23,46,.35); font-size: .95rem; overflow: hidden; }
.report header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; background: var(--paper-2); border-bottom: 1px dashed var(--line); font: 600 .78rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.report ul { list-style: none; margin: 0; padding: .4rem 1.25rem 1rem; }
.report li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--paper-2); }
.report li:last-child { border-bottom: 0; }
.report .st { font: 600 .75rem/1.6 var(--mono); padding: 0 .5rem; border-radius: 3px; align-self: center; white-space: nowrap; }
.st.bad { background: #fde3e4; color: var(--red-dark); }
.st.ok { background: #dff3e8; color: var(--ok); }
.st.watch { background: #fff1d6; color: #8a5a00; }
.report footer { padding: .9rem 1.25rem; background: var(--navy); color: #fff; font-size: .88rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.stamp { display: inline-block; transform: rotate(-6deg); border: 2px solid var(--red); color: var(--red); font: 700 .8rem/1 var(--mono); letter-spacing: .12em; padding: .45rem .6rem; border-radius: 4px; text-transform: uppercase; }

/* Method comparison */
.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; font-size: .97rem; }
.compare th, .compare td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.compare thead th { background: var(--navy); color: #fff; font-family: var(--display); font-size: 1.1rem; }
.compare tbody th { font-weight: 600; color: var(--muted); width: 26%; font-size: .9rem; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.table-scroll .compare { min-width: 640px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 2rem; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 3.2rem; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font: 700 1rem/1 var(--display); }
.steps li::after { content: ""; position: absolute; top: 1.2rem; left: 3rem; right: -1rem; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.on-dark .steps p { color: #b9c3d6; }
.on-dark .steps li::after { background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 6px, transparent 6px 12px); }

/* Gallery of real jobs */
.jobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
@media (max-width: 900px) { .jobs { grid-template-columns: repeat(2, 1fr); } }
.jobs figure { margin: 0; aspect-ratio: 3 / 4; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.quotes blockquote { margin: 0; border-left: 3px solid var(--red); padding-left: 1.2rem; }
.quotes p { font-family: var(--display); font-size: 1.25rem; line-height: 1.35; font-weight: 500; }
.quotes cite { font-style: normal; font-size: .9rem; color: var(--muted); }
.quotes cite b { color: var(--ink); }
.on-dark .quotes cite b { color: #fff; }
.on-dark .quotes cite { color: #b9c3d6; }

/* Credentials strip */
.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.6rem 0; }
.creds div { display: flex; flex-direction: column; gap: .15rem; }
.creds b { font-family: var(--display); font-size: 1.15rem; }
.creds span { color: var(--muted); font-size: .88rem; }

/* Services list */
.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem 2rem; }
.svc article { display: flex; flex-direction: column; }
.svc .photo { aspect-ratio: 3 / 2; margin-bottom: 1.1rem; }
.svc h3 { margin-bottom: .3rem; }
.svc p { color: var(--muted); font-size: .97rem; }
.svc .meta { font: 500 .78rem/1.5 var(--mono); color: var(--ink); background: var(--paper-2); padding: .55rem .7rem; border-radius: 4px; margin-top: auto; }

/* Checklist */
.check { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.check li::before { content: ""; position: absolute; left: 0; top: .25em; width: 1.2rem; height: 1.2rem; border-radius: 3px; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/80% no-repeat; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; font: 650 1.12rem/1.35 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 1.05rem; font: 400 1.6rem/1 var(--body); color: var(--red); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.3rem; color: var(--muted); }

/* Branches */
.branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.branches div { background: var(--white); padding: 1.3rem 1.3rem 1.2rem; }
.branches h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.branches p { font-size: .9rem; color: var(--muted); margin: 0 0 .6rem; }
.branches a { font-weight: 700; text-decoration: none; color: var(--red); }

/* CTA band */
.cta { background: var(--red); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; }
.cta .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: 1.4fr 1fr; } }
.cta h2 { margin-bottom: .3em; }
.cta p { color: #ffe1e2; font-size: 1.1rem; margin: 0; }
.cta .btn-row { justify-content: flex-start; }
@media (min-width: 900px) { .cta .btn-row { justify-content: flex-end; } }
.cta .btn-light { background: #fff; color: var(--red-dark); }
.cta .btn-ghost { color: #fff; }

/* Forms */
.form { display: grid; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.form .row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(11,23,46,.12); }
.form .hint { font-size: .85rem; color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.chips legend { font-weight: 600; font-size: .9rem; margin-bottom: .45rem; padding: 0; }
.chips label { display: inline-flex; font-weight: 500; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { padding: .5rem .85rem; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .9rem; background: var(--paper); transition: all .15s ease; }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c3d6; font-size: .92rem; padding: 4rem 0 2rem; }
.site-footer .grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { width: 190px; margin-bottom: 1rem; }
.site-footer .legal { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; }
.parent { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.parent img { width: 150px; background: #fff; padding: 6px 8px; border-radius: 4px; }

/* Floating WhatsApp */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.45); transition: transform .2s ease; }
.fab:hover { transform: scale(1.07); }
.fab svg { width: 30px; height: 30px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-copy > * { opacity: 1 !important; transform: none !important; }
}

/* Pest library */
.lib { display: grid; gap: 3rem; }
.lib article { display: grid; gap: 1.5rem 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .lib article { grid-template-columns: 280px 1fr; } }
.lib .photo { aspect-ratio: 4 / 3; }
.lib dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 1rem 0 0; font-size: .95rem; }
.lib dt { font: 600 .78rem/1.8 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--red); }
.lib dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .lib dl { grid-template-columns: 1fr; } .lib dd { margin-bottom: .6rem; } }

.note { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: .9rem; }

/* Chinese pages: CJK-capable font stack, slightly looser heading tracking */
:lang(zh-Hans) { --display: "Bricolage Grotesque", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; --body: "Public Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3 { letter-spacing: 0; line-height: 1.25; font-weight: 900; }
:lang(zh-Hans) body { line-height: 1.75; }
:lang(zh-Hans) .ledger .worry, :lang(zh-Hans) .quotes p { font-style: normal; }

/* ---------- Mobile conversion bar (hidden on desktop) ---------- */
.mbar { display: none; }

/* ---------- Mobile UX (phones) ---------- */
@media (max-width: 960px) {
  .menu-btn { width: 48px; height: 48px; margin-right: -8px; display: grid; place-items: center; }
  .site-header .wrap { height: 64px; }
  .brand img { height: 46px; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  section { padding: 3rem 0; }
  .section-head { margin-bottom: 1.8rem; }
  h2 { font-size: clamp(1.65rem, 7vw, 2rem); }
  .tag { margin-bottom: .8rem; font-size: .74rem; }
  .hero .tag, .page-hero .tag { color: #ff8a8a; }

  /* Top bar: 44px tap targets */
  .topbar .wrap { padding-top: .2rem; padding-bottom: .2rem; }
  .topbar > .wrap > span > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; }
  .topbar .langs a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 50px; padding: 0 .8rem; font-size: .85rem; }

  /* Hero: compact so the CTA is above the fold */
  .hero .wrap { padding-top: 1.8rem; padding-bottom: 1.8rem; }
  .hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.35rem); line-height: 1.1; margin-bottom: .6em; }
  .hero .lede { font-size: 1.02rem; line-height: 1.5; margin-bottom: 1.3rem; }
  .hero .btn-row { flex-direction: column; gap: .6rem; }
  .hero .btn-row .btn { width: 100%; padding: 1em 1.2em; min-height: 52px; }
  .hero-proof { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1rem; margin-top: 1.3rem; padding-top: 1.1rem; font-size: .84rem; line-height: 1.3; }
  .hero-proof span { align-items: flex-start; }
  .hero-proof svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
  .page-hero .wrap { padding-top: 2.2rem; padding-bottom: 2rem; }
  .page-hero h1 { font-size: clamp(1.9rem, 8.2vw, 2.3rem); }
  .page-hero p { font-size: 1.05rem; }
  .btn-row .btn { min-height: 48px; }
  .cta .btn-row { flex-direction: column; }
  .cta .btn-row .btn { width: 100%; }

  /* Conversion bar */
  .fab { display: none; }
  .mbar { display: grid; grid-template-columns: 1.6fr 1fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .6rem 12px calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(11,23,46,.3); backdrop-filter: blur(6px); }
  .mbar .btn { min-height: 52px; padding: .6em .8em; font-size: 1rem; white-space: nowrap; }
  .mbar .btn:hover { transform: none; }
  .mbar .btn-call { background: var(--navy); color: #fff; }
  .mbar svg { width: 1.3em; height: 1.3em; }
  html { scroll-padding-top: 76px; }

  /* Persona paths: compact tappable rows */
  .path { padding: 1.15rem 1.1rem 1.05rem; gap: .35rem; }
  .path h3 { font-size: 1.15rem; }
  .path .go { margin-top: .3rem; min-height: 24px; }

  /* Ledger */
  .ledger article { padding: 1.1rem 0 1.4rem; }
  .ledger h3 { font-size: 1.25rem; }

  /* Steps: vertical timeline */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 1.6rem 3.4rem; min-height: 2.4rem; }
  .steps li::before { top: 0; }
  .steps li::after { display: block; top: 2.6rem; bottom: .2rem; left: 1.15rem; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px); }
  .on-dark .steps li::after { background: repeating-linear-gradient(180deg, rgba(255,255,255,.25) 0 6px, transparent 6px 12px); }
  .steps li:last-child { padding-bottom: 0; }
  .steps h3 { padding-top: .35rem; }

  /* Report mock */
  .report header { flex-direction: column; align-items: flex-start; gap: .2rem; padding: .85rem 1rem; }
  .report ul { padding: .3rem 1rem .8rem; }
  .report li { gap: .7rem; font-size: .92rem; }
  .report footer { padding: .8rem 1rem; }

  /* Images: sensible crops */
  .split { gap: 1.8rem; }
  .photo[style*="4/5"] { aspect-ratio: 4 / 3 !important; }
  .jobs { gap: .5rem; }
  .jobs figure { aspect-ratio: 1 / 1; }
  .quotes { gap: 1.8rem; }
  .quotes p { font-size: 1.15rem; }
  .creds { gap: 1.1rem; grid-template-columns: 1fr 1fr; }
  .svc { gap: 2rem; }

  /* FAQ */
  .faq summary { min-height: 56px; padding: 1rem 2.5rem 1rem 0; font-size: 1.05rem; display: flex; align-items: center; }
  .faq summary::after { top: 50%; margin-top: -.8rem; right: .2rem; }

  /* Comparison table -> per-method cards (built by site.js) */
  .table-scroll.has-cards { display: none; }
  .compare-cards { display: grid; gap: 1rem; }
  .compare-cards article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .compare-cards h3 { margin: 0; padding: .9rem 1.1rem; background: var(--navy); color: #fff; font-size: 1.15rem; }
  .compare-cards dl { margin: 0; padding: .4rem 1.1rem .6rem; }
  .compare-cards dl div { padding: .7rem 0; border-bottom: 1px solid var(--paper-2); }
  .compare-cards dl div:last-child { border-bottom: 0; }
  .compare-cards dt { font: 600 .72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin-bottom: .15rem; }
  .compare-cards dd { margin: 0; font-size: .97rem; }

  /* Forms: 16px+ inputs avoid iOS zoom; big chips */
  .form { gap: .9rem; }
  .form input, .form select, .form textarea { font-size: 16px; min-height: 50px; }
  .chips { gap: .55rem; }
  .chips span { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1rem; font-size: .95rem; }
  .form .btn { min-height: 54px; width: 100%; }

  /* Branches, footer */
  .branches { grid-template-columns: 1fr 1fr; }
  .branches div { padding: 1rem; }
  .branches a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer { padding: 2.6rem 0 1.5rem; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.2rem; }
  .site-footer .grid > div:first-child, .site-footer .grid > div:last-child { grid-column: 1 / -1; }
  .site-footer li { margin-bottom: 0; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 40px; }
  .site-footer .logo { width: 150px; }
  .site-footer .legal { margin-top: 1.8rem; flex-direction: column; gap: .6rem; }
}
@media (max-width: 380px) {
  .branches { grid-template-columns: 1fr; }
  .mbar .btn { font-size: .95rem; }
}

/* Phones: balanced headings; Chinese never breaks inside words in headings */
@media (max-width: 720px) {
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3, :lang(zh-Hans) .btn { word-break: keep-all; line-break: strict; overflow-wrap: anywhere; text-wrap: balance; }
:lang(zh-Hans) p, :lang(zh-Hans) li { line-break: strict; text-align: left; }
  :lang(zh-Hans) .hero h1, :lang(zh-Hans) .page-hero h1 { line-height: 1.22; }
  :lang(zh-Hans) body { line-height: 1.7; }
  h1, h2 { text-wrap: balance; }
}

@media (min-width: 721px) { .compare-cards { display: none; } }
