/* Jain & Associates CPAs — site styles */
:root {
  --navy-900: #0b1f33;
  --navy-800: #112c47;
  --navy-700: #1a3d60;
  --navy-100: #e8eef5;
  --gold-500: #c49a3c;
  --gold-600: #a8822e;
  --gold-100: #f7efdc;
  --ink: #1b2430;
  --muted: #5b6878;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 51, .08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 51, .16);
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); }
a:hover { color: var(--gold-600); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--navy-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold-500); color: var(--navy-900); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* ---------- top bar & header */
.topbar { background: var(--navy-900); color: #c9d4e0; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #e6edf5; text-decoration: none; }
.topbar a:hover { color: var(--gold-500); }
.topbar .contacts { display: flex; gap: 22px; flex-wrap: wrap; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-900); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }

.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15.5px; }
.nav a:hover { background: var(--navy-100); color: var(--navy-900); }
.nav a[aria-current="page"] { color: var(--navy-900); box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 4px 0; transition: .2s; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 18px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .topbar .hide-sm { display: none; }
}

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s; font-family: var(--font); }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: var(--navy-900) !important; }
.btn-gold:hover { background: #d4ab4f; }
.btn-navy { background: var(--navy-800); color: #fff !important; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff !important; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800) !important; background: transparent; }

/* ---------- hero */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(196,154,60,.28), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy-700)); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent); pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-500); }
.hero .lead { font-size: 1.18rem; color: #d6e0ea; max-width: 34em; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 14px; }
.hero-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 28px; backdrop-filter: blur(4px); }
.hero-card h2 { color: #fff; font-size: 1.3rem; }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #e2e9f1; }
.hero-card li:last-child { border-bottom: 0; }
.hero-card .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 3px; }
.hero-card .ask { margin-top: 18px; width: 100%; }

.page-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 72px 0 64px; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #d0dbe6; font-size: 1.12rem; max-width: 42em; margin: 0; }
.crumbs { font-size: 14px; color: #a9b8c8; margin-bottom: 12px; }
.crumbs a { color: #d0dbe6; }

@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; gap: 36px; }
}

/* ---------- sections */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -56px; position: relative; z-index: 2; }
.stat { padding: 26px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--navy-800); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .more { font-weight: 600; text-decoration: none; font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8822e' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

.panel { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); color: #e6edf5; border-radius: 18px; padding: 40px; box-shadow: var(--shadow-lg); }
.panel h3 { color: #fff; }
.panel .quote { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: #fff; }
.panel .who { color: var(--gold-500); font-weight: 600; margin-top: 14px; }

/* services page */
.service-block { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.service-block:last-child { border-bottom: 0; }
.service-block .side p { color: var(--muted); }
.service-block ul { columns: 2; column-gap: 32px; padding-left: 0; list-style: none; margin: 0 0 18px; }
.service-block ul li { break-inside: avoid; position: relative; padding-left: 22px; margin-bottom: 10px; }
.service-block ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--gold-500); }
.service-block h3 { margin-top: 8px; font-size: 1.1rem; font-family: var(--font); color: var(--navy-800); }
@media (max-width: 860px) { .service-block { grid-template-columns: 1fr; gap: 16px; } .service-block ul { columns: 1; } }
.tabs-nav { display: flex; gap: 10px; flex-wrap: wrap; position: sticky; top: 76px; background: #fff; padding: 14px 0; z-index: 5; border-bottom: 1px solid var(--line); }
.tabs-nav a { padding: 8px 16px; border-radius: 999px; background: var(--bg-soft); text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--navy-800); }
.tabs-nav a:hover { background: var(--gold-100); }

/* testimonials */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.testimonial blockquote { margin: 0 0 20px; font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; color: var(--navy-900); flex: 1; }
.testimonial blockquote::before { content: "\201C"; display: block; font-size: 3.4rem; line-height: .6; color: var(--gold-500); margin-bottom: 8px; }
.testimonial .who { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-100); color: var(--navy-800); display: grid; place-items: center; font-weight: 700; }
.testimonial .who small { display: block; color: var(--muted); }

/* team */
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.profile .photo { aspect-ratio: 1; border-radius: 18px; background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); display: grid; place-items: center; color: var(--gold-500); font-family: var(--serif); font-size: 4rem; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }
.badge { background: var(--gold-100); color: var(--gold-600); font-weight: 600; font-size: .82rem; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 700px) { .profile { grid-template-columns: 1fr; } .profile .photo { max-width: 180px; } }

