/* ============================================================
   Austin Animal Imaging — design system
   ============================================================ */
:root {
  --ink: #0d1b1e;
  --ink-2: #22343a;
  --ink-3: #3d545c;
  --muted: #5d7079;
  --muted-2: #8698a0;
  --brand: #0f5257;
  --brand-d: #0a3b3f;
  --brand-l: #1a6f75;
  --brand-soft: #eaf2f1;
  --accent: #c8873d;
  --accent-d: #a86d2a;
  --accent-soft: #faf1e6;
  --bg: #fbfaf7;
  --bg-2: #f4f2ed;
  --surface: #ffffff;
  --line: #e4dfd6;
  --line-2: #efebe3;
  --ok: #2f7d5d;
  --warn: #b8862b;
  --danger: #b4472f;
  --shadow-s: 0 1px 2px rgba(13, 27, 30, 0.05), 0 2px 8px rgba(13, 27, 30, 0.04);
  --shadow-m: 0 4px 12px rgba(13, 27, 30, 0.07), 0 12px 30px rgba(13, 27, 30, 0.06);
  --shadow-l: 0 10px 30px rgba(13, 27, 30, 0.1), 0 30px 70px rgba(13, 27, 30, 0.09);
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --r-xl: 24px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.18;
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: #cfe3e1; color: var(--brand-d); }

/* ------------------------------ boot ------------------------------ */
#boot {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity 0.4s ease;
}
#boot.hide { opacity: 0; pointer-events: none; }
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.boot-inner p {
  font-family: var(--serif); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand); opacity: 0.65;
}
#boot svg circle:first-child { animation: none; }

/* ------------------------------ layout ------------------------------ */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 820px; }
.section { padding: 92px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--bg-2); }
.section-dark { background: var(--brand-d); color: #dfe9e8; }
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-d);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); opacity: 0.7; }
.section-dark .eyebrow { color: #e0b478; }
.section-dark .eyebrow::before { background: #e0b478; }

.h1 { font-size: clamp(34px, 5vw, 58px); }
.h2 { font-size: clamp(27px, 3.4vw, 40px); }
.h3 { font-size: clamp(20px, 2.2vw, 26px); }
.lead { font-size: 17.5px; line-height: 1.72; color: var(--muted); max-width: 620px; }
.section-dark .lead { color: #b6c8c6; }
.sec-head { max-width: 700px; margin-bottom: 46px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap; background: none; color: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 10px rgba(15, 82, 87, 0.24); }
.btn-primary:hover { background: var(--brand-d); box-shadow: 0 6px 20px rgba(15, 82, 87, 0.28); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 2px 10px rgba(200, 135, 61, 0.28); }
.btn-accent:hover { background: var(--accent-d); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink-2); }
.btn-outline:hover { border-color: var(--ink-3); background: #fff; }
.btn-ghost { color: var(--brand); padding: 0 8px; height: auto; }
.btn-ghost:hover { color: var(--accent-d); }
.btn-light { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.28); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255, 255, 255, 0.22); }
.btn-white { background: #fff; color: var(--brand-d); }
.btn-white:hover { background: #f2f6f5; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 15.5px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------ nav ------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  height: 76px; display: flex; align-items: center; gap: 34px;
  transition: height 0.28s ease;
}
.nav.solid { background: rgba(251, 250, 247, 0.92); backdrop-filter: saturate(180%) blur(14px); border-bottom-color: var(--line-2); box-shadow: 0 1px 20px rgba(13, 27, 30, 0.05); }
.nav.solid .nav-inner { height: 66px; }

.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px;
  background: var(--brand); display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(15, 82, 87, 0.28);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--serif); font-size: 16.5px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.brand-text span { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 28px; margin-left: 8px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-3);
  position: relative; padding: 6px 0; transition: color 0.16s;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.on { color: var(--brand); }
.nav-links a.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--accent); border-radius: 2px;
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-phone { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.nav-phone svg { width: 15px; height: 15px; color: var(--brand); }
.nav-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-burger svg { width: 20px; height: 20px; }

.nav-drawer {
  position: fixed; inset: 0; z-index: 300; background: rgba(13, 27, 30, 0.4);
  backdrop-filter: blur(3px); display: flex; justify-content: flex-end;
}
.nav-drawer-panel {
  width: min(340px, 86vw); background: var(--bg); height: 100%;
  padding: 24px; display: flex; flex-direction: column; gap: 6px;
  animation: slideIn 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.nav-drawer-panel a {
  padding: 13px 4px; font-size: 15.5px; font-weight: 500; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}
.nav-drawer-panel a.on { color: var(--brand); }

/* ------------------------------ hero ------------------------------ */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  padding: 140px 0 0; overflow: hidden; background: var(--brand-d);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 14s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 32, 34, 0.9) 0%, rgba(10, 32, 34, 0.72) 42%, rgba(10, 32, 34, 0.18) 72%, rgba(10, 32, 34, 0.45) 100%),
    linear-gradient(to top, rgba(10, 32, 34, 0.95) 0%, rgba(10, 32, 34, 0.1) 42%, transparent 70%);
}
.hero-body { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 640px; padding-bottom: 76px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px 7px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e8f1f0; font-size: 12px; font-weight: 500; letter-spacing: 0.03em;
  backdrop-filter: blur(8px); margin-bottom: 24px;
}
.hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: #6fd6a8; box-shadow: 0 0 0 3px rgba(111, 214, 168, 0.24); }
.hero h1 { color: #fff; font-size: clamp(38px, 5.6vw, 66px); line-height: 1.08; letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; color: #e9c08a; }
.hero-sub { margin-top: 22px; font-size: 17.5px; line-height: 1.68; color: rgba(255, 255, 255, 0.82); max-width: 520px; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 13px; }
.hero-meta {
  margin-top: 36px; display: flex; flex-wrap: wrap; gap: 26px;
  font-size: 13px; color: rgba(255, 255, 255, 0.7);
}
.hero-meta span { display: flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 14px; height: 14px; color: #e9c08a; }

.hero-stats {
  position: relative; z-index: 3; border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 32, 34, 0.5); backdrop-filter: blur(10px);
}
.hero-stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding-top: 26px; padding-bottom: 26px; }
.hero-stats .item { text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.13); padding: 0 10px; }
.hero-stats .item:last-child { border-right: 0; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; color: #fff; letter-spacing: -0.01em; }
.hero-stats span { font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(255, 255, 255, 0.58); }

/* ------------------------------ cards / grid ------------------------------ */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-l); padding: 30px;
  transition: transform 0.22s ease, box-shadow 0.26s ease, border-color 0.22s ease;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--line); }

