/* Cools Advisory — website MVP styles
   Plain CSS, no build step. Design tokens live in :root.
   Palette: near-white surfaces, slate text, single calm teal accent. */

:root {
  --bg: #ffffff;
  --bg-alt: #f1f5f9;          /* slate-100 */
  --surface: #ffffff;
  --text: #0f172a;            /* slate-900 */
  --muted: #475569;           /* slate-600 (AA on white) */
  --accent: #0d9488;          /* teal-600 */
  --accent-dark: #0f766e;     /* teal-700 (hover) */
  --accent-soft: #ccfbf1;     /* teal-100 */
  --border: #e2e8f0;          /* slate-200 */
  --danger: #b91c1c;          /* red-700 for "do not" marks */

  --maxw: 1080px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .75rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent-dark); }

img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}
.brand-name { font-size: 1.05rem; }

.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
}
.primary-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-nav { padding: .6rem 1rem; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 60ch; font-size: 1.075rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 .5rem;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-inner { max-width: 820px; }
.hero-sub { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.hero-note { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Card grids ---------- */
.card-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--text); }
.card p { color: var(--muted); margin: 0; }

/* ---------- Services ---------- */
.services .service { display: flex; flex-direction: column; position: relative; }
.service .price {
  color: var(--accent-dark);
  font-weight: 700;
  margin: 0 0 .6rem;
  font-size: 1.05rem;
}
.service .meta {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--muted);
  font-size: .9rem;
}
.badge {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .25rem .6rem;
  border-radius: 999px;
  margin-bottom: .6rem;
}

.addon {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.addon h3 { margin: 0 0 .3rem; }
.addon p { color: var(--muted); margin: 0; }
.addon-price { color: var(--accent-dark); font-weight: 700; white-space: nowrap; }

/* ---------- Split (do / don't) ---------- */
.split {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 1.75rem;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.panel h3 { margin-top: 0; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.panel li { position: relative; padding-left: 1.9rem; color: var(--text); }
.ticks li::before,
.crosses li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}
.ticks li::before { content: "✓"; color: var(--accent); }
.crosses li::before { content: "✕"; color: var(--danger); }
.panel-do { border-top: 3px solid var(--accent); }
.panel-dont { border-top: 3px solid var(--danger); }

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.checklist li {
  position: relative;
  padding: .9rem 1rem .9rem 2.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: .9rem;
  color: var(--accent);
  font-weight: 800;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  margin-bottom: .75rem;
}
.step h3 { margin: 0 0 .35rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.section-contact { background: var(--bg-alt); }
.contact-inner { max-width: 680px; }
.contact-inner .btn { margin: 1.25rem 0 .75rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; }
.footer-meta { color: var(--muted); margin: 0; display: inline-flex; gap: .6rem; flex-wrap: wrap; font-size: .95rem; }
.footer-meta a { color: var(--accent-dark); }

/* ---------- Responsive: mobile nav ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    transform: translateY(-120%);
    transition: transform .25s ease;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .primary-nav a { padding: .6rem .25rem; display: block; }
  .btn-nav { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