/* jobs */
.job { display: flex; justify-content: space-between; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.job p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .job { flex-direction: column; align-items: flex-start; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.info-item .icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; }
.info-item .icon svg { width: 22px; height: 22px; }
.info-item strong { display: block; color: var(--navy-900); }
.info-item a, .info-item address { font-style: normal; color: var(--muted); text-decoration: none; }
.map { border: 0; width: 100%; height: 260px; border-radius: var(--radius); filter: grayscale(.2); }

.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy-900); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #c8d1dc; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-700); outline: 3px solid rgba(26,61,96,.12); }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label { font-weight: 500; display: flex; gap: 6px; align-items: center; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 20px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: #e7f6ec; color: #17603a; }
.form-status.err { display: block; background: #fdecec; color: #9b1c1c; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: 22px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { color: #cfdae6; margin: 0; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* footer */
.site-footer { background: var(--navy-900); color: #b7c4d2; padding: 72px 0 0; font-size: .95rem; }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer a { color: #d5dfe9; text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } section { padding: 64px 0; } .cta { padding: 36px 26px; } .form { padding: 24px; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ================= v2 refinements ================= */
:root { --ease: cubic-bezier(.2,.8,.2,1); }
body { text-rendering: optimizeLegibility; }
.site-header { transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,31,51,.08); }
.site-header.scrolled .container { height: 66px; }
.site-header .container { transition: height .25s var(--ease); }

.btn { border-radius: 12px; letter-spacing: .005em; }
.btn-gold { box-shadow: 0 8px 20px rgba(196,154,60,.32); }
.btn-gold:hover { box-shadow: 0 12px 26px rgba(196,154,60,.42); }
.btn svg { width: 18px; height: 18px; }

/* hero art */
.hero { isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9; }
.hero-art svg { position: absolute; right: -4%; bottom: -2%; width: min(760px, 70%); height: auto; }
.hero h1 { text-wrap: balance; }
.hero .container { padding-top: 104px; padding-bottom: 128px; }
.hero-card { box-shadow: 0 30px 70px rgba(0,0,0,.28); background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); position: relative; }
.hero-card .creds { display: flex; gap: 8px; margin-bottom: 14px; }
.hero-card .creds span { background: var(--gold-500); color: var(--navy-900); font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.hero-card .creds small { align-self: center; color: #c5d2df; font-size: .85rem; margin-left: 4px; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; color: #c5d2df; font-size: .92rem; }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
.trust svg { width: 18px; height: 18px; color: var(--gold-500); }

.stats { box-shadow: 0 20px 50px rgba(11,31,51,.14); }
.stat strong { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* cards */
.card { position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold-500), var(--gold-600)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover::before { transform: scaleX(1); }
.card .icon { transition: background .25s, color .25s, transform .25s var(--ease); }
.card:hover .icon { background: var(--navy-800); color: var(--gold-500); transform: rotate(-4deg) scale(1.05); }
.card .more { display: inline-flex; gap: 6px; transition: gap .2s; } .card:hover .more { gap: 10px; }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.step .n { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 2px solid var(--gold-500); color: var(--navy-800); display: grid; place-items: center; font: 700 1.3rem var(--serif); box-shadow: 0 8px 20px rgba(11,31,51,.08); }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; color: var(--navy-900); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--gold-600); border-bottom: 2px solid var(--gold-600); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); }
.faq .ans p:last-child { margin: 0; }

