/* ============================================================
   Nautilus Group Cleaning Services — Main Stylesheet
   Brand: Navy + Gold + Powder Blue (Sky) on White
   Architecture: Custom properties, no frameworks, single file
   ============================================================ */

/* ============================================================
   0. SELF-HOSTED FONTS (Latin subset only)
   ============================================================ */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colors — Gold */
  --color-gold:         #C49A1A;
  --color-gold-dark:    #9A7812;
  --color-gold-light:   #E8C547;
  --color-gold-pale:    #FDF8EC;
  --color-gold-text:    #866A10;  /* WCAG AA gold for small text on white/mist */

  /* Brand Colors — Gold Button (separate token: never use as text) */
  --color-gold-btn:     #E6B830;
  --color-gold-btn-dark:#C49A1A;

  /* Brand Colors — Navy */
  --color-navy:         #1B2A4A;
  --color-navy-dark:    #111C32;

  /* Brand Colors — Sky (Powder Blue) */
  --color-sky:          #A8C4D4;
  --color-sky-light:    #C8DCE8;
  --color-sky-dark:     #7AAABE;

  /* Neutrals */
  --color-white:        #FFFFFF;
  --color-mist:         #F5F5F3;
  --color-stone:        #2D2D2D;
  --color-text-light:   #666666;
  --color-border:       #E2D9C6;
  --color-border-light: #EDE8DC;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1160px;
  --header-height: 68px;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-gold: 0 4px 20px rgba(196, 154, 26, 0.25);

  /* Border radius */
  --radius-sm:  4px;
  --radius-md:  10px;
  --radius-lg:  18px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   160ms ease;
  --transition-normal: 260ms ease;

  /* Form Status Colors */
  --color-success-bg:     #ecfdf5;
  --color-success-text:   #065f46;
  --color-success-border: #a7f3d0;
  --color-error-bg:       #fef2f2;
  --color-error-text:     #991b1b;
  --color-error-border:   #fecaca;
  --color-invalid-border: #dc2626;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-stone);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-gold);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-navy);
}

p {
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

iframe {
  max-width: 100%;
}

/* ============================================================
   3. ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-gold-btn);
  color: var(--color-navy);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-trust-item { opacity: 1 !important; transform: none !important; }
  .testimonial-stars svg { opacity: 1 !important; transform: scale(1) !important; }
  .form-status-check polyline { stroke-dashoffset: 0 !important; }
}

/* ============================================================
   4. SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   5. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section-alt {
  background-color: var(--color-mist);
}

.section-dark {
  background-color: var(--color-navy-dark);
  color: var(--color-mist);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

/* Sky-tinted section background (powder blue accent) */
.section-sky {
  background-color: var(--color-sky-light);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-gold-text);
  margin-bottom: 0.6rem;
  display: block;
}

.section-eyebrow--light {
  color: var(--color-gold-light);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.section-dark .section-title {
  color: var(--color-white);
}

.section-divider {
  width: 48px;
  height: 2px;
  background: var(--color-gold);
  margin: 0 auto var(--space-md);
}

/* Heading gold underline accent — matches brand guide heading-accent pattern */
.heading-accent::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--color-gold);
  margin-top: 0.75rem;
}

/* Centered variant for center-aligned section headers */
.heading-accent-center::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--color-gold);
  margin: 0.75rem auto 0;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-dark .section-intro {
  color: var(--color-sky-light);
}

/* ============================================================
   6. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.site-header--scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  max-width: var(--max-width);
}

/* Logo image */
.logo-img {
  display: block;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* Header logo sizing */
.header-logo-icon .logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(196,154,26,0.18);
}

/* Footer logo sizing */
.footer-logo-icon .logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(168,196,212,0.30);
  background: #fff;
}

/* Logo block (shared header + footer) */
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--color-navy);
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.header-logo:hover {
  opacity: 0.8;
  color: var(--color-navy);
}

.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.68rem;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.nav-toggle:hover {
  border-color: var(--color-gold);
  background-color: var(--color-gold-pale);
}

.nav-toggle:focus-visible {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px var(--color-gold);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: var(--radius-full);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navigation */
.main-nav[hidden] {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-stone);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  letter-spacing: 0.02em;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.8rem;
  right: 0.8rem;
  height: 2px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  transform-origin: center;
}

