/* =========================================================================
   CleanPro Plus — Global Design System
   Brand palette derived from the CleanPro Plus logo (house roofline,
   water/bubble motifs, green-to-blue swoosh, two-tone wordmark).
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Local Fonts (no CDN — self-hosted, see /assets/fonts)
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------------------
   2. Brand Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --primary: #0875D1;
  --primary-dark: #0560AE;
  --primary-light: #E8F2FC;
  --secondary: #59B914;
  --secondary-dark: #4A9910;
  --secondary-light: #EEF9E4;
  --accent: #08B9EA;
  --accent-dark: #0796BE;
  --navy: #082B55;
  --navy-dark: #061F3E;

  --white: #FFFFFF;
  --light-blue: #F3FAFF;
  --light-green: #F5FBEF;
  --off-white: #FAFCFE;

  --text: #17324D;
  --text-light: #60758A;
  --text-muted: #8CA0B3;
  --border: #DDEBF5;
  --border-strong: #C4DCEF;

  --gradient-primary: linear-gradient(135deg, #0875D1 0%, #08B9EA 100%);
  --gradient-brand: linear-gradient(135deg, #0875D1 0%, #59B914 100%);
  --gradient-navy: linear-gradient(160deg, #0A3565 0%, #082B55 55%, #061F3E 100%);
  --gradient-mesh: radial-gradient(60% 60% at 15% 10%, rgba(8,185,234,.16), transparent 60%),
                    radial-gradient(50% 55% at 90% 15%, rgba(89,185,20,.12), transparent 60%),
                    radial-gradient(70% 60% at 50% 100%, rgba(8,117,209,.10), transparent 60%);

  /* Typography */
  --font-heading: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --fs-h1: clamp(2.35rem, 1.55rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --fs-h3: clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem);
  --fs-h4: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.7;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-section: clamp(3.5rem, 2.6rem + 3.6vw, 6.5rem);

  /* Shape / elevation */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(8, 43, 85, 0.06);
  --shadow-md: 0 12px 30px -8px rgba(8, 43, 85, 0.16);
  --shadow-lg: 0 24px 60px -16px rgba(8, 43, 85, 0.22);
  --shadow-glow: 0 18px 40px -12px rgba(8, 117, 209, 0.35);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.2s;
  --dur-base: 0.4s;
  --dur-slow: 0.8s;

  --container-max: 1280px;
  --header-h: 84px;
}

/* -------------------------------------------------------------------------
   3. Reset & Base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.has-lenis { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul, ol { padding-left: 0; margin: 0; list-style: none; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: var(--white); }

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

/* -------------------------------------------------------------------------
   4. Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--navy);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
h1, .h1 { font-size: var(--fs-h1); font-weight: 800; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 800; }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  color: var(--text-light);
}

.text-primary-brand { color: var(--primary) !important; }
.text-secondary-brand { color: var(--secondary) !important; }
.text-navy { color: var(--navy) !important; }
.text-muted-brand { color: var(--text-light) !important; }
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.45rem 1rem 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-brand);
  flex-shrink: 0;
}
.eyebrow.on-dark {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.section-head { max-width: 680px; margin-bottom: var(--space-8); }
.section-head.mx-auto { margin-left: auto; margin-right: auto; text-align: center; }

/* Heading + CTA button on one row (gallery/blog preview headers): the
   heading itself is zeroed out (.section-head.mb-0) so it lines up with
   the button, so the ROW needs its own bottom margin instead — otherwise
   the grid directly beneath sits flush against the button with no
   breathing room. */
.section-head-row { margin-bottom: var(--space-8); }
.section-head p:last-child { margin-top: var(--space-4); }

/* -------------------------------------------------------------------------
   5. Layout helpers
   ------------------------------------------------------------------------- */
.container, .container-fluid {
  max-width: var(--container-max);
}
@media (min-width: 1400px) {
  .container { max-width: var(--container-max); }
}

.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section-sm { padding-top: calc(var(--space-section) * 0.6); padding-bottom: calc(var(--space-section) * 0.6); }
.bg-surface { background: var(--off-white); }
.bg-light-blue { background: var(--light-blue); }
.bg-light-green { background: var(--light-green); }
.bg-navy { background: var(--gradient-navy); color: rgba(255,255,255,0.88); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-mesh { position: relative; }
.bg-mesh::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: 0;
}
.bg-mesh > * { position: relative; z-index: 1; }

