/* ==========================================================================
   Emer C Restoration — site styles
   ========================================================================== */

:root {
  --navy-950: #050b1a;
  --navy-900: #0a1430;
  --navy-800: #101e45;
  --navy-700: #1a2c5e;
  --navy-600: #2a3f7a;
  --orange: #f58a07;
  --orange-600: #d97400;
  --orange-400: #ffa53a;
  --orange-50: #fff5e8;
  --ink: #0a1430;
  --text: #3a4458;
  --muted: #687189;
  --line: #e3e7ef;
  --soft: #f4f6fa;
  --white: #fff;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 20, 48, .06), 0 2px 6px rgba(10, 20, 48, .06);
  --shadow: 0 14px 34px -14px rgba(10, 20, 48, .28);
  --shadow-lg: 0 36px 70px -24px rgba(5, 11, 26, .45);

  --container: 1220px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.1; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

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

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--orange); color: var(--navy-950); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 16px; top: 16px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-600); margin-bottom: 1rem;
}
.eyebrow .icon { width: 1.1em; height: 1.1em; }
.eyebrow--light { color: var(--orange-400); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.6; }
.accent { color: var(--orange); }

.pulse { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; display: inline-block; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--orange-600); }
.text-link .icon { transition: transform .25s var(--ease); }
a:hover .text-link .icon, .text-link:hover .icon { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn strong { font-weight: 800; }
.btn-lg { padding: 1.05em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange); color: var(--navy-950); box-shadow: 0 10px 24px -10px rgba(245, 138, 7, .7); }
.btn-primary:hover { background: var(--orange-400); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-700); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--white); border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }

/* ---------- Logo ---------- */
.logo { display: block; width: 168px; }
.logo img { width: 100%; height: auto; }
.logo--light img { filter: url(#logo-light); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-950); color: rgba(255, 255, 255, .82); font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .55em; }
.topbar .icon { width: 1em; height: 1em; color: var(--orange-400); }
.topbar a { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--white); }
.topbar a:hover { color: var(--orange-400); }
.topbar .sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .25); margin-inline: .6em; }
.topbar-right { display: flex; align-items: center; }

/* Language switch */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.lang-switch > .icon { margin: 0 4px 0 6px; color: rgba(255, 255, 255, .7) !important; }
.topbar .lang-switch a { padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1.4; color: rgba(255, 255, 255, .78); transition: background .2s, color .2s; }
.topbar .lang-switch a:hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.topbar .lang-switch a[aria-current] { background: var(--orange); color: var(--navy-950); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 28px -16px rgba(10, 20, 48, .35); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { flex: none; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3em;
  padding: .55em .85em; border-radius: 8px; border: 0; background: none;
  font-weight: 600; font-size: .98rem; color: var(--ink); position: relative;
}
.nav-link .icon { width: 1em; height: 1em; transition: transform .2s; }
.nav-link:hover, .has-dd:hover > .nav-link { color: var(--orange-600); }
.nav-link.is-active, .has-dd.is-active > .nav-link { color: var(--orange-600); }
.nav-link.is-active::after, .has-dd.is-active > .nav-link::after { content: ""; position: absolute; left: .85em; right: .85em; bottom: .1em; height: 2px; background: var(--orange); border-radius: 2px; }

.has-dd { position: relative; }
.dd {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 360px; padding: 10px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.dd::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-dd:hover .dd, .has-dd:focus-within .dd, .has-dd.is-open .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dd:hover > .nav-link .icon, .has-dd.is-open > .nav-link .icon { transform: rotate(180deg); }
.dd a { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 12px; transition: background .2s; }
.dd a:hover, .dd a[aria-current] { background: var(--soft); }
.dd-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--orange-50); color: var(--orange-600); flex: none; }
.dd-icon .icon { width: 20px; height: 20px; }
.dd-label { display: block; font-weight: 700; color: var(--ink); line-height: 1.3; }
.dd-blurb { display: block; font-size: .86rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); place-items: center; }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1100px) {
  .nav-cta .btn span { display: none; }
  .nav-cta .btn { padding: .85em; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  /* backdrop-filter would make the header the containing block for the fixed nav drawer */
  .site-header { backdrop-filter: none; background: var(--white); }
  .menu-toggle { display: grid; }
  .logo { width: 148px; }
  .nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 120px;
    background: var(--white); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.1rem; }
  .nav-link.is-active::after, .has-dd.is-active > .nav-link::after { display: none; }
  .dd { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; display: none; }
  .dd::before { display: none; }
  .has-dd.is-open .dd { display: block; transform: none; }
  .has-dd:hover .dd { transform: none; }
  .nav-cta { padding-top: 20px; }
  .nav-cta .btn { width: 100%; padding: 1em 1.4em; }
  .nav-cta .btn span { display: inline; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .topbar-contact, .hide-sm { display: none !important; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy-900); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(245, 138, 7, .12), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(42, 63, 122, .55), transparent 70%); pointer-events: none; }
