/* =======================================================
   Superior Pool Covers — Custom Stylesheet
   Base: Pico CSS · Utilities: Tailwind CDN
   ======================================================= */

/* === DESIGN TOKENS (Light Mode) === */
:root {
  /* Brand palette — refined from raw blue/orange/green */
  --primary-color: #1a56db;       /* Rich royal blue   */
  --primary-light: #3b82f6;       /* Lighter variant    */
  --primary-dark: #1e3a8a;        /* Deep blue          */
  --secondary-color: #e85d04;     /* Warm orange CTA    */
  --secondary-light: #fb923c;
  --secondary-dark: #c2410c;
  --accent-color: #16a34a;        /* Success / trust green */
  --accent-light: #22c55e;
  --accent-dark: #15803d;

  /* Neutrals */
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  --neutral-base: var(--neutral-100);

  /* Water theme accent */
  --water-accent: #38bdf8;
  --water-deep: #0284c7;

  /* Surfaces & text (light mode) */
  --surface-body: #ffffff;
  --surface-card: #ffffff;
  --surface-raised: var(--neutral-50);
  --surface-overlay: rgba(255,255,255,0.85);
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-600);
  --text-muted: var(--neutral-400);
  --text-on-primary: #ffffff;
  --border-color: var(--neutral-200);
  --border-color-subtle: var(--neutral-100);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.04);

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Typography Scale — all sizes derived from base, controlled by --font-scale */
  --font-scale: 1.20;          /* Master font scale multiplier (1 = 100%) */
  --font-size-xs:   calc(0.75rem  * var(--font-scale));   /* ~12px scaled */
  --font-size-sm:   calc(0.875rem * var(--font-scale));   /* ~14px scaled */
  --font-size-base: calc(1rem    * var(--font-scale));   /* ~16px scaled */
  --font-size-lg:   calc(1.125rem * var(--font-scale));   /* ~18px scaled */
  --font-size-xl:   calc(1.25rem * var(--font-scale));   /* ~20px scaled */
  --font-size-2xl: calc(1.5rem  * var(--font-scale));   /* ~24px scaled */
  --font-size-3xl: calc(1.875rem * var(--font-scale));  /* ~30px scaled */
  --font-size-4xl: calc(2.25rem * var(--font-scale));   /* ~36px scaled */
  --font-size-5xl: calc(3rem    * var(--font-scale));   /* ~48px scaled */

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Cover theme */
  --cover-color: #a08460;
  --cover-bar: #8b7355;

  /* Header frosted glass (scroll state) */
  --header-frost-top: rgba(255, 255, 255, 0.82);
  --header-frost-bottom: rgba(255, 255, 255, 0.72);
  --header-frost-border: rgba(0, 0, 0, 0.06);
}

/* === DARK MODE TOKENS === */
/* System preference — only when user has not forced light mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary-color: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --secondary-color: #fb923c;
    --secondary-light: #fdba74;
    --secondary-dark: #ea580c;
    --accent-color: #22c55e;
    --accent-light: #4ade80;
    --accent-dark: #16a34a;

    --neutral-base: var(--neutral-800);
    --surface-body: var(--neutral-900);
    --surface-card: var(--neutral-800);
    --surface-raised: var(--neutral-700);
    --surface-overlay: rgba(15,23,42,0.85);
    --text-primary: var(--neutral-50);
    --text-secondary: var(--neutral-300);
    --text-muted: var(--neutral-500);
    --text-on-primary: #ffffff;
    --border-color: var(--neutral-700);
    --border-color-subtle: var(--neutral-800);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.3);

    --cover-color: #6b5b47;
    --cover-bar: #5a4c3a;

    --header-frost-top: rgba(15, 23, 42, 0.88);
    --header-frost-bottom: rgba(15, 23, 42, 0.78);
    --header-frost-border: rgba(255, 255, 255, 0.08);
  }
}

/* User toggled dark mode — overrides system preference when set via data-theme */
[data-theme="dark"] {
  --primary-color: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #2563eb;
  --secondary-color: #fb923c;
  --secondary-light: #fdba74;
  --secondary-dark: #ea580c;
  --accent-color: #22c55e;
  --accent-light: #4ade80;
  --accent-dark: #16a34a;

  --neutral-base: var(--neutral-800);
  --surface-body: var(--neutral-900);
  --surface-card: var(--neutral-800);
  --surface-raised: var(--neutral-700);
  --surface-overlay: rgba(15,23,42,0.85);
  --text-primary: var(--neutral-50);
  --text-secondary: var(--neutral-300);
  --text-muted: var(--neutral-500);
  --text-on-primary: #ffffff;
  --border-color: var(--neutral-700);
  --border-color-subtle: var(--neutral-800);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.3);

  --cover-color: #6b5b47;
  --cover-bar: #5a4c3a;

  --header-frost-top: rgba(15, 23, 42, 0.88);
  --header-frost-bottom: rgba(15, 23, 42, 0.78);
  --header-frost-border: rgba(255, 255, 255, 0.08);
}

/* ===================================================
   TYPOGRAPHY
   =================================================== */
body {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.7;
  background-color: var(--surface-body);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
}

