/* ==========================================================================
   AGAM Bookkeeping and Tax Services — stylesheet
   --------------------------------------------------------------------------
   BRAND COLORS: taken from the official AGAM logo (brand blue #0067B2).
   Navy, hover and accent shades are derived from the same hue. Everything
   else in this file uses these tokens.
   ========================================================================== */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/public-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand — from the AGAM logo */
  --brand: #0067b2;       /* exact logo blue */
  --navy: #0a3358;        /* headings, CTA band (deep shade of the logo blue) */
  --blue: var(--brand);   /* primary buttons, links */
  --blue-dark: #00508c;   /* hover / pressed */
  --accent: #2f86c9;      /* lighter logo blue: icons and decorative lines only */
  --accent-soft: #9cc8ea; /* second wave line */

  /* Neutrals */
  --white: #ffffff;
  --surface: #f4f7fa;     /* alternating sections */
  --surface-2: #e9eff5;
  --line: #d9e1e9;        /* borders */
  --text: #1c2733;
  --text-muted: #4e5d6c;
  --blue-tint: #e8f1f9;
  --accent-tint: #e8f1f9;
  --warn-bg: #fff7e0;
  --warn-line: #e9c96a;
  --warn-text: #5c4300;
  --error: #b42318;
  --success-bg: #e8f5ee;
  --success-text: #135c36;

  /* Type */
  --font: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.4vw, 1.25rem);
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.75rem, 3vw, 2.25rem);
  --fs-h1: clamp(2.25rem, 4.6vw, 3.5rem);

  /* Space (8px scale) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;    --s-8: 4.5rem; --s-9: 6rem;

  /* Shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15, 42, 74, 0.06), 0 8px 24px -12px rgba(15, 42, 74, 0.18);

  --container: 72rem;
  --header-h: 5rem;
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--blue);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 var(--s-4); font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lead { font-size: var(--fs-lead); color: var(--text-muted); max-width: 40rem; }
.icon { width: 1.5rem; height: 1.5rem; flex: none; }
.icon-sm { width: 1.125rem; height: 1.125rem; }
.icon-xs { width: 1rem; height: 1rem; }
.placeholder, .placeholder-block {
  background: var(--warn-bg); color: var(--warn-text); border: 1px dashed var(--warn-line);
  border-radius: 4px; padding: 0 0.3em; font-size: 0.92em;
}
.placeholder-block { display: block; padding: var(--s-3) var(--s-4); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: var(--s-3); color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 2.875rem; padding: 0.7rem 1.35rem;
  font: inherit; font-weight: 600; font-size: var(--fs-sm); line-height: 1.2;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-sm { min-height: 2.5rem; padding: 0.55rem 1rem; }
.btn-lg { min-height: 3.25rem; padding: 0.85rem 1.6rem; font-size: var(--fs-base); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-outline { background: transparent; color: var(--blue); border-color: currentColor; }
.btn-outline:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--blue-tint); color: var(--navy); }
.cta-band .btn-light { color: var(--brand); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; border-radius: 4px; }
.brand img { height: 3.6rem; width: auto; }
.site-nav { display: flex; align-items: center; gap: var(--s-5); margin-left: auto; }
.nav-list { display: flex; list-style: none; gap: var(--s-1); }
.nav-list a {
  display: block; padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; font-size: var(--fs-sm); text-decoration: none;
}
.nav-list a:hover { color: var(--navy); background: var(--surface); }
.nav-list a[aria-current="page"] { color: var(--navy); font-weight: 650; box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav-actions { display: flex; align-items: center; gap: var(--s-4); }
.lang-switch { display: flex; align-items: center; gap: var(--s-1); font-size: var(--fs-sm); color: var(--line); }
.lang-switch a {
  padding: var(--s-1) var(--s-2); border-radius: 4px; color: var(--text-muted);
  font-weight: 600; text-decoration: none; letter-spacing: 0.02em;
}
.lang-switch a:hover { color: var(--navy); background: var(--surface); }
.lang-switch a[aria-current="true"] { color: var(--navy); background: var(--blue-tint); }
.nav-toggle {
  display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--navy); cursor: pointer;
}
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--s-4);
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: var(--s-4) clamp(1.25rem, 4vw, 2rem) var(--s-5);
    box-shadow: 0 16px 24px -16px rgba(15, 42, 74, .25);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .site-nav.is-open { display: flex; }
  .js .nav-list { flex-direction: column; }
  .js .nav-list a { padding: var(--s-3) var(--s-2); font-size: var(--fs-base); border-bottom: 1px solid var(--surface-2); border-radius: 0; }
  .js .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); padding-left: var(--s-4); }
  .js .nav-actions { justify-content: space-between; }
  .js .nav-actions .btn { flex: 1; max-width: 16rem; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-alt { background: var(--surface); }
.section-head { max-width: 40rem; margin-bottom: var(--s-7); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lead); }

.page-header { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-header .lead { margin-bottom: 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4.5rem, 9vw, 7.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: var(--s-5); }
.hero-note { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-5) 0 0; color: var(--text-muted); font-size: var(--fs-sm); }
.hero-note .icon { color: var(--accent); }
.wave { position: absolute; left: 0; width: 100%; height: 48px; pointer-events: none; }
.wave-hero { bottom: 0; opacity: .9; }

/* The ledger — the page's one signature element */
.ledger {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ledger-head {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--navy); color: var(--white);
  padding: var(--s-4) var(--s-5); font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.01em;
}
.ledger-head::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent); box-shadow: 1rem 0 0 rgba(255,255,255,.35); margin-right: 1rem; }
.ledger-rows { list-style: none; }
.ledger-rows li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-3);
  min-height: 3.5rem; padding: 0 var(--s-5);
  border-bottom: 1px solid var(--surface-2);
}
.ledger-rows li:last-child { border-bottom: 0; }
.ledger-tick {
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent);
}
.ledger-tick .icon { width: 1rem; height: 1rem; stroke-width: 2.25; }
.ledger-item { font-weight: 550; color: var(--text); }
.ledger-tag {
  font-size: 0.8125rem; font-weight: 600; color: var(--blue);
  background: var(--blue-tint); border-radius: 999px; padding: 0.15rem 0.65rem;
}
@media (prefers-reduced-motion: no-preference) {
  .ledger-rows li { opacity: 0; transform: translateY(6px); animation: ledger-in .45s ease-out forwards; }
  .ledger-rows li:nth-child(1) { animation-delay: .15s; }
  .ledger-rows li:nth-child(2) { animation-delay: .3s; }
  .ledger-rows li:nth-child(3) { animation-delay: .45s; }
  .ledger-rows li:nth-child(4) { animation-delay: .6s; }
  .ledger-rows li:nth-child(5) { animation-delay: .75s; }
  @keyframes ledger-in { to { opacity: 1; transform: none; } }
}