/* service card */
.svc {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-l);
  padding: 28px 26px 24px; cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.26s ease, border-color 0.22s ease;
  overflow: hidden;
}
.svc::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform 0.26s ease;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--line); }
.svc:hover::before { transform: scaleY(1); }
.svc-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 18px;
}
.svc-ico svg { width: 23px; height: 23px; }
.svc h3 { font-size: 19px; margin-bottom: 9px; font-family: var(--serif); }
.svc p { font-size: 14px; line-height: 1.62; color: var(--muted); flex: 1; }
.svc-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.svc-price { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.svc-price small { font-size: 11px; color: var(--muted-2); font-family: var(--sans); margin-left: 4px; letter-spacing: 0.04em; }
.svc-more { font-size: 12.5px; font-weight: 600; color: var(--brand); display: flex; align-items: center; gap: 5px; letter-spacing: 0.02em; }
.svc-more svg { width: 13px; height: 13px; transition: transform 0.2s; }
.svc:hover .svc-more svg { transform: translateX(3px); }

/* why / feature */
.why { display: flex; flex-direction: column; gap: 16px; }
.why-ico {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--brand);
  box-shadow: var(--shadow-s);
}
.why-ico svg { width: 19px; height: 19px; }
.why h3 { font-size: 17px; margin-bottom: 7px; font-family: var(--serif); }
.why p { font-size: 13.6px; line-height: 1.62; color: var(--muted); }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before {
  content: ''; position: absolute; left: 8%; right: 8%; top: 27px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.step { position: relative; padding: 0 18px; text-align: center; }
.step-num {
  width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg);
  border: 1px solid var(--line); font-family: var(--serif); font-size: 17px;
  color: var(--brand); position: relative; z-index: 2;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.step:hover .step-num { background: var(--brand); color: #fff; border-color: var(--brand); }
.step h3 { font-size: 16.5px; margin-bottom: 8px; font-family: var(--serif); }
.step p { font-size: 13.4px; line-height: 1.6; color: var(--muted); }

/* split (image + copy) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-l); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media .badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px);
  border-radius: 10px; padding: 11px 15px; box-shadow: var(--shadow-m);
  display: flex; align-items: center; gap: 10px;
}
.split-media .badge svg { width: 17px; height: 17px; color: var(--brand); }
.split-media .badge b { font-size: 13px; color: var(--ink); display: block; line-height: 1.3; }
.split-media .badge span { font-size: 11px; color: var(--muted); }

.spec-list { margin-top: 26px; border-top: 1px solid var(--line); }
.spec-list .row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 14px;
}
.spec-list .row span { color: var(--muted); }
.spec-list .row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.check-list { display: flex; flex-direction: column; gap: 13px; margin-top: 24px; }
.check-list li { display: flex; gap: 11px; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }
.check-list svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--ok); margin-top: 2px; }

/* team */
.team-card { text-align: left; }
.team-photo {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r-m); overflow: hidden;
  background: var(--bg-2); margin-bottom: 18px; position: relative;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-card h3 { font-size: 17.5px; margin-bottom: 3px; }
.team-card .role { font-size: 12.5px; color: var(--accent-d); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 10px; }
.team-card p { font-size: 13.4px; line-height: 1.6; color: var(--muted); }

/* testimonials */
.quote {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-l);
  padding: 28px; display: flex; flex-direction: column;
}
.stars { display: flex; gap: 2px; margin-bottom: 14px; }
.stars svg { width: 15px; height: 15px; color: var(--accent); }
.quote p { font-size: 14.6px; line-height: 1.72; color: var(--ink-3); flex: 1; font-style: italic; }
.quote-who { margin-top: 20px; display: flex; align-items: center; gap: 11px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.quote-who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.quote-who b { font-size: 13.5px; color: var(--ink); display: block; }
.quote-who span { font-size: 11.5px; color: var(--muted-2); }

/* faq */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 22px 44px 22px 0; position: relative;
  font-family: var(--serif); font-size: 17px; color: var(--ink); line-height: 1.45;
}
.faq-q::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.22s;
}
.faq-item.open .faq-q::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 44px 22px 0; font-size: 14.6px; line-height: 1.72; color: var(--muted); }

