/* =========================================================
   Coastal Cleaning GC — Shared Stylesheet (styles.css)
   ========================================================= */

/* Base */
* { box-sizing: border-box; }

:root{
  --nav-bg: #ffffff;
  --nav-bg-hover: #f5f5f5;
  --dropdown-bg: #ffffff;
  --dropdown-hover: #f2f2f2;
  --text-color: #12537B;

  --accent: #25A9C2;
  --primary: #12537B;
  --dark: #12537B;
  --light: #f5f9fc;

  /* Theme helper tokens */
  --page-bg: var(--light);
  --surface: #ffffff;
  --surface-border: #dde6f0;
  --muted-bg: #f7fbfe;
  --shadow-soft: 0 4px 16px rgba(0,0,0,0.05);
  --shadow-strong: 0 16px 30px rgba(0,0,0,0.12);

  /* Glass tuning helpers (used mainly by Official theme) */
  --glass-blur: 12px;
  --glass-sat: 140%;
}

/* =========================================================
   THEMES (Step 3)
   - Light: pure white background, no background effects
   - Hero: EXACT clone of Light (pixel-for-pixel)
   - Dark: true black
   - Official: uses official-theme-bg.png
   ========================================================= */

/* LIGHT + HERO (Hero is an exact clone of Light) */
html[data-theme="light"],
html[data-theme="hero"]{
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-border: #dde6f0;
  --muted-bg: #f7fbfe;
  --shadow-soft: 0 4px 16px rgba(0,0,0,0.05);
  --shadow-strong: 0 16px 30px rgba(0,0,0,0.12);

  --nav-bg: #ffffff;
  --dropdown-bg: #ffffff;
  --dropdown-hover: #f2f2f2;

  --text-color: #12537B;
  --primary: #12537B;
  --dark: #12537B;

  --glass-blur: 0px; /* keep light/hero theme clean */
  color-scheme: light;
}

/* DARK (true black) */
html[data-theme="dark"]{
  --page-bg: #000000;

  --surface: rgba(255,255,255,0.06);
  --surface-border: rgba(255,255,255,0.14);
  --muted-bg: rgba(255,255,255,0.06);

  --shadow-soft: 0 4px 18px rgba(0,0,0,0.55);
  --shadow-strong: 0 18px 38px rgba(0,0,0,0.72);

  /* ✅ TRUE BLACK navbar/dropdowns (SOLID) */
  --nav-bg: #000000;
  --dropdown-bg: #000000;
  --dropdown-hover: rgba(255,255,255,0.10);

  --text-color: rgba(255,255,255,0.92);
  --primary: rgba(255,255,255,0.92);
  --dark: rgba(255,255,255,0.92);

  --glass-blur: 0px; /* dark theme is NOT glassy */
  color-scheme: dark;
}

/* OFFICIAL (photo background + cards like other themes)
   - Keep NAVBAR translucent/glass
   - Cards/panels should render like the other themes (NOT transparent)
*/
html[data-theme="official"]{
  /* Let the body background image show through */
  --page-bg: transparent;

  /* ✅ Cards/panels ON (match the “card” behavior from other themes) */
  --surface: rgba(10,12,14,0.55);
  --surface-border: rgba(255,255,255,0.18);
  --muted-bg: rgba(10,12,14,0.40);

  --shadow-soft: 0 4px 18px rgba(0,0,0,0.45);
  --shadow-strong: 0 18px 38px rgba(0,0,0,0.55);

  /* KEEP navbar/dropdowns glass */
  --nav-bg: rgba(10,12,14,0.55);
  --dropdown-bg: rgba(10,12,14,0.72);
  --dropdown-hover: rgba(255,255,255,0.10);

  /* Text for darker photo */
  --text-color: rgba(255,255,255,0.92);
  --primary: rgba(255,255,255,0.92);
  --dark: rgba(255,255,255,0.92);

  /* Glass feel (used on navbar/dropdowns/settings) */
  --glass-blur: 16px;
  --glass-sat: 150%;

  color-scheme: dark;
}