.cta { position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(196,154,60,.35), transparent 70%); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }

.page-hero { position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(196,154,60,.25), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }

@media (max-width: 920px) { .hero-art svg { width: 120%; right: -30%; opacity: .6; } .hero .container { padding-top: 64px; padding-bottom: 96px; } }
@media (max-width: 920px) { .topbar .contacts a[href^="mailto"] { display: none; } .topbar .contacts { width: 100%; justify-content: center; } }

/* ================= v3 header ================= */
.topbar { font-size: 13.5px; }
.topbar .container { align-items: center; padding-top: 7px; padding-bottom: 7px; }
.topbar svg { width: 15px; height: 15px; flex: none; color: var(--gold-500); }
.topbar .tb-loc, .topbar .contacts a { display: inline-flex; align-items: center; gap: 8px; }
.topbar .tb-loc { color: #aebdcc; }
.topbar .contacts { display: flex; align-items: center; gap: 22px; width: auto; }
.topbar .tb-social { display: inline-flex; gap: 6px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.16); }
.topbar .tb-social a { width: 26px; height: 26px; border-radius: 7px; justify-content: center; background: rgba(255,255,255,.07); }
.topbar .tb-social a:hover { background: var(--gold-500); }
.topbar .tb-social svg { width: 13px; height: 13px; fill: currentColor; stroke: none; color: #e6edf5; }
.topbar .tb-social a:hover svg { color: var(--navy-900); }

.site-header { background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(11,31,51,.08); }
.site-header .container { gap: 24px; height: 82px; justify-content: flex-start; }
.site-header.scrolled .container { height: 68px; }
.site-header .container { max-width: 1320px; }
.brand { margin-right: auto; flex: none; white-space: nowrap; }
.brand-mark { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 4px 12px rgba(17,44,71,.22); transition: transform .3s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-name { font-size: 1.3rem; letter-spacing: -.005em; }
.brand-name small { font-size: .66rem; letter-spacing: .18em; margin-top: 2px; }

.site-header .nav { display: flex; align-items: center; gap: 22px; }
.site-header .nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-header .nav > ul > li { position: relative; display: flex; align-items: center; }
.site-header .nav > ul > li > a { position: relative; padding: 10px 13px; border-radius: 0; background: none; font-weight: 500; font-size: 15.5px; color: var(--ink); }
.site-header .nav > ul > li > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--gold-500); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.site-header .nav > ul > li > a:hover, .site-header .nav > ul > li:focus-within > a { color: var(--navy-900); background: none; }
.site-header .nav > ul > li > a:hover::after, .site-header .nav > ul > li:focus-within > a::after, .site-header .nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
.site-header .nav > ul > li > a[aria-current="page"] { box-shadow: none; color: var(--navy-900); font-weight: 600; }

/* dropdown */
.menu-toggle { background: none; border: 0; padding: 8px 6px 8px 0; margin-left: -8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; border-radius: 6px; }
.menu-toggle .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.has-menu:hover .chev, .has-menu.open .chev { transform: rotate(180deg); color: var(--gold-600); }
.site-header .nav > ul > li.has-menu > a { padding-right: 6px; }
.menu { position: absolute; top: calc(100% + 10px); left: -60px; width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: 0 26px 60px rgba(11,31,51,.18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; z-index: 60; }
.menu::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: flex; gap: 14px; align-items: center; padding: 11px 12px; border-radius: 11px; text-decoration: none; color: var(--ink); }
.menu a:hover { background: var(--bg-soft); }
.menu .mi { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; transition: background .2s, color .2s; }
.menu a:hover .mi { background: var(--navy-800); color: var(--gold-500); }
.menu .mi svg { width: 20px; height: 20px; }
.menu strong { display: block; color: var(--navy-900); font-size: 15px; line-height: 1.25; }
.menu small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.menu .menu-all { margin-top: 4px; justify-content: center; border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; font-weight: 600; font-size: 14px; color: var(--navy-700); }

/* actions */
.hdr-actions { display: flex; align-items: center; gap: 18px; padding-left: 8px; }
.site-header .hdr-actions .hdr-phone { display: inline-flex; align-items: center; gap: 10px; padding: 0; background: none; border-radius: 0; text-decoration: none; color: var(--navy-900); font-weight: 600; font-size: 14.5px; line-height: 1.2; white-space: nowrap; }
.hdr-phone svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--navy-100); color: var(--navy-800); transition: background .2s, color .2s; box-sizing: border-box; }
.hdr-phone:hover svg { background: var(--navy-800); color: var(--gold-500); }
.hdr-phone small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.hdr-actions .btn { padding: 11px 20px; white-space: nowrap; }
.hdr-call-sm { display: none; }