.section-dark > .container { position: relative; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p:last-child { margin-bottom: 0; }
.section-head > p:not(.eyebrow) { font-size: 1.1rem; }
.section-head--tight { margin: clamp(48px, 6vw, 72px) 0 28px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--row h2 { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
.split--reverse .split-media { order: 2; }
.split-copy > p:not(.eyebrow) { font-size: 1.08rem; }
.split-copy .btn { margin-top: 12px; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media--framed { box-shadow: var(--shadow); }
.media-tag { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: .5em; padding: .6em 1em; border-radius: 999px; background: rgba(5, 11, 26, .78); color: var(--white); font-weight: 700; font-size: .9rem; backdrop-filter: blur(6px); }
.media-tag .icon { color: var(--orange-400); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
}

/* ---------- Icon badge ---------- */
.icon-badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--orange-50); color: var(--orange-600); flex: none; }
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--lg { width: 60px; height: 60px; border-radius: 16px; }
.icon-badge--lg .icon { width: 28px; height: 28px; }

/* ---------- Checklists ---------- */
.checklist { display: grid; gap: .55em; margin: 0 0 1.2em; }
.checklist li { display: flex; gap: .6em; align-items: flex-start; line-height: 1.45; }
.checklist .icon { width: 1.15em; height: 1.15em; margin-top: .15em; color: var(--white); background: var(--orange); border-radius: 50%; padding: 3px; stroke-width: 3; }
.checklist--lg { margin: 1.4em 0 1.8em; gap: .8em; font-weight: 600; color: var(--ink); }
.checklist--cols { grid-template-columns: repeat(2, 1fr); gap: .8em 2em; margin-bottom: 2em; }
@media (max-width: 640px) { .checklist--cols { grid-template-columns: 1fr; } }

/* ---------- Home hero ---------- */
.hero { position: relative; color: rgba(255, 255, 255, .85); background: var(--navy-950); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center 35%; z-index: -2; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(5, 11, 26, .96) 0%, rgba(10, 20, 48, .88) 42%, rgba(10, 20, 48, .45) 100%), linear-gradient(0deg, rgba(5, 11, 26, .6), transparent 40%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(72px, 10vw, 136px) clamp(120px, 13vw, 176px); }
.hero h1 { color: var(--white); margin-bottom: .35em; text-wrap: balance; }
.hero .lead { max-width: 600px; margin-bottom: 2em; color: rgba(255, 255, 255, .82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); }
.hero-card-title { display: flex; align-items: center; gap: .6em; font-weight: 700; color: var(--white); font-size: 1.05rem; margin-bottom: 1.2em; }
.hero-card-title .icon { color: var(--orange-400); }
.hero-steps { display: grid; gap: 18px; }
.hero-steps li { display: flex; gap: 14px; font-size: .95rem; line-height: 1.5; }
.hero-steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--navy-950); font-weight: 800; flex: none; }
.hero-steps strong { display: block; color: var(--white); }
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(5, 11, 26, .85), rgba(10, 20, 48, .94)); }
}