/* cta band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--brand-d), var(--brand) 62%, #1a6f75);
  padding: 62px 56px; color: #fff;
}
.cta-band::after {
  content: ''; position: absolute; right: -80px; bottom: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 135, 61, 0.32), transparent 68%);
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); max-width: 560px; }
.cta-band p { margin-top: 14px; color: rgba(255, 255, 255, 0.78); max-width: 520px; font-size: 15.5px; }
.cta-band .btn-row { margin-top: 30px; position: relative; z-index: 2; }

/* footer */
.footer { background: #0a1a1c; color: #93a8a6; padding: 68px 0 30px; font-size: 13.8px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer a { color: #93a8a6; transition: color 0.16s; display: block; padding: 5px 0; }
.footer a:hover { color: #e0b478; }
.footer .brand-text b { color: #fff; }
.footer .brand-text span { color: #6f8483; }
.footer p { line-height: 1.72; }
.footer-note { margin-top: 16px; font-size: 12.5px; color: #6f8483; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 12.4px; color: #6f8483;
}
.footer-contact li { display: flex; gap: 10px; padding: 6px 0; align-items: flex-start; }
.footer-contact svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 3px; color: var(--accent); }

/* ------------------------------ page hero (inner) ------------------------------ */
.page-hero {
  padding: 150px 0 64px; background: var(--brand-d); color: #fff; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(200, 135, 61, 0.2), transparent 66%);
}
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); position: relative; z-index: 2; }
.page-hero .lead { color: rgba(255, 255, 255, 0.76); margin-top: 16px; position: relative; z-index: 2; }
.page-hero .eyebrow { color: #e0b478; position: relative; z-index: 2; }
.page-hero .eyebrow::before { background: #e0b478; }
.crumb { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); margin-bottom: 18px; position: relative; z-index: 2; }
.crumb a:hover { color: #fff; }

/* ------------------------------ forms ------------------------------ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label {
  font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  letter-spacing: 0.02em;
}
.field .hint { font-size: 11.8px; color: var(--muted-2); line-height: 1.5; }
.req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-m);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 14.5px; font-family: inherit; transition: border-color 0.16s, box-shadow 0.16s;
}
.textarea { height: auto; padding: 12px 14px; min-height: 100px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 82, 87, 0.1);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%235d7079' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 12px;
  padding-right: 34px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.checkline { display: flex; align-items: flex-start; gap: 10px; font-size: 13.6px; color: var(--ink-3); cursor: pointer; line-height: 1.55; }
.checkline input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); flex: 0 0 17px; cursor: pointer; }

/* slot picker */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 9px; }
.slot {
  height: 42px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; font-size: 13.5px; font-weight: 500;
  color: var(--ink-3); cursor: pointer; transition: 0.16s; font-variant-numeric: tabular-nums;
}
.slot:hover:not(.off) { border-color: var(--brand); color: var(--brand); }
.slot.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(15, 82, 87, 0.22); }
.slot.off { background: var(--bg-2); color: var(--muted-2); cursor: not-allowed; text-decoration: line-through; opacity: 0.65; }

.date-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.date-chip {
  flex: 0 0 auto; width: 62px; padding: 9px 0; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; text-align: center; transition: 0.16s;
}
.date-chip b { display: block; font-family: var(--serif); font-size: 17px; color: var(--ink); line-height: 1.2; }
.date-chip span { font-size: 10.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.05em; }
.date-chip:hover { border-color: var(--brand); }
.date-chip.on { background: var(--brand); border-color: var(--brand); }
.date-chip.on b, .date-chip.on span { color: #fff; }

/* panel */
.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-l); overflow: hidden; }
.panel-head { padding: 22px 26px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 12px; }
.panel-head h3 { font-size: 17px; }
.panel-head .spacer { margin-left: auto; }
.panel-body { padding: 26px; }
.panel-body.tight { padding: 0; }

