/* v3 layer: loaded after site.css on every page. Shared header, mobile bar, quote sheet,
   and the components used by pages rewritten in v3 (body.v3). */
:root{--font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;--green:#1f6b45;--radius:14px}
body,body *{font-family:var(--font)!important}

/* Header: sticky, phone and quote button always visible on desktop */
.header-bar{position:sticky;top:0;z-index:40;background:rgba(247,248,245,.96);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line)}
.header-bar .site-header{height:72px;gap:24px}
.header-bar .brand-logo{height:52px;width:auto}
.header-bar .nav{gap:22px;font-size:14px}
.header-bar .nav a[aria-current=page]{font-weight:700;text-decoration:underline;text-underline-offset:6px}
.header-actions{display:flex;align-items:center;gap:16px;white-space:nowrap}
.header-phone{color:var(--ink);font-weight:700;font-size:15px;text-decoration:none}
.header-quote{padding:11px 16px}
@media(max-width:1100px){.header-bar .nav{gap:16px;font-size:13px}.header-phone{display:none}}
@media(max-width:900px){.header-actions{display:none}.header-bar .site-header{height:64px;padding-left:16px;padding-right:16px}.header-bar .brand-logo{height:44px}.nav.mobile-open{top:64px;left:12px;right:12px}}

/* Mobile action bar */
.mobile-bar{display:none}
@media(max-width:900px){
  .mobile-bar{display:flex;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:45;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--line);box-shadow:0 -6px 20px #0001}
  .mobile-bar a{flex:1;display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:999px;font-weight:700;font-size:15px;text-decoration:none}
  .mobile-bar-quote{background:var(--ink);color:#fff;flex:1.4!important}
  .mobile-bar-call{border:1px solid var(--ink);color:var(--ink)}
  body{padding-bottom:76px}
}

/* Quote sheet */
.quote-sheet{width:min(520px,calc(100% - 24px));max-height:calc(100% - 24px);border:0;border-radius:18px;padding:22px;box-shadow:0 20px 60px #0004;color:var(--ink)}
.quote-sheet::backdrop{background:#121413aa}
.quote-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.quote-sheet h2{font-size:22px;margin:0;letter-spacing:-.02em}
.quote-sheet-close{border:0;background:var(--paper);width:40px;height:40px;border-radius:50%;font-size:24px;line-height:1;cursor:pointer;color:var(--ink)}
.quote-sheet>p{color:var(--muted);font-size:15px;margin:10px 0 16px}
.quote-options{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.quote-option{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);color:var(--ink);text-decoration:none;background:#fff}
a.quote-option:hover,a.quote-option:focus-visible{border-color:var(--ink)}
.quote-option strong{font-size:16px}
.quote-option span{color:var(--muted);font-size:14px}
.quote-option-group{display:flex;gap:8px;align-items:stretch}
.quote-option-group .quote-option{flex:1}
.copy-button{border:1px solid var(--line);background:var(--paper);border-radius:var(--radius);padding:0 14px;font-weight:700;font-size:13px;cursor:pointer;color:var(--ink)}
.quote-option-wechat{align-items:flex-start}
.quote-option-wechat .copy-button{padding:8px 12px;margin-top:6px}
.quote-option-wechat img{margin-top:10px;border-radius:8px}
.quote-sheet-note{font-size:14px;margin:16px 0 0;color:var(--muted)}
.copy-feedback{color:var(--green);font-weight:700}

/* ---------- v3 page components ---------- */
.v3 main{overflow-x:clip}
.ag-wrap{max-width:1240px;margin:0 auto;padding-left:32px;padding-right:32px}
@media(max-width:760px){.ag-wrap{padding-left:16px;padding-right:16px}}
.ag-section{padding-top:56px;padding-bottom:56px}
.ag-section+.ag-section{border-top:1px solid var(--line)}
.v3 h1{font-size:clamp(32px,5vw,58px);line-height:1.05;letter-spacing:-.035em;margin:0 0 14px}
.v3 h2{font-size:clamp(24px,3.2vw,38px);line-height:1.12;letter-spacing:-.025em;margin:0 0 10px}
.v3 h3{font-size:19px;line-height:1.25;margin:0 0 6px}
.ag-lede{font-size:17px;color:var(--muted);max-width:560px;margin:0}
.ag-kicker{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--green);margin:0 0 10px}
.ag-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}
.ag-section-head p{margin:0;color:var(--muted);max-width:520px}
.ag-link{color:var(--ink);font-weight:700;text-decoration:none;white-space:nowrap}
.ag-link:hover{text-decoration:underline}

/* Hero: photo first on phones */
.ag-hero{display:grid;grid-template-columns:1.05fr 1fr;gap:48px;align-items:center;padding-top:40px;padding-bottom:48px}
.ag-hero-photo{margin:0;order:2}
.ag-hero-photo img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius);display:block}
.ag-hero-photo figcaption{font-size:12px;color:var(--muted);margin-top:8px}
.ag-hero-text{order:1}
.ag-facts-line{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0;padding:0;list-style:none}
.ag-facts-line li{background:#fff;border:1px solid var(--line);border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600}
.ag-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;margin-top:24px}
.ag-actions .button{font-size:15px;padding:15px 22px}
@media(max-width:900px){
  .ag-hero{grid-template-columns:1fr;gap:18px;padding-top:12px;padding-bottom:32px}
  .ag-hero-photo{order:0;margin:0 -16px}
  .ag-hero-photo img{border-radius:0;aspect-ratio:3/2}
  .ag-hero-photo figcaption{padding:0 16px}
}