.rounded-brand { border-radius: var(--radius-lg); }
.shadow-brand { box-shadow: var(--shadow-md); }

/* -------------------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------------------- */
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn-brand:hover { transform: translateY(-2px); }
.btn-brand:active { transform: translateY(0); }

.btn-brand-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}
.btn-brand-primary:hover { color: var(--white); box-shadow: 0 22px 46px -14px rgba(8,117,209,0.48); }

.btn-brand-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn-brand-outline:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }

.btn-brand-white {
  background: var(--white);
  color: var(--primary);
}
.btn-brand-white:hover { color: var(--primary-dark); box-shadow: 0 18px 40px -14px rgba(0,0,0,0.35); }

.btn-brand-ghost-light {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-brand-ghost-light:hover { background: rgba(255,255,255,0.16); color: var(--white); }

.btn-sm-brand { padding: 0.6rem 1.25rem; font-size: 0.88rem; }

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn-brand:hover .icon-circle { transform: translateX(3px); }

/* -------------------------------------------------------------------------
   7. Cards
   ------------------------------------------------------------------------- */
.card-brand {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.card-brand:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-glow);
}

.badge-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--secondary-light);
  color: var(--secondary-dark);
}

/* -------------------------------------------------------------------------
   8. Forms
   ------------------------------------------------------------------------- */
.form-brand label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
  display: inline-block;
}
.form-brand .form-control,
.form-brand .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.96rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.form-brand .form-control:focus,
.form-brand .form-select:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(8,117,209,0.12);
  outline: none;
}
.form-brand textarea.form-control { resize: vertical; min-height: 120px; }
.form-status { font-size: 0.9rem; margin-top: 0.75rem; }
.form-status.is-success { color: var(--secondary-dark); }
.form-status.is-error { color: #C0392B; }

/* -------------------------------------------------------------------------
   9. Breadcrumbs & Page header
   ------------------------------------------------------------------------- */
.page-header {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 4.5rem;
  background: var(--gradient-navy);
  color: rgba(255,255,255,0.85);
  overflow: hidden;
}
.page-header h1 { color: var(--white); margin-bottom: var(--space-3); }
.page-header-photo {
  background-image: linear-gradient(160deg, rgba(10,53,101,0.90) 0%, rgba(8,43,85,0.85) 55%, rgba(6,31,62,0.92) 100%), url("../images/about/team-living-room-clean.webp");
  background-size: cover;
  background-position: center 30%;
}
.breadcrumb-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin: 0 0 var(--space-4);
}
.breadcrumb-brand a { color: rgba(255,255,255,0.85); }
.breadcrumb-brand a:hover { color: var(--accent); }
.breadcrumb-brand .sep { opacity: 0.5; }
.breadcrumb-brand .current { color: var(--white); }

/* -------------------------------------------------------------------------
   10. Utilities
   ------------------------------------------------------------------------- */
.fw-heading { font-family: var(--font-heading); }
.divider-brand { width: 64px; height: 4px; border-radius: var(--radius-pill); background: var(--gradient-brand); border: none; margin: 0 0 var(--space-5); }
.divider-brand.mx-auto { margin-left: auto; margin-right: auto; }

.ratio-brand { border-radius: var(--radius-lg); overflow: hidden; }

.stat-tile { text-align: center; }
.stat-tile .stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  color: var(--navy);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
}
.stat-tile .stat-label { color: var(--text-light); font-size: 0.92rem; margin-top: 0.4rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   11. Preloader
   ========================================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: opacity 0.5s var(--ease-out), visibility 0.5s var(--ease-out);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-mark { position: relative; width: 110px; height: 110px; display: flex; align-items: center; justify-content: center; }
.preloader-mark img { width: 72px; height: auto; }
.preloader-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  animation: cpp-spin-slow 0.9s linear infinite;
}

