/* Applied Oversight — site-level layout (page structure only; all component
   styling lives in the design system: styles.css → tokens/ + system.css).
   Static build 2026-07-10. Theme: LIGHT default (owner decision); dark via toggle. */

/* ---------- Layout primitives (mirrors shared.jsx) ---------- */
.container { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.container--wide { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.section { padding: 64px 0; }
.section--flush-top { padding-top: 0; }
/* NOTE: top/bottom only — a shorthand "76px 0" here would wipe the container's side padding */
.hero { padding-top: 76px; padding-bottom: 64px; }
.cta-band { padding-top: 64px; padding-bottom: 64px; text-align: center; }
.panel { background: var(--card); border: 1px solid var(--rule); padding: 32px 28px; }
.rule-top { border-top: 1px solid var(--rule); padding-top: 48px; }

/* Navy band (ghost grid pinned in BOTH themes) */
.band { background: var(--navy); background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: var(--ghost-grid-size, 28px 28px); color: #E7ECF4; }
.band h1, .band h2 { color: #FFFFFF; }
.band .ao-eyebrow { color: var(--mist); }
.band .lead { color: #C7D2E2; }

/* ---------- Type helpers (mirrors shared.jsx primitives) ---------- */
.h1 { margin: 0; font-size: clamp(2rem, 1.4rem + 2.6vw, 2.5rem); font-weight: var(--fw-bold); letter-spacing: -0.01em; line-height: 1.12; color: var(--ink); text-wrap: balance; }
.h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.3vw, 1.75rem); font-weight: var(--fw-semibold); line-height: 1.2; color: var(--ink); text-wrap: balance; }
.h3 { margin: 0 0 4px; font-size: 1.1875rem; font-weight: var(--fw-semibold); color: var(--ink); }
.lead { margin: 16px 0 0; font-size: 1.0625rem; line-height: 1.65; color: var(--body); max-width: 62ch; }
.prose { margin: 12px 0 0; font-size: var(--fs-body); line-height: 1.65; color: var(--body); max-width: 65ch; }
.fineprint { margin: 24px 0 0; font-size: 0.84375rem; line-height: 1.55; color: var(--secondary); max-width: 65ch; }
.eyebrow-gap { margin-bottom: 14px; }
.arrow-link { font-size: 0.9375rem; font-weight: var(--fw-semibold); color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.band .arrow-link { color: #FFFFFF; border-bottom-color: #4C6288; }
.arrow-link:hover { color: var(--gold); }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 28px; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.row-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.field-group { margin-top: 24px; }
.field-group__label { font-size: 0.9375rem; font-weight: var(--fw-semibold); color: var(--ink); margin-bottom: 10px; }

/* Services tier rows */
.tier { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--rule); }
.tier:last-of-type { border-bottom: 1px solid var(--rule); }
.tier__n { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); padding-top: 4px; }
.tier__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tier__title { margin: 0; font-size: 1.375rem; font-weight: var(--fw-semibold); color: var(--ink); }

/* ---------- The mark (construction per Brand Sheet: 8.5% stroke, 3×4 grid, gold r2c3)
   Whole-pixel dimensions only — fractional sizes rasterize unevenly across zoom levels. */
.mark { width: 44px; height: 44px; flex: none; border: 4px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.mark-cells { display: grid; grid-template-columns: repeat(3, 4px); grid-auto-rows: 4px; gap: 2px; }
.mark-cells span { background: var(--ink); }
.mark-cells .gold { background: var(--gold); }
.ao-footer .mark { border-color: #FFFFFF; }
.ao-footer .mark-cells span { background: #FFFFFF; }
.ao-footer .mark-cells .gold { background: var(--gold); }

/* ---------- Buttons rendered as links ----------
   The design system styles <button>; the site's CTAs are <a>. Kill the default
   link underline and stop the global a:hover gold recolor from swallowing the
   label (gold-on-gold). Never gold text. */
a.ao-btn { text-decoration: none; }
a.ao-btn--primary, a.ao-btn--primary:hover { color: #FFFFFF; }
a.ao-btn--secondary, a.ao-btn--secondary:hover { color: var(--accent-ink); }
a.ao-btn--tertiary, a.ao-btn--tertiary:hover { color: var(--body); }

/* ---------- Header / lockup / nav ---------- */
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { font-size: 1.1875rem; font-weight: var(--fw-semibold); color: var(--ink); letter-spacing: 0; }
.nav-burger { display: none; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #fff; font-weight: 700; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Footer ---------- */
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; justify-content: space-between; }
.footer-desc { margin: 14px 0 0; font-size: var(--fs-body); line-height: 1.6; color: var(--mist); max-width: 34ch; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.9375rem; font-weight: var(--fw-semibold); text-decoration: none; }
.footer-legal { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.18); font-size: 0.8125rem; line-height: 1.6; color: var(--mist); text-align: center; }
.footer-legal a { color: #FFFFFF; text-decoration: none; }
.footer-legal a:hover { color: var(--gold); }

/* Email links: no underline (owner call); gold hover keeps the affordance */
a[href^="mailto:"] { text-decoration: none; }

/* Checklist, made bulletproof: absolute-positioned square instead of the design
   system's grid, so arbitrary inline content (<strong>, <em>, links) can never
   fracture into one-word columns. Overrides system.css (this file loads later). */
.ao-checklist li { display: block; position: relative; padding-left: 28px; }
.ao-checklist li::before { position: absolute; left: 0; top: 6px; margin-top: 0; }
.ao-checklist li > span { display: inline; }

/* Grouped footer columns (replaces the single vertical list, 2026-07-11) */
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-eyebrow { margin: 0 0 4px; font-size: 10.5px; font-weight: var(--fw-semibold); letter-spacing: 0.24em; text-transform: uppercase; color: var(--mist); }
.footer-col a { font-size: 0.9375rem; font-weight: var(--fw-semibold); color: #FFFFFF; text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-col a[href^="mailto:"] { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 400; }

/* ---------- Form success/notice blocks ---------- */
[hidden] { display: none !important; }
.notice { margin-top: 20px; }

/* ---------- Booking modal (in-house; Calendly iframe injected on open) ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10, 34, 71, 0.72); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { position: relative; width: min(960px, 100%); height: min(780px, 90vh); background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.modal__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.modal__title { font: var(--fw-semibold) 0.9375rem var(--font-sans); color: var(--ink); }
.modal__frame { flex: 1; background: #FFFFFF; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* Burger: quiet navy-outline square, brand-consistent (no grey fill box) */
  .nav-burger {
    display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
    font-family: var(--font-sans); font-size: 0.8125rem; font-weight: var(--fw-bold);
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink); background: transparent; border: 1.5px solid var(--ink); cursor: pointer;
  }
  .ao-nav { display: none; }
  /* Menu panel: the brand's navy-band world — ghost grid, left-aligned display links, hairline dividers */
  .ao-nav.open {
    display: flex; position: fixed; inset: 0; z-index: 50;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 96px 28px 40px;
    background: var(--navy);
    background-image:
      linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    overflow-y: auto;
  }
  .ao-nav.open .ao-navlink {
    color: #FFFFFF; font-family: var(--font-sans); font-size: 1.75rem; font-weight: var(--fw-semibold);
    padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.14); width: 100%;
  }
  .ao-nav.open .ao-navlink:first-of-type { border-top: 1px solid rgba(255,255,255,0.14); }
  .ao-nav.open .ao-navlink--active { border-bottom: 3px solid var(--gold); }
  .ao-nav.open .ao-theme-toggle {
    margin-top: 32px; align-self: flex-start;
    background: transparent; border-color: rgba(255,255,255,0.5); color: #FFFFFF;
  }
  .ao-nav.open .ao-btn--primary { margin-top: 16px; width: 100%; }
  .ao-nav.open .nav-close {
    display: inline-flex; position: absolute; top: 20px; right: 24px;
    color: #FFFFFF; background: transparent; border-color: rgba(255,255,255,0.5);
  }
}
@media (min-width: 901px) { .nav-close { display: none; } }
@media (max-width: 900px) {
  .ao-header { padding: 12px 20px; }
}
@media (max-width: 560px) {
  .container, .container--wide { padding: 0 20px; }
  .grid-form { grid-template-columns: 1fr; gap: 16px; }
  .tier { grid-template-columns: 1fr; gap: 8px; }
  .hero { padding-top: 56px; padding-bottom: 48px; }
  .cta-band { padding-top: 56px; padding-bottom: 56px; }
  /* Header must never overflow a phone: smaller mark (whole pixels), tighter wordmark */
  .mark { width: 36px; height: 36px; border-width: 3px; }
  .mark-cells { grid-template-columns: repeat(3, 3px); grid-auto-rows: 3px; gap: 2px; }
  .brand-name { font-size: 1rem; }
  /* Vertical rhythm: 64px sections read as chasms on a phone */
  .section { padding: 48px 0; }
  .cta-band { padding: 48px 0; }
  .panel { padding: 20px 16px; }
  .grid-stats { grid-template-columns: 1fr 1fr; }
}