/* ---------- Trust bar ---------- */
.trust { position: relative; z-index: 2; margin-top: calc(-1 * clamp(64px, 8vw, 96px)); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.trust-grid li { display: flex; gap: 14px; align-items: flex-start; padding: 28px 26px; border-right: 1px solid var(--line); }
.trust-grid li:last-child { border-right: 0; }
.trust-grid .icon { width: 30px; height: 30px; color: var(--orange); margin-top: 2px; }
.trust-grid strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.4rem; line-height: 1.15; letter-spacing: .01em; }
.trust-grid span { font-size: .9rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 960px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid li:nth-child(2) { border-right: 0; }
  .trust-grid li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid li { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .trust-grid li:last-child { border-bottom: 0; }
}

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-card-media img { transform: scale(1.06); }
.service-card-body { padding: 0 28px 28px; display: flex; flex-direction: column; flex: 1; }
.service-card-body .icon-badge { margin-top: -26px; position: relative; width: 56px; height: 56px; border-radius: 14px; background: var(--orange); color: var(--navy-950); box-shadow: 0 10px 20px -8px rgba(245, 138, 7, .8); margin-bottom: 18px; }
.service-card h3 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: 0; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card .checklist { margin-top: auto; padding-top: 6px; font-size: .95rem; }
.service-card .text-link { margin-top: 8px; }
@media (max-width: 1000px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .service-grid { grid-template-columns: 1fr; } }

.specialty-strip { margin-top: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 28px 32px; border-radius: var(--radius-lg); background: var(--soft); border: 1px solid var(--line); }
.specialty-strip h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .15em; }
.specialty-strip p { margin: 0; font-size: .95rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: .45em; padding: .45em .85em; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink); }
.chips .icon { width: 1em; height: 1em; color: var(--orange-600); }
@media (max-width: 1000px) { .specialty-strip { grid-template-columns: 1fr; } .specialty-strip .btn { justify-self: start; } }

/* ---------- Process (vertical) ---------- */
.process { position: relative; display: grid; gap: 14px; counter-reset: step; }
.process-step { position: relative; display: flex; gap: 20px; padding: 22px 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.process-step:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.process-step h3 { margin-bottom: .25em; }
.process-step p { margin: 0; font-size: .95rem; }
.process-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy-900); color: var(--orange-400); flex: none; }
.process-icon .icon { width: 24px; height: 24px; }
.process-num { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600); margin-bottom: 2px; }

/* ---------- Feature list (dark) ---------- */
.feature-list { display: grid; gap: 20px; margin-top: 1.8em; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list > li > .icon { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: rgba(245, 138, 7, .14); color: var(--orange-400); }
.feature-list strong { display: block; color: var(--white); font-size: 1.05rem; }
.feature-list div { font-size: .96rem; line-height: 1.5; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 16px; }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.gallery figure:hover img { transform: scale(1.05); opacity: .9; }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: var(--white); font-weight: 600; font-size: .95rem; background: linear-gradient(0deg, rgba(5, 11, 26, .85), transparent); }
.gallery figcaption span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-400); }
@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-column: auto; }
}

/* ---------- Mini grid (insurance) ---------- */
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.6em; }
.mini-grid div { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .95rem; line-height: 1.3; }
.mini-grid strong { color: var(--ink); font-weight: 600; }
.mini-grid .icon { width: 22px; height: 22px; color: var(--orange-600); }
@media (max-width: 520px) { .mini-grid { grid-template-columns: 1fr; } }

/* ---------- Renovation tiles ---------- */
.reno-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 1.6em 0 1.4em; }
.reno-tiles a { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; color: var(--ink); font-size: .95rem; line-height: 1.25; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.reno-tiles a:hover { border-color: var(--orange); background: var(--orange-50); transform: translateY(-3px); }
.reno-tiles .icon { width: 24px; height: 24px; color: var(--orange-600); }
@media (max-width: 520px) { .reno-tiles { grid-template-columns: 1fr 1fr; } }

/* ---------- Guide cards ---------- */
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.guide-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 36px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .35s var(--ease), box-shadow .35s; }
.guide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.guide-card h3 { font-family: var(--font-display); font-size: 1.85rem; margin-top: 20px; max-width: 80%; }
.guide-card p { color: var(--muted); }
.guide-card .text-link { margin-top: auto; }
.guide-num { position: absolute; right: 24px; top: 4px; font-family: var(--font-display); font-weight: 800; font-size: 8rem; line-height: 1; color: var(--soft); pointer-events: none; }
@media (max-width: 760px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-950), var(--navy-700)); color: rgba(255, 255, 255, .82); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(245, 138, 7, .28), transparent 65%); }
.cta-inner { position: relative; display: grid; grid-template-columns: 1.2fr auto; gap: 40px; align-items: center; padding-block: clamp(56px, 7vw, 88px); }
.cta-band h2 { color: var(--white); }
.cta-band p:last-child { margin: 0; font-size: 1.1rem; max-width: 560px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } .cta-actions { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Page hero ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--navy-950); color: rgba(255, 255, 255, .82); overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(5, 11, 26, .95) 0%, rgba(10, 20, 48, .86) 50%, rgba(10, 20, 48, .55) 100%); }
.page-hero-inner { padding-block: clamp(56px, 8vw, 104px); max-width: calc(820px + var(--gutter) * 2); margin-left: max(0px, calc((100% - var(--container)) / 2)); }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.4vw, 4.1rem); text-wrap: balance; }
.page-hero .lead { color: rgba(255, 255, 255, .82); margin-bottom: 1.8em; }
.page-hero .lead:last-child { margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5em; font-size: .85rem; margin-bottom: 1.6em; color: rgba(255, 255, 255, .6); }
.crumbs li + li::before { content: "/"; margin-right: .5em; opacity: .5; }
.crumbs a:hover { color: var(--orange-400); }
.crumbs [aria-current] { color: var(--white); }