/* =========================================================================
   12. Site Header / Navigation
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  height: calc(var(--header-h) - 12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand-lockup { height: 50px; width: auto; display: block; transition: transform var(--dur-fast) var(--ease-out); }
.brand:hover .brand-lockup { transform: scale(1.035); }
.brand-footer .brand-lockup { height: 58px; }
.mobile-menu-head .brand-lockup { height: 40px; }

/* Legacy text-based lockup (kept for any markup not yet migrated to the image lockup) */
.brand-mark { width: 42px; height: 42px; transition: transform var(--dur-fast) var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-word { font-family: var(--font-heading); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.01em; display: inline-flex; }
.brand-clean { color: var(--primary); }
.brand-plus { color: var(--secondary); }
.brand-footer .brand-word { font-size: 1.4rem; }
.brand-footer .brand-clean { color: var(--white); }
.brand-footer .brand-plus { color: #8FE24A; }

.navbar-nav-wrap { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-link {
  display: flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--navy);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }
.dropdown-caret { font-size: 0.65rem; transition: transform var(--dur-fast) var(--ease-out); }
.nav-item.has-dropdown:hover .dropdown-caret { transform: rotate(180deg); }
.dropdown-toggle-mobile { display: none; }

.dropdown-menu-brand {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  z-index: 50;
}
/* Hover/focus fly-out positioning is desktop-only — on mobile the same
   markup is reused inside .mobile-menu-nav as a click-toggled accordion
   (see section 13), which must not be fought by :hover/:focus-within
   transforms scoped here. */
@media (min-width: 992px) {
  .dropdown-menu-brand {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    min-width: 280px;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
  }
  .nav-item.has-dropdown:hover .dropdown-menu-brand,
  .nav-item.has-dropdown:focus-within .dropdown-menu-brand {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  }
}
.dropdown-menu-brand a {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.92rem; font-weight: 600; color: var(--text);
  padding: 0.65rem 0.8rem; border-radius: var(--radius-sm);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.dropdown-menu-brand a i { color: var(--primary); width: 1.1rem; text-align: center; flex-shrink: 0; }
.dropdown-menu-brand a:hover { background: var(--light-blue); color: var(--primary); }
.dropdown-menu-brand .dropdown-divider { height: 1px; background: var(--border); margin: 0.4rem 0.2rem; }
.dropdown-menu-brand .view-all-link { color: var(--primary); justify-content: space-between; font-weight: 700; }
.dropdown-menu-brand .view-all-link i { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 0.6rem; }
.icon-circle-sm {
  width: 2.35rem; height: 2.35rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); flex-shrink: 0;
}
.header-phone-text { display: flex; flex-direction: column; line-height: 1.2; }
.header-phone-text small { color: var(--text-light); font-size: 0.72rem; }
.header-phone-text strong { color: var(--navy); font-family: var(--font-heading); font-size: 0.92rem; }

.nav-toggle {
  display: none;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }

@media (max-width: 1199.98px) {
  .header-phone-text { display: none; }
}
@media (max-width: 991.98px) {
  .navbar-nav-wrap { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
}
@media (min-width: 992px) {
  .header-cta { display: inline-flex; }
}

/* =========================================================================
   13. Mobile Off-canvas Menu
   ========================================================================= */
.mobile-menu-backdrop {
  position: fixed; inset: 0; z-index: 1040;
  background: rgba(6, 31, 62, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base) var(--ease-out);
}
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: var(--white);
  z-index: 1050;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease-out);
  box-shadow: -20px 0 60px rgba(6,31,62,0.25);
}
body.mobile-menu-open .mobile-menu { transform: translateX(0); }
body.mobile-menu-open .mobile-menu-backdrop { opacity: 1; visibility: visible; }
body.mobile-menu-open { overflow: hidden; }

.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.mobile-menu-close {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--border); background: var(--off-white);
  display: inline-flex; align-items: center; justify-content: center; color: var(--navy);
}
.mobile-menu-nav { padding: 1rem 0.75rem; overflow-y: auto; flex: 1; }
.mobile-menu-nav .nav-links { flex-direction: column; align-items: stretch; gap: 0.15rem; }
.mobile-menu-nav .nav-link { padding: 0.9rem 0.9rem; border-radius: var(--radius-sm); justify-content: space-between; }
.mobile-menu-nav .nav-item.has-dropdown { position: relative; }
.mobile-menu-nav .dropdown-caret { display: none; }
.mobile-menu-nav .dropdown-toggle-mobile {
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute; right: 0.35rem; top: 0.35rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: none; background: transparent; color: var(--navy);
  transition: transform var(--dur-fast) var(--ease-out);
}
.mobile-menu-nav .nav-item.has-dropdown.is-open .dropdown-toggle-mobile { transform: rotate(180deg); color: var(--primary); }
.mobile-menu-nav .dropdown-menu-brand {
  position: static; transform: none; opacity: 1; visibility: visible;
  min-width: 0; box-shadow: none; border: none; background: var(--light-blue);
  margin: 0.25rem 0 0.5rem; padding: 0.4rem;
  max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0;
  transition: max-height var(--dur-base) var(--ease-out);
}
.mobile-menu-nav .nav-item.has-dropdown.is-open .dropdown-menu-brand { max-height: 420px; padding: 0.4rem; }

