/* ═══════════════════════════════════════════
   J Corrigan LLC Chimney Restoration, Global Styles
   Brick · Mortar · Smoke · Fraunces + Inter
   Fired-brick accents on warm mortar surfaces with drifting smoke
   ═══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  /* Cool off-white base, calm and clean */
  --bg-page: #F3F5F5;          /* whole page, near-white */
  --bg-surface: #E6ECF3;       /* header / chips / muted bands */
  --bg-card: #FFFFFF;          /* raised cards */
  --bg-elevated: #FFFFFF;      /* modals & dropdowns */
  --bg-border: rgba(6, 20, 88, 0.12);
  --bg-muted: #D5DEEB;

  /* Alternating "warm" section, soft pastel blue band */
  --bg-warm: #A2BFEB;
  --bg-warm-surface: #8FA8DC;
  --bg-warm-card: #FFFFFF;
  --bg-warm-border: rgba(6, 20, 88, 0.14);

  /* Dark feature strip, deep navy */
  --bg-dark: #061458;
  --bg-dark-surface: #0E1F5E;
  --bg-dark-card: #1A2C6F;

  /* Primary accent, medium blue for CTAs and links */
  --accent: #589BEE;
  --accent-dark: #2E6EC9;
  --accent-dim: #7BA7E5;
  --accent-soft: #DCE7F8;
  --accent-glow: rgba(88, 155, 238, 0.14);

  /* Blue palette, used for texture + masonry accents */
  --brick: #589BEE;
  --brick-dark: #061458;
  --brick-light: #A2BFEB;
  --brick-highlight: #B8D4FF;
  --mortar: #F3F5F5;
  --mortar-dark: #9799A1;

  /* Smoke, soft white haze for overlays */
  --smoke: rgba(243, 245, 245, 0.88);
  --smoke-soft: rgba(243, 245, 245, 0.38);
  --smoke-wisp: rgba(255, 255, 255, 0.6);

  /* Text, deep navy on light page */
  --text: #061458;
  --text-mid: #1A2A5C;
  --text-muted: #4A5368;
  --text-faint: #9799A1;

  /* Text for .section-warm (still dark, section-warm is a pastel blue) */
  --text-dark: #061458;
  --text-dark-mid: #1A2A5C;
  --text-dark-muted: #4A5368;
  --text-dark-faint: #9799A1;

  /* Inverted text for dark feature strips, off-white on navy */
  --text-inv: #F3F5F5;
  --text-inv-mid: #D5DEEB;
  --text-inv-muted: #9799A1;
  --text-inv-faint: #6A7388;

  /* Fonts */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Radii — subtle, barely-rounded corners across the site */
  --radius: 3px;
  --radius-lg: 5px;

  /* Layout */
  --max-w: 1400px;

  /* Easings */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snappy: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);

  /* Soft warm shadows, soot-toned */
  --shadow-sm: 0 2px 10px rgba(6, 20, 88, 0.08);
  --shadow-md: 0 10px 28px rgba(6, 20, 88, 0.12);
  --shadow-lg: 0 30px 60px rgba(6, 20, 88, 0.18);
  --shadow-accent: 0 14px 34px -14px rgba(88, 155, 238, 0.50);
  --shadow-mortar: inset 0 0 0 1px rgba(6, 20, 88, 0.06), 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ── Masonry Texture Utilities ──
   Running-bond block pattern built from layered linear-gradients in the
   new navy palette — no image assets needed. */
.bg-brick-wall {
  background-color: #0A1F6E;
  background-image:
    /* horizontal joint lines */
    linear-gradient(180deg, rgba(213, 222, 235, 0.95) 0 6px, transparent 6px 100%),
    /* vertical joint lines */
    linear-gradient(90deg, rgba(213, 222, 235, 0.95) 0 6px, transparent 6px 100%),
    /* block face gradient per row */
    linear-gradient(180deg,
      #0E2A82 0 94px,
      #061458 94px 100px,
      #13379C 100px 194px,
      #061458 194px 200px);
  background-size:
    200px 100px,
    200px 100px,
    100% 200px;
  background-position:
    0 0,
    0 0,
    0 0,
    100px 100px;
}

.bg-brick-wall-soft {
  background-color: var(--bg-warm);
  background-image:
    linear-gradient(180deg, rgba(6, 20, 88, 0.10) 0 2px, transparent 2px 100%),
    linear-gradient(90deg, rgba(6, 20, 88, 0.10) 0 2px, transparent 2px 100%);
  background-size:
    120px 60px,
    120px 60px;
  position: relative;
}
.bg-brick-wall-soft::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(6, 20, 88, 0.10) 0 2px, transparent 2px 100%),
    linear-gradient(90deg, rgba(6, 20, 88, 0.10) 0 2px, transparent 2px 100%);
  background-size: 120px 60px, 120px 60px;
  background-position: 60px 30px;
  pointer-events: none;
  opacity: 0.9;
}