/* alerts */
.alert {
  display: flex; gap: 11px; padding: 14px 16px; border-radius: var(--r-m);
  font-size: 13.6px; line-height: 1.6; align-items: flex-start;
}
.alert svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; }
.alert-info { background: var(--brand-soft); color: var(--brand-d); }
.alert-warn { background: var(--accent-soft); color: #7a4f13; }
.alert-ok { background: #eaf6ee; color: #1f5b3f; }
.alert-err { background: #fbeceb; color: #8c3123; }

/* price block */
.price-summary { background: var(--bg-2); border-radius: var(--r-m); padding: 18px 20px; }
.price-summary .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; color: var(--muted); }
.price-summary .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 17px; color: var(--ink); font-weight: 600; }
.price-summary .row.total b { font-family: var(--serif); font-size: 22px; }

/* steps indicator */
.steps-bar { display: flex; align-items: center; gap: 0; margin-bottom: 34px; }
.steps-bar .sb { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted-2); }
.steps-bar .sb i {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); color: var(--muted); font-style: normal; font-size: 12px; font-weight: 600;
  border: 1px solid transparent; transition: 0.2s;
}
.steps-bar .sb.on i { background: var(--brand); color: #fff; }
.steps-bar .sb.on { color: var(--ink); font-weight: 500; }
.steps-bar .sb.done i { background: var(--brand-soft); color: var(--brand); border-color: #cfe1df; }
.steps-bar .line { flex: 1; height: 1px; background: var(--line); margin: 0 14px; min-width: 16px; }

/* article */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.art-card { cursor: pointer; group: art; }
.art-cover { aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: var(--bg-2); margin-bottom: 16px; }
.art-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.art-card:hover .art-cover img { transform: scale(1.045); }
.art-cat { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-d); margin-bottom: 8px; }
.art-card h3 { font-size: 18.5px; line-height: 1.34; margin-bottom: 9px; }
.art-card:hover h3 { color: var(--brand); }
.art-card p { font-size: 13.6px; line-height: 1.62; color: var(--muted); }
.art-meta { margin-top: 12px; font-size: 12px; color: var(--muted-2); display: flex; gap: 12px; }

.prose { font-size: 16px; line-height: 1.82; color: var(--ink-3); }
.prose h2 { font-size: 25px; margin: 40px 0 14px; }
.prose h3 { font-size: 20px; margin: 30px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 0 0 18px; padding-left: 4px; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.prose li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.6; }
.prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose ol li { padding-left: 6px; }
.prose ol li::before { display: none; }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.prose th { text-align: left; padding: 11px 14px; background: var(--bg-2); font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.prose td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
.prose blockquote {
  margin: 24px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 18px; color: var(--ink); font-style: italic;
}

/* portal */
.portal-grid { display: grid; grid-template-columns: 248px 1fr; gap: 32px; align-items: start; }
.p-side { position: sticky; top: 92px; }
.p-side .who { display: flex; align-items: center; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); margin-bottom: 14px; }
.p-side .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 17px; }
.p-side .who b { font-size: 14px; display: block; color: var(--ink); }
.p-side .who span { font-size: 11.5px; color: var(--muted-2); }
.p-menu { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); overflow: hidden; }
.p-menu a {
  display: flex; align-items: center; gap: 11px; padding: 13px 18px;
  font-size: 14px; color: var(--ink-3); border-bottom: 1px solid var(--line-2); transition: 0.15s;
}
.p-menu a:last-child { border-bottom: 0; }
.p-menu a:hover { background: var(--bg-2); color: var(--brand); }
.p-menu a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; border-left: 2.5px solid var(--brand); padding-left: 15.5px; }
.p-menu svg { width: 16px; height: 16px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); padding: 18px 20px; }
.stat-card span { font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-2); }
.stat-card b { display: block; font-family: var(--serif); font-size: 27px; color: var(--ink); margin-top: 5px; line-height: 1.1; }
.stat-card b small { font-size: 13px; color: var(--muted); font-family: var(--sans); font-weight: 500; }

