/* ==========================================================================
   TripleTrend Global — Home Care Website
   ========================================================================== */

:root {
  /* Brand palette (brand-guide.png): Night Blue -> Main Blue -> Steel Blue -> Azure Blue -> Pastel Blue */
  --navy-dark: #131643;
  --navy: #374ca0;
  --navy-light: #356cb5;
  --blue: #0097db;
  --blue-dark: #374ca0;
  --blue-light: #e9eaf5;
  --blue-mid: #356cb5;
  --amber: #f59e0b;
  --amber-dark: #b45309;
  --amber-light: #fef3c7;
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --gray-bg: #f5f7fa;
  --gray-border: #e2e8f0;
  --text-dark: #16213e;
  --text-body: #46516b;
  --text-muted: #6b7690;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(19, 22, 67, 0.08);
  --shadow-lg: 0 14px 44px rgba(19, 22, 67, 0.14);
  --shadow-glow: 0 10px 30px rgba(0, 151, 219, 0.28);
  --font-heading: "Avenir Next", "Avenir Next LT Pro", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Avenir Next", "Avenir Next LT Pro", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* overflow-x: clip (not hidden) -- hidden computes overflow-y to auto per
   spec, turning html/body into a scroll container and breaking .navbar's
   position: sticky. clip trims horizontal overflow without that side effect. */
html, body { overflow-x: clip; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.65;
  background: var(--white);
}
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
  margin: 0 0 1rem;
}

h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  display: inline-block;
}

.section {
  padding: 80px 0;
}
.section-sm { padding: 56px 0; }
.section-gray { background: var(--gray-bg); }
.section-navy {
  background:
    radial-gradient(circle at 15% 20%, rgba(0,151,219,0.28), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(53,108,181,0.22), transparent 45%),
    linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  color: #cfd9ec;
}
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #b9c6e2; }

.text-center { text-align: center; }
.max-w { max-width: 700px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-align: center;
  max-width: 100%;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 151, 219, 0.32);
}
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; box-shadow: 0 10px 26px rgba(0, 151, 219, 0.4); }
.btn-white {
  background: var(--white);
  color: var(--navy-dark);
  box-shadow: 0 6px 18px rgba(19, 22, 67, 0.14);
}
.btn-white:hover { background: #eef2f8; text-decoration: none; }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); text-decoration: none; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  background: var(--navy-dark);
  color: #cfd9ec;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.topbar-left { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.topbar a { color: #cfd9ec; }
.topbar a:hover { color: var(--white); }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-icon { width: 15px; height: 15px; flex-shrink: 0; }

.navbar {
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease;
}
/* Background + blur live on a pseudo-element (not .navbar itself) so that
   backdrop-filter doesn't create a containing block for .nav-links'
   position:fixed mobile overlay below 720px -- otherwise the full-screen
   menu gets trapped inside the navbar's own box instead of the viewport. */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.navbar.scrolled { box-shadow: 0 6px 24px rgba(19, 22, 67, 0.08); }
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-dark);
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(19,22,67,0.25);
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  color: var(--text-dark);
}
.nav-links a { color: var(--text-dark); font-size: 0.95rem; position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: 20px; position: relative; z-index: 160; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 160;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-dark);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.page-hero {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,151,219,0.2), transparent 45%),
    linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  padding: 76px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 1rem; }
.page-hero p { color: #b9c6e2; font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

.hero-split {
  padding: 64px 0 70px;
  background: var(--gray-bg);
  position: relative;
  overflow: hidden;
}
.hero-split::before,
.hero-split::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}
.hero-split::before {
  width: 340px; height: 340px;
  background: rgba(0, 151, 219, 0.16);
  top: -120px; right: 8%;
}
.hero-split::after {
  width: 260px; height: 260px;
  background: rgba(55, 76, 160, 0.16);
  bottom: -100px; left: 4%;
}
.hero-split .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-split h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.hero-split .btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-image-ph {
  border-radius: var(--radius-lg);
  min-height: 340px;
}

/* ==========================================================================
   Placeholder image blocks (no external assets)
   ========================================================================== */