/* Drifting white smoke layer disabled — removed per design request. */
.smoke-drift { display: none !important; }

/* Mortar-line divider, a thin running line of mortar between sections */
.mortar-divider {
  position: relative;
  height: 14px;
  background:
    linear-gradient(180deg, var(--bg-warm) 0 5px, var(--mortar) 5px 9px, var(--bg-warm) 9px 14px);
  border-top: 1px solid rgba(6, 20, 88, 0.10);
  border-bottom: 1px solid rgba(6, 20, 88, 0.10);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--bg-page);
  color: var(--text-mid);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01','cv11';
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Accessibility: Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Performance: Hardware acceleration for animated elements */
.service-card, .gallery-item, .btn-primary, .btn-ghost, .floating-cta {
  will-change: transform;
}

/* Accessibility: Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-clip, .reveal-word { opacity: 1; transform: none; clip-path: none; }
  .marquee-track { animation: none !important; }
  .testimonials-track { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Selection styling */
::selection {
  background: rgba(88, 155, 238, 0.28);
  color: var(--text);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ── Grain Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── Typography ── */
.font-display { font-family: var(--font-display); font-optical-sizing: auto; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 600;
  font-optical-sizing: auto;
}

/* Eyebrow badge */
.section-label {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 3px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  background: rgba(88, 155, 238, 0.08);
  color: var(--accent);
  border: 1px solid rgba(88, 155, 238, 0.15);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--text);
}
/* Compact variant, used when the title needs to fit a longer phrase
   on a single line without dominating the section. */
.section-title--compact {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.2;
}
.section-intro {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 60ch;
  margin-top: 1rem;
}

/* ── Layout ── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .section-inner { padding: 0 2.5rem; }
}
.section-pad {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
@media (min-width: 768px) {
  .section-pad { padding-top: 8rem; padding-bottom: 8rem; }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--accent);
  color: var(--bg-page);
  padding: 1rem 2.4rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 3px;
  transition: background 0.3s ease, transform 0.3s var(--ease-fluid), box-shadow 0.3s ease;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: scale(1.02) translateY(-1px);
  box-shadow: var(--shadow-accent);
}
.btn-primary:active { transform: scale(0.98) translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--text-faint);
  color: var(--text-mid);
  padding: 1rem 2.4rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 3px;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-fluid), box-shadow 0.3s ease;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.02) translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:active { transform: scale(0.98) translateY(0); }

/* CTA button groups, used on every page */
.final-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (min-width: 480px) {
  .final-cta-actions {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}
.final-cta-actions .btn-primary,
.final-cta-actions .btn-ghost {
  width: 100%;
  max-width: 320px;
  text-align: center;
}
@media (min-width: 480px) {
  .final-cta-actions .btn-primary,
  .final-cta-actions .btn-ghost {
    width: auto;
    max-width: none;
  }
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg-page);
  font-weight: 700;
}
.skip-link:focus { left: 0; }


/* ═══════════════════════════════════════════
   WARM SECTION UTILITY, Alternating Sections
   ═══════════════════════════════════════════ */

.section-warm {
  background-color: var(--bg-warm) !important;
  background-image:
    linear-gradient(180deg, rgba(6, 20, 88, 0.055) 0 2px, transparent 2px 100%),
    linear-gradient(90deg,  rgba(6, 20, 88, 0.055) 0 2px, transparent 2px 100%) !important;
  background-size: 160px 80px, 160px 80px !important;
  color: var(--text-dark-mid);
  position: relative;
}
.section-warm::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(6, 20, 88, 0.055) 0 2px, transparent 2px 100%);
  background-size: 160px 160px;
  background-position: 80px 80px;
}
.section-warm > * { position: relative; z-index: 1; }
.section-warm .section-label {
  background: rgba(88, 155, 238, 0.1);
  color: var(--accent-dark);
  border-color: rgba(88, 155, 238, 0.2);
}
.section-warm .section-title { color: var(--text-dark); }
.section-warm .section-intro { color: var(--text-dark-muted); }