.mobile-menu-foot { padding: 1.25rem 1.5rem 1.75rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.9rem; }
.mobile-menu-phone { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--navy); justify-content: center; }
.mobile-menu-social { display: flex; gap: 0.6rem; justify-content: center; }
.mobile-menu-social a {
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}

/* =========================================================================
   14. Cookie Banner
   ========================================================================= */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 950;
  max-width: 640px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.5rem;
  transform: translateY(140%);
  transition: transform var(--dur-base) var(--ease-out);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-banner p { font-size: 0.9rem; color: var(--text-light); margin: 0; flex: 1 1 260px; }
.cookie-banner i { color: var(--secondary); margin-right: 0.3rem; }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

/* =========================================================================
   15. Footer
   ========================================================================= */
.site-footer { position: relative; background: var(--gradient-navy); color: rgba(255,255,255,0.7); overflow: hidden; padding-top: var(--space-9); }
.footer-shape {
  position: absolute; top: -1px; left: 0; right: 0; height: 90px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
  opacity: 0.03;
  pointer-events: none;
}
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--space-7); padding-bottom: var(--space-8); border-bottom: 1px solid rgba(255,255,255,0.12); position: relative; z-index: 1; }
.footer-tagline { font-size: 0.92rem; line-height: 1.7; margin: 1rem 0 1.25rem; max-width: 320px; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.footer-social a:hover { background: var(--gradient-primary); transform: translateY(-3px); }

.footer-heading { color: var(--white); font-size: 1.02rem; margin-bottom: 1.1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { font-size: 0.9rem; transition: color var(--dur-fast), padding var(--dur-fast); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.25rem; }
.footer-contact li { display: flex; gap: 0.7rem; font-size: 0.9rem; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: 0.2rem; width: 1rem; flex-shrink: 0; }
.footer-contact a:hover { color: var(--accent); }

.footer-newsletter { display: flex; gap: 0.5rem; }
.footer-newsletter input {
  flex: 1; min-width: 0; padding: 0.75rem 1rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: var(--white); font-size: 0.88rem;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.45); }
.footer-newsletter input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.1); }
.footer-newsletter button {
  width: 2.9rem; height: 2.9rem; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient-primary); border: none; color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out);
}
.footer-newsletter button:hover { transform: scale(1.08); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 1.5rem 0; font-size: 0.85rem; position: relative; z-index: 1;
}
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a:hover { color: var(--accent); }
.footer-bottom p a { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,0.35); transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out); }
.footer-bottom p a:hover { color: var(--accent); text-decoration-color: var(--accent); }