.ph-image {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #dbe7fb, #b7cef2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  min-height: 280px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.5);
}
.ph-image::before,
.ph-image::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.ph-image::before {
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(255,255,255,0.55), transparent 70%);
  top: -20%; left: -15%;
}
.ph-image::after {
  width: 45%; height: 45%;
  background: radial-gradient(circle, rgba(55,76,160,0.25), transparent 70%);
  bottom: -15%; right: -10%;
}
.ph-image svg {
  width: 30%;
  min-width: 56px;
  max-width: 84px;
  height: auto;
  opacity: 0.85;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 14px rgba(13, 42, 82, 0.18));
}
.ph-image.dark { background: linear-gradient(135deg, #1a2f52, #0d1b33); color: rgba(255,255,255,0.6); }
.ph-image.gray { background: linear-gradient(135deg, #e6ebf3, #ccd6e6); }
.ph-image.sm { min-height: 200px; }

/* Real photo in place of the gradient/icon placeholder */
.ph-image.photo { background: none; border-color: transparent; }
.ph-image.photo::before, .ph-image.photo::after { display: none; }
.ph-image.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* ==========================================================================
   Cards / Grids
   ========================================================================== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge.amber { background: var(--amber-light); color: var(--amber-dark); }
.icon-badge.teal { background: var(--teal-light); color: var(--teal); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d7e3fb; }

.value-card { text-align: left; }

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 1.25rem 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-body);
}
.check-list svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.check-inline { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 1.25rem; }
.check-inline span { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500; color: var(--text-dark); }
.check-inline svg { width: 17px; height: 17px; color: var(--blue); }

.stat-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-badge .icon-badge { margin: 0; width: 44px; height: 44px; }
.stat-badge strong { display: block; font-size: 1.15rem; color: var(--text-dark); }
.stat-badge span { font-size: 0.78rem; color: var(--text-muted); }
.media-wrap { position: relative; margin-bottom: 20px; }

/* Service card (list layout used in Services page) */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  scroll-margin-top: 100px;
  transition: box-shadow 0.25s ease;
}
.service-row:hover { box-shadow: var(--shadow-lg); }
.service-row.reverse .service-media { order: 2; }
.service-row h3 { font-size: 1.5rem; }
.service-row .btn-link { font-weight: 700; }

.feature-title {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  margin: 1.25rem 0 0.75rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  margin-top: 1.25rem;
  transition: gap 0.2s ease;
}
.btn-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.btn-link:hover svg { transform: translateX(3px); }

/* Simple 3-col teaser cards (home + location pages) */
.teaser-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.teaser-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d7e3fb; }
.teaser-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.teaser-card .btn-link { margin-top: 1rem; font-size: 0.9rem; }

/* Location pill badges */
.pill-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.pill:hover { background: var(--navy-light); text-decoration: none; transform: translateY(-2px); }
.pill svg { width: 16px; height: 16px; }
.pill-row.light .pill {
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--gray-border);
}
.pill-row.light .pill:hover { background: var(--blue-light); color: var(--blue-dark); }

/* Trust bar (badges strip) */
.trust-bar-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  justify-content: center;
  align-items: center;
  padding: 22px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
}
.trust-item svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.trust-item.amber svg { color: var(--amber-dark); }

/* Star ratings */
.stars { display: inline-flex; gap: 2px; color: var(--amber); vertical-align: middle; }
.stars svg { width: 16px; height: 16px; }
.rating-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rating-row strong { color: var(--text-dark); }
.rating-row span { font-size: 0.88rem; color: var(--text-muted); }

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testimonial-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin: 0.9rem 0 1.5rem;
  flex-grow: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), #c7dbfb);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.92rem; color: var(--text-dark); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  text-align: center;
}
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--white);
}
.steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--gray-border);
  z-index: 0;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; }

/* FAQ */
.faq-item {
  background: var(--gray-bg);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-border);
  transition: border-color 0.2s ease;
}
.faq-item.open { border-color: #c7dbfb; }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 26px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question .chevron { transition: transform 0.2s ease; flex-shrink: 0; width: 18px; height: 18px; color: var(--blue); }
.faq-item.open .chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 26px;
}
.faq-item.open .faq-answer { padding-bottom: 22px; }
.faq-answer p { margin: 0; font-size: 0.95rem; }

/* CTA bands */
.cta-band {
  background: linear-gradient(120deg, var(--blue), var(--blue-dark));
  color: var(--white);
  padding: 48px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 0.4rem; }