/* Service cards in warm sections */
.section-warm .service-card {
  background: var(--bg-warm-card);
  border-color: rgba(0,0,0,0.06);
}
.section-warm .service-card-body { background: transparent; }
.section-warm .service-card-title,
.section-warm .service-card-title a { color: var(--text-dark); }
.section-warm .service-card-desc { color: var(--text-dark-muted); }
.section-warm .service-card:hover {
  border-color: rgba(88, 155, 238, 0.3);
  background: var(--bg-warm-surface);
}

/* Trust cards in warm sections */
.section-warm .trust-card {
  background: rgba(255,255,255,0.5);
  border-color: rgba(0,0,0,0.06);
}
.section-warm .trust-card:hover {
  background: rgba(255,255,255,0.7);
  border-color: rgba(88, 155, 238, 0.2);
}
.section-warm .trust-card-icon {
  background: rgba(88, 155, 238, 0.1);
  border-color: rgba(88, 155, 238, 0.2);
}
.section-warm .trust-card-title { color: var(--text-dark); }
.section-warm .trust-card-desc { color: var(--text-dark-muted); }

/* Buttons in warm sections */
.section-warm .btn-primary { color: #fff; }
.section-warm .btn-ghost {
  border-color: var(--text-dark-muted);
  color: var(--text-dark);
}
.section-warm .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* About text in warm sections */
.section-warm .about-text p { color: var(--text-dark-muted); }
.section-warm .about-link { color: var(--accent-dark); }

/* How-it-works steps in warm sections */
.section-warm .how-step-title { color: var(--text-dark); }
.section-warm .how-step-desc { color: var(--text-dark-muted); }
.section-warm .how-step-num {
  background: rgba(88, 155, 238, 0.1);
  border-color: rgba(88, 155, 238, 0.25);
}

/* FAQ in warm sections */
.section-warm .faq-item {
  background: rgba(255,255,255,0.5);
  border-color: rgba(0,0,0,0.06);
}
.section-warm .faq-item:hover,
.section-warm .faq-item.is-open {
  border-color: rgba(88, 155, 238, 0.2);
}
.section-warm .faq-trigger { color: var(--text-dark); }
.section-warm .faq-answer-inner { color: var(--text-dark-muted); }

/* Testimonial cards in warm sections */
.section-warm .testimonial-card {
  background: rgba(255,255,255,0.5);
  border-color: rgba(0,0,0,0.06);
}
.section-warm .testimonial-card:hover {
  border-color: rgba(88, 155, 238, 0.15);
  background: rgba(255,255,255,0.7);
}
.section-warm .testimonial-text { color: var(--text-dark-mid); }
.section-warm .testimonial-name { color: var(--text-dark); }
.section-warm .testimonial-role { color: var(--text-dark-faint); }

/* Gallery items in warm sections */
.section-warm .gallery-item {
  border-color: rgba(0,0,0,0.06);
}

/* Headings in warm sections */
.section-warm h1,
.section-warm h2,
.section-warm h3,
.section-warm h4,
.section-warm h5 { color: var(--text-dark); }

/* Contact in warm sections */
.section-warm .contact-form-wrap {
  background: rgba(255,255,255,0.5);
  border-color: rgba(0,0,0,0.06);
}
.section-warm .form-input {
  background: rgba(255,255,255,0.6);
  border-color: rgba(0,0,0,0.1);
  color: var(--text-dark);
}
.section-warm .form-input::placeholder { color: var(--text-dark-faint); }
.section-warm .form-label { color: var(--text-dark-mid); }

/* Quickbar in warm sections */
.section-warm .quickbar-card {
  background: rgba(255,255,255,0.5);
}
.section-warm .quickbar-card:hover {
  background: rgba(255,255,255,0.7);
}
.section-warm .quickbar-text-main { color: var(--text-dark); }
.section-warm .quickbar-text-sub { color: var(--text-dark-faint); }


/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */

/* Persistent translucent light-blue header with a smokey glass effect.
   Stays visible on scroll and transitions into a floating glass pill
   once the user scrolls past the first section. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-bottom: 1px solid rgba(6, 20, 88, 0.08);
  box-shadow: 0 2px 14px rgba(6, 20, 88, 0.06);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-radius 0.4s ease, top 0.4s ease, left 0.4s ease, right 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
}
/* Smokey wash inside the header — soft white-to-pale-blue radial blobs
   overlaid on the bright base give the bar a gentle swirling haze without
   darkening the overall color. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 180% at 18% 50%, rgba(255, 255, 255, 0.65) 0%, transparent 65%),
    radial-gradient(ellipse 50% 160% at 72% 60%, rgba(200, 220, 245, 0.28) 0%, transparent 72%),
    radial-gradient(ellipse 40% 150% at 92% 40%, rgba(255, 255, 255, 0.55) 0%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.85;
  z-index: 0;
}
.site-header .header-inner { position: relative; z-index: 1; }

.site-header.header-scrolled {
  background: rgba(255, 255, 255, 0.9);
}
/* Glassmorphism nav once scrolled past a bit, pill-shaped floating header */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 40px rgba(6, 20, 88, 0.16);
  border-radius: 3px;
  top: 12px;
  left: 5%;
  right: 5%;
}
/* When mobile nav is open, kill everything on the header that creates
   a containing block (backdrop-filter, border-radius, transforms) so
   the fixed-position drawer can cover the full viewport. */