/* Optional: use on h2 (or h1) for main section/CTA headlines — bigger and bolder */
.headline,
h1.headline,
h2.headline {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

@media (max-width: 959px) {
  .headline,
  h1.headline,
  h2.headline {
    font-size: 1.25rem;
  }
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
}

h5 {
  font-size: var(--font-size-lg);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

h6 {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  
}

p.lead {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

small, .text-sm {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }

/* Stat numbers */
.stat-number {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.stat-label {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

/* Stats grid: first two columns slightly narrower so third (Coverstar) has room */
.stats-grid {
  display: grid;
  grid-template-columns: 0.85fr 0.85fr 1.3fr;
  gap: 1.5rem;
  max-width: 900px;
  margin-inline: auto;
}

@media only screen and (max-width: 767px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
  p.lead { font-size: var(--font-size-lg); }
  .stat-number { font-size: var(--font-size-4xl); }
}

/* Lists */
ul, ol { padding-left: 1.5rem; }
ul.description, ol.description {
  margin-top: 1.5rem;
  padding-left: 1.5rem;
}

/* Brand color utilities */
.text-primary { color: var(--primary-color); }
.bg-primary { background-color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.bg-accent { background-color: var(--accent-color); }
.text-muted { color: var(--text-muted); }

/* ===================================================
   GLOBAL LINK STYLES
   =================================================== */
a {
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

/* ===================================================
   LOGO
   =================================================== */
.logo-superior-pool-covers {
  height: 80px;
  width: auto;
  transition: transform var(--transition-base);
}
.logo-superior-pool-covers:hover {
  transform: scale(1.03);
}

/* ===================================================
   HOMEPAGE — FIXED HERO + COVER SCROLL EFFECT
   =================================================== */

/* The hero and its header stay fixed behind the scrolling content */
.fixed-part {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  box-sizing: border-box;
}

/* Spacer pushes the cover content down so the fixed hero is visible */
.fixed-part-spacer { height: 44rem; }

/* The "cover" that scrolls up over the hero — like a pool cover closing */
.cover {
  background: var(--surface-body);
  position: relative;
  z-index: 200;
  padding: 0;
  padding-bottom: 3rem;
  margin: 0;
  width: 100%;
}

.cover-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* The tan/brown band at the very top of the cover — looks like the cover material */
.cover-color {
  background: var(--cover-color);
  margin-bottom: 0;
  padding-bottom: 3rem;
}

/* The "roller bar" at the very top edge — thin, darker strip */
.cover-bar {
  background: var(--cover-bar);
  height: 12px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===================================================
   HERO SECTION (Homepage)
   =================================================== */
section.hero {
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  min-width: 0;
}

section.hero.grid-container {
  grid-template-columns: 2fr 3fr;
}

section.hero .text-content {
  z-index: 2;
  align-self: center;
}

section.hero .crop-container {
  height: 300px;
  aspect-ratio: 1 / 1;
}

/* From hamburger breakpoint down: shorter aspect (1/2) so the three hero images don’t overflow or force a scrollbar */
@media (max-width: 992px) {
  section.hero .image-content .crop-container {
    aspect-ratio: 1 / 2;
    height: auto;
    min-height: 0;
  }
}

section.hero .image-content {
  position: relative;
  z-index: 1;
  align-self: start;
  min-width: 0;
}

section.hero h2 {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.1;
  width: 150%;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.7),
    0 0 40px rgba(255, 255, 255, 0.4);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) section.hero h2 {
    text-shadow:
      0 0 20px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(0, 0, 0, 0.3);
  }
}

[data-theme="dark"] section.hero h2 {
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 0, 0, 0.3);
}

section.hero h4 {
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--font-size-base);
  width: 150%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

section.hero p.description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

section.hero p.buttons { font-size: 1.25rem; }

section.hero .accolades-grid {
  margin-top: 4rem;
  width: fit-content;
  font-size: 0.9rem;
  grid-template-columns: 1fr 1fr 1fr;
  color: var(--text-secondary);
}

section.hero .accolades-grid span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
}

section.hero .accolades-grid .flex-container.column {
  gap: 0;
}

/* Hero responsive */
@media only screen and (max-width: 767px) {
  section.hero { padding-top: 4rem; }
  section.hero.grid-container { grid-template-columns: 1fr; }
  section.hero h2 { width: inherit; font-size: 2rem; }
  section.hero .crop-container { width: 100%; height: auto; }
  .fixed-part-spacer { height: 60rem; }
}

/* ===================================================
   GENERAL SECTION SPACING
   =================================================== */
section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

main > section:first-of-type {
  padding-top: 2rem;
}

section + section {
  margin-top: 0;
}

/* ===================================================
   CARDS — unified, theme-aware
   =================================================== */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card h3 {
  margin-top: 0;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
}

/* ===================================================
   CONTEXTUAL LIST MARKERS (main content)
   Use on <ul>: class="list-marker list-marker--{variant}"
   --verify   trusted outcomes, warranty, certification
   --spec     technical specs, materials, measurements
   --forward  options, compatibility, pathways
   --care     maintenance, cleaning, debris, water care
   --place    geography, service area, locations
   =================================================== */
main ul.list-marker {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 0;
}

main ul.list-marker > li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.45;
  color: var(--text-primary);
}

main ul.list-marker > li::before {
  position: absolute;
  left: 0;
  top: 0.2em;
  color: var(--accent-color);
  font-weight: 700;
  line-height: 1;
}

main ul.list-marker--verify > li::before {
  content: "\2713";
  font-size: 0.95em;
  top: 0.12em;
}

main ul.list-marker--spec > li::before {
  content: "\25C6";
  font-size: 0.55em;
  top: 0.55em;
}

main ul.list-marker--forward > li::before {
  content: "\25B9";
  font-size: 0.95em;
  top: 0.1em;
}

main ul.list-marker--care > li::before {
  content: "";
  width: 0.3rem;
  height: 0.95em;
  top: 0.32em;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    180deg,
    var(--accent-color) 0%,
    var(--primary-color) 100%
  );
}

main ul.list-marker--place > li::before {
  content: "\203A";
  font-size: 1.1em;
  font-weight: 600;
  top: 0.06em;
  color: var(--primary-color);
}

/* ===================================================
   SERVICE CARDS
   =================================================== */
.service-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
}

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

/* ===================================================
   TESTIMONIALS
   =================================================== */
.testimonial {
  background: var(--surface-raised);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
}

.testimonial blockquote {
  margin: 0;
  font-style: italic;
  color: var(--text-secondary);
}

.testimonial cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
}

/* ===================================================
   FORM STYLING
   =================================================== */
form {
  max-width: 600px;
  margin: 0 auto;
}

input, select, textarea {
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: var(--neutral-800);
  color: var(--neutral-200);
  padding: 4rem 1rem 2rem;
  margin-top: 0;
  border-top: 4px solid var(--primary-color);
  width: 100%;
  box-sizing: border-box;
}

/* Home page: footer must stack above the fixed hero (hero is z-index 1) */
body.page-home footer {
  position: relative;
  z-index: 200;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) footer { background: var(--neutral-900); }
}
[data-theme="dark"] footer { background: var(--neutral-900); }

/* Container within footer for centered content */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Brand section at top */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
  gap: 1rem;
}

.footer-logo {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity var(--transition-fast), transform var(--transition-base);
}

.footer-logo:hover {
  opacity: 1;
  transform: scale(1.03);
}

.footer-tagline {
  font-size: var(--font-size-sm);
  color: var(--neutral-300);
  max-width: 295px;
  line-height: 1.6;
  margin: 0;
}

.footer-tagline em {
  font-style: normal;
  color: var(--water-accent);
  font-weight: 600;
}

/* Main footer grid: 4 columns on desktop, 2 on tablet, 1 on mobile */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--neutral-700);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Individual footer columns */
.footer-col h4 {
  color: #ffffff;
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

.footer-col p {
  color: var(--neutral-300);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Certification badge row */
.footer-certification {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phta-logo {
  height: 32px;
  width: auto;
  opacity: 0.85;
  flex-shrink: 0;
}

.footer-certification span {
  font-size: var(--font-size-xs);
  color: var(--neutral-300);
  line-height: 1.4;
}

/* Footer links list */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
}

.footer-links li {
  margin-bottom: 0;
}

.footer-links a {
  color: var(--neutral-300);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--water-accent);
  transform: translateX(4px);
}

/* Footer contact list with icons */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0;
  color: var(--neutral-300);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.footer-contact svg {
  flex-shrink: 0;
  color: var(--water-accent);
  margin-top: 2px;
}

.footer-contact a {
  color: var(--neutral-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--water-accent);
}

/* Business hours styling */
.footer-hours {
  font-size: var(--font-size-sm);
  color: var(--neutral-300);
  line-height: 1.8;
  white-space: pre-line;
  margin-top: 0;
}

/* Footer CTA button */
.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.625rem 1.5rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-on-primary);
  background: var(--primary-color);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.footer-cta:hover {
  background: var(--primary-dark);
  color: var(--text-on-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.footer-cta:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--neutral-400);
  font-size: var(--font-size-xs);
  margin: 0;
}