.nav-link:hover {
  color: var(--color-navy);
  background-color: var(--color-sky-light);
}

.nav-link:focus-visible {
  color: var(--color-navy);
  background-color: var(--color-sky-light);
  outline: none;
  box-shadow: 0 0 0 2px var(--color-gold);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--color-navy);
  background-color: var(--color-sky-light);
}

.nav-cta {
  flex-shrink: 0;
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.85rem;
  background-color: var(--color-gold-btn);
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--color-gold-btn);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  font-family: var(--font-body);
  line-height: 1;
}

.btn-primary:hover {
  background-color: var(--color-gold-btn-dark);
  border-color: var(--color-gold-btn-dark);
  color: var(--color-navy);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.85rem;
  background-color: transparent;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--color-navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
  font-family: var(--font-body);
  line-height: 1;
}

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

/* ============================================================
   8. HERO — Full-bleed image with navy gradient overlay
   ============================================================ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--color-navy);
  overflow: hidden;
}

/* Background image — covers the section, sits behind overlay */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Navy gradient overlay — strong left for text readability,
   softens right to let the warm shelf tones and greens show through */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(17, 28, 50, 0.93) 0%,
      rgba(27, 42, 74, 0.82) 35%,
      rgba(27, 42, 74, 0.50) 65%,
      rgba(27, 42, 74, 0.25) 100%
    );
}

/* Two-column layout: text left, logo card right */
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* Left column: text block */
.hero-text {
  max-width: 600px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-gold-light);
  margin-bottom: 1rem;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.12;
  margin-bottom: var(--space-md);
  letter-spacing: -0.015em;
}

.hero-headline em {
  font-style: normal;
  color: var(--color-gold-light);
}

.hero-subheadline {
  font-size: 1.1rem;
  color: var(--color-sky-light);
  margin-bottom: var(--space-lg);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Secondary button variant on dark bg: white outline */
.hero-btn-secondary {
  border-color: rgba(255,255,255,0.5);
  color: var(--color-white);
}

.hero-btn-secondary:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-navy);
}

/* Right column: frosted glass logo card */
.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-lg);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  min-width: 240px;
}

.hero-logo-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px var(--color-gold),
    0 4px 20px rgba(0,0,0,0.25);
}

/* Trust badges inside the card */
.hero-card-trust {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateX(-8px);
  animation: trust-fade-in 0.4s ease forwards;
}

.hero-trust-item:nth-child(1) { animation-delay: 0.5s; }
.hero-trust-item:nth-child(2) { animation-delay: 0.7s; }
.hero-trust-item:nth-child(3) { animation-delay: 0.9s; }

@keyframes trust-fade-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-trust-item svg {
  color: var(--color-gold-light);
  flex-shrink: 0;
}

/* ============================================================
   9. ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-stone);
}

.about-text p {
  margin-bottom: var(--space-md);
}

.about-badge-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.about-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-md);
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--transition-normal),
    transform var(--transition-normal),
    border-color var(--transition-normal);
  gap: var(--space-xs);
}

.about-badge:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-sky);
}

.badge-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-gold-text);
  line-height: 1;
}

.badge-icon {
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-sky-light);
  border-radius: 50%;
}

.badge-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-stone);
  line-height: 1.35;
}

.about-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.about-video-wrap {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-video-label {
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  color: var(--color-gold-text);
  text-align: center;
}

.about-video-player {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   10. SERVICES
   ============================================================ */
.services-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.services-group {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-lg) var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.services-group:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.services-group-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-sky-light);
}

.services-group-icon {
  color: var(--color-navy);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--color-sky-light);
  border-radius: var(--radius-sm);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.service-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background-color: var(--color-gold-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  margin-top: 1px;
}

.service-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.service-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.3;
}

.service-desc {
  font-size: 0.855rem;
  color: var(--color-text-light);
  line-height: 1.55;
}

/* ============================================================
   11. TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.testimonial {
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-md);
  margin: 0;
}

.testimonial p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.90);
  line-height: 1.85;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
}

.testimonial-meta {
  font-size: 0.82rem;
  color: var(--color-sky-light);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
}

.testimonial-stars svg {
  color: var(--color-gold-light);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Stars animate when parent testimonial is revealed */