.site-header.nav-open {
  z-index: 9999 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  box-shadow: none !important;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .header-inner { padding: 0.4rem 2.5rem; }
}

/* Logo, large by default, shrinks on scroll */
.logo-block { display: flex; align-items: center; }
.logo-img {
  height: 56px;
  width: auto;
  transition: height 0.3s var(--ease);
}
@media (min-width: 768px) { .logo-img { height: 72px; } }
.is-scrolled .logo-img { height: 44px; }
@media (min-width: 768px) { .is-scrolled .logo-img { height: 50px; } }

/* Nav */
.nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
/* Header is always a white strip now, so nav-toggle uses the default
   navy text color even when the hero-dark-bg class is still on the
   element for backwards compatibility. */
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}
.nav-toggle-bar {
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.3s var(--ease);
}
.nav-toggle-bar:last-child { width: 14px; }

@media (min-width: 1024px) { .nav-toggle { display: none; } }

.nav-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-surface);
  z-index: 9999;
  flex-direction: column;
  padding: 5rem 2rem calc(2rem + env(safe-area-inset-bottom, 0px));
  gap: 0.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-menu.is-open { display: flex; }

@media (min-width: 1024px) {
  .nav-menu {
    display: flex !important;
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    background: none;
    backdrop-filter: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 0;
    overflow: visible;
    z-index: auto;
  }
}

.nav-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-mid);
}
@media (min-width: 1024px) { .nav-close { display: none; } }

.nav-menu-links { display: flex; flex-direction: column; gap: 0.25rem; }
@media (min-width: 1024px) {
  .nav-menu-links {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
}

/* Directional sweep underline */
.nav-menu-links a,
.nav-dropdown-toggle {
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
}
.nav-menu-links a::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 1rem;
  right: 1rem;
  height: 1.5px;
  background: var(--accent);
  transform-origin: bottom right;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}
.nav-menu-links a:hover::after {
  transform-origin: bottom left;
  transform: scaleX(1);
}
.nav-menu-links a:hover,
.nav-dropdown-toggle:hover {
  color: var(--accent);
}
/* Header CTA button, solid accent pill, no text stroke */
.nav-menu-links a.header-cta,
.header-cta {
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-dropdown-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  display: none;
  padding: 0.5rem 0 0.5rem 1.5rem;
}
.nav-dropdown-panel.is-open { display: block; }
@media (min-width: 1024px) {
  .nav-dropdown:hover .nav-dropdown-panel { display: block; }
  .nav-dropdown:hover .nav-dropdown-toggle { color: var(--text); }
}

@media (min-width: 1024px) {
  .nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 4px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 70;
  }
}

.nav-dropdown-grid { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-dropdown-grid a {
  padding: 0.5rem 0.75rem;
  font-size: 1.05rem;
  color: var(--text-mid);
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-grid a:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.nav-dropdown-all {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--bg-border);
}
.nav-dropdown-all a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

/* Header CTA */
.header-cta,
.nav-menu-links a.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: var(--bg-page) !important;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 3px;
  transition: background 0.2s ease, transform 0.3s var(--ease-fluid), box-shadow 0.3s ease;
}
.header-cta:hover,
.nav-menu-links a.header-cta:hover {
  background: var(--accent-dark);
  color: var(--bg-page) !important;
  transform: scale(1.02) translateY(-1px);
  box-shadow: 0 4px 20px rgba(88, 155, 238, 0.3);
}
.header-cta:active { transform: scale(0.97); }
.header-cta--nav { margin-top: 1rem; align-self: flex-start; }
@media (min-width: 1024px) { .header-cta--nav { margin-top: 0; align-self: center; } }
.header-cta--drawer { display: none; }

