/* Layout: sticky header, split hero, alternating full-width bands with a 1120px inner column */
/* Brand: Truvisory "Vision Eye". Navy primary, Vision Amber accent, ivory bands, Inter throughout */
:root {
  --ink: #0B2545;
  --bg: #FFFFFF;
  --surface: #F7F4EC;
  --line: #E2DED3;
  --muted: #5B6B82;
  --accent: #F2A900;
  --accent-ink: #0B2545;
  --accent-text: #B07A00;
  --brand: #0B2545;
  --on-brand: #F7F4EC;
  --on-brand-muted: #B8C2D0;
  --font-display: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --step-0: 1rem; --step-1: 1.25rem; --step-2: 1.6rem; --step-3: 2.2rem; --step-4: clamp(2.2rem, 5vw, 3.4rem);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ink: #F7F4EC; --bg: #071a31; --surface: #0d2440; --line: #1d3a5e; --muted: #B8C2D0;
  --accent: #F2A900; --accent-ink: #0B2545; --accent-text: #F2A900; --brand: #12345c; --on-brand: #F7F4EC; --on-brand-muted: #B8C2D0; color-scheme: dark } }
:root[data-theme="dark"] {
  --ink: #F7F4EC; --bg: #071a31; --surface: #0d2440; --line: #1d3a5e; --muted: #B8C2D0;
  --accent: #F2A900; --accent-ink: #0B2545; --accent-text: #F2A900; --brand: #12345c; --on-brand: #F7F4EC; --on-brand-muted: #B8C2D0; color-scheme: dark }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 4.5rem; }
.band.alt { background: var(--surface); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.section-head { display: grid; gap: .6rem; max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); }

/* Header */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 58px; width: auto; display: block; }
.logo .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .logo-light { display: none; } :root:not([data-theme="light"]) .logo .logo-dark { display: block; } }
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }
@media (max-width: 480px) { .logo img { height: 46px; } }
nav.main { display: flex; gap: 1.6rem; align-items: center; }
nav.main a { text-decoration: none; font-weight: 500; color: var(--muted); }
nav.main a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 600 .95rem var(--font-body); padding: .75rem 1.3rem; border-radius: 6px; border: 2px solid transparent; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
nav.main .btn { color: var(--accent-ink); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: .45rem .7rem; color: var(--ink); font: 600 .9rem var(--font-body); cursor: pointer; }
@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); }
  nav.main.open { display: flex; }
  nav.main a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  nav.main .btn { margin-top: .8rem; border-bottom: 0; }
}