.reveal.is-visible .testimonial-stars svg:nth-child(1) { opacity: 1; transform: scale(1); transition-delay: 0.1s; }
.reveal.is-visible .testimonial-stars svg:nth-child(2) { opacity: 1; transform: scale(1); transition-delay: 0.2s; }
.reveal.is-visible .testimonial-stars svg:nth-child(3) { opacity: 1; transform: scale(1); transition-delay: 0.3s; }
.reveal.is-visible .testimonial-stars svg:nth-child(4) { opacity: 1; transform: scale(1); transition-delay: 0.4s; }
.reveal.is-visible .testimonial-stars svg:nth-child(5) { opacity: 1; transform: scale(1); transition-delay: 0.5s; }

.testimonial-source {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-sky);
  margin-top: 4px;
}

/* ============================================================
   12. WHY CHOOSE US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-xl);
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: var(--space-xs) 0;
}

.why-check {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background-color: var(--color-gold-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  margin-top: 2px;
}

.why-label {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
}

/* ============================================================
   13. CERTIFICATIONS
   ============================================================ */
.certs-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.certs-subsection {
  margin-top: var(--space-2xl);
}

.certs-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-stone);
}

.certs-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  gap: 0.6rem;
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-normal);
}

.cert-badge:hover {
  border-color: var(--color-sky);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.cert-badge-icon {
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--color-sky-light);
  border-radius: 50%;
  transition: background-color var(--transition-normal);
}

.cert-badge:hover .cert-badge-icon {
  background: var(--color-sky);
}

.cert-badge-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-stone);
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ============================================================
   13. SERVICE AREA
   ============================================================ */
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.area-text p {
  font-size: 1.05rem;
  color: var(--color-stone);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.area-subheading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-xs);
}

.area-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background: var(--color-sky-light);
  border: 1px solid var(--color-sky);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-navy);
  white-space: nowrap;
}

.area-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
}

.area-map iframe {
  border: 0;
}

/* ============================================================
   14. CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.contact-info-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-navy);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-sky-light);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background-color: var(--color-sky-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  margin-top: 2px;
}

.contact-detail-item > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-detail-item strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-light);
  display: block;
}

.contact-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-stone);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--color-gold-dark);
  text-decoration: underline;
}

.contact-hours {
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-md);
}

.contact-hours h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-stone);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-hours p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.65;
}

/* Form wrapper */
.contact-form-wrap {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-required {
  color: var(--color-gold-dark);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--color-stone);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
  line-height: 1.5;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:hover {
  border-color: var(--color-sky);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-sky-dark);
  box-shadow: 0 0 0 3px rgba(168, 196, 212, 0.5);
  background-color: #FAFCFD;
}