/* Nav backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 49;
}
.nav-backdrop:not([hidden]) {
  display: block;
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.site-footer {
  background-color: var(--bg-surface);
  background-image:
    linear-gradient(180deg, rgba(6, 20, 88, 0.06) 0 2px, transparent 2px 100%),
    linear-gradient(90deg,  rgba(6, 20, 88, 0.06) 0 2px, transparent 2px 100%);
  background-size: 200px 100px, 200px 100px;
  border-top: 3px solid var(--brick);
  box-shadow: inset 0 3px 0 rgba(162, 191, 235, 0.35);
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}
/* Running-bond offset pseudo so footer reads as masonry */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(6, 20, 88, 0.06) 0 2px, transparent 2px 100%);
  background-size: 200px 200px;
  background-position: 100px 100px;
  z-index: 0;
}
.site-footer > * { position: relative; z-index: 1; }
/* Footer decoration removed */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.footer-brand-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 30ch;
  margin-top: 1rem;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bg-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-legal { color: var(--text-faint); font-size: 1rem; }
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a {
  color: var(--text-faint);
  font-size: 1rem;
  transition: color 0.2s ease;
}
.footer-legal-links a:hover { color: var(--accent); }


/* ═══════════════════════════════════════════
   FOOTER QUICKBAR
   ═══════════════════════════════════════════ */

.footer-quickbar {
  background: var(--bg-card);
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
}
.quickbar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--bg-border);
}
@media (min-width: 768px) {
  .quickbar-grid { grid-template-columns: repeat(3, 1fr); }
}
.quickbar-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  transition: background 0.2s ease, transform 0.2s ease;
}
.quickbar-card:hover {
  background: var(--bg-elevated);
  transform: translateY(-2px);
}
.quickbar-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border: 1px solid rgba(88, 155, 238, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.35rem;
}
.quickbar-text-main { color: var(--text); font-size: 1.1rem; font-weight: 500; }
.quickbar-text-sub { color: var(--text-faint); font-size: 1.05rem; margin-top: 0.2rem; }


/* ═══════════════════════════════════════════
   HERO (sub-pages), Warm background, Arbin-inspired
   ═══════════════════════════════════════════ */

.hero {
  position: relative;
  padding: 12rem 0 6rem;
  background-color: var(--bg-warm);
  background-image:
    /* running-bond mortar seams, horizontal + vertical */
    linear-gradient(180deg, rgba(6, 20, 88, 0.09) 0 2px, transparent 2px 100%),
    linear-gradient(90deg,  rgba(6, 20, 88, 0.09) 0 2px, transparent 2px 100%);
  background-size: 180px 90px, 180px 90px;
  background-position: 0 0, 0 0;
  overflow: hidden;
  z-index: 0;
}
@media (max-width: 767px) {
  .hero { padding: 7rem 0 4rem; }
}
.hero .section-title { color: var(--text-dark); font-weight: 700; }
.hero .section-intro { color: var(--text-dark-muted); }
.hero .hero-breadcrumb { color: var(--text-dark-faint); }
.hero .hero-breadcrumb a:hover { color: var(--accent); }

/* Content section after hero, rounded top edge with shadow */
.hero + * {
  position: relative;
  z-index: 2;
  background: var(--bg-page);
  border-radius: 4px 4px 0 0;
  box-shadow:
    0 -12px 60px rgba(88, 155, 238, 0.10),
    0 -4px 24px rgba(6, 20, 88, 0.08);
  margin-top: -2rem;
}
/* Thick accent bar at the top of the slide-over */
.hero + *::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 10%, var(--accent) 30%, var(--accent) 70%, transparent 90%);
  border-radius: 4px 4px 0 0;
  opacity: 0.4;
}
.hero ~ * {
  position: relative;
  z-index: 2;
  background: var(--bg-page);
}

/* Mortar-cream wash + brick-ember vignette, softens the brick texture below
   so text stays readable while still reading as "masonry".
   Scoped to sub-page heroes only, the dark home hero has its own overlays. */
.hero:not(.hero--home)::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* warm smoke wash that lets the brick grid peek through */
    linear-gradient(180deg, rgba(243, 245, 245, 0.88) 0%, rgba(243, 245, 245, 0.70) 60%, rgba(213, 222, 235, 0.55) 100%),
    /* ember glow bottom-left */
    radial-gradient(ellipse at 20% 85%, rgba(88, 155, 238, 0.16) 0%, transparent 55%),
    /* cooler ember top-right */
    radial-gradient(ellipse at 82% 18%, rgba(88, 155, 238, 0.10) 0%, transparent 55%);
  pointer-events: none;
  z-index: 2;
}
/* Animated smoke wash over sub-page heroes removed per design request —
   sub-page heroes stay clean, no drifting white light layer. */