/* ---------- Service page layout ---------- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
@media (max-width: 1000px) { .with-aside { grid-template-columns: 1fr; } .aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }

.intro-block h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.intro-block > p:not(.eyebrow) { font-size: 1.1rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4em; }
.tag-list li { padding: .4em .9em; border-radius: 999px; background: var(--orange-50); color: var(--orange-600); font-weight: 700; font-size: .85rem; }

.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.scope-card, .feature-card { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, box-shadow .3s, transform .3s var(--ease); }
.scope-card:hover, .feature-card:hover { border-color: rgba(245, 138, 7, .5); box-shadow: var(--shadow); transform: translateY(-4px); }
.scope-card-head, .feature-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.feature-num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--line); }
.scope-card p, .feature-card p { margin: 0; font-size: .97rem; }
@media (max-width: 640px) { .scope-grid { grid-template-columns: 1fr; } }

.commitment { display: flex; gap: 20px; margin-top: 40px; padding: 28px; border-radius: var(--radius); background: var(--soft); border-left: 4px solid var(--orange); }
.commitment p { margin: 0; }

.aside-card { padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.aside-card h3 { font-family: var(--font-display); font-size: 1.6rem; }
.aside-card--dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: rgba(255, 255, 255, .8); border: 0; box-shadow: var(--shadow-lg); }
.aside-card--dark h3 { color: var(--white); }
.aside-card--dark p:not(.eyebrow) { font-size: .95rem; }
.aside-card--dark .btn + .btn { margin-top: 10px; }
.aside-card--dark .btn-primary { white-space: normal; text-align: left; }
.aside-heading { font-size: 1.25rem !important; }
.aside-guide { display: flex; flex-direction: column; gap: 6px; transition: transform .3s var(--ease), box-shadow .3s; }
.aside-guide:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.aside-guide strong { color: var(--ink); font-size: 1.05rem; margin-top: 10px; }
.aside-guide > span:not(.icon-badge):not(.text-link) { color: var(--muted); font-size: .92rem; }
.aside-links li + li { border-top: 1px solid var(--line); }
.aside-links a { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-weight: 600; color: var(--ink); }
.aside-links a:hover { color: var(--orange-600); }
.aside-links .icon { color: var(--orange-600); }
.aside-links .i-end { margin-left: auto; width: 1em; height: 1em; opacity: .5; transition: transform .2s; }
.aside-links a:hover .i-end { transform: translateX(3px); opacity: 1; }

/* Horizontal steps (dark) */
.steps-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.steps-row li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.steps-row h3 { font-size: 1.1rem; }
.steps-row p { margin: 0; font-size: .93rem; line-height: 1.55; }
.steps-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--navy-950); font-weight: 800; margin-bottom: 18px; font-size: .95rem; }
@media (max-width: 1100px) { .steps-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .steps-row { grid-template-columns: 1fr; } }

/* ---------- Specialty grid ---------- */
.specialty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .specialty-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .specialty-grid { grid-template-columns: 1fr; } }