@media (max-width: 991.98px) {
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: var(--space-7); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =========================================================================
   16. Media Tiles (illustrative gradient art in place of stock photography)
   ========================================================================= */
.media-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.media-tile::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.35) 0, rgba(255,255,255,0) 34%),
    radial-gradient(circle at 82% 78%, rgba(255,255,255,0.22) 0, rgba(255,255,255,0) 30%);
}
.media-tile i { position: relative; z-index: 1; font-size: 2.4rem; color: rgba(255,255,255,0.95); }
.media-tile .media-tile-label {
  position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 1;
  color: var(--white); font-family: var(--font-heading); font-weight: 700; font-size: 0.98rem;
}
.tile-1 { background: linear-gradient(135deg, #0875D1, #08B9EA); }
.tile-2 { background: linear-gradient(135deg, #082B55, #0875D1); }
.tile-3 { background: linear-gradient(135deg, #59B914, #08B9EA); }
.tile-4 { background: linear-gradient(135deg, #08B9EA, #59B914); }
.tile-5 { background: linear-gradient(135deg, #0560AE, #082B55); }
.tile-6 { background: linear-gradient(135deg, #4A9910, #0875D1); }
.media-tile.is-square { aspect-ratio: 1 / 1; }
.media-tile.is-wide { aspect-ratio: 16 / 9; }
.media-tile.is-tall { aspect-ratio: 3 / 4; }

.placeholder-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* =========================================================================
   17. Hero
   ========================================================================= */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 var(--space-9);
  overflow: hidden;
}
.hero-decor { position: absolute; inset: 0; z-index: 0; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: var(--space-6) 0; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.hero-trust li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; font-weight: 600; color: var(--text-light); }
.hero-trust i { color: var(--secondary); }

.hero-visual { position: relative; }
.hero-visual-frame { position: relative; max-width: 460px; margin: 0 auto; }
.hero-media { box-shadow: var(--shadow-lg); }
.hero-media i { font-size: 4.5rem; }
.hero-float-card {
  position: absolute;
  padding: 0.9rem 1.2rem;
  min-width: 200px;
  animation: cpp-float 6s ease-in-out infinite;
}
.hero-float-card:nth-of-type(2) { animation-delay: 1.2s; }

@media (max-width: 991.98px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 620px; margin: 0 auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual-frame { margin-top: 2.5rem; }
  .hero-float-card { position: static; margin: 1rem auto 0; display: inline-flex; }
}
@media (max-width: 575.98px) {
  .hero { padding-top: calc(var(--header-h) + 2rem); }
  .hero-float-card { display: none; }
}

/* =========================================================================
   18. Value strip
   ========================================================================= */
.value-strip { padding: 1.5rem 0; background: var(--navy); }
.value-strip-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; }
.value-strip-list li { display: flex; align-items: center; gap: 0.55rem; color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 600; font-family: var(--font-heading); }
.value-strip-list i { color: var(--accent); }

/* =========================================================================
   19. Service cards
   ========================================================================= */
.service-card { color: inherit; display: flex; flex-direction: column; }
.service-card p { color: var(--text-light); }
.service-card-tags { list-style: none; margin: auto 0 0; padding: 0.9rem 0 0; display: flex; flex-direction: column; gap: 0.45rem; border-top: 1px dashed var(--border); margin-top: var(--space-4); }
.service-card-tags li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.service-card-tags i { color: var(--secondary); font-size: 0.78rem; }
.service-card-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-weight: 700; font-family: var(--font-heading); color: var(--primary); font-size: 0.9rem; transition: gap var(--dur-fast) var(--ease-out); }
.service-card:hover .service-card-link { gap: 0.8rem; }
.services-more-cta { display: flex; justify-content: center; margin-top: var(--space-8); }

/* =========================================================================
   20. About visual + checklist + stats
   ========================================================================= */
.about-visual, .about-story-visual { position: relative; }
.about-story-visual img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -1.5rem; right: -1rem;
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.25rem; max-width: 260px;
}
.about-badge strong { display: block; color: var(--navy); font-family: var(--font-heading); font-size: 0.92rem; }
@media (max-width: 575.98px) { .about-badge { position: static; margin-top: 1rem; max-width: none; } }

.checklist-brand { display: flex; flex-direction: column; gap: 0.75rem; margin: var(--space-5) 0; }
.checklist-brand li { display: flex; align-items: flex-start; gap: 0.65rem; font-weight: 500; color: var(--text); }
.checklist-brand i { color: var(--secondary); margin-top: 0.2rem; }

.stat-row { margin: var(--space-6) 0 var(--space-5); }
.stat-tile .stat-num .stat-suffix { font-size: 0.55em; }
@media (max-width: 575.98px) {
  .stat-row { max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* =========================================================================
   21. Process
   ========================================================================= */
.process-row { display: flex; align-items: stretch; gap: 0; }
.process-card {
  flex: 1;
  text-align: center;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.process-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.process-num {
  display: block; font-family: var(--font-heading); font-weight: 800;
  font-size: 2.75rem; color: var(--border-strong); line-height: 1; margin-bottom: 0.25rem;
}
.process-card .card-icon { margin: 0 auto var(--space-4); }
.process-card h3 { margin-bottom: 0.5rem; }
.process-card p { color: var(--text-light); margin: 0; }
.process-connector {
  flex: 0 0 auto;
  width: 64px;
  display: flex; align-items: center; justify-content: center;
  color: var(--border-strong);
  font-size: 1.35rem;
  margin-top: calc(var(--space-7) + 28px);
}
@media (max-width: 767.98px) {
  .process-row { flex-direction: column; gap: var(--space-5); }
  .process-connector { display: none; }
}

/* =========================================================================
   22. Testimonials
   ========================================================================= */
.testimonials-section { position: relative; }
.testimonials-section .container { position: relative; z-index: 1; }
.testimonials-section .section-head p:last-child.placeholder-note { color: rgba(255,255,255,0.55); margin-top: 0.5rem; }

/* Subtle ambient background (water/bubble motif, kept quiet + professional) */
.testimonials-section .bg-decor.bubble {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22), rgba(8,185,234,0.06));
  border-color: rgba(255,255,255,0.1);
  filter: blur(3px);
}
.testimonial-bubble-1 { width: 140px; height: 140px; top: 6%; left: 4%; animation-duration: 9s; }
.testimonial-bubble-2 { width: 90px; height: 90px; top: 62%; left: 10%; animation-duration: 7s; animation-delay: 1.2s; }
.testimonial-bubble-3 { width: 180px; height: 180px; top: 12%; right: 6%; animation-duration: 11s; animation-delay: 0.6s; }
.testimonial-bubble-4 { width: 70px; height: 70px; top: 70%; right: 14%; animation-duration: 6.5s; animation-delay: 0.3s; }
.testimonials-section .bg-decor.sparkle { color: rgba(8,185,234,0.55); font-size: 0.9rem; }
.testimonial-sparkle-1 { top: 22%; left: 22%; }
.testimonial-sparkle-2 { top: 75%; right: 26%; animation-delay: 1.4s; }

.testimonial-swiper { max-width: 1160px; margin: 0 auto; padding-bottom: 3rem; }
.testimonial-swiper .swiper-wrapper { align-items: stretch; }
.testimonial-swiper .swiper-slide { height: auto; }
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.testimonial-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); }
.testimonial-stars { display: flex; gap: 0.2rem; color: #FFC94D; font-size: 0.8rem; margin-bottom: 0.9rem; }
.testimonial-quote-icon { font-size: 1.6rem; color: var(--accent); margin-bottom: 1rem; }
.testimonial-card p { font-size: 1.05rem; line-height: 1.6; color: rgba(255,255,255,0.9); }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin-top: auto; padding-top: 1.5rem; }
.testimonial-avatar { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(255,255,255,0.1); display: inline-flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; }
.testimonial-author strong { color: var(--white); display: block; font-family: var(--font-heading); font-size: 0.95rem; }
.testimonial-author small { color: rgba(255,255,255,0.55); }
.testimonial-swiper .swiper-pagination-bullet { background: rgba(255,255,255,0.35); opacity: 1; }
.testimonial-swiper .swiper-pagination-bullet-active { background: var(--accent); }
.testimonial-nav { display: flex; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; position: relative; z-index: 1; }
.testimonial-nav button {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  background: transparent; color: var(--white); display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-out);
}
.testimonial-nav button:hover { background: rgba(255,255,255,0.12); }

/* =========================================================================
   23. Blog cards
   ========================================================================= */
.blog-card { color: inherit; padding-top: 0; overflow: hidden; }
.blog-card .media-tile { margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) var(--space-5); border-radius: 0; width: calc(100% + var(--space-6) * 2); }
.blog-card .badge-brand { margin-bottom: 0.75rem; }

/* =========================================================================
   24. FAQ accordion (Bootstrap collapse, brand-styled)
   ========================================================================= */
.accordion-brand .accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.accordion-brand .accordion-button {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  padding: 1.15rem 1.4rem;
  box-shadow: none !important;
  gap: 0.9rem;
}
.accordion-brand .accordion-button:not(.collapsed) { color: var(--primary); background: var(--primary-light); }

/* Leading question icon — a real <i> element (see faq markup), not a CSS
   content hack, so it can never silently fail to render. */
.accordion-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.9rem;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.accordion-button:not(.collapsed) .accordion-icon { background: var(--gradient-brand); color: var(--white); }
.accordion-question-text { flex: 1; }

/* Toggle chevron — also a real <i class="fa-solid fa-chevron-down"> element
   now (previously a CSS ::after with a hard-coded "Font Awesome 6 Free"
   font-family that didn't match any @font-face actually registered by the
   self-hosted Font Awesome build, so the chevron silently never rendered). */
.accordion-brand .accordion-button::after { display: none; }
.accordion-chevron { flex-shrink: 0; font-size: 0.8rem; color: var(--primary); transition: transform var(--dur-fast) var(--ease-out); }
.accordion-button:not(.collapsed) .accordion-chevron { transform: rotate(180deg); }

.accordion-brand .accordion-body { padding: 0 1.4rem 1.4rem 4.3rem; color: var(--text-light); font-size: 0.95rem; }
@media (max-width: 575.98px) {
  .accordion-brand .accordion-body { padding-left: 1.4rem; }
}

/* =========================================================================
   25. CTA band
   ========================================================================= */
.cta-band { padding: var(--space-8) 0; }
.cta-band-inner {
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6);
  position: relative;
  overflow: hidden;
}
.cta-band-inner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.25), transparent 55%);
}
.cta-band-inner > * { position: relative; z-index: 1; }
.cta-band-inner h2, .cta-band-inner p { color: var(--white); }
.cta-band-inner .lead { color: rgba(255,255,255,0.9); }
.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 767.98px) { .cta-band-inner { padding: var(--space-6); text-align: center; justify-content: center; } }