.hero > .smoke-drift { display: none; }
/* Sub-page hero decoration removed */
.hero .hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero .hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.04;
}
.hero .hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-warm), transparent 50%),
              linear-gradient(to right, var(--bg-warm) 0%, transparent 60%);
  z-index: 1;
}
.hero .section-inner { position: relative; z-index: 3; }
.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.hero-breadcrumb a { transition: color 0.2s ease; }
.hero-breadcrumb a:hover { color: var(--accent); }
.hero-breadcrumb-sep { opacity: 0.4; }


/* ═══════════════════════════════════════════
   SERVICE CARDS, Archon bento tile style
   ═══════════════════════════════════════════ */

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s var(--ease-fluid), box-shadow 0.4s ease;
}
.service-card:hover {
  border-color: rgba(88, 155, 238, 0.2);
  transform: translateY(-8px);
  box-shadow: var(--shadow-accent), var(--shadow-lg);
}
.service-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-body {
  padding: 1.5rem 1.5rem 1.25rem;
}
.service-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: none;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.service-card-title a {
  color: inherit;
  transition: color 0.2s ease;
}
.service-card-title a:hover { color: var(--accent); }
.service-card-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.service-card-link {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}
.service-card:hover .service-card-link { gap: 0.7rem; }


/* ═══════════════════════════════════════════
   TRUST CARDS, Bigger, more architectural
   ═══════════════════════════════════════════ */

.trust-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .trust-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-fluid), background 0.3s ease;
  position: relative;
  overflow: hidden;
}
/* Large decorative number behind card content, Archon style */
.trust-card::before {
  content: attr(data-num);
  position: absolute;
  top: -10px;
  right: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 8rem;
  font-weight: 700;
  color: rgba(88, 155, 238, 0.04);
  line-height: 1;
  pointer-events: none;
}
/* Double-bezel variant (when .trust-card-inner is used) */
.trust-card:has(.trust-card-inner) {
  background: rgba(255, 255, 255, 0.02);
  padding: 5px;
}
.trust-card-inner {
  background: var(--bg-card);
  border-radius: calc(var(--radius-lg), 5px);
  padding: 2.5rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.trust-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  z-index: -1;
}
/* Decorative card backgrounds removed, light-theme override below hides ::before */
.trust-card:hover {
  border-color: rgba(88, 155, 238, 0.2);
  transform: translateY(-4px);
  background: var(--bg-elevated);
}
.trust-card:has(.trust-card-inner):hover {
  background: rgba(255, 255, 255, 0.03);
}
.trust-card-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border: 1px solid rgba(88, 155, 238, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.trust-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  text-transform: none;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.trust-card-desc {
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.7;
}


/* ═══════════════════════════════════════════
   TESTIMONIAL CARDS, Arbin-inspired large quote
   ═══════════════════════════════════════════ */

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-fluid);
}
/* Large decorative quotation mark */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
}
.testimonial-card:hover {
  border-color: rgba(88, 155, 238, 0.15);
  transform: translateY(-2px);
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  color: var(--accent);
}
.testimonial-text {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-name { color: var(--text); font-size: 1rem; font-weight: 500; }
.testimonial-role { color: var(--text-faint); font-size: 1rem; }


/* ═══════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════ */

.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover, .faq-item.is-open {
  border-color: rgba(88, 155, 238, 0.15);
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}
.faq-trigger:hover { color: var(--accent); }
.faq-trigger-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
  color: var(--accent);
}
.faq-item.is-open .faq-trigger-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq-answer-inner {
  padding: 0 1.75rem 1.5rem;
  color: #061458;
  font-size: 1rem;
  line-height: 1.7;
}


/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .form-row-2col { grid-template-columns: 1fr; }
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  color: var(--text-mid);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  padding: 1rem 1.25rem;
  font-size: 16px;
  border-radius: 3px;
  transition: border-color 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-input::placeholder { color: var(--text-faint); }
textarea.form-input { resize: vertical; min-height: 120px; }
select.form-input { appearance: none; }


/* ═══════════════════════════════════════════
   ANIMATION SYSTEM
   ═══════════════════════════════════════════ */

/* Base reveal: slide from right */
.reveal {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right (explicit) */
.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up from center */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9) translateX(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1) translateX(0);
}