html { height: 100%; }

body{
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;

  font-family: 'Open Sans', sans-serif;
  color: var(--primary);
  line-height: 1.6;
  background: var(--page-bg);
  padding-top: 115px;
}

/* ✅ FORCE DARK THEME BACKGROUND TRUE BLACK (no overlays/gradients) */
html[data-theme="dark"] body{
  background: #000000 !important;
  background-image: none !important;
}

/* ✅ If anything ever adds body overlays, kill them in DARK */
html[data-theme="dark"] body::before,
html[data-theme="dark"] body::after{
  content: none !important;
  display: none !important;
}

h1, h2, h3{
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  margin: 0;
}

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.bg-light{ background: var(--page-bg); }

/* =========================================================
   OFFICIAL THEME BACKGROUND IMAGE + OVERLAY (iPhone-safe)
   ========================================================= */

/* IMPORTANT: iOS Safari often fails with background-attachment: fixed.
   So we render the image via a fixed pseudo element (not background-attachment).
   Also avoid negative z-index layers that Safari can drop. */
html[data-theme="official"] body{
  background: transparent !important;
  background-image: none !important;
  background-attachment: scroll !important;
  isolation: isolate; /* allows layering safely */
}

/* Image layer */
html[data-theme="official"] body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: url("./images/official-theme-bg.png") center center / cover no-repeat;
  background-color: #000; /* fallback */
  transform: translateZ(0); /* helps Safari paint reliably */
}

/* Dark gradient overlay layer */
html[data-theme="official"] body::after{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.42),
      rgba(0,0,0,0.16) 40%,
      rgba(0,0,0,0.50)
    );
  transform: translateZ(0);
}

/* Ensure all real content sits above the background layers */
html[data-theme="official"] body > *{
  position: relative;
  z-index: 1;
}

/* =========================================================
   HERO THEME HEADER+NAV BACKGROUND (single image, locked)
   - Uses official-theme-bg.png ONLY behind navbar+header
   - Navbar + Header locked together (no scroll seam line)
   - No bleed-through behind the background when scrolling
   - NO other Hero changes (Hero remains a clone of Light)
   ========================================================= */

html[data-theme="hero"]{
  --hero-nav-h: 115px;     /* matches your body padding-top */
  --hero-header-h: 430px;  /* ✅ taller so the button can sit lower AND image extends */
  --hero-extra: 80px;      /* keeps About below hero image */

  --hero-content-top: 52px; /* ✅ pushes logo+button down inside header (stable) */
}

/* Create an isolated stacking context so pseudo-layer z-indexing is reliable */
html[data-theme="hero"] body{
  padding-top: calc(var(--hero-nav-h) + var(--hero-header-h) + var(--hero-extra)) !important;
  position: relative;
  isolation: isolate;
}

/* Solid blocker ABOVE page content (prevents seeing anything behind the hero strip) */
html[data-theme="hero"] body::after{
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--hero-nav-h) + var(--hero-header-h) + var(--hero-extra));
  background: #ffffff;
  pointer-events: none;
  z-index: 10;
}

/* Single hero image ABOVE the blocker (still blocks content behind it) */
html[data-theme="hero"] body::before{
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--hero-nav-h) + var(--hero-header-h) + var(--hero-extra));
  background: url("./images/official-theme-bg.png") center center / cover no-repeat;
  pointer-events: none;
  z-index: 11;
}

/* Lock Area 1: Navbar (fixed height) */
html[data-theme="hero"] .navbar{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: var(--hero-nav-h) !important;

  background: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;

  z-index: 999; /* above hero image */
}

/* Remove the scroll shadow line in Hero */
html[data-theme="hero"] .navbar.scrolled{
  box-shadow: none !important;
}

