/*
  globals.css — Coastline Roofing Company
  ========================================
  Single source of truth: js/design.js applies tokens at runtime.
  The :root values below are fallbacks that match design.js exactly,
  so the page renders correctly even before design.js executes.
*/

/* ============================================================
   0. GOOGLE FONTS IMPORT
   Oswald: heading face — closest free match to Coastline logo wordmark
   Inter:  body face — clean readable companion
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap');


/* ============================================================
   1. CSS VARIABLES — Coastline Roofing palette
   Source: _starter-html/js/design.js
   ============================================================ */
:root {
  /* --- Brand Colors (from logo SVG #00AEEF) --- */
  --brand:              #00AEEF;       /* Logo cyan-blue */
  --brand-dark:         #008CC0;       /* Hover/active states */
  --brand-deep:         #00638A;       /* AA-contrast text on white */
  --brand-light:        #CDF0FC;       /* Tinted backgrounds, badge fills */
  --brand-pale:         #E9F8FE;       /* Subtle alt section backgrounds */
  --brand-secondary:    #0A1628;       /* Near-black ink with blue undertone */
  --brand-secondary-dk: #000000;       /* Pure logo black */
  --brand-tertiary:     #00638A;       /* Maps to brand-deep for legacy components */

  /* --- Text Colors --- */
  --text-primary:       #0A1628;       /* Headlines, nav */
  --text-body:          #3D4754;       /* Body copy */
  --text-muted:         #6B7585;       /* Captions, placeholders */
  --text-light:         #F5F9FC;       /* Text on dark backgrounds */

  /* --- Backgrounds --- */
  --bg-primary:         #FFFFFF;       /* Page surface */
  --bg-secondary:       #F5F9FC;       /* Alternating section */
  --bg-warm:            #E9F8FE;       /* Brand-pale accent strip */
  --bg-dark:            #0A1628;       /* Footer, dark CTA */

  /* --- UI --- */
  --border:             #D6E4EE;       /* Cards, dividers, inputs */
  --radius:             2px;           /* Badges, micro elements (sharp, matches logo) */
  --radius-md:          4px;           /* Inputs, dropdowns, small cards */
  --radius-lg:          6px;           /* Cards, modals */
  --radius-xl:          8px;           /* Hero overlays, large feature cards */
  --radius-pill:        6px;           /* All buttons (sharp pill, matches logo geometry) */

  /* --- Shadows (cool blue-black undertone, not warm gray) --- */
  --shadow-sm:          0 1px 2px 0 rgba(10, 22, 40, 0.04);
  --shadow:             0 4px 6px -1px rgba(10, 22, 40, 0.06), 0 2px 4px -2px rgba(10, 22, 40, 0.04);
  --shadow-lg:          0 10px 25px -5px rgba(10, 22, 40, 0.08), 0 8px 10px -6px rgba(10, 22, 40, 0.04);

  /* --- Typography --- */
  --font-heading:       'Oswald', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:          'Inter', system-ui, -apple-system, sans-serif;

  /* --- Spacing (8px grid) --- */
  --space-1:  0.5rem;    /*  8px */
  --space-2:  1rem;      /* 16px */
  --space-3:  1.5rem;    /* 24px */
  --space-4:  2rem;      /* 32px */
  --space-5:  2.5rem;    /* 40px */
  --space-6:  3rem;      /* 48px */
  --space-7:  3.5rem;    /* 56px */
  --space-8:  4rem;      /* 64px */
  --space-10: 5rem;      /* 80px */
  --space-12: 6rem;      /* 96px */
  --section-y: 5rem;     /* 80px — default section vertical padding */
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

/* Links on any dark-background section — use bright cyan so they're visible */
/* :not(.btn) ensures button colors are never overridden */
.bg-dark a:not(.btn),
.section-cta a:not(.btn),
.hero a:not(.btn),
.svc-final a:not(.btn),
.cta-band a:not(.btn) {
  color: var(--brand);
}

.bg-dark a:not(.btn):hover,
.section-cta a:not(.btn):hover,
.hero a:not(.btn):hover,
.svc-final a:not(.btn):hover,
.cta-band a:not(.btn):hover {
  color: var(--brand-light);
}

/* Headings and lead text on dark hero sections must be white —
   globals h1–h6 sets an explicit color that overrides inherited #fff.
   Note: .svc-hero is excluded because some service pages use a light bg;
   those pages handle their own h1 color via inline <style>. */
.about-hero h1, .about-hero h2, .about-hero .lead, .about-hero .eyebrow,
.faq-hero h1, .faq-hero h2, .faq-hero .lead, .faq-hero .eyebrow,
.contact-hero h1, .contact-hero h2, .contact-hero .lead, .contact-hero .eyebrow,
.area-hero h1, .area-hero h2, .area-hero .lead, .area-hero .eyebrow {
  color: #ffffff;
}


/* ============================================================
   3. TYPOGRAPHY — GLOBAL SCALE
   Every page uses these. Never override in components unless
   there is a specific, justified reason.
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-body);
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.6;
}

.text-xs {
  font-size: 0.8125rem;
  line-height: 1.5;
}

.overline {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-secondary);
}


/* ============================================================
   4. LAYOUT — CONTAINER AND SECTIONS
   ============================================================ */

.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

.container-sm {
  width: 90%;
  max-width: 720px;
  margin-inline: auto;
}

.section {
  padding: var(--section-y) 0;
}

.section-sm {
  padding: calc(var(--section-y) * 0.6) 0;
}

/* Alternating section backgrounds — use these classes on <section> elements */
.bg-white    { background-color: var(--bg-primary); }
.bg-gray     { background-color: var(--bg-secondary); }
.bg-warm     { background-color: var(--bg-warm); }
.bg-dark     { background-color: var(--bg-dark); color: var(--text-light); }
.bg-brand    { background-color: var(--brand); color: var(--text-primary); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }

/* Breakpoints: 480px (sm) / 768px (md) / 1024px (lg) */
@media (max-width: 479px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   5. BUTTONS
   Apply .btn + variant class. Never style buttons ad hoc.
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 48px; /* WCAG tap target */
}

.btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Primary — main CTA, brand color background */
.btn-primary {
  background-color: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}
.btn-primary:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Outline — secondary action on light backgrounds */
.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.btn-outline:hover {
  background-color: var(--text-primary);
  color: #ffffff;
}

/* Outline Light — secondary action on dark/photo backgrounds */
.btn-outline-light {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
}
.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

/* Size modifiers */
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 40px;
}
.btn-block {
  width: 100%;
}