/* ---------- home: categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.category-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue);
  border-radius: var(--radius); padding: var(--s-6) var(--s-5) var(--s-5);
  transition: border-color .15s;
}
.category-card:hover { border-color: var(--blue); }
.category-card:focus-within { box-shadow: var(--focus); }
.category-icon {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; flex: none;
  border-radius: var(--radius-sm); background: var(--blue-tint); color: var(--blue); margin-bottom: var(--s-4);
}
.category-card h3 a { color: var(--navy); text-decoration: none; }
.category-card h3 a:focus-visible { box-shadow: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.category-card > p { color: var(--text-muted); }
.category-examples { list-style: none; margin: var(--s-2) 0 var(--s-5); border-top: 1px solid var(--surface-2); }
.category-examples li { padding: var(--s-2) 0; border-bottom: 1px solid var(--surface-2); font-size: var(--fs-sm); }
.category-more { margin-top: auto; font-weight: 600; font-size: var(--fs-sm); color: var(--blue); }
.category-card:hover .category-more { text-decoration: underline; }

/* ---------- home: why ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.why-intro p { color: var(--text-muted); font-size: var(--fs-lead); }
.why-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.why-list li { display: flex; gap: var(--s-4); }
.why-icon { color: var(--accent); padding-top: 2px; flex: none; }
.why-list h3 { margin-bottom: var(--s-1); font-size: 1.0625rem; }
.why-list p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- reviews ---------- */
.review-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--s-5); }
.review { margin: 0; padding: var(--s-5); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.review blockquote { margin: 0 0 var(--s-3); }
.review figcaption { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #e6f0f9; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: var(--s-2); max-width: 30ch; }
.cta-band p { margin: 0; max-width: 46ch; }

/* ---------- services page ---------- */
.jump-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.jump-nav a {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-4); border: 1px solid var(--line); border-radius: 999px;
  color: var(--navy); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; background: var(--white);
}
.jump-nav a:hover { border-color: var(--blue); color: var(--blue); }
.jump-nav .icon { color: var(--accent); }
.category-head { display: flex; gap: var(--s-5); align-items: flex-start; max-width: 46rem; margin-bottom: var(--s-6); }
.category-head .category-icon { margin: 0.25rem 0 0; }
.category-icon .icon { width: 1.5rem; height: 1.5rem; }
.category-head p { color: var(--text-muted); font-size: var(--fs-lead); margin: 0; }
.service-list { border-top: 2px solid var(--navy); }
.service {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: var(--s-5) var(--s-6);
  align-items: start; padding: var(--s-6) 0; border-bottom: 1px solid var(--line);
}
.service h3 { margin-bottom: var(--s-2); }
.service-main p { margin: 0; color: var(--text-muted); }
.service-benefits ul { list-style: none; display: grid; gap: var(--s-2); }
.service-benefits li { display: flex; gap: var(--s-2); font-size: var(--fs-sm); }
.service-benefits .icon { color: var(--accent); margin-top: 0.2rem; stroke-width: 2.25; }
.service-action { padding-top: 0.15rem; }
.notice {
  display: flex; gap: var(--s-3); align-items: flex-start; max-width: 52rem;
  background: var(--blue-tint); color: var(--navy); border-radius: var(--radius-sm);
  padding: var(--s-4) var(--s-5); font-size: var(--fs-sm); margin-bottom: var(--s-6);
}
.notice .icon { margin-top: 0.15rem; color: var(--blue); }
.notice-setup { background: var(--warn-bg); color: var(--warn-text); border: 1px dashed var(--warn-line); }
.notice-setup .icon { color: var(--warn-text); }
.footnote { margin: var(--s-5) 0 0; font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.prose { max-width: 42rem; }
.prose p { color: var(--text); }
.serve-card { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: var(--s-5); }
.serve-card h2 { font-size: 1.25rem; }
.serve-card ul { list-style: none; display: grid; gap: var(--s-3); }
.serve-card li { display: flex; gap: var(--s-3); align-items: flex-start; }
.serve-card .icon { color: var(--accent); margin-top: 0.3rem; stroke-width: 2.25; }
.approach-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.approach-grid li { border-top: 2px solid var(--navy); padding-top: var(--s-4); }
.approach-grid p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.steps li { counter-increment: step; position: relative; padding-top: 3.75rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 2px solid var(--blue); color: var(--blue); font-weight: 700; background: var(--white);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.375rem; left: 3.25rem; right: calc(-1 * var(--s-5) + 0.5rem);
  height: 2px; background: var(--line);
}
.steps p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

/* Mission & vision: the logo's own look (white on brand blue) for the mission */
.mission-vision { padding-top: 0; }
.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.mv-card { position: relative; border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); overflow: hidden; }
.mv-card p { margin: 0; font-size: var(--fs-lead); line-height: 1.6; }
.mv-label { display: inline-flex; align-items: center; gap: var(--s-3); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.01em; margin-bottom: var(--s-4); }
.mv-label::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; }
.mv-mission { background: var(--brand); color: #fff; }
.mv-mission .mv-label { color: #cfe3f4; }
.mv-mission::after { content: ""; position: absolute; right: -5.5rem; bottom: -6rem; width: 11rem; height: 11rem; border: 2px solid rgba(255,255,255,.18); pointer-events: none; border-radius: 50%; border-right-color: transparent; transform: rotate(-30deg); }
.mv-vision { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--brand); color: var(--text); }
.mv-vision .mv-label { color: var(--brand); }
@media (max-width: 860px) { .mv-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-list { border-top: 2px solid var(--navy); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-5) 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { color: var(--blue); }
.faq-q { font-size: 1.0625rem; font-weight: 650; color: var(--navy); }
.faq-marker { position: relative; width: 1.5rem; height: 1.5rem; flex: none; border-radius: 50%; background: var(--blue-tint); }
.faq-marker::before, .faq-marker::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--blue);
  transform: translate(-50%, -50%); transition: transform .2s;
}
.faq-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-marker::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 2.5rem var(--s-5) 0; color: var(--text-muted); }
.faq-a p { margin: 0; max-width: 46rem; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 2rem); background: var(--surface); border-radius: var(--radius); padding: var(--s-5); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-form fieldset.field { margin-bottom: var(--s-5); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); }
.field { margin-bottom: var(--s-5); }
.field > label, .choice-group legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: var(--s-2); font-size: var(--fs-sm); padding: 0; }
.req, .opt { font-weight: 400; color: var(--text-muted); font-size: 0.8125rem; }
.hint { font-size: 0.875rem; color: var(--text-muted); margin: calc(-1 * var(--s-1)) 0 var(--s-2); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--white); border: 1.5px solid #b7c3cf; border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem; min-height: 3rem;
  transition: border-color .15s;
}
textarea { resize: vertical; min-height: 9rem; }
select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a3358' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1.1rem; }
input:hover, select:hover, textarea:hover { border-color: var(--navy); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 103, 178, .25); border-radius: var(--radius-sm); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.875rem; font-weight: 500; margin: var(--s-2) 0 0; }
.choices { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.choice { display: flex; align-items: flex-start; gap: var(--s-2); cursor: pointer; font-size: var(--fs-sm); font-weight: 400; color: var(--text); }
.choice input { width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--blue); flex: none; }
.field-consent { padding-top: var(--s-2); }
.field > label.choice { display: flex; font-weight: 400; color: var(--text); font-size: var(--fs-sm); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: var(--s-5); min-height: 65px; }
.form-status { border-radius: var(--radius-sm); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); font-weight: 500; }
.form-status.is-success { background: var(--success-bg); color: var(--success-text); }
.form-status.is-error { background: #fdecea; color: var(--error); }
.contact-aside { display: grid; gap: var(--s-5); }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); }
.info-card h2, .sensitive-card h2 { font-size: 1.125rem; }
.info-list { margin: 0; display: grid; gap: var(--s-4); }
.info-list > div { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-3); }
.info-list .icon { grid-row: span 2; color: var(--accent); width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; }
.info-list dt { font-size: 0.8125rem; color: var(--text-muted); font-weight: 600; }
.info-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.sensitive-card { background: var(--surface); border-radius: var(--radius); padding: var(--s-5); }
.sensitive-card h2 { display: flex; gap: var(--s-2); align-items: flex-start; }
.sensitive-card h2 .icon { color: var(--blue); margin-top: 0.2rem; }
.sensitive-card p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- social links ---------- */
.social-links { list-style: none; display: grid; gap: var(--s-2); margin: var(--s-1) 0 0; }
.social-links a { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500; }
.social-links .icon { color: var(--accent); }
.social-logo { width: 1.25rem; height: 1.25rem; object-fit: contain; flex: none; }
.social-handle { color: var(--text-muted); font-weight: 400; font-size: 0.875rem; }
.site-footer .social-links a { color: var(--text); }