/* Clip-path reveal from right */
.reveal-clip {
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              clip-path 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-clip.visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* Word slide from right */
.reveal-word {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-word.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children, each child delays incrementally */
.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger > *:nth-child(8) { transition-delay: 0.56s; }
.reveal-stagger > *:nth-child(9) { transition-delay: 0.64s; }
.reveal-stagger > *:nth-child(10) { transition-delay: 0.72s; }

/* Parallax scroll hint */
.parallax-slow {
  transition: transform 0.1s linear;
}


/* ═══════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════ */

.contact-section {
  background: var(--bg-surface);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 5fr 7fr; }
}
.contact-info-cards { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-card {
  display: flex;
  align-items: stretch;
  gap: 1rem;
}
.contact-info-icon {
  align-self: stretch;
  padding: 0 1rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-form-inner {
  background: var(--bg-card);
  border-radius: calc(var(--radius-lg), 5px);
  padding: 2rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04);
}
@media (min-width: 768px) {
  .contact-form-wrap { padding: 2.5rem; }
}


/* ═══════════════════════════════════════════
   MOBILE CTA BAR
   ═══════════════════════════════════════════ */

.mobile-cta-bar {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  right: 12px;
  width: calc(100%, 24px);
  z-index: 40;
  background: var(--bg-page);
  border-top: 1px solid var(--bg-border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  transform: translateY(calc(100% + 12px));
  transition: transform 0.3s var(--ease);
}
.mobile-cta-bar.is-visible { transform: translateY(0); }
.mobile-cta-bar .btn-primary,
.mobile-cta-bar .btn-ghost { flex: 1; text-align: center; padding: 0.875rem; font-size: 1rem; }
@media (min-width: 1024px) { .mobile-cta-bar { display: none; } }


/* ═══════════════════════════════════════════
   FLOATING CTA
   ═══════════════════════════════════════════ */

.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 35;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(88, 155, 238, 0.3);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
  pointer-events: none;
  animation: floatingPulse 2s ease-in-out infinite;
}
@keyframes floatingPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(88, 155, 238, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(88, 155, 238, 0.5); }
}
.floating-cta.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.floating-cta:hover { background: var(--accent-dark); }
@media (max-width: 1023px) { .floating-cta { display: none; } }


/* ═══════════════════════════════════════════
   SERVICES GRID, Bento layout
   ═══════════════════════════════════════════ */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
  }
}


/* ═══════════════════════════════════════════
   GALLERY GRID, Masonry-ish bento
   ═══════════════════════════════════════════ */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery-item:nth-child(1) { aspect-ratio: 4/3; }
}
.gallery-item {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.4s var(--ease-fluid), box-shadow 0.4s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-accent);
}
.gallery-item:hover img { transform: scale(1.05); }


/* ═══════════════════════════════════════════
   OFFER BANNER
   ═══════════════════════════════════════════ */