/* ============================================================
   6. FORM ELEMENTS
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  min-height: 48px; /* WCAG tap target */
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px rgba(var(--brand-secondary-rgb, 16, 185, 129), 0.15);
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-helper {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-error {
  font-size: 0.75rem;
  color: #DC2626;
}


/* ============================================================
   7. CARDS
   ============================================================ */

.card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-flat {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}


/* ============================================================
   8. BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}

.badge-primary  { background: var(--brand); color: #ffffff; }
.badge-light    { background: var(--brand-light); color: var(--text-primary); }
.badge-secondary { background: var(--brand-secondary); color: #ffffff; }
.badge-outline  { background: transparent; border: 1.5px solid var(--border); color: var(--text-body); }
.badge-muted    { background: var(--bg-secondary); color: var(--text-muted); }


/* ============================================================
   9. FOCUS RING — ACCESSIBILITY
   ============================================================ */

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


/* ============================================================
   10. UTILITY CLASSES
   ============================================================ */

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.font-heading { font-family: var(--font-heading); }
.font-body    { font-family: var(--font-body); }

.text-brand     { color: var(--brand); }
.text-secondary { color: var(--brand-secondary); }
.text-muted     { color: var(--text-muted); }
.text-light     { color: var(--text-light); }
.text-dark      { color: var(--text-primary); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }

.w-full  { width: 100%; }
.h-full  { height: 100%; }

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--border);
  margin: var(--space-6) 0;
}


/* ============================================================
   11. SITE HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: var(--space-2) 0;
  transition: box-shadow 0.2s;
}

.site-header.header--scrolled {
  box-shadow: var(--shadow);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-primary {
  color: var(--brand);
}

.logo-light {
  color: var(--text-light);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Hours badge */
.hours-badge {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
}

.hours-badge--open {
  background: #DCFCE7;
  color: #166534;
}

.hours-badge--emergency {
  background: #FEF3C7;
  color: #92400E;
}

.hours-badge--emergency a {
  color: inherit;
  text-decoration: none;
}

.hours-badge--closed {
  background: var(--bg-secondary);
  color: var(--text-muted);
}