/* Lock Area 2: Header (fixed height) */
html[data-theme="hero"] header{
  position: fixed !important;
  top: var(--hero-nav-h) !important;
  left: 0 !important;
  right: 0 !important;
  height: var(--hero-header-h) !important;

  background: transparent !important;
  box-shadow: none !important;
  border: none !important;

  /* ✅ keep centered horizontally, but sit LOWER (like other themes) */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  padding: var(--hero-content-top) 20px 0 20px !important;

  z-index: 998; /* above hero image */
}

/* Ensure inner container doesn't fight layout */
html[data-theme="hero"] header .container{
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

/* HERO: swap visible logos to transparent via CSS overlay (single-file solution) */
html[data-theme="hero"] .logo,
html[data-theme="hero"] .hero-logo{
  position: relative;
  display: inline-block;
}

/* keep spacing identical (img still takes space), but hide the bitmap */
html[data-theme="hero"] .logo img,
html[data-theme="hero"] .hero-logo img{
  opacity: 0 !important;
}

/* overlay logo on top */
html[data-theme="hero"] .logo::after,
html[data-theme="hero"] .hero-logo::after{
  content: "";
  position: absolute;
  inset: 0;
  background: url("./images/coastal-cleaning-logo-trans-white-text.png") center center / contain no-repeat;
  pointer-events: none;
}

/* Buttons */
.btn{
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 14px;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}
.btn:hover{
  background: var(--accent);
  transform: scale(1.05);
}

/* ✅ FIX: Dark theme button visibility (no “ghost button”) */
html[data-theme="dark"] .btn{
  background: var(--accent);
  color: #06131a;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 14px 34px rgba(0,0,0,0.55);
  opacity: 1;
  text-shadow: none;
}
html[data-theme="dark"] .btn:hover{
  background: #33c7de;
  transform: scale(1.06);
  box-shadow: 0 18px 44px rgba(0,0,0,0.65);
}

/* ✅ FIX: Official theme button visibility (no “ghost button”) */
html[data-theme="official"] .btn{
  background: var(--accent);
  color: #06131a;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 14px 34px rgba(0,0,0,0.40);
  opacity: 1;
  text-shadow: none;
}
html[data-theme="official"] .btn:hover{
  background: #33c7de;
  transform: scale(1.06);
  box-shadow: 0 18px 44px rgba(0,0,0,0.50);
}

/* Utility */
.section-title-centered{
  text-align: center;
  font-size: 2.8rem;
  color: var(--dark);
}

.section-intro-centered{
  text-align: center;
  max-width: 800px;
  margin: 20px auto;
}

.mt-6{ margin-top: 6px; }
.btn-margin-top-10{ margin-top: 10px !important; }
.hidden-input{ display: none !important; }

.btn-disabled{
  opacity: 0.6;
  cursor: not-allowed;
}

/* NAVBAR */
.navbar{
  background: var(--nav-bg);
  color: var(--text-color);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled{ box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* ✅ DARK NAVBAR = TRUE BLACK (no glass / no transparency bleed) */
html[data-theme="dark"] .navbar{
  background: #000000 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 40px rgba(0,0,0,0.75);
}

/* Keep dropdown solid too */
html[data-theme="dark"] .dropdown-menu{
  background: #000000 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.nav-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 0 0;
  gap: 0;
}

.logo{ text-decoration: none; color: var(--text-color); }
.logo img{ height: 140px; width: auto; display: block; }

.nav-links{
  list-style: none;
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  gap: 0;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li a,
.dropbtn{
  color: var(--text-color);
  text-decoration: none;
  padding: 10px 16px;
  display: block;
  cursor: pointer;
  font-weight: 500;
  border-radius: 0;
  transition: box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

/* hover glow */
.nav-links > li > a:hover,
.nav-links > li > .dropbtn:hover{
  background: transparent !important;
  box-shadow: 0 0 12px var(--accent);
  border-radius: 0 !important;
  color: var(--accent) !important;
  transform: scale(1.03);
}

.dropdown{ position: relative; }

.dropbtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-arrow{
  font-size: 0.85em;
  line-height: 1;
  display: inline-block;
  transform: translateY(1px);
  transition: transform 0.25s ease;
}
.dropdown:hover .nav-arrow{ transform: translateY(1px) rotate(180deg); }

.dropdown-menu{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: var(--dropdown-bg);
  transition: max-height 0.3s ease, opacity 0.3s ease;
  border-radius: 4px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  list-style: none;
  padding: 6px 0;
  margin: 4px 0 0 0;
  flex-direction: column;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (min-width: 801px){
  .dropdown:hover > .dropdown-menu{
    max-height: 500px;
    opacity: 1;
    display: flex;
  }
}

.dropdown-menu li a{
  padding: 10px 22px;
  color: var(--text-color);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.95rem;
}
.dropdown-menu li a:hover{
  background: var(--dropdown-hover);
  color: var(--text-color);
  box-shadow: none;
}

.hamburger{
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: 12px;
}
.hamburger span{
  width: 27px;
  height: 3px;
  background: var(--text-color);
  margin: 4px 0;
  transition: 0.3s;
}

@media (max-width: 800px){
  .nav-container{ justify-content: space-between; }

  .nav-links{
    position: absolute;
    top: 60px;
    left: 0;
    background: var(--nav-bg);
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav-links.open{ max-height: 1000px; }

  .hamburger{ display: flex; }

  /* mobile dropdown should be visible (no hover needed) */
  .dropdown-menu{
    position: static;
    opacity: 1;
    max-height: none;
    box-shadow: none;
    margin: 0;
  }
}

/* HEADER */
header{
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  text-align: center;
  padding: 6px 20px 28px 20px;
  margin-top: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ✅ Dark header override — TRUE BLACK */
html[data-theme="dark"] header{
  background: #000000 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* ✅ Official header: NO black block, just logo + button on the photo */
html[data-theme="official"] header{
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-logo{ max-width: 260px; margin: 0 auto 4px; }
.hero-logo img{ width: 100%; height: auto; display: block; }

/* FOOTER */
footer{
  margin-top: auto;
  background: #ffffff;
  color: var(--primary);
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid #dde6f0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
  font-size: 0.95rem;
}
footer p{ margin: 5px 0; }

/* ✅ Dark footer override — TRUE BLACK */
html[data-theme="dark"] footer{
  background: #000000 !important;
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -10px 26px rgba(0,0,0,0.75);
}

/* ✅ Official footer: no visible container */
html[data-theme="official"] footer{
  background: transparent !important;
  border-top: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* SETTINGS (Shared) */
.settings-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25A9C2;
  color: #ffffff;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 12px 30px rgba(37,169,194,0.45);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 2px solid rgba(255,255,255,0.85);
}
.settings-fab:hover{
  transform: scale(1.06);
  box-shadow: 0 16px 40px rgba(37,169,194,0.60);
}
.settings-fab i{ font-size: 20px; }

.settings-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.18);
  z-index: 9998;
  display: none;
}
.settings-backdrop.open{ display: block; }

.settings-panel{
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: 300px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  padding: 14px;
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: .18s ease;
  z-index: 9999;
  border: 1px solid var(--surface-border);
}
.settings-panel.open{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Blur glass on official (allowed — it’s a small UI panel, not the big black blocks) */
html[data-theme="official"] .settings-panel,
html[data-theme="official"] .dropdown-menu{
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
}

/* Ensure settings panel is visible on official (since --surface is transparent there) */
html[data-theme="official"] .settings-panel{
  background: rgba(10,12,14,0.70);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.settings-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #25A9C2;
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.settings-close{
  border: none;
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
}

.settings-section{ padding: 8px 0 2px; }

.settings-label{
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary);
}

.settings-row{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-row select{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  color: var(--primary);
  background: var(--surface);
  outline: none;
}

/* ✅ DARK: make the dropdown list BLACK with WHITE text */
html[data-theme="dark"] .settings-row select{
  background: #000000;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 10px 26px rgba(0,0,0,0.55);
}
html[data-theme="dark"] .settings-row select option{
  background: #000000;
  color: rgba(255,255,255,0.92);
}

/* ✅ OFFICIAL: dropdown options should match the transparent/glass box vibe */
html[data-theme="official"] .settings-row select{
  background: rgba(10,12,14,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
}
html[data-theme="official"] .settings-row select option{
  background: rgba(10,12,14,0.92);
  color: rgba(255,255,255,0.92);
}

.settings-hint{
  margin-top: 8px;
  font-size: 12px;
  opacity: .75;
}

/* =========================================================
   PAGE: INDEX (Home)
   ========================================================= */
body.page-index #about{ padding-top: 40px; padding-bottom: 80px; }

/* Slider (scoped to index only) */
body.page-index .services-wrap{
  width: min(2200px, calc(100vw - 60px));
  margin: 35px auto 0;

  position: relative;
  left: 50%;
  transform: translateX(-50%);

  --gap: 28px;
  --perView: 3;
}

body.page-index .services-viewport{
  overflow: hidden;
  padding: 6px;
  border-radius: 18px;
}

body.page-index .services-track{
  display: flex;
  gap: var(--gap);
  transition: transform 0.45s ease;
  will-change: transform;
  padding: 0;
  margin: 0;
}

body.page-index .services-wrap .service-card{
  flex: 0 0 calc((100% - (var(--gap) * (var(--perView) - 1))) / var(--perView));
  background: var(--surface);
  color: var(--primary);
  padding: 46px 36px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  border: 1px solid var(--surface-border);
  min-height: 330px;
}

body.page-index .services-wrap .service-card:hover{
  box-shadow: 0 0 22px rgba(37,169,194,0.55);
  transform: translateY(-4px);
}

body.page-index .services-wrap .service-card i{
  font-size: 3.6rem;
  color: var(--accent);
  margin-bottom: 16px;
}

body.page-index .services-wrap .service-card h3{
  font-size: 1.35rem;
  margin-bottom: 12px;
}

body.page-index .services-wrap .service-card .card-body{
  max-width: 520px;
  margin: 0 auto;
}

body.page-index .services-wrap .service-card p{
  margin: 8px 0;
  color: var(--primary);
  opacity: 0.92;
  font-size: 0.98rem;
  line-height: 1.45;
}

body.page-index .services-wrap .service-card ul{
  list-style: none;
  padding: 0;
  margin: 14px auto 0;
  text-align: left;
  max-width: 520px;
}

body.page-index .services-wrap .service-card ul li{
  margin: 8px 0;
  line-height: 1.4;
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
}

body.page-index .services-wrap .service-card ul li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}

/* Controls */
body.page-index .service-nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  user-select: none;
}

body.page-index .nav-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
body.page-index .nav-btn:hover{ transform: scale(1.04); box-shadow: 0 8px 20px rgba(0,0,0,0.10); }
body.page-index .nav-btn:disabled{ opacity: 0.35; cursor: not-allowed; }

body.page-index .dots{
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 680px;
}
body.page-index .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(18,83,123,0.25);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
body.page-index .dot:hover{ transform: scale(1.15); }
body.page-index .dot.active{ background: var(--accent); transform: scale(1.2); }

@media (max-width: 1200px){
  body.page-index .services-wrap{ --perView: 2; width: calc(100vw - 50px); }
  body.page-index .services-wrap .service-card .card-body,
  body.page-index .services-wrap .service-card ul{ max-width: 560px; }
}
@media (max-width: 900px){
  body.page-index .services-wrap{ --perView: 1; width: calc(100vw - 40px); }
  body.page-index .services-wrap .service-card{ padding: 38px 24px; }
  body.page-index .services-wrap .service-card .card-body,
  body.page-index .services-wrap .service-card ul{ max-width: 620px; }
}

/* Index booking section */
body.page-index #book{
  padding: 120px 0;
  margin-top: 40px;
  background: var(--page-bg);
}
body.page-index #book h1,
body.page-index #book p{ text-align: center; color: var(--primary); }

body.page-index .booking-box{
  background: var(--surface);
  border-radius: 12px;
  padding: 40px;
  transition: 0.3s ease;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
}
body.page-index .booking-box:hover{
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(37,169,194,0.45);
}

body.page-index #book iframe{
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 40px auto 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}
/* =========================================================
   PAGE: SERVICES
   ========================================================= */
body.page-services .services-intro{
  background: var(--page-bg);
  text-align: center;
  padding: 70px 20px 40px 20px;
}

body.page-services .services-intro h1{
  font-size: 2.8rem;
  margin: 0 0 18px 0;
  color: var(--dark);
}

body.page-services .services-intro p{
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--primary);
}

body.page-services .services-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 0 120px 0;
}

body.page-services .services-grid .service-card{
  width: 320px;
  background: var(--surface);
  color: var(--primary);
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
  border: 1px solid var(--surface-border);
  display: block;
}

body.page-services .services-grid .service-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(37,169,194,0.5);
}

body.page-services .services-grid .service-card i{
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--accent);
}

body.page-services .services-grid .service-card h3{
  margin: 10px 0 0;
  color: var(--dark);
}

/* =========================================================
   PAGE: OUR TEAM
   ========================================================= */
body.page-ourteam #about{
  padding-top: 50px;
  padding-bottom: 80px;
}

body.page-ourteam .team-growth{
  max-width: 900px;
  margin: 22px auto 10px;
  background: #fff8e6;
  border: 1px solid #f0d7a6;
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: none;
}

/* Dark/Official tweak for the yellow notice so it doesn’t look like a sticker */
html[data-theme="dark"] body.page-ourteam .team-growth,
html[data-theme="official"] body.page-ourteam .team-growth{
  background: var(--muted-bg);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
}

body.page-ourteam .team-growth .icon{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ffe7b3;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
}

html[data-theme="dark"] body.page-ourteam .team-growth .icon,
html[data-theme="official"] body.page-ourteam .team-growth .icon{
  background: rgba(255,255,255,0.14);
}

body.page-ourteam .team-growth .icon i{
  color: #c47a00;
  font-size: 18px;
}

html[data-theme="dark"] body.page-ourteam .team-growth .icon i,
html[data-theme="official"] body.page-ourteam .team-growth .icon i{
  color: var(--primary);
}

body.page-ourteam .team-growth h3{
  margin: 0 0 6px 0;
  font-size: 1.35rem;
  color: #8a5a00;
}

body.page-ourteam .team-growth p{
  margin: 0;
  color: #8a5a00;
  font-size: 0.98rem;
  line-height: 1.55;
}

html[data-theme="dark"] body.page-ourteam .team-growth h3,
html[data-theme="dark"] body.page-ourteam .team-growth p,
html[data-theme="official"] body.page-ourteam .team-growth h3,
html[data-theme="official"] body.page-ourteam .team-growth p{
  color: var(--primary);
}

@media (max-width: 640px){
  body.page-ourteam .team-growth{ padding: 16px; }
}

body.page-ourteam .team-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

body.page-ourteam .team-card{
  width: 260px;
  background: var(--surface);
  color: var(--primary);
  padding: 30px 24px;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  text-align: center;
  flex-shrink: 0;
  border: 1px solid var(--surface-border);
  transition: 0.3s ease;
}

body.page-ourteam .team-card:hover{
  box-shadow: 0 0 20px rgba(37,169,194,0.45);
  transform: translateY(-3px);
}

body.page-ourteam .team-avatar{
  font-size: 3.2rem;
  color: var(--accent);
  margin-bottom: 12px;
}

body.page-ourteam .team-card h3{
  margin: 10px 0 4px;
  color: var(--dark);
  font-size: 1.25rem;
}

body.page-ourteam .team-role{
  color: #1ca1be;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

body.page-ourteam .team-bio{
  font-size: 0.9rem;
  line-height: 1.5;
  color: #34526d;
}

html[data-theme="dark"] body.page-ourteam .team-role,
html[data-theme="official"] body.page-ourteam .team-role{
  color: var(--primary);
  opacity: 0.9;
}
html[data-theme="dark"] body.page-ourteam .team-bio,
html[data-theme="official"] body.page-ourteam .team-bio{
  color: var(--primary);
  opacity: 0.88;
}

/* Our Team CTA section */
body.page-ourteam #book{
  padding: 120px 0;
  margin-top: 40px;
  background: var(--page-bg);
}
body.page-ourteam #book h1,
body.page-ourteam #book p{ text-align: center; color: var(--primary); }

body.page-ourteam #book .booking-box{
  background: var(--surface);
  border-radius: 12px;
  padding: 40px;
  transition: 0.3s ease;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
body.page-ourteam #book .booking-box:hover{
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(37,169,194,0.35);
}

/* =========================================================
   PAGE: CONTACT
   ========================================================= */
body.page-contact #book{
  padding: 120px 0;
  background: var(--page-bg);
}