@media (max-width: 1359px) { .site-header .hdr-actions .hdr-phone { display: none; } }

/* mobile menu button */
.nav-toggle { width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: none; place-items: center; align-content: center; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 2.5px auto; background: var(--navy-900); border-radius: 2px; transition: transform .28s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  /* backdrop-filter would make the fixed mobile menu size itself to the header instead of the screen */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .topbar .tb-loc, .topbar .tb-mail { display: none; }
  .topbar .container { justify-content: center; }
  .topbar .contacts { gap: 14px; }
  .site-header .container { height: 66px; gap: 10px; }
  .site-header.scrolled .container { height: 60px; }
  .brand-name { font-size: 1.12rem; } .brand-mark { width: 40px; height: 40px; }
  .nav-toggle { display: grid; }
  .hdr-call-sm { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-500); color: var(--navy-900); }
  .hdr-call-sm svg { width: 20px; height: 20px; }
  .site-header .nav { position: fixed; top: 66px; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; background: #fff; padding: 12px 20px 28px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; border-top: 1px solid var(--line); }
  .site-header.scrolled .nav { top: 60px; }
  .site-header .nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-header .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-header .nav > ul > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .site-header .nav > ul > li > a { flex: 1; padding: 16px 4px; font-size: 18px; font-family: var(--serif); font-weight: 600; }
  .site-header .nav > ul > li > a::after { display: none; }
  .site-header .nav > ul > li > a[aria-current="page"] { color: var(--gold-600); }
  .menu-toggle { padding: 14px; margin: 0; }
  .menu-toggle .chev { width: 18px; height: 18px; }
  .menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px; display: none; }
  .menu::before { display: none; }
  .has-menu:hover .menu, .has-menu:focus-within .menu { display: none; }
  .has-menu.open .menu { display: block; }
  .has-menu:hover .chev { transform: none; color: inherit; }
  .has-menu.open .chev { transform: rotate(180deg); }
  .hdr-actions { flex-direction: column; align-items: stretch; padding: 22px 0 0; gap: 12px; }
  .hdr-actions .btn { width: 100%; padding: 14px; font-size: 16px; }
  .site-header .hdr-actions .hdr-phone { display: inline-flex; justify-content: center; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
  .hdr-phone svg { display: block; background: none; width: 20px; height: 20px; padding: 0; }
  .hdr-phone small { display: none; }
}
@media (max-width: 380px) { .brand-name small { display: none; } }
body.nav-locked { overflow: hidden; }

body.nav-locked .jaw-launcher, body.nav-locked .jaw-teaser { display: none; }

/* ================= responsive pass ================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }

/* grid/flex children may shrink below their content width; long emails and words wrap instead of widening the page */
.grid > *, .split > *, .contact-grid > *, .footer-grid > *, .profile > *, .service-block > *, .hero .container > *, .job > *, .cta > * { min-width: 0; }
.info-item > div, .footer-grid li, .topbar a, address { min-width: 0; overflow-wrap: anywhere; }
.info-item a, .footer-grid a[href^="mailto"], .job a, .crumbs { overflow-wrap: anywhere; }
h1, h2, h3 { overflow-wrap: break-word; }
iframe.map { max-width: 100%; }