/* Desktop nav */
.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

.nav-desktop ul {
  display: flex;
  list-style: none;
  gap: var(--space-4);
}

.nav-desktop a {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-desktop a:hover {
  color: var(--brand);
}

/* Mobile nav toggle */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.25rem;
}

/* Mobile nav menu */
.nav-mobile {
  display: none;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: var(--space-3);
}

.nav-mobile.nav-open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.nav-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}


/* ============================================================
   12. STICKY MOBILE CTA
   Fixed bar at viewport bottom — mobile only.
   Every page needs padding-bottom: 4rem on mobile to avoid overlap.
   ============================================================ */

.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 56px;
}

@media (min-width: 768px) {
  .sticky-mobile-cta {
    display: none;
  }
}

.sticky-call,
.sticky-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 56px;
}

.sticky-call {
  background-color: var(--brand);
  color: #ffffff;
}

.sticky-quote {
  background-color: var(--brand-dark);
  color: #ffffff;
}

/* Add bottom padding on mobile to prevent sticky CTA overlap */
@media (max-width: 767px) {
  body {
    padding-bottom: 56px;
  }
}


/* ============================================================
   13. MODALS (Callback, Exit Intent)
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.modal-card h3 {
  margin-bottom: var(--space-1);
}

.modal-card p {
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  font-size: 0.9375rem;
}

.modal-card .form-group {
  margin-bottom: var(--space-2);
}

.modal-card .btn-block {
  margin-top: var(--space-2);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

/* Mobile: callback modal slides up from bottom */
@media (max-width: 479px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-width: 100%;
    padding-bottom: calc(var(--space-5) + 56px); /* account for sticky CTA */
  }
}


/* ============================================================
   14. FOOTER
   ============================================================ */

.site-footer {
  padding: var(--space-10) 0 var(--space-6);
}

.site-footer h4 {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: var(--space-2);
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.375rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  transition: color 0.15s;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-phone {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff !important;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  margin-bottom: var(--space-1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.social-links {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  transition: background 0.15s, color 0.15s;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}


/* ============================================================
   15. SECTION TRANSITIONS
   Use at least 3 different patterns across every site.
   ============================================================ */

/* 1. Angled divider */
.section-angle {
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
  padding-top: calc(var(--section-y) + 3rem);
  padding-bottom: calc(var(--section-y) + 3rem);
}

/* 2. Gradient fade from brand-light to white */
.section-fade {
  background: linear-gradient(to bottom, var(--brand-light) 0%, var(--bg-primary) 100%);
}

/* 3. Overlapping card — pull element up from previous section */
.overlap-card {
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

/* 4. Diagonal split background */
.section-split {
  background: linear-gradient(135deg, var(--bg-primary) 60%, var(--brand-light) 60%);
}

/* 5. Full-bleed brand color with wave SVG */
/* Add SVG wave element at section boundary — see CLAUDE.md for markup */


/* ============================================================
   16. HERO SECTION
   ============================================================ */

.hero {
  padding: calc(var(--section-y) * 1.25) 0;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: var(--space-3);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-4);
  max-width: 640px;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-5);
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-5);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-4);
}


/* ============================================================
   17. REVIEW FLOW (review.html)
   ============================================================ */

.review-flow {
  max-width: 560px;
  margin-inline: auto;
  padding: var(--space-8) var(--space-3);
}

.review-screen { /* each screen is hidden/shown by JS */ }

.progress-bar-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-6);
}

#progress-bar {
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

.star-row {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-5) 0;
}

.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 3rem;
  color: var(--border);
  transition: transform 0.15s, color 0.15s;
  line-height: 1;
  padding: 0.25rem;
}

.star-btn:hover,
.star-btn.star--active {
  transform: scale(1.2);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-3) 0;
}

.chip {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chip.chip--active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.review-quote-display {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-3) 0;
  font-style: italic;
  color: var(--text-body);
}


/* ============================================================
   18. FAQ ACCORDION (using native details/summary)
   ============================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

details.faq-item summary {
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary:hover {
  background: var(--bg-secondary);
}

details.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s;
  flex-shrink: 0;
}

details.faq-item[open] summary::after {
  transform: rotate(45deg);
}

details.faq-item .faq-answer {
  padding: 0 var(--space-4) var(--space-3);
  color: var(--text-body);
}

