/* ============================================================
   e-NABLE Atlanta — styles
   BRAND COLORS: change these variables once your palette is final.
   Keep text/background contrast at 4.5:1 or higher (check at
   https://webaim.org/resources/contrastchecker/).
   ============================================================ */
:root {
  --brand: #0e5a66;        /* deep teal — headers, primary buttons */
  --brand-dark: #093f48;
  --brand-tint: #e6f2f3;
  --accent: #c2410c;       /* warm orange — Donate, highlights */
  --accent-dark: #9a3412;
  --ink: #1c2526;          /* body text */
  --muted: #4d5b5d;
  --line: #d5dfe0;
  --bg: #ffffff;
  --bg-soft: #f6f8f8;
  --radius: 12px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;      /* 18px — easier reading */
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; color: var(--brand-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.small { font-size: .95rem; }
.muted { color: var(--muted); }
.plain { list-style: none; padding: 0; }

/* Skip link & banner */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand-dark); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }
.prelaunch { background: #fff4d6; color: #5c4400; text-align: center; padding: .4rem 1rem; font-size: .95rem; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--brand-dark); font-size: 1.25rem; }
.brand:hover { color: var(--brand-dark); }
.menu-toggle { display: none; font: inherit; font-weight: 600; background: none; border: 2px solid var(--brand); color: var(--brand); border-radius: 8px; padding: .4rem .9rem; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.lang-switch { font-weight: 600; font-size: 1rem; }

@media (max-width: 1060px) {
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav-actions { justify-content: space-between; padding-top: 1rem; }
}

/* Buttons */
.btn { display: inline-block; font-weight: 600; font-size: 1rem; text-decoration: none; padding: .75rem 1.25rem; border-radius: 999px; border: 2px solid transparent; text-align: center; line-height: 1.3; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: var(--brand-tint); }
.btn-disabled { background: var(--bg-soft); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Sections */
.hero { background: linear-gradient(160deg, var(--brand-tint), #fff 70%); padding: 4.5rem 0 4rem; }
.hero p.lead { font-size: 1.3rem; max-width: 640px; color: var(--muted); }
.page-head { background: var(--brand-tint); padding: 3rem 0 2.5rem; margin-bottom: 2.5rem; }
.page-head p { font-size: 1.2rem; color: var(--muted); max-width: 680px; margin: 0; }
.section { padding: 3rem 0; }
.section-soft { background: var(--bg-soft); }
main { padding-bottom: 3rem; }
main:focus { outline: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; }

.notice { background: #fff8e6; border: 1px solid #f0d58a; border-left: 6px solid #d9a400; border-radius: 8px; padding: 1rem 1.25rem; }
.notice p:last-child { margin: 0; }
.callout { background: var(--brand-tint); border-radius: var(--radius); padding: 1.5rem; }

/* Device library */
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.device-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.device-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); }
.device-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.device-body h2 { font-size: 1.35rem; }
.device-meta { margin: 0 0 1rem; font-size: .95rem; display: grid; gap: .2rem; }
.device-meta div { display: flex; gap: .4rem; }
.device-meta dt { font-weight: 600; }
.device-meta dt::after { content: ":"; }
.device-meta dd { margin: 0; }
.device-actions { margin-top: auto; display: grid; gap: .6rem; }
.order-row { display: grid; gap: .6rem; }
.device-actions .small { margin: 0; }

/* Forms */
.form-embed iframe { border: 0; min-height: 600px; }

/* Prose (policy pages) */
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose li { margin-bottom: .4rem; }

/* Footer */
.site-footer { background: var(--brand-dark); color: #e3eeef; padding: 3rem 0 1rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.footer-brand { font-size: 1.3rem; color: #fff; margin-bottom: .4rem; }
.footer-head { font-weight: 700; color: #fff; margin-bottom: .4rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,.2); margin-top: 2rem; padding-top: 1rem; font-size: .9rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