/* Hero */
.hero { padding-block: 5rem 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: var(--step-4); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: inherit; box-shadow: inset 0 -.28em 0 color-mix(in srgb, var(--accent) 45%, transparent); }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero-copy > p { font-size: var(--step-1); color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-panel { background: var(--brand); color: var(--on-brand); border-radius: 10px; padding: 2rem; display: grid; gap: 1.2rem; min-width: 0; }
.hero-panel h2 { font-size: var(--step-1); }
.hero-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.hero-panel li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem; align-items: start; }
.tick { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: .15rem; }
.hero-panel .note { font-size: .85rem; color: var(--on-brand-muted); border-top: 1px solid color-mix(in srgb, var(--on-brand) 25%, transparent); padding-top: 1rem; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-block: 3rem; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-grid > div { display: grid; gap: 1rem; min-width: 0; }
.about-grid p { color: var(--muted); max-width: 36rem; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.values h3 { font-size: var(--step-0); margin-bottom: .3rem; }
.values p { font-size: .95rem; }
.values > div { border-top: 3px solid var(--accent); padding-top: .9rem; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1.6rem; display: grid; gap: .7rem; align-content: start; min-width: 0; }
.service svg { width: 34px; height: 34px; color: var(--accent-text); }
.service h3 { font-size: var(--step-1); }
.service p { color: var(--muted); font-size: .95rem; }
.service-link { font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; margin-top: .3rem; }
.service ul { margin: .2rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; display: grid; gap: .2rem; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .5rem; align-content: start; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--accent); color: var(--ink); }
.steps h3 { font-size: var(--step-0); }
.steps p { color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta { background: var(--brand); color: var(--on-brand); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { font-size: var(--step-2); max-width: 32rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; }
.contact-info { display: grid; gap: 1.4rem; align-content: start; min-width: 0; }
.contact-info dl { margin: 0; display: grid; gap: 1.1rem; }
.contact-info dt { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-info dd { margin: .2rem 0 0; font-weight: 500; overflow-wrap: anywhere; }
.placeholder { background: color-mix(in srgb, var(--accent) 22%, transparent); padding: 0 .3rem; border-radius: 3px; }
form.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: var(--surface); border-radius: 10px; padding: 1.8rem; min-width: 0; }
form.contact .full { grid-column: 1 / -1; }
form.contact label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; }
form.contact input, form.contact select, form.contact textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .7rem .8rem; width: 100%; }
form.contact textarea { min-height: 7rem; resize: vertical; }
.form-status { font-size: .9rem; color: var(--muted); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { form.contact { grid-template-columns: 1fr; padding: 1.2rem; } }

/* Header: current page */
nav.main a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 820px) { nav.main a[aria-current="page"] { box-shadow: none; color: var(--accent-text); } }
@media (max-width: 1000px) and (min-width: 821px) { nav.main { gap: 1.1rem; } nav.main a { font-size: .92rem; } }

/* Inner page hero */
.page-hero { padding-block: 3.2rem 3.4rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 1rem; }
.page-hero h1 { font-size: var(--step-4); letter-spacing: -.02em; max-width: 46rem; }
.page-hero .lead { font-size: var(--step-1); color: var(--muted); max-width: 44rem; }
.page-hero .hero-actions { margin-top: .4rem; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Business cards as links */
.service .more { margin-top: auto; padding-top: .6rem; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.service .more:hover { text-decoration: underline; text-underline-offset: 3px; }
a.service-card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.service-card:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Feature grid (inner pages) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.2rem; }
.feature { display: grid; gap: .45rem; align-content: start; min-width: 0; border-top: 3px solid var(--accent); padding-top: 1rem; }
.feature h3 { font-size: var(--step-1); }
.feature p { color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Two-column prose + aside */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.split > * { min-width: 0; }
.prose { display: grid; gap: 1rem; max-width: 40rem; }
.prose h2 { font-size: var(--step-3); }
.prose p { color: var(--muted); }
.fact-box { background: var(--brand); color: var(--on-brand); border-radius: 10px; padding: 1.8rem; display: grid; gap: 1rem; }
.fact-box h2, .fact-box h3 { font-size: var(--step-1); }
.fact-box dl { margin: 0; display: grid; gap: .9rem; }
.fact-box dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-brand-muted); }
.fact-box dd { margin: .15rem 0 0; font-weight: 500; overflow-wrap: anywhere; }
.fact-box a { color: var(--accent); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.tags li { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: .35rem .85rem; font-size: .9rem; font-weight: 500; }

/* FAQ */
.faq { display: grid; gap: .8rem; max-width: 50rem; }
.faq details { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1.2rem 1.1rem; color: var(--muted); }

/* Footer */
footer.site { background: var(--brand); color: var(--on-brand-muted); font-size: .92rem; border-top: 1px solid color-mix(in srgb, var(--on-brand) 18%, transparent); }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; padding-block: 3.5rem 2rem; }
footer.site .brand-col { display: grid; gap: 1rem; align-content: start; }
footer.site .brand-col img { height: 54px; width: auto; }
footer.site h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-brand); margin-bottom: .8rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
footer.site a { color: var(--on-brand-muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
footer.site address { font-style: normal; display: grid; gap: .5rem; }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--on-brand) 18%, transparent); padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .85rem; }
@media (max-width: 900px) { footer.site .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer.site .wrap { grid-template-columns: 1fr; } }
footer.site .placeholder { color: var(--on-brand); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 20; font-weight: 600; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 8px); }
footer.site address br + a, footer.site address a { display: block; }