/* =========================================================================
   26. Gallery filters + lightbox panel
   ========================================================================= */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--space-7); }
.filter-chip {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem;
  padding: 0.55rem 1.1rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border); background: var(--white); color: var(--text-light);
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out);
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.is-active { background: var(--gradient-primary); border-color: transparent; color: var(--white); box-shadow: var(--shadow-glow); }
.gallery-item-link { display: block; cursor: zoom-in; }
.gallery-lightbox-panel { background: var(--white); border-radius: var(--radius-lg); padding: var(--space-6); max-width: 640px; }
.gallery-lightbox-panel .media-tile { margin-bottom: var(--space-5); }
.gallery-lightbox-panel h3 { margin-bottom: 0.5rem; }
.gallery-lightbox-panel p { color: var(--text-light); margin: 0; }
.gallery-grid [data-gallery-item] { transition: opacity var(--dur-fast) var(--ease-out); }

/* Lightweight GLightbox theming so it matches the brand rather than the default dark UI */
.gdesc-inner, .glightbox-clean .gslide-description { background: var(--white); }
.glightbox-clean .gclose, .glightbox-clean .gnext, .glightbox-clean .gprev { background-color: var(--primary); }

/* =========================================================================
   27. Article / blog post
   ========================================================================= */
.article-meta { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.article-hero-tile { margin-bottom: var(--space-7); }
.article-hero-tile i { font-size: 3rem; }
.article-prose h2 { font-size: var(--fs-h4); margin-top: var(--space-7); }
.article-prose p { color: var(--text); line-height: var(--lh-body); }
.article-prose .lead { color: var(--text-light); }
.article-share { display: flex; align-items: center; gap: 0.75rem; margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.article-share span { font-weight: 700; font-family: var(--font-heading); color: var(--navy); font-size: 0.9rem; }
.article-share a {
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.article-share a:hover { background: var(--gradient-primary); color: var(--white); }

/* =========================================================================
   28. Before / After comparison slider
   ========================================================================= */
.before-after { --ba-pos: 50%; }
.ba-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ba-before, .ba-after {
  position: absolute; inset: 0; margin: 0; border-radius: 0;
}
.ba-after { clip-path: inset(0 50% 0 0); transition: clip-path 0.05s linear; }
.ba-tag {
  position: absolute; top: 1rem; z-index: 2;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 0.85rem; border-radius: var(--radius-pill);
  background: rgba(6, 31, 62, 0.55); color: var(--white); backdrop-filter: blur(4px);
}
.ba-tag.ba-tag-before { left: 1rem; }
.ba-tag.ba-tag-after { right: 1rem; }
.ba-media::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 2;
  left: var(--ba-pos); width: 3px; background: var(--white);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.25);
  transform: translateX(-50%); pointer-events: none;
}
.ba-range {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
  margin: 0; appearance: none; background: transparent; cursor: ew-resize;
}
.ba-range::-webkit-slider-runnable-track { background: transparent; height: 100%; }
.ba-range::-moz-range-track { background: transparent; height: 100%; }
.ba-range::-webkit-slider-thumb {
  appearance: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230875D1' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M8 7 4 12l4 5M16 7l4 5-4 5'/%3E%3C/svg%3E") center/22px no-repeat;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--white);
  margin-top: 0;
  cursor: ew-resize;
}
.ba-range::-moz-range-thumb {
  width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--white);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230875D1' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M8 7 4 12l4 5M16 7l4 5-4 5'/%3E%3C/svg%3E") center/22px no-repeat;
  box-shadow: var(--shadow-lg); cursor: ew-resize;
}