.offer-banner {
  background: var(--accent-glow);
  border: 1px solid rgba(88, 155, 238, 0.2);
  border-radius: var(--radius);
  padding: 0.6rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.offer-amount { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.offer-text { color: var(--text-mid); font-size: 1rem; }


/* ═══════════════════════════════════════════
   LIGHT-THEME OVERRIDES, J Corrigan homey refresh
   These override dark-theme assumptions inherited from
   the original template. Kept at the bottom so they win
   on cascade without rewriting the upstream rules.
   ═══════════════════════════════════════════ */

/* Cards & borders, switch white-on-black chrome to ink-on-cream */
.service-card,
.trust-card,
.testimonial-card,
.faq-item,
.contact-form-wrap {
  border-color: var(--bg-border);
  box-shadow: var(--shadow-sm);
}
.service-card:hover,
.trust-card:hover,
.testimonial-card:hover,
.faq-item:hover,
.faq-item.is-open {
  border-color: rgba(88, 155, 238, 0.25);
}
.service-card:hover { box-shadow: var(--shadow-md), var(--shadow-accent); }

/* Inset highlight on inner bezel no longer needed on light */
.trust-card:has(.trust-card-inner) { background: var(--bg-warm); }
.trust-card-inner {
  background: var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.trust-card:has(.trust-card-inner):hover { background: var(--bg-warm-surface); }
.trust-card-inner::before { display: none; }

/* Make card text dark on cream */
.trust-card-desc { color: var(--text-muted); }
.testimonial-text { color: var(--text-muted); }
.faq-trigger { color: var(--text); }
.faq-answer-inner { color: var(--text-muted); }

/* Forms, white fields on cream page */
.form-input {
  background: #FFFFFF;
  border: 1px solid rgba(6, 20, 88,0.12);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(6, 20, 88,0.02);
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus {
  border-color: var(--accent);
  background: #FFFFFF;
}
.contact-form-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

/* Dropdown panel, light drop shadow */
@media (min-width: 1024px) {
  .nav-dropdown-panel {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    box-shadow: 0 20px 50px rgba(6, 20, 88,0.14);
  }
}

/* Mobile nav drawer, off-white. On desktop the nav area stays transparent
   so the links sit directly on the solid white header strip. */
@media (max-width: 1023px) {
  .nav-menu { background: var(--bg-page); }
}
@media (min-width: 1024px) {
  .nav-menu,
  .nav-menu-links,
  .header-nav-cluster { background: transparent !important; }
}
.nav-menu-links a { color: var(--text); }
.nav-backdrop { background: rgba(6, 20, 88, 0.35); }

/* Legacy decorative pseudo-elements hidden */
.site-footer::after { display: none; }

/* Hero sub-page, softer chrome (brick background kept from base rule) */
.hero {
  border-bottom: 1px solid rgba(6, 20, 88, 0.10);
}

/* Dark-feature strip utility, use on final CTA sections when we want
   a moody night-sky contrast that still feels homey. */
.section-night {
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(88, 155, 238, 0.35) 0%, transparent 60%),
    radial-gradient(1000px 600px at 100% 100%, rgba(181, 74, 44, 0.18) 0%, transparent 55%),
    var(--bg-dark);
  color: var(--text-inv-mid);
  position: relative;
  isolation: isolate;
}
.section-night::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 35% 85%, rgba(255,255,255,0.35), transparent);
  opacity: 0.7;
  pointer-events: none;
}
.section-night h1,
.section-night h2,
.section-night h3 { color: var(--text-inv); }
.section-night .section-title { color: var(--text-inv); }
.section-night .section-intro { color: var(--text-inv-mid); }
.section-night .section-label {
  background: rgba(255,255,255,0.08);
  color: var(--accent-soft);
  border-color: rgba(255,255,255,0.14);
}
.section-night .btn-ghost {
  border-color: rgba(255,255,255,0.35);
  color: var(--text-inv);
}
.section-night .btn-ghost:hover { border-color: var(--accent-soft); color: var(--accent-soft); }

/* Final CTA, promote to night-strip styling */
.final-cta {
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(88, 155, 238, 0.35) 0%, transparent 60%),
    radial-gradient(1000px 600px at 100% 100%, rgba(181, 74, 44, 0.18) 0%, transparent 55%),
    var(--bg-dark);
  color: var(--text-inv-mid);
  position: relative;
  isolation: isolate;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 22% 28%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 62% 72%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 82% 18%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 35% 85%, rgba(255,255,255,0.3), transparent);
  opacity: 0.8;
  pointer-events: none;
}
.final-cta .section-title,
.final-cta h2 { color: var(--text-inv); }
.final-cta .section-intro { color: var(--text-inv-mid); }
.final-cta .btn-ghost {
  border-color: rgba(255,255,255,0.4);
  color: var(--text-inv);
}
.final-cta .btn-ghost:hover { border-color: var(--accent-soft); color: var(--accent-soft); }

/* Trust section on cream, drop the black overlay */
.trust-section-dark { background: var(--bg-warm) !important; }

/* Mobile CTA bar, cream surface */
.mobile-cta-bar {
  background: rgba(243, 245, 245, 0.96) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--bg-border) !important;
  box-shadow: 0 -12px 30px rgba(6, 20, 88,0.08);
}

/* Floating CTA, accent blue */
.floating-cta {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: var(--shadow-accent);
}
.floating-cta:hover { background: var(--accent-dark) !important; }

/* Offer banner, warm brick tint for subtle masonry nod */
.offer-banner {
  background: rgba(181, 74, 44, 0.10);
  border-color: rgba(181, 74, 44, 0.28);
}
.offer-amount { color: var(--brick); }
.offer-text { color: var(--text-mid); }

/* Display-font family for h-class and key UI bits */
.hero-title,
.hero-title .hero-word,
.service-card-title,
.trust-card-title,
.testimonial-card::before {
  font-family: var(--font-display);
}

/* Homey detail, subtle brick-dashed underline under section eyebrows */
.section-label::after {
  content: '';
  display: block;
  margin: 0.35rem auto 0;
  width: 28px;
  height: 2px;
  background: var(--brick);
  opacity: 0.6;
  border-radius: 2px;
}