/* ---------- Tabs (renovation) ---------- */
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.tab-list { display: grid; gap: 8px; position: sticky; top: calc(var(--header-h) + 24px); }
.tab-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-align: left; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); font-weight: 700; color: var(--ink); transition: all .2s; }
.tab-list button .icon { width: 22px; height: 22px; color: var(--orange-600); }
.tab-list button:hover { border-color: var(--orange); }
.tab-list button[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); box-shadow: var(--shadow); }
.tab-list button[aria-selected="true"] .icon { color: var(--orange-400); }
.tab-panel { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--soft); border: 1px solid var(--line); }
.tabs.is-ready .tab-panel[hidden] { display: none; }
.tabs:not(.is-ready) .tab-panel + .tab-panel { margin-top: 20px; }
.tab-panel-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.tab-panel-head h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.tab-panel-head p { margin: 0; font-size: 1.08rem; }
.tab-panel h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600); margin-bottom: 1.2em; }
.tab-panel.is-entering { animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 900px) {
  .tabs { grid-template-columns: 1fr; }
  .tab-list { position: static; display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab-list button { width: auto; flex: none; padding: 12px 16px; }
}

/* ---------- About ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv-card { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.mv-card .icon-badge { margin-bottom: 24px; }
.mv-card h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.mv-card p:last-child { margin: 0; }
.mv-card--dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: rgba(255, 255, 255, .8); border: 0; }
.mv-card--dark h2 { color: var(--white); }
.mv-card--dark .icon-badge { background: rgba(245, 138, 7, .16); color: var(--orange-400); }
@media (max-width: 860px) { .mv-grid { grid-template-columns: 1fr; } }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); transition: transform .3s var(--ease), box-shadow .3s; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card .icon-badge { margin-bottom: 18px; }
.value-card p { margin: 0; font-size: .95rem; }
.value-card--cta { display: flex; flex-direction: column; background: var(--orange); border-color: var(--orange); color: var(--navy-950); }
.value-card--cta h3 { font-family: var(--font-display); font-size: 1.8rem; }
.value-card--cta .text-link { color: var(--navy-950); margin-top: auto; padding-top: 16px; }
@media (max-width: 1000px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-info { display: grid; gap: 16px; }
.emergency-card { display: flex; gap: 20px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: linear-gradient(140deg, var(--navy-900), var(--navy-700)); color: rgba(255, 255, 255, .8); box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); }
.emergency-card:hover { transform: translateY(-4px); }
.emergency-card .eyebrow { margin-bottom: .4em; }
.emergency-card strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem); color: var(--white); line-height: 1.05; }
.emergency-sub { font-size: .92rem; }
.emergency-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--orange); color: var(--navy-950); flex: none; }
.emergency-icon .icon { width: 28px; height: 28px; }
.info-card { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.info-card h3 { margin-bottom: .3em; }
.info-card p, .info-card address { margin: 0 0 .5em; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.form-card { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.form { display: grid; gap: 18px; margin-top: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.form label b { color: var(--orange-600); }
.form input, .form select, .form textarea {
  width: 100%; padding: .85em 1em; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
  border: 1px solid #cfd5e1; border-radius: var(--radius-sm); background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(245, 138, 7, .18); }
.form-status { margin: 0; font-weight: 600; }
.form-status.is-ok { color: #15803d; }
.form-status.is-error { color: #b91c1c; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Guides ---------- */
.callout { display: flex; gap: 16px; padding: 20px 24px; margin-bottom: 40px; border-radius: var(--radius); background: #fff4f2; border: 1px solid #fecaca; color: #7f1d1d; }
.callout > .icon { width: 26px; height: 26px; color: #dc2626; margin-top: 2px; }
.callout strong { color: #7f1d1d; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--orange), var(--line)); }
.timeline-step { position: relative; display: flex; gap: 28px; padding-bottom: 32px; }
.timeline-marker { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 2px solid var(--orange); flex: none; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.timeline-step:first-child .timeline-marker { background: var(--orange); }
.timeline-body { flex: 1; padding: 22px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.timeline-body:hover { box-shadow: var(--shadow); border-color: rgba(245, 138, 7, .45); }
.timeline-body h2 { display: flex; align-items: center; gap: .5em; font-family: var(--font); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .45em; }
.timeline-body h2 .icon { color: var(--orange-600); }
.timeline-body p { margin: 0; }
.guide-close { font-size: 1.08rem; font-weight: 600; color: var(--ink); padding-left: 84px; }
.mini-check { counter-reset: c; display: grid; gap: 8px; margin-bottom: 20px; font-size: .92rem; }
.mini-check li { counter-increment: c; display: flex; gap: 10px; line-height: 1.35; }
.mini-check li::before { content: counter(c); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange-50); color: var(--orange-600); font-weight: 800; font-size: .72rem; flex: none; }
@media (max-width: 560px) {
  .timeline::before { left: 19px; }
  .timeline-step { gap: 14px; }
  .timeline-marker { width: 40px; height: 40px; font-size: 1rem; }
  .timeline-body { padding: 18px; }
  .guide-close { padding-left: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .66); font-size: .95rem; padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .logo { width: 190px; margin-bottom: 20px; }
.footer-brand p { max-width: 340px; }
.site-footer h3 { color: var(--white); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2em; }
.site-footer ul { display: grid; gap: .6em; }
.site-footer a:hover { color: var(--orange-400); }
.footer-phone { display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; color: var(--white); font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.footer-phone > span:first-child { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: var(--navy-950); }
.footer-phone small { display: block; font-family: var(--font); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.footer-hours { display: flex; gap: .5em; align-items: center; margin-top: 1em; color: var(--white); font-weight: 600; }
.footer-hours .icon { color: var(--orange-400); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    display: flex; align-items: center; justify-content: center; gap: .6em;
    padding: 15px 18px; border-radius: 999px; background: var(--orange); color: var(--navy-950);
    font-weight: 800; font-size: 1rem; white-space: nowrap; box-shadow: 0 14px 30px -10px rgba(5, 11, 26, .55);
    transform: translateY(140%); transition: transform .35s var(--ease);
  }
  .callbar.is-visible { transform: none; }
  body.menu-open .callbar { transform: translateY(140%); }
  .site-footer { padding-bottom: 76px; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Simplified Chinese ---------- */
/* Noto Sans SC first so CJK punctuation (e.g. ——) renders at full width. */
html:lang(zh-Hans) {
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Inter", system-ui, sans-serif;
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html:lang(zh-Hans) body { line-height: 1.8; }
html:lang(zh-Hans) h1, html:lang(zh-Hans) h2, html:lang(zh-Hans) h3 { line-height: 1.3; letter-spacing: .01em; }
html:lang(zh-Hans) h1 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); font-weight: 900; }
html:lang(zh-Hans) h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
html:lang(zh-Hans) .page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
html:lang(zh-Hans) .service-card h3, html:lang(zh-Hans) .guide-card h3, html:lang(zh-Hans) .specialty-strip h3,
html:lang(zh-Hans) .aside-card h3, html:lang(zh-Hans) .tab-panel-head h3, html:lang(zh-Hans) .value-card--cta h3 { font-size: 1.45rem; font-weight: 700; }
html:lang(zh-Hans) .trust-grid strong { font-size: 1.2rem; font-weight: 700; }
html:lang(zh-Hans) .eyebrow, html:lang(zh-Hans) .process-num, html:lang(zh-Hans) .gallery figcaption span,
html:lang(zh-Hans) .site-footer h3, html:lang(zh-Hans) .tab-panel h4 { letter-spacing: .08em; }
html:lang(zh-Hans) .lead { line-height: 1.8; }

/* ---------- Print (guides) ---------- */
@media print {
  .topbar, .site-header, .site-footer, .callbar, .cta-band, .aside, .page-hero-media, .crumbs { display: none !important; }
  .page-hero { background: none; color: #000; }
  .page-hero::before { display: none; }
  .page-hero h1, .page-hero .lead { color: #000; }
  .with-aside { grid-template-columns: 1fr; }
  .timeline-body { break-inside: avoid; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound .container { max-width: 760px; }
.notfound-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--orange); margin: 0 0 .1em; }
.notfound h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.notfound .hero-actions { justify-content: center; margin: 28px 0 48px; }
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.notfound-links a { display: inline-flex; align-items: center; gap: .5em; padding: .6em 1.1em; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; color: var(--ink); transition: border-color .2s, background .2s; }
.notfound-links a:hover { border-color: var(--orange); background: var(--orange-50); }
.notfound-links .icon { color: var(--orange-600); }