/* rows / lists */
.row-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 26px;
  border-bottom: 1px solid var(--line-2); transition: background 0.15s;
}
.row-item:last-child { border-bottom: 0; }
.row-item:hover { background: #fcfbf9; }
.row-item .thumb { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; flex: 0 0 52px; background: var(--bg-2); }
.row-item .main { flex: 1; min-width: 0; }
.row-item .main b { font-size: 14.8px; color: var(--ink); display: block; margin-bottom: 3px; }
.row-item .main span { font-size: 12.6px; color: var(--muted); }
.row-item .side { text-align: right; flex: 0 0 auto; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px;
  border-radius: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  background: var(--bg-2); color: var(--muted);
}
.badge.b-ok { background: #e9f6ee; color: #1f6b47; }
.badge.b-warn { background: #fdf3e2; color: #8a6015; }
.badge.b-info { background: #e9f1f7; color: #295c7d; }
.badge.b-err { background: #fbeceb; color: #96382a; }
.badge.b-brand { background: var(--brand-soft); color: var(--brand); }

/* report viewer */
.report-block { border: 1px solid var(--line-2); border-radius: var(--r-m); padding: 22px 24px; margin-bottom: 16px; background: #fff; }
.report-block h4 {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--accent-d); margin: 0 0 12px; font-weight: 700;
}
.report-block p { font-size: 14.4px; line-height: 1.78; color: var(--ink-3); white-space: pre-wrap; }
.img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.img-grid figure { margin: 0; border-radius: 9px; overflow: hidden; background: #0a1214; position: relative; }
.img-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; cursor: zoom-in; transition: opacity 0.2s; }
.img-grid img:hover { opacity: 0.86; }
.img-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 10px;
  font-size: 10.5px; color: #cfd9d8; background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
}

/* empty / loading */
.empty { text-align: center; padding: 64px 24px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; color: var(--line); margin: 0 auto 16px; }
.empty b { display: block; font-size: 15px; color: var(--ink-3); margin-bottom: 6px; }
.empty p { font-size: 13.5px; }
.spinner {
  width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box { padding: 60px; display: grid; place-items: center; gap: 14px; }
.loading-box span { font-size: 13px; color: var(--muted-2); }

/* toast */
.toast-host { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 900; display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none; }
.toast {
  background: #0d1b1e; color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 13.6px; box-shadow: var(--shadow-l); display: flex; align-items: center; gap: 9px;
  animation: toastIn 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast svg { width: 16px; height: 16px; }
.toast.ok svg { color: #6fd6a8; }
.toast.err svg { color: #f08a72; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }

/* modal */
.modal-mask { position: fixed; inset: 0; z-index: 500; background: rgba(13, 27, 30, 0.46); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 24px; }
.modal {
  background: var(--surface); border-radius: var(--r-l); width: 100%; max-width: 560px;
  max-height: 86vh; overflow-y: auto; box-shadow: var(--shadow-l);
  animation: modalIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal-head { padding: 22px 26px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; }
.modal-head h3 { font-size: 18px; }
.modal-head button { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; border: 0; background: var(--bg-2); cursor: pointer; display: grid; place-items: center; }
.modal-body { padding: 26px; }
.modal-foot { padding: 18px 26px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; background: #fcfbf9; }

/* utility */
.mt0 { margin-top: 0 !important; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; } .mt40 { margin-top: 40px; } .mt56 { margin-top: 56px; }
.mb0 { margin-bottom: 0 !important; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.mb24 { margin-bottom: 24px; } .mb32 { margin-bottom: 32px; } .mb40 { margin-bottom: 40px; }
.muted { color: var(--muted); }
.small { font-size: 12.8px; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: 12.6px; letter-spacing: -0.01em; }
.divider { height: 1px; background: var(--line-2); margin: 22px 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .steps::before { display: none; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .portal-grid { grid-template-columns: 1fr; }
  .p-side { position: static; }
  .p-menu { display: flex; flex-wrap: wrap; }
  .p-menu a { flex: 1 0 40%; border-bottom: 1px solid var(--line-2); }
  .split { gap: 40px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-burger { display: flex; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .art-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats .wrap { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .hero-stats .item:nth-child(2) { border-right: 0; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .table-wrap { overflow-x: auto; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 18px; }
  .section { padding: 62px 0; }
  .section-sm { padding: 46px 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .art-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; padding-top: 108px; }
  .hero-content { padding-bottom: 46px; }
  .hero-actions .btn { flex: 1 1 46%; }
  .cta-band { padding: 40px 26px; border-radius: var(--r-l); }
  .footer { padding: 48px 0 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .steps { grid-template-columns: 1fr; }
  .step { display: flex; gap: 16px; text-align: left; padding: 0; }
  .step-num { margin: 0; flex: 0 0 48px; width: 48px; height: 48px; }
  .img-grid { grid-template-columns: 1fr 1fr; }
  .nav-inner { height: 66px; }
  .page-hero { padding: 120px 0 46px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .modal { max-height: 90vh; }
  .p-menu a { flex: 1 0 100%; }
}

/* ============================ fixes: transparent nav on hero ============================ */
.nav:not(.solid) .nav-links a,
.nav:not(.solid) .brand-text b { color: rgba(255, 255, 255, 0.94); }
.nav:not(.solid) .nav-links a:hover { color: #fff; }
.nav:not(.solid) .nav-links a.on { color: #fff; }
.nav:not(.solid) .brand-text span { color: rgba(255, 255, 255, 0.52); }
.nav:not(.solid) .nav-phone { color: rgba(255, 255, 255, 0.86); }
.nav:not(.solid) .nav-phone svg { color: #e9c08a; }
.nav:not(.solid) .btn-outline {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}
.nav:not(.solid) .btn-outline:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.5); }
.nav:not(.solid) .nav-burger {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.nav-links a { white-space: nowrap; }
.nav-links { gap: 24px; }

/* hero 纵向布局，stats 贴底全宽 */
.hero { flex-direction: column; justify-content: flex-end; }
.hero-body { flex: 0 1 auto; }
.hero-stats { flex: 0 0 auto; width: 100%; margin-top: auto; }
.hero-stats span {
  font-size: 10.5px;
  letter-spacing: 0.05em;
  line-height: 1.35;
  display: block;
  max-width: 140px;
  margin: 3px auto 0;
}
.hero-stats .item { padding: 0 6px; }
.hero-content { padding-bottom: 58px; }
.nav-phone { white-space: nowrap; }
@media (max-width: 1240px) { .nav-phone { display: none; } }
@media (max-width: 1180px) { .nav-links { gap: 18px; } .nav-links a { font-size: 13.2px; } }