/* ---------- legal ---------- */
.draft-banner {
  display: flex; gap: var(--s-3); align-items: flex-start; max-width: 46rem;
  background: var(--warn-bg); color: var(--warn-text); border: 1px dashed var(--warn-line);
  border-radius: var(--radius-sm); padding: var(--s-4) var(--s-5); font-size: var(--fs-sm); font-weight: 500;
}
.draft-banner .icon { margin-top: 0.15rem; }
.updated { color: var(--text-muted); font-size: var(--fs-sm); margin: var(--s-4) 0 0; }
.legal h2 { font-size: 1.25rem; margin-top: var(--s-6); }
.legal h2:first-child { margin-top: 0; }

/* ---------- 404 ---------- */
.notfound { text-align: left; }
.notfound-alt { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.notfound-alt h2 { font-size: 1.5rem; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--surface); border-top: 1px solid var(--line); padding-top: var(--s-8); color: var(--text-muted); font-size: var(--fs-sm); }
.wave-footer { top: -1px; opacity: .55; height: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: var(--s-6); padding-bottom: var(--s-7); }
.footer-brand img { height: 4.5rem; width: auto; margin-bottom: var(--s-4); }
.footer-name { font-weight: 650; color: var(--navy); margin-bottom: var(--s-2); }
.footer-heading { font-size: 0.9375rem; margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; display: grid; gap: var(--s-2); }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.footer-contact { margin: 0; display: grid; gap: var(--s-3); }
.footer-contact dt { font-size: 0.8125rem; font-weight: 600; }
.footer-contact dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-5);
  border-top: 1px solid var(--line); padding-block: var(--s-5); font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }
.site-footer .footer-legal { display: flex; gap: var(--s-5); }
.footer-note { flex-basis: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: 1fr; max-width: 40rem; }
  .why-grid, .about-grid, .contact-grid, .faq-wrap { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .approach-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
  .steps li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .service-action { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ledger { max-width: 28rem; }
}
@media (max-width: 640px) {
  .why-list, .approach-grid, .steps, .form-row, .footer-grid, .service { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .cta-inner .btn { width: 100%; }
  .ledger-rows li { padding: 0 var(--s-4); }
  .ledger-tag { display: none; }
  .brand img { height: 2.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .wave, .nav-toggle { display: none !important; }
  a { color: inherit; }
}