.cta-band p { color: #dbeafe; margin: 0; max-width: 460px; }
.cta-band .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.cta-navy {
  background:
    radial-gradient(circle at 25% 25%, rgba(0,151,219,0.18), transparent 40%),
    linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-navy h2 { color: var(--white); }
.cta-navy p { color: #b9c6e2; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-info-item .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.contact-info-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.contact-info-item p { margin-bottom: 0; font-size: 0.92rem; }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  border-top: 4px solid var(--blue);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,151,219,0.15);
}
.field { margin-bottom: 18px; }
.form-note { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: 14px; }
.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #060f1f;
  color: #93a1c2;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-card .logo-text small { color: var(--blue); }
.footer-logo-card .logo-text strong { color: var(--navy-dark); }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.footer-col ul li { margin-bottom: 0.7rem; font-size: 0.9rem; }
.footer-col ul li a { color: #93a1c2; display: flex; align-items: center; gap: 6px; transition: color 0.2s ease, transform 0.2s ease; }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; transform: translateX(3px); }
.footer-col p { font-size: 0.88rem; }
.contact-line { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 0.9rem; font-size: 0.88rem; }
.contact-line svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--blue); }
.social-row { display: flex; gap: 12px; margin-top: 1rem; }
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: var(--blue); text-decoration: none; transform: translateY(-3px); }
.social-row svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #93a1c2; margin-left: 16px; }
.footer-bottom a:hover { color: var(--white); }

.floating-btns {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
}
.fab {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab.up { background: rgba(19,22,67,0.85); }
.fab.chat { background: #25d366; }
.fab svg { width: 18px; height: 18px; }
.fab.chat svg { width: 18px; height: 20px; }

/* ==========================================================================
   Blog post prose (markdown-rendered content from Decap CMS / Eleventy)
   ========================================================================== */
.blog-post-body {
  max-width: 760px;
  margin: 0 auto;
}
.blog-post-body h2 { margin-top: 2rem; font-size: clamp(1.4rem, 2.5vw, 1.7rem); }
.blog-post-body h3 { margin-top: 1.5rem; }
.blog-post-body p { font-size: 1.02rem; }
.blog-post-body ul, .blog-post-body ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.blog-post-body ul { list-style: disc; }
.blog-post-body ol { list-style: decimal; }
.blog-post-body li { margin-bottom: 0.5rem; }
.blog-post-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.blog-post-body blockquote {
  border-left: 3px solid var(--blue);
  background: var(--gray-bg);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-dark);
  margin: 1.5rem 0;
}
.blog-post-body a { text-decoration: underline; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b9c6e2;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Location page extras
   ========================================================================== */
.local-resource-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.local-resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.local-resource-card h4 { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; margin-bottom: 0.5rem; }
.local-resource-card h4 svg { width: 15px; height: 15px; color: var(--text-muted); }
.local-resource-card p { font-size: 0.88rem; margin: 0; }

/* ==========================================================================
   Scroll reveal (applied via JS, respects reduced motion)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-split .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row.reverse .service-media { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }

  /* Hamburger nav kicks in here rather than at 720px: the full desktop nav
     (logo + 5 links + CTA) doesn't fit a tablet-width viewport without
     wrapping mid-link (e.g. "About Us" breaking onto two lines at 768px). */
  .topbar .container { font-size: 0.78rem; }
  .topbar-left { gap: 14px; }

  /* Full-screen nav overlay — anchored to the viewport, not the header's
     height, so it can't be thrown off by the topbar wrapping to two lines. */
  .nav-links {
    position: fixed;
    inset: 0;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 32px;
    gap: 22px;
    overflow-y: auto;
    z-index: 150;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }
  .nav-links a::after { display: none; }
  .nav-links .btn-primary { margin-top: 12px; }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { display: none; }
}

@media (max-width: 720px) {
  .page-hero { padding: 52px 0; }
  .page-hero h1 { font-size: 2rem; }
  .hero-split { padding: 44px 0 52px; }
  .hero-split h1 { font-size: 1.9rem; }
  .section { padding: 52px 0; }
  .cta-navy { padding: 44px 0; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 0; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom a { margin: 0 8px; }
  .trust-bar { gap: 14px 22px; }

  .card, .teaser-card, .testimonial-card, .service-row, .form-card { padding: 24px; }
  .local-resource-card { padding: 20px; }
  .stat-badge { padding: 10px 14px; gap: 10px; }
  .stat-badge .icon-badge { width: 36px; height: 36px; }
  .stat-badge strong { font-size: 1rem; }
  .social-row a { width: 40px; height: 40px; }

  .floating-btns { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 460px) {
  .container { padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  .btn { padding: 13px 22px; font-size: 0.9rem; }
  .page-hero h1 { font-size: 1.7rem; }
  .hero-split h1 { font-size: 1.6rem; }
  .hero-image-ph, .ph-image { min-height: 240px; }
  .stat-badge { left: -8px; bottom: -16px; }
  .trust-bar { gap: 10px 16px; padding: 16px 0; }
  .trust-item { font-size: 0.82rem; }
}
