/* ============================================================
   Oxfordshire AV — landing page styles
   Built on MOTION3 tokens (see design-system/colors_and_type.css)
   Mobile-first; everything sits inside a 402px iOS frame.
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #0b0f14;
  min-height: 100vh;
}

#root {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(1100px 700px at 30% 10%, rgba(0,66,105,0.35), transparent 60%),
    radial-gradient(900px 600px at 80% 90%, rgba(247,173,92,0.12), transparent 60%),
    #0b0f14;
}

/* ─────────────────────────────────────────────────────────────
   Page palette themes — applied to .oav-page root
   ───────────────────────────────────────────────────────────── */

.oav-page {
  --bg: var(--m3-ink);
  --bg-2: #14202a;
  --surface: var(--m3-navy);
  --fg: var(--m3-off-white);
  --fg-muted: var(--m3-mist);
  --accent: var(--m3-orange);
  --accent-deep: var(--m3-orange-deep);
  --rule: rgba(255,255,255,0.10);
  --rule-strong: rgba(255,255,255,0.22);
  --chip-bg: rgba(255,255,255,0.06);

  background: var(--bg);
  color: var(--fg);
  font-family: var(--m3-font-sans);
  width: 100%;
  min-height: 100%;
}
.oav-page[data-view="Phone"] { overflow-x: hidden; }

.oav-page[data-palette="Navy + Aqua"] {
  --bg: var(--m3-navy);
  --bg-2: #013855;
  --surface: var(--m3-ink);
  --accent: var(--m3-aqua);
  --accent-deep: #3b7e9c;
}

.oav-page[data-palette="Pure Black"] {
  --bg: #0a0c0f;
  --bg-2: #131820;
  --surface: #1a212a;
  --accent: var(--m3-orange);
  --accent-deep: var(--m3-orange-deep);
}

.oav-page[data-palette="Inverted Light"] {
  --bg: var(--m3-off-white);
  --bg-2: #ffffff;
  --surface: var(--m3-ink);
  --fg: var(--m3-ink);
  --fg-muted: #3c4a57;
  --accent: var(--m3-navy);
  --accent-deep: var(--m3-navy-deep);
  --rule: rgba(29,37,46,0.10);
  --rule-strong: rgba(29,37,46,0.20);
  --chip-bg: rgba(29,37,46,0.04);
}

/* ─────────────────────────────────────────────────────────────
   Type — overrides for the dark contexts dominate the page.
   The design system has .m3-on-dark, but we're driving via vars
   so colour inversion is automatic.
   ───────────────────────────────────────────────────────────── */

.oav-page h1, .oav-page h2, .oav-page h3, .oav-page h4 { color: var(--fg); }
.oav-page p { color: var(--fg-muted); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

/* ─────────────────────────────────────────────────────────────
   Section + container scaffolding
   ───────────────────────────────────────────────────────────── */

.section {
  padding: 56px 24px;
  position: relative;
}
.section--tight { padding: 40px 24px; }
.section--alt { background: var(--bg-2); }
.section--accent {
  background: var(--accent);
  color: var(--m3-ink);
}
.section--accent .eyebrow { color: var(--m3-ink); opacity: 0.7; }
.section--accent h2, .section--accent h3, .section--accent p { color: var(--m3-ink); }

.section-rule {
  height: 1px;
  background: var(--rule);
  margin: 0 24px;
}

/* ─────────────────────────────────────────────────────────────
   Top bar — mobile tap-to-call strip (hidden on desktop)
   ───────────────────────────────────────────────────────────── */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 34px;
  background: #0d1820;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 20px;
}
.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-decoration: none;
}
.top-bar-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   Nav (sticky brand bar)
   ───────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.brand {
  font-family: var(--m3-font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.brand-oxford {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.brand-rule {
  width: 1px;
  height: 14px;
  flex-shrink: 0;
  background: rgba(247,173,92,0.38);
}
.brand-av {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--m3-ink);
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
}
.oav-page[data-palette="Inverted Light"] .nav-cta { color: var(--m3-off-white); }

/* Hidden on mobile — shown in desktop media query */
.nav-meta  { display: none; }
.nav-links { display: none; }

.nav-about {
  display: none;
}

/* ─────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--m3-font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--m3-dur-base) var(--m3-ease-out),
              color var(--m3-dur-base) var(--m3-ease-out);
}
.btn-primary {
  background: var(--accent);
  color: var(--m3-ink);
}
.oav-page[data-palette="Inverted Light"] .btn-primary { color: var(--m3-off-white); }
.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--rule-strong);
}
.btn-ghost:hover { background: var(--chip-bg); }

.btn-block { width: 100%; display: flex; }