.form-input[aria-invalid="true"] {
  border-color: var(--color-invalid-border);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-input::placeholder {
  color: var(--color-text-light);
  opacity: 0.75;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* Form Status Messages */
.form-status {
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.form-status:not(:empty) {
  padding: var(--space-sm) var(--space-md);
}

.form-status-success {
  background-color: var(--color-success-bg);
  color: var(--color-success-text);
  border: 1px solid var(--color-success-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Animated checkmark drawn with SVG stroke */
.form-status-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.form-status-check circle {
  fill: var(--color-success-text);
}

.form-status-check polyline {
  fill: none;
  stroke: var(--color-success-bg);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: check-draw 0.4s 0.2s ease forwards;
}

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

.form-status-error {
  background-color: var(--color-error-bg);
  color: var(--color-error-text);
  border: 1px solid var(--color-error-border);
}

/* Submit Button */
.btn-submit {
  align-self: flex-start;
  font-size: 0.95rem;
  padding: 0.9rem 2.25rem;
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-navy);
  color: rgba(255,255,255,0.70);
  padding: var(--space-2xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--color-white);
  transition: opacity var(--transition-fast);
}

.footer-logo:hover {
  opacity: 0.82;
  color: var(--color-white);
}

.footer-logo .logo-name {
  color: var(--color-white);
}

.footer-logo .logo-sub {
  color: rgba(255,255,255,0.65);
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
  margin: 0;
  max-width: 280px;
  line-height: 1.6;
}

.footer-chamber {
  font-size: 0.775rem;
  color: var(--color-sky);
  margin: 0;
  letter-spacing: 0.01em;
}

.footer-chamber-link {
  color: var(--color-sky);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-chamber-link:hover {
  color: var(--color-gold-light);
  text-decoration: underline;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-sky);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-link svg {
  flex-shrink: 0;
  color: var(--color-sky);
  opacity: 0.75;
}

.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

.footer-address svg {
  flex-shrink: 0;
  color: var(--color-sky);
  opacity: 0.75;
  margin-top: 1px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-nav-list .footer-link {
  padding: 3px 0;
  position: relative;
  display: inline-flex;
  gap: 0;
}

.footer-nav-list .footer-link::before {
  content: '→';
  font-size: 0.75rem;
  color: var(--color-sky);
  opacity: 0;
  margin-right: 0;
  transition: opacity var(--transition-fast), margin-right var(--transition-fast);
}

.footer-nav-list .footer-link:hover::before {
  opacity: 1;
  margin-right: 5px;
}

.footer-bottom {
  padding: var(--space-md) 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.78);
  margin: 0;
  line-height: 1.65;
}

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.78);
  margin: 0;
}

/* ============================================================
   16. FLINTCRAFT STUDIO SIGNATURE
   Standalone component — copied as-is from FlintCraft signature.css.
   Do not re-style per client.
   ============================================================ */
.footer-signature {
  display: flex;
  justify-content: center;
  padding-top: 32px;
  padding-bottom: 32px;
  margin-top: 32px;
}

.fc-signature {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  text-decoration: none;
  opacity:         0.6;
  transition:      opacity 200ms ease;
  border:          none;
  outline-offset:  4px;
}

.fc-signature:hover,
.fc-signature:focus-visible {
  opacity: 1;
}

.fc-signature:focus-visible {
  outline: 2px solid currentColor;
  border-radius: 2px;
}

.fc-signature__mark {
  display:     flex;
  align-items: center;
  flex-shrink: 0;
  width:       20px;
  height:      20px;
}

.fc-signature__mark img {
  display:    inline-block;
  width:      20px;
  height:     20px;
  max-width:  none;
  object-fit: contain;
  filter:     var(--fc-mark-filter, none);
}

.fc-signature__text {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  text-align:     center;
  gap:            0.1rem;
}

.fc-signature__name {
  font-family:    "DM Sans", system-ui, sans-serif;
  font-size:      0.6875rem;    /* 11px */
  font-weight:    500;
  line-height:    1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fc-signature__tagline {
  font-family:    "DM Sans", system-ui, sans-serif;
  font-size:      0.625rem;     /* 10px */
  font-weight:    300;
  line-height:    1.3;
  letter-spacing: 0.01em;
}

/* Dark variant — white text, for dark footer backgrounds */
.fc-signature--dark {
  color: #ffffff;
}

.fc-signature--dark .fc-signature__mark img {
  --fc-mark-filter: none;
}

/* Light variant — dark text, for light footer backgrounds */
.fc-signature--light {
  color: #1a1e2b;
}

.fc-signature--light .fc-signature__mark img {
  --fc-mark-filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .fc-signature {
    transition: none;
  }
}

/* ============================================================
   17. RESPONSIVE — 768px breakpoint (mobile)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --space-xl: 2.75rem;
    --space-2xl: 4rem;
  }

  /* Header */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-mist);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 2px solid var(--color-navy);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md) var(--space-sm);
    gap: var(--space-xs);
    margin-left: 0;
    z-index: 99;
    /* Slide-down animation */
    transform-origin: top;
    animation: navSlideDown 0.25s ease-out;
  }

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

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem var(--space-md);
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    border-left-color: var(--color-gold);
    background-color: var(--color-white);
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    text-align: center;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border-light);
    min-height: 44px;
  }

  .logo-sub {
    font-size: 0.72rem;
  }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    gap: var(--space-lg);
  }

  .hero-text {
    max-width: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-card {
    flex-direction: row;
    min-width: auto;
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .hero-logo-img {
    width: 64px;
    height: 64px;
  }

  .hero-card-trust {
    gap: 0.4rem;
    align-items: flex-start;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Services */
  .services-columns {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Why Choose Us */
  .why-grid {
    grid-template-columns: 1fr;
  }

  /* Certs */
  .certs-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Service Area */
  .area-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* ============================================================
   18. RESPONSIVE — 480px breakpoint (small mobile)
   ============================================================ */
@media (max-width: 480px) {
  .about-badge-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .certs-badges {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

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

  .hero-card-trust {
    align-items: center;
  }
}