/* =========================================================================
   29. Contact info list
   ========================================================================= */
.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-item strong { display: block; color: var(--navy); font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-info-item p { color: var(--text-light); margin: 0; }
.contact-info-item a:hover { color: var(--primary); }

/* =========================================================================
   30. Legal / prose pages
   ========================================================================= */
.legal-prose h2 { font-size: var(--fs-h4); margin-top: var(--space-7); }
.legal-prose p, .legal-prose li { color: var(--text); line-height: var(--lh-body); }
.legal-prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-prose ul li { margin-bottom: 0.4rem; }
.legal-updated { color: var(--text-light); font-size: 0.9rem; }

/* GLightbox measures inline slides by their media element and can clip
   anything rendered after it, so the gallery quick-view caption lives
   inside the tile itself (.lightbox-tile-caption) rather than as a
   trailing sibling — see gallery.content.html. */
.ginlined-content { max-height: 86vh; overflow: auto; }
.lightbox-tile { position: relative; align-items: flex-end; justify-content: flex-start; }
.lightbox-tile i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); font-size: 2.6rem; opacity: 0.9; }
.lightbox-tile-caption {
  position: relative; z-index: 1; width: 100%;
  padding: 1.5rem; background: linear-gradient(0deg, rgba(6,31,62,0.75), transparent);
  display: flex; flex-direction: column; gap: 0.35rem;
}
.lightbox-tile-caption strong { color: var(--white); font-family: var(--font-heading); font-size: 1.15rem; }
.lightbox-tile-caption span { color: rgba(255,255,255,0.85); font-size: 0.9rem; }