.footer-license {
  color: var(--neutral-500);
  font-size: var(--font-size-xs);
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .footer-brand .footer-logo {
    filter: none;
    opacity: 0.9;
  }

  html:not([data-theme="light"]) .footer-certification {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

[data-theme="dark"] .footer-brand .footer-logo {
  filter: none;
  opacity: 0.9;
}

[data-theme="dark"] .footer-certification {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ===================================================
   NAVIGATION
   =================================================== */

/* Sticky nav on all pages: stays at top when scrolling */
#site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  transition: background-color var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base);
  border-bottom: 1px solid var(--border-color);
  padding: 5px 0;
}

/* Prominent top actions (payment + fabric colors) — below the nav */
.page-top-ctas {
  background: var(--surface-body);
}

.page-top-ctas__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.page-top-ctas__btn {
  white-space: nowrap;
}

.page-top-ctas__btn--fabrics {
  gap: 0.5rem;
}

/* Thin swatch marks icon (colors sourced from coverstar-fabric-color-swatches.jpg) */
.fabric-swatch-icon {
  width: 1.75rem;
  height: 0.9rem;
  border-radius: 0;
  display: inline-block;
  flex: 0 0 auto;
  background:
    linear-gradient(
      90deg,
      /* black */        #1c1f24 0%,
      #1c1f24 10%,
      /* charcoal */     #3b414a 10%,
      #3b414a 20%,
      /* gray */         #9a9a95 20%,
      #9a9a95 30%,
      /* brown */        #6b4c32 30%,
      #6b4c32 40%,
      /* tan */          #b59667 40%,
      #b59667 50%,
      /* green */        #4b5b53 50%,
      #4b5b53 60%,
      /* aqua */         #137d89 60%,
      #137d89 70%,
      /* light blue */   #0b6ea6 70%,
      #0b6ea6 80%,
      /* royal blue */   #183ca8 80%,
      #183ca8 90%,
      /* navy */         #142a62 90%,
      #142a62 100%
    );
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--border-color) 70%, transparent);
}

@media (max-width: 959px) {
  .page-top-ctas__inner {
    justify-content: center;
    gap: 0.5rem;
  }

  .page-top-ctas__btn {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

/* Frosted glass when scrolled */
#site-header[data-scrolled="true"] {
  background: linear-gradient(
    to bottom,
    var(--header-frost-top) 0%,
    var(--header-frost-bottom) 100%
  );
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-box-shadow: 0 1px 0 0 var(--header-frost-border);
  box-shadow: 0 1px 0 0 var(--header-frost-border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 0.875rem 0;
}

/* Logo row */
.nav-brand {
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.logo-superior-pool-covers {
  height: 56px;
  width: auto;
  transition: transform var(--transition-base);
}

.logo-superior-pool-covers:hover {
  transform: scale(1.03);
}

/* Nav menu */
#nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
  flex: 1;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* CTA (Call) list */
nav > ul.nav-cta {
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

nav > ul.nav-cta li {
  margin: 0;
  list-style: none;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-sm);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

nav a:hover {
  color: var(--primary-color);
}

nav a.active {
  font-weight: 700;
  color: var(--primary-color);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

/* CTA button in navigation */
nav a.btn-phone {
  padding: 0.5rem 1.25rem;
  font-size: var(--font-size-sm);
}

/* Dropdown menu */
nav .dropdown {
  position: relative;
}

nav .dropdown-toggle::after {
  content: ' \25BC';
  font-size: 0.65rem;
  vertical-align: middle;
  margin-left: 0.25rem;
}

nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--neutral-base);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  z-index: 1000;
  list-style: none;
  margin: 0;
}

nav .dropdown-menu li {
  margin: 0;
  width: 100%;
  padding: 0;
  position: relative;
  min-height: 2.5rem;
}

nav .dropdown-menu a {
  position: absolute;
  inset: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

nav .dropdown-menu a:hover {
  background: var(--neutral-200);
  color: var(--primary-color);
}

nav .dropdown-menu a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Show dropdown on hover (desktop) */
@media (min-width: 993px) {
  nav .dropdown:hover .dropdown-menu,
  nav .dropdown:focus-within .dropdown-menu {
    display: block;
  }
}

@keyframes slideIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ===================================================
   THEME TOGGLE (Dark Mode Switch)
   =================================================== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.4rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background-color: var(--surface-raised);
  border-color: var(--primary-light);
  color: var(--primary-color);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Show/hide icons based on current theme (data-theme is always set) */
.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Theme control in header bar — desktop / large tablet only */
.theme-toggle--desktop {
  display: flex;
}

@media (max-width: 992px) {
  .theme-toggle--desktop {
    display: none !important;
  }
}

/* Drawer-only row: theme at bottom of mobile menu */
.nav-menu-drawer-footer {
  display: none;
}

@media (max-width: 992px) {
  .nav-menu-drawer-footer {
    display: list-item;
    list-style: none;
    margin-top: 0;
    padding-top: 1rem;
    width: 100%;
    max-width: min(100%, 22rem);
    border-top: 1px solid var(--border-color);
  }

  .nav-menu-drawer-footer .theme-toggle {
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
    justify-content: center;
    gap: 0.5rem;
  }

  .theme-toggle-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
  }
}

@media (min-width: 993px) {
  .nav-menu-drawer-footer {
    display: none !important;
  }
}

/* Body scroll lock while mobile nav overlay is open */
body.nav-overlay-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* Mobile navigation */
.mobile-only { display: none; }

@media (max-width: 992px) {
  .site-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: calc(0.75rem + 3px);
    padding-bottom: calc(0.75rem + 3px);
  }

  .mobile-only {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  #nav-toggle {
    order: 1;
    flex-shrink: 0;
    margin: 0;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 0.85rem;
    line-height: 1;
    color: var(--text-primary);
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
  }

  #nav-toggle:hover {
    background: var(--neutral-100);
    border-color: var(--primary-color);
  }

  @media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) #nav-toggle:hover { background: var(--neutral-700); }
  }
  [data-theme="dark"] #nav-toggle:hover { background: var(--neutral-700); }

  .nav-brand {
    order: 2;
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  .nav-brand .logo-superior-pool-covers {
    height: 48px;
  }

  @media (max-width: 375px) {
    .nav-brand .logo-superior-pool-covers {
      display: none;
    }
  }

  nav > ul.nav-cta {
    order: 3;
    display: flex !important;
    flex-shrink: 0;
  }

  #nav-menu {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    box-sizing: border-box;
    background: var(--surface-card);
    z-index: 1000;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding: max(5rem, env(safe-area-inset-top, 0px)) 1.5rem max(2rem, env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    list-style: none;
    margin: 0;
    animation: menuFadeIn var(--transition-base) ease;
  }

  #nav-menu.active {
    display: flex;
  }

  #nav-menu > li {
    width: 100%;
    max-width: min(100%, 22rem);
    margin: 0;
    flex-shrink: 0;
  }

  /* Brand mark at top of full-screen drawer (bar keeps compact logo) */
  #nav-menu > li.nav-menu-drawer-brand {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
  }

  #nav-menu > li.nav-menu-drawer-brand .nav-menu-drawer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }

  #nav-menu .nav-menu-drawer-logo {
    width: 180px;
    max-width: min(100%, 180px);
    height: auto;
    object-fit: contain;
  }

  /* Close button in mobile drawer */
  .nav-close-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.4rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    flex-shrink: 0;
  }

  .nav-close-btn:hover {
    background: var(--neutral-100);
    border-color: var(--primary-color);
    color: var(--primary-color);
  }

  [data-theme="dark"] .nav-close-btn:hover {
    background: var(--neutral-700);
  }

  /* Service area text in drawer */
  .nav-menu-drawer-service-area {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
  }

  .nav-service-area-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-align: center;
  }

  #nav-menu a {
    font-size: var(--font-size-xl);
    padding: 0.75rem 1rem;
  }

  /* Products submenu: indented column (override desktop absolute menu + padding !important) */
  #nav-menu .dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    margin: 0.25rem 0 0.5rem 0.75rem;
    padding: 0.35rem 0 0.35rem 1rem !important;
    border-left: 2px solid var(--border-color);
    list-style: none;
  }

  #nav-menu .dropdown-menu li {
    min-height: 0;
    position: relative;
    padding: 0;
    width: 100%;
  }

  #nav-menu .dropdown-menu a {
    position: static;
    inset: auto;
    width: auto;
    box-sizing: border-box;
    display: block;
    padding: 0.5rem 0.5rem 0.5rem 0.25rem;
    font-size: var(--font-size-lg);
    font-weight: 500;
    border-radius: var(--radius-md);
  }

  @keyframes menuFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  #nav-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast), color var(--transition-fast);
  }

  #nav-menu li a:hover {
    background: var(--neutral-100);
  }

  @media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) #nav-menu li a:hover {
      background: var(--neutral-700);
    }
  }
  [data-theme="dark"] #nav-menu li a:hover {
    background: var(--neutral-700);
  }

  .nav-cta-call {
    padding: 0.5rem 0.85rem;
    font-size: var(--font-size-xs);
    white-space: nowrap;
  }

  /* Phone CTA pinned above theme row (wins over .mobile-only on same <li>) */
  #nav-menu > li.nav-menu-drawer-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    margin-top: 1rem;
    padding-top: 0;
    width: 100%;
    max-width: min(100%, 22rem);
    gap: 0;
  }

  #nav-menu > li.nav-menu-drawer-cta .nav-menu-drawer-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    font-size: calc(var(--font-size-base) * 1.5) !important;
    padding: 0.75rem 2rem !important;
    border-radius: 9999px;
    white-space: nowrap;
  }

  #nav-menu > li.nav-menu-drawer-cta .nav-menu-drawer-cta-link svg {
    width: 24px;
    height: 24px;
  }

  .nav-cta-phone-text {
    display: inline;
  }
}

