/* =======================================================
   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 */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */
  --font-size-4xl: 2.25rem;    /* 36px */
  --font-size-5xl: 3rem;       /* 48px */

  /* 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 === */
@media (prefers-color-scheme: dark) {
  :root {
    --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);
  }
}

/* Pico data-theme attribute dark mode support */
[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);
  background-image: url('/assets/images/Background Water.png');
  /* Anchor spotlight to logo: same horizontal start as nav container, then shift image left so the glow sits over the logo (600px offset for large screens) */
  background-position: calc((100vw - 1200px) / 2 + 1rem - 600px) 0;
  background-attachment: scroll;
  background-repeat: no-repeat;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Small screens: less offset so spotlight stays aligned with logo */
@media (max-width: 768px) {
  body {
    background-position: calc((100vw - 1200px) / 2 + 1rem - 300px) 0;
  }
}

/* Home page: keep background fixed so the "cover" content scrolls up over it */
body.page-home {
  background-attachment: fixed;
}

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) {
  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);
}

/* ===================================================
   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);
}

/* 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) {
  footer { background: var(--neutral-900); }
}
[data-theme="dark"] footer { background: var(--neutral-900); }

footer h4 {
  color: #ffffff;
  font-size: var(--font-size-lg);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

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

footer p, footer li {
  color: var(--neutral-300);
  font-size: var(--font-size-sm);
}

footer a {
  color: var(--water-accent);
  transition: color var(--transition-fast);
}

footer a:hover {
  color: #ffffff;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer hr {
  border-color: var(--neutral-700);
  margin: 2rem 0;
}

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

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

/* At medium viewports (desktop nav but tight width): remove nav container margins so all items stay on one line */
@media (min-width: 993px) and (max-width: 1100px) {
  #site-header.container-fluid {
    padding-left: 0;
    padding-right: 0;
  }
  #site-header nav.container {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Hamburger breakpoint: same no left/right margins on the nav bar */
@media (max-width: 992px) {
  #site-header.container-fluid {
    padding-left: 0;
    padding-right: 0;
  }
  #site-header nav.container {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Frosted glass when scrolled: improves contrast and visibility over varying content */
header[data-scrolled="true"] {
  /* Gradient overlay: slightly more opaque at top, subtle at bottom */
  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);
}

/* Home page: fixed-part (hero only) starts below the header so nav stays above the scrolling cover */
body.page-home .fixed-part {
  top: 7rem;
}

nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1rem;
}

nav > ul:first-of-type {
  margin-right: 0;
}

nav > ul:last-of-type {
  margin-left: 0;
  align-self: center;
  margin-top: 0;
}

/* CTA (Call) list: no bullet, pushed to right on desktop */
nav > ul.nav-cta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
nav > ul.nav-cta li {
  margin: 0;
  list-style: none;
}
@media (min-width: 993px) {
  nav > ul.nav-cta {
    margin-left: auto;
  }
}

/* Desktop nav link spacing */
@media (min-width: 993px) {
  #nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    flex: 1;
    min-width: 0;
    margin-right: 0;
  }
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-sm);
  padding: 0.25rem 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: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
  animation: slideIn var(--transition-base) ease forwards;
}

/* CTA button in navigation */
nav a.btn-phone {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

/* 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); }
}

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

@media (max-width: 992px) {
  .mobile-only {
    display: block;
    margin-left: auto;
  }

  nav { position: relative; }
  nav > ul:last-of-type { margin-left: 0; }

  nav > ul.nav-cta { display: none; }

  #nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-card);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 1000;
    flex-direction: column;
    padding: 0.5rem;
    margin: 0;
    width: 100%;
    animation: menuSlideDown var(--transition-base) ease;
  }

  @keyframes menuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

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

  #nav-menu li {
    width: 100%;
    margin: 0;
  }

  #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) {
    #nav-menu li a:hover {
      background: var(--neutral-700);
    }
  }
  [data-theme="dark"] #nav-menu li a:hover {
    background: var(--neutral-700);
  }

  #nav-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin-left: auto;
    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) {
    #nav-toggle:hover { background: var(--neutral-700); }
  }
  [data-theme="dark"] #nav-toggle:hover { background: var(--neutral-700); }
}

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

.grid-container.two-column {
  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; }
}

/* Background blocks: 16em wider than content on each side, 8em horizontal padding */
.section-bg-block {
  max-width: calc(1200px + 32em);
  margin-left: auto;
  margin-right: auto;
}

.section-bg-block .section-bg-block__inner {
  padding: 5rem 8em;
  background-color: var(--neutral-base);
}

/* Medium: less overflow (8em each side), less padding (4em) */
@media only screen and (max-width: 959px) {
  .section-bg-block {
    max-width: calc(100% + 16em);
  }
  .section-bg-block .section-bg-block__inner {
    padding: 5rem 4em;
  }
}

/* Small: minimal overflow (2em each side), minimal padding (2em) */
@media only screen and (max-width: 767px) {
  .section-bg-block {
    max-width: calc(100% + 4em);
  }
  .section-bg-block .section-bg-block__inner {
    padding: 5rem 2em;
  }
}

/* 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% */
.contact-columns {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 3rem;
  align-items: start;
}
@media only screen and (max-width: 959px) {
  .contact-columns {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   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) {
  img.scalable-svg { filter: invert(100%); }
  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 {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  background-color: var(--primary-color);
  color: var(--text-on-primary);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  letter-spacing: 0.01em;
  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 {
  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 {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Hero button dark mode — reversed for contrast on dark hero */
@media (prefers-color-scheme: dark) {
  a.btn-phone {
    background-color: #ffffff;
    color: var(--neutral-900);
  }
  a.btn-phone:hover {
    background-color: var(--neutral-100);
    color: var(--neutral-900);
  }
  a.btn-phone-cta {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
  }
  a.btn-phone-cta: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 {
  background-color: var(--primary-color);
  color: var(--text-on-primary);
}
[data-theme="dark"] a.btn-phone-cta: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) {
  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);
}

.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"); }

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

.swatches .title {
  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; }
}

/* ===================================================
   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);
}

.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;
}

/* ===================================================
   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; }

/* ===================================================
   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;
}