/* =========================================================================
   31. Global scrollbar (brand-styled, thin, cross-browser)
   ========================================================================= */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(8,43,85,0.06);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(8,43,85,0.05); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.6);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--primary-dark, var(--primary)), var(--secondary)); background-clip: padding-box; }

/* =========================================================================
   32. Back to Top button
   ========================================================================= */
.back-to-top {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand, linear-gradient(135deg, var(--primary), var(--secondary)));
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base) var(--ease-out);
  z-index: 900;
  cursor: pointer;
  font-size: 1.05rem;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl, var(--shadow-lg)); }
@media (max-width: 575.98px) {
  .back-to-top { right: var(--space-4); bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); width: 42px; height: 42px; }
}

/* =========================================================================
   33. Get a Free Quote modal
   ========================================================================= */
.quote-modal {
  position: fixed; inset: 0; z-index: 1900;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-5);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base) var(--ease-out);
}
.quote-modal.is-open { visibility: visible; opacity: 1; }
.quote-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(6,31,62,0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.quote-modal-dialog {
  position: relative;
  width: 100%; max-width: 620px;
  max-height: min(88vh, 780px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl, var(--shadow-lg));
  padding: var(--space-7);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.quote-modal.is-open .quote-modal-dialog { transform: translateY(0) scale(1); opacity: 1; }
.quote-modal-close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(8,43,85,0.06); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.quote-modal-close:hover { background: rgba(8,43,85,0.12); transform: rotate(90deg); }
.quote-modal-body h2 { margin-bottom: 0.5rem; }
.quote-modal-body .text-muted-brand { margin-bottom: var(--space-5); }
body.quote-modal-open { overflow: hidden; }

@media (max-width: 575.98px) {
  .quote-modal { padding: var(--space-3); }
  .quote-modal-dialog { padding: var(--space-5); max-height: 92vh; }
}