@media (max-width: 992px) and (min-width: 401px) {
  .nav-cta-call {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
  }
}

/* ===================================================
   GRID LAYOUTS
   =================================================== */
.grid-container {
  display: grid;
  gap: 1.5rem;
}

.grid-container.two-column,
.grid {
  grid-template-columns: repeat(2, 1fr);
}

.grid-container.three-column {
  grid-template-columns: repeat(3, 1fr);
}

.grid-container.four-column {
  grid-template-columns: repeat(4, 1fr);
}

@media only screen and (max-width: 959px) {
  .grid-container.three-column {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-container.four-column {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 767px) {
  .grid-container.two-column { grid-template-columns: 1fr; }
  .grid-container.three-column { grid-template-columns: 1fr; }
  .grid-container.four-column { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}

/* Full-width tinted band: never wider than parent (avoids horizontal scroll / 1700px+ inner on large em) */
.section-bg-block {
  width: 100%;
  max-width: min(100%, calc(1200px + 32em));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.section-bg-block .section-bg-block__inner {
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  padding: 5rem clamp(1.25rem, 4vw, 5rem);
  background-color: var(--neutral-base);
}

@media only screen and (max-width: 959px) {
  .section-bg-block {
    max-width: 100%;
  }
  .section-bg-block .section-bg-block__inner {
    padding: 4rem clamp(1.25rem, 4vw, 3rem);
  }
}

@media only screen and (max-width: 767px) {
  .section-bg-block {
    max-width: 100%;
  }
  .section-bg-block .section-bg-block__inner {
    padding: 3.5rem clamp(1rem, 4vw, 2rem);
  }
}

/* Primary (brand color) variant for contact banner etc. */
.section-bg-block--primary .section-bg-block__inner {
  background-color: var(--primary-color);
  color: var(--text-on-primary);
}

.section-bg-block--primary .section-bg-block__inner a {
  color: inherit;
}

/* Contact page: form 65% / info 35% (use .contact-columns alone — do not combine with .grid; .grid only sets columns, not display) */
.contact-columns {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 3rem;
  align-items: start;
}

.contact-columns > * {
  min-width: 0;
}

@media only screen and (max-width: 959px) {
  .contact-columns {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   CONTACT PAGE — form + aside (consumer-friendly layout)
   =================================================== */
.contact-page-main {
  padding-bottom: 1rem;
}

.contact-form-section,
.contact-aside-section {
  padding: 0;
}

.contact-form-card {
  border-top: 4px solid var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.contact-form-card__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color-subtle);
}

.contact-form-card__eyebrow {
  margin: 0 0 0.5rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.contact-form-card .headline {
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.contact-form-card__lead {
  margin: 0;
  font-size: var(--font-size-lg);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Override global form max-width inside contact card */
main .contact-form-card form.contact-form,
.contact-form-card form.contact-form {
  max-width: none;
  margin: 0;
}

.contact-form__response:empty {
  margin: 0;
  padding: 0;
  min-height: 0;
  display: none;
}

.contact-form__response {
  display: none;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
}

.contact-form__response--loading {
  display: block;
  background: var(--surface-raised);
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.contact-form__response--success {
  display: block;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.contact-form__response--error {
  display: block;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.contact-form__section {
  margin-bottom: 2rem;
}

.contact-form__section:last-of-type {
  margin-bottom: 1.5rem;
}

.contact-form__section-title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-form__section-hint {
  margin: 0 0 1.25rem;
  font-size: var(--font-size-sm);
  line-height: 1.45;
  color: var(--text-muted);
}

.contact-form__grid {
  display: grid;
  gap: 1.25rem 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .contact-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form__field--full {
    grid-column: 1 / -1;
  }
}

.contact-form__field--spaced {
  margin-top: 1.25rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form__field label {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
}

.contact-form__field label abbr[title] {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: var(--font-size-base);
  line-height: 1.45;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface-body);
  color: var(--text-primary);
  min-height: 2.875rem;
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form select {
  cursor: pointer;
}

.contact-form__footer {
  padding-top: 1.5rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border-color-subtle);
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary-color);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form__submit:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-form__submit:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .contact-form__submit {
    background: var(--primary-color);
  }
}

[data-theme="dark"] .contact-form__submit {
  background: var(--primary-color);
}

.contact-form__privacy {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.4;
}

/* Aside: contact details */
.contact-aside-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background-color: var(--surface-raised);
  border: none;
}

.contact-info-card__block {
  margin-bottom: 1.75rem;
}

.contact-info-card__block:last-child {
  margin-bottom: 0;
}

.contact-info-card__label {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-info-card__block p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.contact-info-card__address {
  margin: 0;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.contact-info-card__email {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-info-card__phone {
  font-size: 1.5rem;
  font-weight: 700;
}

.contact-info-card__phone a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-info-card__phone a:hover {
  text-decoration: underline;
}

.contact-info-card__note {
  margin: 0.5rem 0 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.contact-why-card {
  margin-top: 0;
  border-left: 4px solid var(--accent-color);
}

.contact-why-card h3 {
  margin-top: 0;
}

/* Primary banner: quick contact methods */
.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.contact-method-tile {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.contact-method-tile__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-method-tile__icon--phone {
  background: var(--secondary-color);
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.35);
}

.contact-method-tile__icon--form {
  background: var(--accent-color);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
}

.contact-method-tile h3 {
  color: #fff;
  font-size: var(--font-size-2xl);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.contact-method-tile p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.contact-method-tile .btn-phone-cta {
  display: inline-block;
}

.contact-method-tile__cta.contact-method-tile__cta--phone {
  background: var(--secondary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.35);
}

.contact-method-tile__cta.contact-method-tile__cta--phone:hover {
  background: var(--secondary-dark);
  color: #fff;
}

.contact-method-tile__cta.contact-method-tile__cta--form {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.contact-method-tile__cta.contact-method-tile__cta--form:hover {
  background: var(--accent-dark);
  color: #fff;
}

.contact-method-tile__fineprint {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-sm);
  margin: 1rem 0 0;
}

/* ===================================================
   IMAGE LAYOUT
   =================================================== */
.crop-container {
  width: auto;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.crop-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

.crop-container:hover img {
  transform: scale(1.04);
}

.crop-container.anchor-top img { object-position: top; }
.crop-container.anchor-bottom img { object-position: bottom; }

img.img-invert { filter: invert(100%); }

/* ===================================================
   FLEX LAYOUTS
   =================================================== */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.flex-container.column { flex-direction: column; }
.flex-container.row { flex-direction: row; }
.flex-container.fit-content { width: fit-content; }

/* ===================================================
   SERVICES SECTION (Homepage)
   =================================================== */
section.services .services-grid {
  gap: 2rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 2rem;
}

section.services .title-content {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--text-primary);
}

/* Override text color in the cover-color section for readability */
.cover-color section.services .title-content {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Service card text in cover section needs to be readable */
.cover-color .service-card {
  background: var(--surface-card);
}

.cover-color .service-card h3 {
  color: var(--text-primary);
}

.cover-color .service-card p {
  color: var(--text-secondary);
}

section.services .service-card h3 {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

section.services .service-card h3 img.scalable-svg {
  display: inline-block;
  width: 28px;
  height: 28px;
}

/* Dark mode: invert SVG icon colors */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) img.scalable-svg { filter: invert(100%); }
  html:not([data-theme="light"]) img.logo-coverstar.img-invert { filter: none; }
}
[data-theme="dark"] img.scalable-svg { filter: invert(100%); }
[data-theme="dark"] img.logo-coverstar.img-invert { filter: none; }

/* ===================================================
   BUTTON STYLES
   =================================================== */
a.btn-phone,
a.btn-phone-cta,
button.btn-phone-cta,
input.btn-phone-cta[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  font-family: inherit;
  line-height: 1.4;
  background-color: var(--primary-color);
  color: var(--text-on-primary);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: 
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

a.btn-phone:hover,
a.btn-phone-cta:hover,
button.btn-phone-cta:hover,
input.btn-phone-cta[type="submit"]:hover {
  background-color: var(--primary-dark);
  color: var(--text-on-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

a.btn-phone:active,
a.btn-phone-cta:active,
button.btn-phone-cta:active,
input.btn-phone-cta[type="submit"]:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Nav tel CTA: icon + number (global a.btn-phone is inline-block) */
nav a.btn-phone.main-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

nav a.btn-phone.main-cta svg {
  flex-shrink: 0;
}

/* Hero button dark mode — reversed for contrast on dark hero */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) a.btn-phone {
    background-color: #ffffff;
    color: var(--neutral-900);
  }
  html:not([data-theme="light"]) a.btn-phone:hover {
    background-color: var(--neutral-100);
    color: var(--neutral-900);
  }
  html:not([data-theme="light"]) a.btn-phone-cta,
  html:not([data-theme="light"]) button.btn-phone-cta,
  html:not([data-theme="light"]) input.btn-phone-cta[type="submit"] {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
  }
  html:not([data-theme="light"]) a.btn-phone-cta:hover,
  html:not([data-theme="light"]) button.btn-phone-cta:hover,
  html:not([data-theme="light"]) input.btn-phone-cta[type="submit"]:hover {
    background-color: var(--primary-dark);
    color: var(--text-on-primary);
  }
}

[data-theme="dark"] a.btn-phone {
  background-color: #ffffff;
  color: var(--neutral-900);
}
[data-theme="dark"] a.btn-phone:hover {
  background-color: var(--neutral-100);
  color: var(--neutral-900);
}
[data-theme="dark"] a.btn-phone-cta,
[data-theme="dark"] button.btn-phone-cta,
[data-theme="dark"] input.btn-phone-cta[type="submit"] {
  background-color: var(--primary-color);
  color: var(--text-on-primary);
}
[data-theme="dark"] a.btn-phone-cta:hover,
[data-theme="dark"] button.btn-phone-cta:hover,
[data-theme="dark"] input.btn-phone-cta[type="submit"]:hover {
  background-color: var(--primary-dark);
  color: var(--text-on-primary);
}

@media only screen and (max-width: 959px) {
  section.services .services-grid { padding: 0 1rem; }
  section.services .title-content { margin-left: 1rem; margin-right: 1rem; }
}

/* ===================================================
   SOLUTION SECTION (Homepage)
   =================================================== */
section.solution-grid {
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

section.solution .title-content {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
}

section.solution .text-content {
  z-index: 2;
  position: relative;
  align-self: start;
}

section.solution .text-content h2 {
  text-align: left;
  font-weight: 900;
}

section.solution .image-content {
  position: relative;
  z-index: 1;
  align-self: start;
  aspect-ratio: 1 / 1;
}

section.solution .image-content .crop-container {
  position: relative;
  left: 80px;
  height: 100%;
  width: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

section.solution .image-content img {
  display: block;
  border-radius: var(--radius-2xl);
}

@media only screen and (max-width: 959px) {
  section.solution .text-content { padding: 0; }
  section.solution .image-content .crop-container { left: 0; }
}

/* ===================================================
   FEATURES SECTION (Homepage)
   =================================================== */
section.features-grid {
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

section.features .title-content {
  text-align: center;
}

section.features .text-content {
  z-index: 2;
  position: relative;
  align-self: center;
}

section.features .text-content h3.title {
  font-size: 1.5rem;
  color: var(--text-primary);
}

section.features .image-content {
  position: relative;
  z-index: 1;
  align-self: start;
  aspect-ratio: 1 / 1;
}

section.features .image-content .crop-container {
  position: relative;
  left: -80px;
  height: 100%;
  width: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

section.features .image-content img {
  width: 100%;
  display: block;
  border-radius: var(--radius-2xl);
}

img.logo-coverstar {
  width: 100%;
  max-width: 420px;
  transition: opacity var(--transition-base);
}

img.logo-coverstar:hover {
  opacity: 0.85;
}

@media only screen and (max-width: 959px) {
  section.features .text-content { padding: 0; }
  section.features .image-content .crop-container { left: 0; }
}

/* ===================================================
   TESTIMONIALS SECTION
   =================================================== */
section.testimonials .testimonial-grid {
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

section.testimonials .testimonial-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
  height: 100%;
}

section.testimonials .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

section.testimonials .testimonial-card .quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--primary-light);
}

section.testimonials .testimonial-card .attributed {
  font-size: 1rem;
  margin-top: 1.5rem;
}

section.testimonials .testimonial-card .attributed h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

section.testimonials .testimonial-card .attributed span {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

section.testimonials .title-content {
  text-align: center;
  color: var(--text-primary);
}

section.testimonials .attributed img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  background: var(--neutral-200);
  object-fit: cover;
}

section.testimonials .rating { gap: 0; }
section.testimonials .rating span {
  margin-left: 8px;
  font-size: 0.9em;
  color: var(--text-muted);
}

section.testimonials .platform {
  display: flex;
  flex-direction: column;
  width: fit-content;
  gap: 0.25rem;
  text-align: center;
  justify-self: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

section.testimonials .platform-logo {
  height: 48px;
  width: auto;
  margin-bottom: 0.5rem;
}

section.testimonials .platform span {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* ===================================================
   CTA SECTION
   =================================================== */
section.cta {
  max-width: none;
  padding: 6rem 2rem;
  text-align: center;
  background-image: url('/assets/images/pool-water-1.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Semi-transparent overlay for better text readability */
section.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.75) 0%,
    rgba(255,255,255,0.6) 100%
  );
  z-index: 0;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) section.cta::before {
    background: linear-gradient(
      135deg,
      rgba(15,23,42,0.8) 0%,
      rgba(15,23,42,0.65) 100%
    );
  }
}
[data-theme="dark"] section.cta::before {
  background: linear-gradient(
    135deg,
    rgba(15,23,42,0.8) 0%,
    rgba(15,23,42,0.65) 100%
  );
}

section.cta > * {
  position: relative;
  z-index: 1;
}

section.cta .inner-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

section.cta h2 {
  font-size: 2.5rem;
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  font-weight: 800;
  color: var(--text-primary);
}

section.cta h2.headline {
  font-size: 2.75rem;
}

section.cta p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

section.cta p.call {
  font-size: 1.5rem;
  line-height: 1.5;
}

/* CTA within neutral-base bg (FAQ "still have questions") */
section.cta[style*="background-image: none"] {
  background-image: none !important;
}

section.cta[style*="background-image: none"]::before {
  display: none;
}

@media only screen and (max-width: 959px) {
  section.cta { padding: 4rem 1rem; }
  section.cta h2 { font-size: 2rem; }
  section.cta h2.headline { font-size: 2.25rem; }
}

/* ===================================================
   FAQ SECTION — Accordion
   =================================================== */
section.faq .faqs-grid {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

section.faq .title-content {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
}

/* Accordion item — native <details> element */
.faq-accordion {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-accordion:hover {
  border-color: var(--primary-light);
}

.faq-accordion[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* Summary = the clickable question row */
.faq-accordion summary {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  padding: 1.25rem 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;            /* remove default triangle */
  user-select: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

/* Remove default marker in all browsers */
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::marker { display: none; content: ''; }

/* Custom chevron indicator */
.faq-accordion summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2.5px solid var(--text-muted);
  border-bottom: 2.5px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform var(--transition-base);
}

.faq-accordion[open] summary::after {
  transform: rotate(-135deg);
}

.faq-accordion summary:hover {
  background-color: var(--surface-raised);
}

.faq-accordion summary:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

/* Answer panel */
.faq-accordion .answer {
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 0 1.75rem 1.5rem;
  border-top: 1px solid var(--border-color-subtle);
}

/* Animate open/close via grid trick for smooth height transition */
.faq-accordion .answer {
  display: grid;
  grid-template-rows: 1fr;
  animation: faqSlideDown var(--transition-base) ease;
}

@keyframes faqSlideDown {
  from {
    opacity: 0;
    grid-template-rows: 0fr;
  }
  to {
    opacity: 1;
    grid-template-rows: 1fr;
  }
}

/* Legacy .faq-card support (keep in case used elsewhere) */
section.faq .faq-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

section.faq .faq-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

section.faq .faq-card .question {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

section.faq .faq-card .answer {
  color: var(--text-secondary);
  line-height: 1.7;
}

@media only screen and (max-width: 959px) {
  section.faq .faqs-grid { padding: 0; }
}

/* ===================================================
   SWATCHES (Fabrics page)
   =================================================== */
.swatches { }

.card-body {
  height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
}

.card-body:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* Front face on the box; reverse face on ::before (loaded up-front — no first-hover image swap flash) */
.swatches .card-body {
  position: relative;
}

.swatches .card-body::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: inherit;
  pointer-events: none;
}

.swatches .card-body:hover::before {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .swatches .card-body::before {
    transition: none;
  }
}

.card-body.swatch-black { background-image: url("/assets/images/swatches/front/Black.jpg"); }
.card-body.swatch-charcoal { background-image: url("/assets/images/swatches/front/Charcoal.jpg"); }
.card-body.swatch-gray { background-image: url("/assets/images/swatches/front/Gray.jpg"); }
.card-body.swatch-mocha { background-image: url("/assets/images/swatches/front/Mocha.jpg"); }
.card-body.swatch-tan { background-image: url("/assets/images/swatches/front/Tan.jpg"); }
.card-body.swatch-green { background-image: url("/assets/images/swatches/front/Green.jpg"); }
.card-body.swatch-aqua { background-image: url("/assets/images/swatches/front/Aqua.jpg"); }
.card-body.swatch-light-blue { background-image: url("/assets/images/swatches/front/LightBlue.jpg"); }
.card-body.swatch-royal-blue { background-image: url("/assets/images/swatches/front/RoyalBlue.jpg"); }
.card-body.swatch-navy-blue { background-image: url("/assets/images/swatches/front/NavyBlue.jpg"); }

.swatches .card-body.swatch-black::before { background-image: url("/assets/images/swatches/back/Black.jpg"); }
.swatches .card-body.swatch-charcoal::before { background-image: url("/assets/images/swatches/back/Charcoal.jpg"); }
.swatches .card-body.swatch-gray::before { background-image: url("/assets/images/swatches/back/Gray.jpg"); }
.swatches .card-body.swatch-mocha::before { background-image: url("/assets/images/swatches/back/Mocha.jpg"); }
.swatches .card-body.swatch-tan::before { background-image: url("/assets/images/swatches/back/Tan.jpg"); }
.swatches .card-body.swatch-green::before { background-image: url("/assets/images/swatches/back/Green.jpg"); }
.swatches .card-body.swatch-aqua::before { background-image: url("/assets/images/swatches/back/Aqua.jpg"); }
.swatches .card-body.swatch-light-blue::before { background-image: url("/assets/images/swatches/back/LightBlue.jpg"); }
.swatches .card-body.swatch-royal-blue::before { background-image: url("/assets/images/swatches/back/RoyalBlue.jpg"); }
.swatches .card-body.swatch-navy-blue::before { background-image: url("/assets/images/swatches/back/NavyBlue.jpg"); }

.swatches .title {
  position: relative;
  z-index: 1;
  border: 2px solid rgba(255,255,255,0.9);
  color: white;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.swatches .title:hover {
  background-color: rgba(255,255,255,0.15);
}

@media screen and (max-width: 600px) {
  .swatches .caption { font-size: 1.25em; }
}

/* Homepage — fabric color teaser (links to /fabrics/#available-colors) */
.fabric-colors-teaser .section-header .section-title {
  margin-bottom: 0.5rem;
}

.home-fabric-colors-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.home-fabric-colors-cta:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .home-fabric-colors-cta:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.home-fabric-colors-cta:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.home-fabric-colors-cta:focus:not(:focus-visible) {
  outline: none;
}

.home-fabric-colors-cta:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.home-fabric-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  justify-items: stretch;
}

@media (min-width: 640px) {
  .home-fabric-swatches {
    grid-template-columns: repeat(10, 1fr);
    gap: 0.65rem;
  }
}

.home-fabric-swatches .card-body {
  height: 52px;
  border-radius: var(--radius-md);
  cursor: inherit;
}

@media (min-width: 992px) {
  .home-fabric-colors-cta {
    max-width: 1040px;
  }

  .home-fabric-swatches {
    gap: 0.85rem;
  }

  .home-fabric-swatches .card-body {
    height: 76px;
  }
}

.home-fabric-swatches .card-body:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.home-fabric-colors-cta__label.service-link {
  font-size: var(--font-size-base);
  display: inline-flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}

/* ===================================================
   PAGE HERO (interior pages)
   =================================================== */
.page-hero {
  padding: 5rem 0 4rem;
  /* background: linear-gradient(135deg, var(--neutral-base) 0%, var(--surface-body) 100%); */
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.page-hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .page-hero .container {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.page-hero h1 {
  margin-bottom: 1rem;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

.page-hero .lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 0;
}

.page-hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  transform: rotate(1deg);
  transition: transform var(--transition-base);
}

.page-hero-image:hover {
  transform: rotate(0deg) scale(1.01);
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.page-hero-image:hover img {
  transform: scale(1.05);
}

/* ===================================================
   ZIGZAG FEATURE SECTIONS (interior pages)
   =================================================== */
.feature-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color-subtle);
}

.feature-section:nth-child(even) {
  background-color: var(--neutral-base);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-section:nth-child(even) .feature-grid .feature-text { order: 2; }
  .feature-section:nth-child(even) .feature-grid .feature-image { order: 1; }
}

.feature-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feature-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow), box-shadow var(--transition-base);
}

.feature-image img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Cover benefits — energy row: ripples host (jquery.ripples WebGL over CSS background) */
.feature-image .feature-image__energy-ripple {
  display: block;
  width: 100%;
  min-height: 220px;
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base);
}

.feature-image .feature-image__energy-ripple:hover {
  box-shadow: var(--shadow-xl);
}

.feature-text h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  font-weight: 700;
}

.feature-text p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

/* Lists with custom markers (e.g. checkmarks): hide default bullet so only the icon shows */
main .feature-text ul {
  list-style: none;
  list-style-type: none;
  padding-left: 0;
  margin: 1.5rem 0 2rem 0;
}

main .feature-text ul li {
  list-style: none;
  list-style-type: none;
}

.feature-text li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.feature-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-color);
  font-weight: 900;
  font-size: 1.1rem;
}

/* Contextual markers inside feature-text (override default ✓) */
main .feature-text ul.list-marker--forward > li::before {
  content: "\25B9";
  font-size: 0.95em;
  top: 0.1em;
  font-weight: 700;
}

main .feature-text ul.list-marker--spec > li::before {
  content: "\25C6";
  font-size: 0.55em;
  top: 0.55em;
  font-weight: 700;
}

main .feature-text ul.list-marker--care > li::before {
  content: "";
  width: 0.3rem;
  height: 0.95em;
  top: 0.32em;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    180deg,
    var(--accent-color) 0%,
    var(--primary-color) 100%
  );
}

main .feature-text ul.list-marker--place > li::before {
  content: "\203A";
  font-size: 1.1em;
  top: 0.06em;
  font-weight: 600;
  color: var(--primary-color);
}

main .feature-text ul.list-marker--verify > li::before {
  content: "\2713";
  font-size: 0.95em;
  top: 0.12em;
  font-weight: 700;
}

/* ===================================================
   SCROLL-REVEAL ANIMATIONS
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children (use with data-stagger on parent) */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 500ms; }

/* Numbered step badge (e.g. pool-cover-replacements process) */
.process-step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

/* ===================================================
   FOCUS STYLES (Accessibility)
   =================================================== */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===================================================
   SMOOTH SCROLL
   =================================================== */
html {
  scroll-behavior: smooth;
}

/* ===================================================
   SELECTION HIGHLIGHT
   =================================================== */
::selection {
  background: var(--primary-color);
  color: white;
}

/* ===================================================
   404 PAGE ANIMATION
   =================================================== */
.error-404-number {
  font-size: 6rem;
  font-weight: 900;
  color: var(--primary-color);
  animation: float404 3s ease-in-out infinite;
}

@keyframes float404 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===================================================
   UTILITY: text-center
   =================================================== */
.text-center { text-align: center; }

/* ===================================================
   PRINT STYLES
   =================================================== */
@media print {
  .fixed-part,
  .fixed-part-spacer,
  .cover-bar,
  nav,
  footer { display: none; }
  
  .cover { position: static; }
  
  section.cta {
    background-image: none;
    background: var(--neutral-100);
  }
  
  section.cta::before { display: none; }
}

/* ===================================================
   LIGHTBOX GALLERY STYLES
   =================================================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox__image {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
  color: #fff;
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
  max-width: 80%;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.lightbox__close:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.lightbox__nav:hover {
  color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

/* Gallery thumbnail hover effect */
.gallery-item {
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* ===================================================
   NEW HOMEPAGE — REDESIGNED SECTIONS
   =================================================== */

/* === HERO SECTION === */
.hero-new {
  position: relative;
  padding: 4rem 0 4.25rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-body) 0%, transparent 100%);
}

.hero-overlay-ctas {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.75rem;
  z-index: 3;
  pointer-events: none;
}

.hero-overlay-ctas__inner {
  /* Do not use .container here — .hero-new .container is display:grid and splits these into two columns */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
  pointer-events: auto;
}

.hero-overlay-ctas__btn {
  white-space: nowrap;
}

.hero-overlay-ctas__btn--fabrics {
  gap: 0.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(26, 86, 219, 0.03) 0%,
    rgba(56, 189, 248, 0.05) 50%,
    rgba(6, 132, 199, 0.03) 100%
  );
}

[data-theme="dark"] .hero-gradient {
  background: linear-gradient(135deg,
    rgba(26, 86, 219, 0.08) 0%,
    rgba(56, 189, 248, 0.1) 50%,
    rgba(6, 132, 199, 0.08) 100%
  );
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

[data-theme="dark"] .hero-pattern {
  background-image: radial-gradient(rgba(56, 189, 248, 0.15) 1px, transparent 1px);
}

.hero-new .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--primary-color);
  color: var(--text-on-primary);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--text-on-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--font-size-sm);
  border: 2px solid var(--border-color);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

/* feature-text rows: secondary + phone CTA same outer height as btn-phone-cta (grid stretch + explicit min) */
main .feature-text .feature-text-cta-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 1rem;
  align-items: stretch;
  justify-content: start;
}

main .feature-text .feature-text-cta-row > a {
  /* Match a.btn-phone-cta: padding 0.875rem ×2 + line box (font 1.125rem × body line-height 1.7) */
  box-sizing: border-box;
  line-height: 1.7;
  min-height: calc(0.875rem * 2 + 1.125rem * 1.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  /* main page CTAs use taller vertical padding on these breakpoints */
  main .feature-text .feature-text-cta-row > a {
    min-height: calc(0.875rem * 1.5 * 2 + 1.125rem * 1.7);
  }
}

.btn-large {
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-base);
}

.hero-image {
  position: relative;
}

.hero-image-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
}

.hero-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-image-main:hover img {
  transform: scale(1.03);
}

.hero-image-accent {
  position: absolute;
  width: 35%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--surface-body);
}

.hero-image-accent--bl {
  bottom: -1.5rem;
  left: -1.5rem;
}

.hero-image-accent--tr {
  top: -1.5rem;
  right: -1.5rem;
}

a.hero-image-accent {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.hero-image-accent:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

[data-theme="dark"] .hero-image-accent {
  border-color: var(--neutral-800);
}

.hero-image-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  display: block;
}

@media (max-width: 992px) {
  .hero-new .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image-accent--bl {
    left: auto;
    right: 1rem;
    bottom: -1rem;
    width: 30%;
  }

  .hero-image-accent--tr {
    top: -0.75rem;
    right: 1rem;
    left: auto;
    width: 30%;
  }
}

@media (max-width: 576px) {
  .hero-new {
    padding: 2rem 0 2rem;
    min-height: auto;
  }

  .hero-overlay-ctas {
    top: 0.5rem;
  }

  .hero-overlay-ctas__inner {
    justify-content: center;
    gap: 0.5rem;
  }

  .hero-overlay-ctas__btn {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: auto;
    max-width: 100%;
    align-self: center;
  }

  .hero-image-main {
    display: none;
  }

  .hero-image-accent {
    display: block;
    position: static;
    width: 100%;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
  }

  .hero-image-accent--tr {
    margin-top: 0.75rem;
  }
}

  /* Mobile: ~50% taller vertical padding on primary/secondary CTAs in page content (not header) */
@media (max-width: 768px) {
  main .btn-primary,
  main .btn-secondary {
    padding-top: calc(0.625rem * 1.5);
    padding-bottom: calc(0.625rem * 1.5);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  main .btn-primary.btn-large,
  main .btn-secondary.btn-large {
    padding-top: calc(0.75rem * 1.5);
    padding-bottom: calc(0.75rem * 1.5);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  main a.btn-phone,
  main a.btn-phone-cta,
  main button.btn-phone-cta,
  main input.btn-phone-cta[type="submit"] {
    padding-top: calc(0.875rem * 1.5);
    padding-bottom: calc(0.875rem * 1.5);
  }
}

/* === TRUST BAR === */
.trust-bar {
  background: var(--surface-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
}

.trust-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  text-align: center;
}

.trust-number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.trust-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-divider {
  width: 1px;
  height: 3rem;
  background: var(--border-color);
}

@media (max-width: 768px) {
  .trust-grid {
    gap: 2rem;
  }

  .trust-divider {
    display: none;
  }

  .trust-item {
    flex: 1 1 calc(50% - 1rem);
  }
}

/* === INTRO SECTION === */
.intro-section {
  padding: 4rem 0;
  background: var(--surface-body);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

.intro-text {
  font-size: var(--font-size-base);
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.intro-text strong {
  color: var(--text-primary);
}

.intro-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.intro-feature {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--water-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.feature-text h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.125rem;
}

.feature-text p {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  /* margin: 0; */
}

.intro-image {
  position: relative;
}

.image-frame {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.image-frame:hover img {
  transform: scale(1.04);
}

.image-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--surface-card);
  padding: 1rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

/* Logo in floating badge on intro image — not the text pill .coverstar-badge (see Coverstar section) */
.intro-coverstar-logo {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .intro-coverstar-logo {
    filter: brightness(0) invert(1);
  }
}

[data-theme="dark"] .intro-coverstar-logo {
  filter: brightness(0) invert(1);
}

@media (max-width: 992px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .intro-image {
    order: -1;
  }

  .image-badge {
    right: 1rem;
  }
}

/* === SERVICES SECTION === */
.services-section {
  padding: 4rem 0;
  background: var(--neutral-base);
}

.services-section .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.service-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-spring);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--water-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.service-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.service-link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition-fast);
}

.service-link:hover {
  gap: 0.5rem;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* === COVERSTAR SECTION === */
.coverstar-section {
  padding: 4rem 0;
  background: var(--surface-body);
}

.coverstar-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.image-frame-large {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
}

.image-frame-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.image-frame-large:hover img {
  transform: scale(1.04);
}

.coverstar-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--primary-color);
  color: var(--text-on-primary);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.coverstar-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-bottom: 1.5rem;
  /* PNG is light-on-transparent; force black on light UI */
  filter: brightness(0);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .coverstar-logo {
    filter: brightness(0) invert(1);
  }
}

[data-theme="dark"] .coverstar-logo {
  filter: brightness(0) invert(1);
}

.coverstar-intro {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.coverstar-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.coverstar-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.coverstar-feature svg {
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.coverstar-feature strong {
  color: var(--text-primary);
}

@media (max-width: 992px) {
  .coverstar-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* === TESTIMONIALS SECTION === */
.testimonials-section {
  padding: 4rem 0;
  background: var(--neutral-base);
}

.testimonials-section .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonial-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all var(--transition-spring);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.testimonial-rating {
  margin-bottom: 0.75rem;
}

.testimonial-quote {
  font-size: var(--font-size-sm);
  line-height: 1.65;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
  padding-left: 0.875rem;
  border-left: 3px solid var(--primary-light);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--neutral-200);
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.author-info strong {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
}

.author-info span {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.platform-logo {
  height: 20px;
  width: auto;
  opacity: 0.7;
}

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

/* === CTA SECTION === */
.cta-section {
  position: relative;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--water-deep) 100%);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(26, 86, 219, 0.9) 0%,
    rgba(6, 132, 199, 0.85) 100%
  );
}

[data-theme="dark"] .cta-overlay {
  background: linear-gradient(135deg,
    rgba(26, 86, 219, 0.95) 0%,
    rgba(6, 132, 199, 0.9) 100%
  );
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary-dark);
}

.cta-section .btn-primary:hover {
  background: var(--neutral-100);
  color: var(--primary-dark);
}

.cta-section .btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-section .btn-secondary:hover {
  border-color: white;
  color: white;
}

/* === FAQ SECTION === */
.faq-section {
  padding: 4rem 0;
  background: var(--surface-body);
}

.faq-section .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.faq-cta {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.faq-cta p {
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

/* === FINAL CTA SECTION === */
.final-cta {
  padding: 4rem 0;
  background: var(--primary-dark);
}

.final-cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}

.final-cta-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.final-cta-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.final-cta .btn-primary {
  background: white;
  color: var(--primary-dark);
}

.final-cta .btn-primary:hover {
  background: var(--neutral-100);
  color: var(--primary-dark);
}

/* === UTILITY CLASSES === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 480px) {
  .container {
    padding: 0 5px;
  }
}

/* === DOCUMENT LINKS === */
.doc-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.doc-link::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B9CC4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='12' y1='18' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='9' y1='15' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='15' y1='15' x2='12' y2='12'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

a[href*=".pdf"].doc-link::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C1272D'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm-1 2l5 5h-5V4zM8.5 13h1v4h-1a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5zm0 4h1v.5h-1v-.5zm3-.5h1.5a.5.5 0 0 1 0 1H11.5a.5.5 0 0 1 0-1zm0 1.5h2v-1h-2v1z'/%3E%3C/svg%3E");
}

.doc-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}