/* Cards with photos */
.ag-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.ag-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;color:var(--ink);text-decoration:none}
.ag-card img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block;background:#e9ece6}
.ag-card-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:6px;flex:1}
.ag-card-body p{margin:0;color:var(--muted);font-size:15px}
.ag-card-body .ag-link{margin-top:auto;padding-top:8px}
a.ag-card:hover{border-color:var(--ink)}
.ag-label{font-size:12px;color:var(--muted)}
@media(max-width:900px){.ag-cards{grid-template-columns:1fr 1fr;gap:12px}}
@media(max-width:560px){.ag-cards{grid-template-columns:1fr}.ag-cards.ag-cards-compact{grid-template-columns:1fr 1fr}.ag-cards-compact .ag-card-body p{display:none}}

/* Project photo wall */
.ag-wall{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.ag-wall a{position:relative;display:block;border-radius:var(--radius);overflow:hidden;color:#fff;text-decoration:none;background:#1c211e}
.ag-wall img{width:100%;height:100%;aspect-ratio:1/1;object-fit:cover;display:block;transition:transform .3s}
.ag-wall a:hover img{transform:scale(1.03)}
.ag-wall span{position:absolute;left:0;right:0;bottom:0;padding:28px 12px 10px;font-size:14px;font-weight:700;background:linear-gradient(transparent,#000a)}
@media(max-width:760px){.ag-wall{grid-template-columns:1fr 1fr;gap:8px}.ag-wall span{font-size:12.5px;padding:24px 8px 8px}}

/* Steps */
.ag-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;list-style:none;margin:0;padding:0;counter-reset:step}
.ag-steps li{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;counter-increment:step}
.ag-steps li::before{content:counter(step);display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--lime);font-weight:800;margin-bottom:10px}
.ag-steps p{margin:0;color:var(--muted);font-size:15px}
@media(max-width:760px){.ag-steps{grid-template-columns:1fr;gap:10px}}

/* FAQ and "learn more" (content stays in the HTML for search engines) */
.v3 .ag-faq details,.v3 details.ag-more{border:0;border-bottom:1px solid var(--line);padding:0}
.v3 .ag-faq summary,.v3 details.ag-more summary{list-style:none;cursor:pointer;padding:16px 36px 16px 0;font-size:17px;font-weight:700;position:relative}
.v3 .ag-faq summary::-webkit-details-marker,.v3 details.ag-more summary::-webkit-details-marker{display:none}
.v3 .ag-faq summary::after,.v3 details.ag-more summary::after{content:"+";position:absolute;right:4px;top:12px;font-size:24px;font-weight:400}
.v3 .ag-faq details[open] summary::after,.v3 details.ag-more[open] summary::after{content:"–"}
.v3 .ag-faq details>div,.v3 details.ag-more>div{padding:0 0 18px;color:var(--muted);max-width:760px}
.v3 .ag-faq details p,.v3 details.ag-more p{margin:0 0 10px}
.ag-answer{margin:0 0 8px;color:var(--ink);max-width:760px}

/* Service area cards */
.ag-areas{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.v3 .ag-areas details{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:0 16px}
.v3 .ag-areas summary{list-style:none;cursor:pointer;padding:14px 0;font-weight:700;position:relative}
.v3 .ag-areas summary::-webkit-details-marker{display:none}
.v3 .ag-areas summary::after{content:"+";position:absolute;right:0;top:10px;font-size:22px;font-weight:400}
.v3 .ag-areas details[open] summary::after{content:"–"}
.v3 .ag-areas details p{margin:0 0 14px;color:var(--muted);font-size:14px}
@media(max-width:760px){.ag-areas{grid-template-columns:1fr;gap:8px}}

/* Jump chips (scroll sideways on phones) */
.ag-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px;margin:18px 0 0;list-style:none;scrollbar-width:none}
.ag-chips::-webkit-scrollbar{display:none}
.ag-chips a{white-space:nowrap;display:block;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 14px;font-size:14px;font-weight:600;color:var(--ink);text-decoration:none}

/* Checklist */
.ag-checklist{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px 24px}
.ag-checklist li{position:relative;padding-left:28px}
.ag-checklist li::before{content:"✓";position:absolute;left:0;top:0;color:var(--green);font-weight:800}
@media(max-width:760px){.ag-checklist{grid-template-columns:1fr}}

/* Project page: gallery first, then facts */
.ag-gallery{display:grid;grid-template-columns:2fr 1fr;gap:12px;margin:0}
.ag-gallery figure{margin:0}
.ag-gallery img{width:100%;height:100%;object-fit:cover;border-radius:var(--radius);display:block}
.ag-gallery figure:first-child img{aspect-ratio:4/3}
.ag-gallery figcaption{font-size:13px;color:var(--muted);margin-top:6px}
@media(max-width:760px){.ag-gallery{grid-template-columns:1fr;margin:0 -16px}.ag-gallery img{border-radius:0;height:auto}.ag-gallery figcaption{padding:0 16px}}
.ag-project-head{padding-top:20px;padding-bottom:8px}
.ag-breadcrumb{font-size:13px;color:var(--muted);margin:0 0 10px}
.ag-breadcrumb a{color:var(--muted)}
.ag-factbox{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin:0}
.ag-factbox div{background:#fff;padding:14px 16px}
.ag-factbox dt{font-size:12px;color:var(--muted);margin:0 0 4px;text-transform:uppercase;letter-spacing:.08em}
.ag-factbox dd{margin:0;font-weight:700;font-size:15px}
@media(max-width:760px){.ag-factbox{grid-template-columns:1fr 1fr}}
.ag-story{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.ag-story p{margin:0;color:var(--muted)}
@media(max-width:760px){.ag-story{grid-template-columns:1fr;gap:14px}}

/* Closing call to action */
.ag-cta{background:var(--olive);color:#fff;border-radius:18px;padding:36px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.ag-cta h2{color:#fff;margin:0 0 6px}
.ag-cta p{margin:0;color:#cfd8cd}
.ag-cta .button-light{font-size:15px;padding:15px 22px}
.ag-cta a.ag-cta-phone{color:#fff;font-weight:700}
@media(max-width:760px){.ag-cta{padding:24px;border-radius:0;margin:0 -16px}}
.ag-mt{margin-top:16px}
.ag-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px;margin:18px 0 0;list-style:none;scrollbar-width:none}
.ag-chips::-webkit-scrollbar{display:none}
.ag-chips a{white-space:nowrap;display:block;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 14px;font-size:14px;font-weight:600;color:var(--ink);text-decoration:none}
.ag-card figcaption.ag-card-body{padding:8px 12px}
.ag-more>div .ag-cards{max-width:280px;margin-top:6px}
.ag-hero>*{min-width:0}
.ag-figure{margin:16px 0}
.ag-figure img{width:100%;height:auto;border-radius:var(--radius);display:block}
.ag-figure-narrow{max-width:320px}
.ag-card figcaption.ag-card-body{padding:14px 16px 16px}
.ag-card figcaption.ag-card-body h3{margin:0}
figure.ag-card img{object-fit:contain;background:#fff}
.ag-cards figure.ag-card{margin:0}
.ag-gallery-single{grid-template-columns:minmax(0,420px)}
.ag-contact-options{max-width:560px}
.ag-contact-options .quote-option-group{align-items:stretch}
@media(max-width:560px){.ag-cards.ag-cards-2{grid-template-columns:1fr 1fr;gap:10px}.ag-cards-2 .ag-card-body{padding:10px 10px 12px}.ag-cards-2 h3{font-size:15px}.ag-cards-2 .ag-card-body p{font-size:12.5px;line-height:1.4}.ag-cards-2 img{aspect-ratio:3/2}}
/* Quote form */
.qf{max-width:560px}
.qf label{display:block;font-weight:600;font-size:15px;margin:0 0 14px}
.qf input[type=text],.qf select,.qf textarea,.qf input[type=file]{display:block;width:100%;margin-top:6px;padding:13px 14px;font:inherit;font-weight:400;border:1px solid #b9c0b6;border-radius:var(--radius);background:#fff;color:var(--ink)}
.qf input:focus-visible,.qf select:focus-visible,.qf textarea:focus-visible{outline:3px solid #1f6b4555;border-color:var(--green)}
.qf-req{font-weight:400;font-size:13px;color:var(--muted);margin-left:6px}
.qf-more{margin:0 0 14px;border:0}
.qf-more summary{cursor:pointer;font-weight:700;padding:6px 0;margin-bottom:8px}
.qf-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.qf-files{margin:-6px 0 14px;font-size:13px;color:var(--muted);word-break:break-all}
.qf-turnstile{margin:6px 0 16px;min-height:65px}
.qf button[type=submit]{width:100%;justify-content:center;font-size:16px;padding:16px}
.qf button[disabled]{opacity:.6;cursor:wait}
.qf-status{margin:14px 0 0;font-weight:600;min-height:1.5em}
.qf-status[data-kind=error]{color:#a32020}
.qf-status[data-kind=ok]{color:var(--green)}
.qf-note{font-size:13px;color:var(--muted);margin:10px 0 0}
.ag-prose{max-width:720px}.ag-prose h2{margin-top:28px}
.qf-status[data-kind=busy]{color:var(--ink)}
.qf-status[data-kind=busy]::before{content:"";display:inline-block;width:14px;height:14px;margin-right:8px;vertical-align:-2px;border:2px solid var(--line);border-top-color:var(--ink);border-radius:50%;animation:qfspin .8s linear infinite}
@keyframes qfspin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.qf-status[data-kind=busy]::before{animation:none}}
/* Language switch: quiet text link with a small globe, visible on every screen size */
.lang-switch{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0;border:0;background:none;color:var(--ink);font-weight:500;font-size:14px;line-height:1;text-decoration:none;white-space:nowrap}
.lang-switch::before{content:"";width:16px;height:16px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.6 2.7 3.9 5.7 3.9 9s-1.3 6.3-3.9 9c-2.6-2.7-3.9-5.7-3.9-9s1.3-6.3 3.9-9z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.6 2.7 3.9 5.7 3.9 9s-1.3 6.3-3.9 9c-2.6-2.7-3.9-5.7-3.9-9s1.3-6.3 3.9-9z'/%3E%3C/svg%3E") center/contain no-repeat}
.lang-switch:hover,.lang-switch:focus-visible{text-decoration:underline;text-underline-offset:6px;background:none;border:0}
@media(min-width:901px){.header-bar .site-header{justify-content:flex-start}.header-bar .brand{margin-right:auto}}
@media(max-width:900px){.header-bar .site-header{gap:14px}.header-bar .brand{margin-right:auto}}
/* Chinese pages: lighter headings. Bold weight and tight letter spacing crush Chinese characters. */
html[lang^="zh"] .v3 h1,html[lang^="zh"] .v3 h2{font-weight:500;letter-spacing:.02em}
html[lang^="zh"] .v3 h3,html[lang^="zh"] .v3 summary{font-weight:600;letter-spacing:.01em}
html[lang^="zh"] .v3 h1{font-size:clamp(30px,4.6vw,50px);line-height:1.25}
html[lang^="zh"] .v3 h2{line-height:1.3}
.ag-contact-lines{display:flex;flex-direction:column;gap:4px;font-weight:700;font-size:15px}
.ag-contact-lines a,.ag-contact-lines span{color:var(--ink);text-decoration:none}
.plain-contact{cursor:default}
#consult,#quote-form-section{scroll-margin-top:92px}
/* Photos and the cards that hold them have square corners */
.ag-hero-photo img,.ag-gallery img,.ag-figure img,.ag-card,.ag-card img,.ag-wall a,.ag-wall img,.quote-option-wechat img{border-radius:0}

.qf-hint{margin:0 0 10px;font-size:14px;color:var(--muted)}
.qf-error{margin:-8px 0 14px;color:#b3261e;font-size:13px;font-weight:600}
.qf-error[hidden]{display:none}
.qf input[aria-invalid=true]{border-color:#b3261e;background:#fff7f6}
/* Spacing: room between a section heading and its cards, and before a sub-heading */
.v3 .ag-steps{margin-top:24px}
.v3 .ag-subhead{margin:44px 0 16px;font-size:20px}
.v3 .ag-subhead+.ag-checklist{margin-top:0}
@media(max-width:760px){.v3 .ag-steps{margin-top:18px}.v3 .ag-subhead{margin:32px 0 12px}}
/* Photo captions and the space around photos */
.v3 .ag-gallery{margin-top:20px;margin-bottom:0}
.v3 .ag-gallery figcaption,.v3 .ag-figure figcaption,.v3 .ag-hero-photo figcaption{margin-top:8px;line-height:1.4}
.v3 .ag-gallery+*{margin-top:28px}
.v3 .ag-figure{margin:20px 0 28px}
.v3 .ag-figure-narrow{margin-top:16px}
@media(max-width:760px){.v3 .ag-gallery+*{margin-top:22px}}
/* The photo and its caption stack inside the figure; the caption no longer spills out of the grid */
.v3 .ag-gallery figure{display:flex;flex-direction:column;min-height:0}
.v3 .ag-gallery img{flex:1 1 auto;height:auto;min-height:0}

/* Confirmation after sending: pop-up and in-place panel */
.qf-check{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--green);color:#fff;font-size:28px;font-weight:700;line-height:1;margin:0 0 14px}
.qf-success{max-width:560px;padding:28px 24px;background:#eef7f1;border:1px solid #b9d9c4}
.qf-success[hidden]{display:none}
.qf-success h3,.qf-dialog h3{font-size:22px;line-height:1.3;margin:0 0 8px}
html[lang^="zh"] .v3 .qf-success h3,html[lang^="zh"] .v3 .qf-dialog h3{font-weight:600}
.qf-success p,.qf-dialog p{margin:0;color:var(--ink)}
.qf-dialog{width:min(420px,calc(100% - 32px));border:0;padding:32px 28px 28px;text-align:center;background:#fff;color:var(--ink);box-shadow:0 20px 60px #0004}
.qf-dialog::backdrop{background:#121413aa}
.qf-dialog .qf-check{margin:0 auto 16px}
.qf-dialog .button{margin-top:22px;min-width:140px;justify-content:center}

/* A wide hero photo keeps its own shape instead of being cropped to 4:3 */
.ag-hero-photo-wide img{aspect-ratio:auto}
@media(max-width:900px){.ag-hero-photo-wide img{aspect-ratio:auto}}