body.page-contact #book h1,
body.page-contact #book p{
  text-align: center;
  color: var(--primary);
}

body.page-contact .booking-box{
  background: var(--surface);
  border-radius: 12px;
  padding: 40px;
  transition: 0.3s ease;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
}
body.page-contact .booking-box:hover{
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(37,169,194,0.35);
}

/* Contact info block */
body.page-contact .contact-info{
  margin-top: 18px;
  background: var(--muted-bg);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: center;
}
body.page-contact .contact-info strong{
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
body.page-contact .contact-info a{
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
body.page-contact .contact-info a:hover{
  color: var(--accent);
  text-decoration: underline;
}

body.page-contact .form-disabled-note{
  margin-top: 18px;
  border: 1px solid #f0d7a6;
  background: #fff8e6;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
  color: #8a5a00;
}

html[data-theme="dark"] body.page-contact .form-disabled-note,
html[data-theme="official"] body.page-contact .form-disabled-note{
  border: 1px solid var(--surface-border);
  background: var(--muted-bg);
  color: var(--primary);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
}

/* Contact form */
body.page-contact .contact-form{
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =========================================================
   ✅ GLOBAL BUTTON COLOR OVERRIDE (ALL THEMES / ALL PAGES)
   Request: all buttons = #1E8B9F with white text
   ========================================================= */
.btn,
button.btn,
input[type="submit"].btn,
a.btn{
  background: #1E8B9F !important;
  color: #ffffff !important;
  border: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #ffffff !important;
}

.btn:hover,
button.btn:hover,
input[type="submit"].btn:hover,
a.btn:hover{
  background: #1E8B9F !important;
  color: #ffffff !important;
}

.btn:focus,
button.btn:focus,
input[type="submit"].btn:focus,
a.btn:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(30,139,159,0.25) !important;
}

/* Disabled buttons can still look disabled but keep same color */
.btn[disabled],
button.btn[disabled],
button[disabled].btn{
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

/* HERO — keep current height/spacing, just center like other themes */
html[data-theme="hero"] header{
  justify-content: center !important;
  padding: var(--hero-content-top) 20px 0 20px !important;
  text-align: center !important;
}

html[data-theme="hero"] header .container{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* =========================================================
   ✅ LOGO CLARITY FIX (stops “grey/faded white” look)
   This prevents compositing/glass effects from washing out the logo pixels
   ========================================================= */

.logo,
.hero-logo{
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Ensure logos sit ABOVE hero/background layers */
html[data-theme="hero"] .logo,
html[data-theme="hero"] .hero-logo,
html[data-theme="official"] .logo,
html[data-theme="official"] .hero-logo{
  position: relative !important;
  z-index: 1000 !important;
}

/* Prevent any glass/blur from affecting logo rendering */
.navbar .logo,
header .hero-logo{
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: transparent !important;
}
/* =========================================================
   LOGO CLARITY BOOST (Hero + Official) — STRONGER
   ========================================================= */

html[data-theme="hero"] .logo::after,
html[data-theme="hero"] .hero-logo::after,
html[data-theme="official"] .logo::after,
html[data-theme="official"] .hero-logo::after{
  background-image: url("./images/coastal-cleaning-logo-trans-white-text.png") !important;

  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);

  /* Stronger "solid white" read on photo */
  filter:
    drop-shadow(0 2px 2px rgba(0,0,0,0.70))
    drop-shadow(0 0 10px rgba(0,0,0,0.45))
    contrast(1.18)
    brightness(1.14)
    saturate(1.02);
}

/* Official theme can still be using the <img> swap */
html[data-theme="official"] .logo img,
html[data-theme="official"] .hero-logo img{
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
  filter:
    drop-shadow(0 2px 2px rgba(0,0,0,0.70))
    drop-shadow(0 0 10px rgba(0,0,0,0.45))
    contrast(1.18)
    brightness(1.14)
    saturate(1.02);
}
/* =========================================================
   SERVICE DETAIL: universal container + layout (ALL themes)
   Targets: generalhousecleaning, springcleans, homehelperpackage,
            airbnbcleaning, deepcleaning, etc.
   ========================================================= */

/* Section spacing */
body.page-service-detail section{
  padding: 70px 0;
}

/* The main service card/container */
body.page-service-detail .service-box{
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 18px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}

/* Responsive padding */
@media (max-width: 840px){
  body.page-service-detail .service-box{
    padding: 22px 18px;
  }
}

/* Grid layout: text left, image right */
body.page-service-detail .service-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

@media (max-width: 900px){
  body.page-service-detail .service-grid{
    grid-template-columns: 1fr;
  }
}

/* Typography tidy-up */
body.page-service-detail h2{
  margin-top: 0;
}
body.page-service-detail ul{
  padding-left: 18px;
  margin: 10px 0 0;
}
body.page-service-detail li{
  margin: 6px 0;
}

/* Image styling */
body.page-service-detail .service-image img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
}

/* =========================================================
   THEME RULES for the service container
   Light: pure white
   Dark: true black
   Official: glass
   Hero: same as light
   ========================================================= */

/* LIGHT + HERO = pure white card */
html[data-theme="light"] body.page-service-detail .service-box,
html[data-theme="hero"]  body.page-service-detail .service-box{
  background: #ffffff !important;
  border: 1px solid #dde6f0 !important;
  box-shadow: 0 18px 55px rgba(0,0,0,0.10) !important;
}

/* LIGHT + HERO text */
html[data-theme="light"] body.page-service-detail .service-box,
html[data-theme="light"] body.page-service-detail .service-box * ,
html[data-theme="hero"]  body.page-service-detail .service-box,
html[data-theme="hero"]  body.page-service-detail .service-box *{
  color: #12537B;
  text-shadow: none;
}

/* DARK = true black card */
html[data-theme="dark"] body.page-service-detail .service-box{
  background: #000000 !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,0.75) !important;
}

/* DARK text */
html[data-theme="dark"] body.page-service-detail .service-box,
html[data-theme="dark"] body.page-service-detail .service-box *{
  color: rgba(255,255,255,0.92) !important;
  text-shadow: none !important;
}

/* OFFICIAL = glass card */
html[data-theme="official"] body.page-service-detail .service-box{
  background: rgba(10,12,14,0.38) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,0.45) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) !important;
}

/* OFFICIAL text */
html[data-theme="official"] body.page-service-detail .service-box,
html[data-theme="official"] body.page-service-detail .service-box *{
  color: rgba(255,255,255,0.92) !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.70);
}

/* Image border per theme */
html[data-theme="dark"] body.page-service-detail .service-image img,
html[data-theme="official"] body.page-service-detail .service-image img{
  border: 1px solid rgba(255,255,255,0.12);
}

html[data-theme="official"] body.page-ourteam .team-panel *{
  color: rgba(255,255,255,0.92) !important;
}