/* service tabs sit just under the (shrunk) sticky header */
.tabs-nav { top: 68px; }
.service-block { scroll-margin-top: 140px; }

/* tablet */
@media (max-width: 1100px) {
  section { padding: 76px 0; }
  .container { padding: 0 28px; }
  .tabs-nav { top: 60px; }
  .service-block { scroll-margin-top: 130px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .cta { padding: 44px 36px; }
}

@media (max-width: 900px) {
  .hero .container { padding-top: 56px; padding-bottom: 88px; }
  .split { gap: 32px; }
  .page-hero { padding: 56px 0 48px; }
  .stats { margin-top: -44px; }
  .contact-grid { gap: 36px; }
}

/* phone */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .container { padding: 0 20px; }
  section { padding: 56px 0; }
  .section-head { margin-bottom: 30px; }
  .hero .container { padding-top: 40px; padding-bottom: 80px; gap: 28px; }
  .hero .lead { font-size: 1.05rem; }
  .hero .actions, .cta .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn, .cta .actions .btn { width: 100%; padding: 14px 20px; }
  .trust { gap: 10px 18px; margin-top: 26px; font-size: .88rem; }
  .hero-card { padding: 22px; }
  .hero-art svg { width: 160%; right: -45%; opacity: .45; }
  .stats { margin-top: -36px; }
  .stat { padding: 18px 12px; }
  .stat strong { font-size: 1.6rem; }
  .card { padding: 24px 22px; }
  .panel { padding: 28px 24px; }
  .page-hero { padding: 44px 0 40px; }
  .page-hero p { font-size: 1.02rem; }
  .tabs-nav { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 12px 20px; scrollbar-width: none; }
  .tabs-nav::-webkit-scrollbar { display: none; }
  .tabs-nav a { white-space: nowrap; flex: none; padding: 10px 16px; }
  .service-block { padding: 36px 0; }
  .job { padding: 22px; }
  .job .btn { width: 100%; }
  .profile { gap: 22px; }
  .cta { padding: 34px 24px; border-radius: 18px; }
  .form { padding: 22px 18px; border-radius: 16px; }
  .info-item { margin-bottom: 20px; }
  .map { height: 220px; }
  .site-footer { padding-top: 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid li { margin-bottom: 4px; }
  .footer-grid li a { display: inline-block; padding: 6px 0; }
  .footer-bottom { flex-direction: column; gap: 8px; margin-top: 36px; }
  .faq summary { padding: 16px 48px 16px 18px; }
  .faq .ans { padding: 0 18px 18px; }
}

@media (max-width: 380px) {
  h1 { font-size: 1.95rem; }
  .container { padding: 0 16px; }
  .tabs-nav { margin: 0 -16px; padding: 12px 16px; }
  .stat span { font-size: .82rem; }
}

/* large desktop: keep line lengths comfortable on wide monitors */
@media (min-width: 1500px) {
  :root { --max: 1260px; }
  .site-header .container { max-width: 1380px; }
  .hero .container { padding-top: 120px; padding-bottom: 140px; }
}

/* header buttons never shrink; the logo yields first */
.hdr-call-sm, .nav-toggle { flex: none; }
.site-header .brand { flex: 0 1 auto; min-width: 0; }
.site-header .brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .site-header .brand { margin-right: auto; } }
@media (max-width: 420px) {
  .site-header .container { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand { gap: 9px; }
  .brand-name { font-size: 1.02rem; }
  .brand-name small { display: none; }
}
@media (max-width: 360px) {
  .hdr-call-sm, .nav-toggle { width: 42px; height: 42px; }
  .brand-name { font-size: .98rem; }
}
