/* =============================================================
   AMERICAL PATROL, GLOBAL CSS
   Paste into GHL Settings > Custom CSS
   Source: Option B design (americal-patrol-option-b.html)
   ============================================================= */

/* ── 1. GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Sora:wght@300;400;500;600;700;800&display=swap');


/* ── 2. CSS CUSTOM PROPERTIES ── */
:root {
  --navy-950: #050e1a;
  --navy-900: #0a1929;
  --navy-800: #0e2240;
  --navy-700: #153258;
  --navy-600: #1c4270;
  --navy-500: #245888;
  --navy-400: #3478b8;
  --navy-300: #5a9ad8;
  --navy-200: #8cb8e8;
  --black: #000;
  --white: #fff;
  --off-white: #f6f7fa;
  --gray-100: #eef0f4;
  --gray-200: #dde1e8;
  --gray-300: #bcc4d0;
  --gray-400: #8892a4;
  --gray-500: #5d6880;
  --gray-600: #3c4860;
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}


/* ── 3. BASE RESET ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--gray-500);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ── 4. TYPOGRAPHY BASE ── */
body {
  font-size: 15px;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy-900);
}
p {
  line-height: 1.75;
}


/* ── 5. GHL NAV OVERRIDES ── */
/* GHL typically uses .hl-nav, nav[class*="nav"], or site-wide header selectors.
   These rules target common GHL nav wrapper class patterns.
   Adjust selector if your GHL theme uses a different nav class. */

/* Primary nav container */
.hl-nav,
.nav-bar,
header nav,
[data-nav-container],
.site-header {
  background: var(--navy-950) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  backdrop-filter: blur(0px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding-left: 5% !important;
  padding-right: 5% !important;
}

/* Sticky scrolled state, add class "nav-scrolled" via JS or GHL scroll trigger */
.hl-nav.nav-scrolled,
.nav-bar.nav-scrolled,
header nav.nav-scrolled,
.site-header.nav-scrolled {
  backdrop-filter: blur(24px) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

/* Logo */
.hl-nav img,
.nav-bar img,
header nav img,
.site-header img,
.nav-logo img {
  max-height: 48px !important;
  width: auto !important;
}

/* Nav links */
.hl-nav a,
.nav-bar a,
header nav a,
.site-header a {
  font-family: var(--font-display) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  transition: all 0.2s !important;
}

/* Nav link hover / active */
.hl-nav a:hover,
.hl-nav a.active,
.nav-bar a:hover,
.nav-bar a.active,
header nav a:hover,
header nav a.active,
.site-header a:hover,
.site-header a.active {
  color: var(--navy-400) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Phone number in nav */
.hl-nav a[href^="tel"],
.nav-bar a[href^="tel"],
header nav a[href^="tel"],
.site-header a[href^="tel"] {
  color: var(--navy-300) !important;
  font-weight: 600 !important;
}

/* CTA button in nav */
.hl-nav .nav-cta,
.nav-bar .nav-cta,
header nav .nav-cta,
.hl-nav a.btn-primary,
.nav-bar a.btn-primary {
  background: var(--navy-400) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  padding: 9px 22px !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}
.hl-nav .nav-cta:hover,
.nav-bar .nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
  z-index: 1100;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy-950);
  z-index: 1000;
  padding: 100px 32px 40px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--font-display) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 0 !important;
  background: none !important;
  transition: color 0.2s !important;
}
.nav-drawer a:hover { color: var(--white) !important; }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
}


/* ── 6. GHL FOOTER OVERRIDES ── */
/* Target GHL footer elements, adjust selectors for your theme */
.hl-footer,
footer,
.site-footer,
[data-footer-container] {
  background: var(--navy-950) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.03) !important;
  padding: 56px 56px 24px !important;
}

/* Footer grid, 4 columns */
.hl-footer .footer-grid,
footer .footer-grid,
.site-footer .footer-grid {
  display: grid !important;
  grid-template-columns: 1.8fr 1fr 1fr 1fr !important;
  gap: 40px !important;
  padding-bottom: 36px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* Footer headings */
.hl-footer h4,
.hl-footer h3,
footer h4,
footer h3,
.site-footer h4,
.site-footer h3 {
  font-family: var(--font-display) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.6) !important;
  margin-bottom: 16px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
}

/* Footer text / body */
.hl-footer p,
footer p,
.site-footer p {
  color: var(--gray-300) !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

/* Footer links */
.hl-footer a,
footer a,
.site-footer a {
  color: var(--gray-300) !important;
  font-size: 13px !important;
  text-decoration: none !important;
  display: block !important;
  padding: 4px 0 !important;
  transition: all 0.2s !important;
}
.hl-footer a:hover,
footer a:hover,
.site-footer a:hover {
  color: var(--white) !important;
  transform: translateX(2px) !important;
}

/* Copyright bar */
.hl-footer .footer-bottom,
footer .footer-bottom,
.site-footer .footer-bottom {
  background: var(--navy-900) !important;
  color: var(--gray-500) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-top: 20px !important;
  font-size: 11.5px !important;
}

/* Social links */
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social-link {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: all 0.2s;
}
.footer-social-link:hover {
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 1024px) {
  .hl-footer .footer-grid,
  footer .footer-grid,
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 768px) {
  .hl-footer,
  footer,
  .site-footer {
    padding: 40px 20px 20px !important;
  }
  .hl-footer .footer-grid,
  footer .footer-grid,
  .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .hl-footer .footer-bottom,
  footer .footer-bottom,
  .site-footer .footer-bottom {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
  }
}


/* ── 7. SHARED BUTTON STYLES ── */
/* City pages define their own button styles inline, exclude them here */
.btn-primary,
.btn-w {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 15px 28px;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover,
.btn-w:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  padding: 15px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  cursor: pointer;
}
.btn-secondary:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--navy-600);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--navy-500);
  transition: all 0.3s;
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--navy-600);
  color: var(--white);
  border-color: var(--navy-600);
  transform: translateY(-1px);
}

/* ── City page overrides ──
   City pages use inline <style> with their own .btn-primary / .btn-outline /
   .mobile-call-bar definitions. These higher-specificity rules ensure the
   global styles above don't bleed into city pages. */
.city-page .btn-primary,
.city-page .btn-primary:hover {
  background: #3478b8 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  border: none !important;
  display: inline-block !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.city-page .btn-primary:hover {
  background: #5a9ad8 !important;
  transform: translateY(-2px) !important;
}
.city-page .btn-outline,
.city-page .btn-outline:hover {
  background: transparent !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  border: 2px solid rgba(255,255,255,0.35) !important;
  display: inline-block !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
.city-page .btn-outline:hover {
  border-color: #5a9ad8 !important;
  transform: translateY(-2px) !important;
}
.city-page .mobile-call-bar {
  background: #3478b8 !important;
  box-shadow: none !important;
}
@media (max-width: 768px) {
  .city-page .hero-actions a,
  .city-page .btn-group a {
    flex: none !important;
    width: 100% !important;
  }
}


/* ── 8. SHARED CARD STYLES ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 30px 26px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(10, 25, 41, 0.07);
  border-color: transparent;
}

.service-card,
.svc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 30px 26px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before,
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--navy-800);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover,
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(10, 25, 41, 0.07);
  border-color: transparent;
}
.service-card:hover::before,
.svc-card:hover::before {
  transform: scaleX(1);
}
.service-card h3,
.svc-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.service-card p,
.svc-card p {
  font-size: 13.5px;
  color: var(--gray-400);
  line-height: 1.7;
}

.industry-card,
.ind-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 32px 22px;
  text-align: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: block;
}
.industry-card::after,
.ind-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--navy-700);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.industry-card:hover,
.ind-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(10, 25, 41, 0.08);
  border-color: transparent;
}
.industry-card:hover::after,
.ind-card:hover::after {
  transform: scaleX(1);
}
.industry-card h3,
.ind-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.industry-card p,
.ind-card p {
  font-size: 12.5px;
  color: var(--gray-400);
  line-height: 1.55;
}


/* ── 9. TRUST / CREDENTIAL BADGE STYLES ── */
.cred-badge,
.hero-cred {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}
.cred-badge strong,
.hero-cred strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}
.cred-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy-400);
  flex-shrink: 0;
}

.trust-strip {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

/* Marquee trust bar */
.marquee-bar {
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}
.marquee-item svg {
  width: 16px;
  height: 16px;
  color: var(--navy-400);
}
.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.marquee-bar:hover .marquee-track,
.marquee-bar:focus-within .marquee-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
@media (max-width: 768px) {
  .marquee-bar { display: none; }
}


/* ── 10. SECTION SPACING UTILITIES ── */
.section,
.section-pad {
  padding: 100px 56px;
}
.section-inner,
.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy-400);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--navy-300);
}

.section-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -1.2px;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 15.5px;
  color: var(--gray-400);
  line-height: 1.75;
  max-width: 520px;
}

@media (max-width: 1024px) {
  .section, .section-pad { padding: 80px 40px; }
}
@media (max-width: 768px) {
  .section, .section-pad { padding: 72px 20px; }
  .section-title { font-size: 30px; }
}


/* ── 11. SCROLL REVEAL ── */
/* Scroll reveal, fallback ensures content is always visible even if JS fails */
@keyframes ap-reveal { to { opacity: 1; transform: translateY(0); } }
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
  animation: ap-reveal 0.6s cubic-bezier(0.16,1,0.3,1) 300ms forwards;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}


/* ── 12. COUNTER ANIMATION ── */
/* Counters are animated via JS IntersectionObserver.
   The .counter class itself is purely a JS hook, no additional
   CSS needed beyond the font styles inherited from their parents. */
.why-num-value {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1;
}
.why-num-value .s {
  font-size: 26px;
  color: var(--navy-300);
}
.why-num-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 6px;
  font-weight: 500;
}
.why-num-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  transition: all 0.3s;
}
.why-num-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
}

/* Metric cards (hero) */
.metric-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1.1;
}
.metric-value .unit {
  font-size: 24px;
  font-weight: 400;
  color: var(--navy-300);
}


/* ── 13. MOBILE STICKY CALL BAR ── */
@media (max-width: 768px) {
  .mobile-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #1c4270; /* --navy-600 */
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
  }
  .mobile-call-bar a {
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
  }
}
@media (min-width: 769px) {
  .mobile-call-bar { display: none; }
}


/* ── 14. BLOG TYPOGRAPHY OVERRIDES ── */
/* Applies to /apblog and individual blog post pages */

.blog-post,
body.blog-page {
  background: var(--off-white);
}

/* Blog post headings */
.blog-post h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.blog-post h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-top: 40px;
  margin-bottom: 16px;
}
.blog-post h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-700);
  line-height: 1.3;
  margin-top: 28px;
  margin-bottom: 12px;
}

/* Blog post body text */
.blog-post p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 18px;
}
.blog-post li {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 8px;
}
.blog-post ul,
.blog-post ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

/* Blog card, for blog listing page */
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: block;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(10, 25, 41, 0.08);
  border-color: transparent;
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}
.blog-card-body {
  padding: 24px;
}
.blog-card-category {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--navy-400);
  margin-bottom: 10px;
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.3;
  margin-bottom: 8px;
}
.blog-card p {
  font-size: 13.5px;
  color: var(--gray-400);
  line-height: 1.65;
}
.blog-card-meta {
  font-size: 11.5px;
  color: var(--gray-400);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
}

/* Blog page layout */
.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 1024px) {
  .blog-index-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-post h1 { font-size: 32px; }
}
@media (max-width: 768px) {
  .blog-index-grid { grid-template-columns: 1fr; }
  .blog-post h1 { font-size: 26px; }
  .blog-post h2 { font-size: 22px; }
}


/* ── SHARED ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes chatPulse {
  0%   { box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 0 rgba(52,120,184,0.45); }
  50%  { box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 14px rgba(52,120,184,0); }
  100% { box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 0 rgba(52,120,184,0); }
}
@keyframes chatBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-5px); }
}


/* ── CHAT WIDGET CSS ── */
/* These styles must be present for the chat widget in chat-widget-footer.html to render correctly */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  font-family: var(--font-body);
}
.chat-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-700);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: chatPulse 3s ease-in-out 2s 3;
}
.chat-trigger:hover {
  background: var(--navy-600);
  transform: scale(1.07);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
.chat-trigger:focus-visible {
  outline: 2px solid var(--navy-300);
  outline-offset: 3px;
}
.chat-icon-close { display: none; }
.chat-widget.open .chat-icon-open { display: none; }
.chat-widget.open .chat-icon-close { display: block; }
.chat-notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  background: #34d399;
  border-radius: 50%;
  border: 2px solid var(--navy-950);
  animation: chatBlink 2s infinite;
}
.chat-notif-dot.hidden { display: none; }

.chat-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 340px;
  max-height: 520px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-widget.open .chat-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: var(--navy-900);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-header-left { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-300);
  flex-shrink: 0;
}
.chat-header-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
}
.chat-header-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.chat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: chatBlink 2.5s infinite;
}
.chat-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-close-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }

.chat-msg { max-width: 85%; display: flex; flex-direction: column; gap: 3px; }
.chat-msg.bot  { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.6;
}
.chat-msg.bot  .chat-bubble { background: var(--gray-100); color: var(--navy-900); border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: var(--navy-800); color: var(--white); border-bottom-right-radius: 4px; }
.chat-msg-time { font-size: 10.5px; color: var(--gray-400); padding: 0 4px; }
.chat-msg.user .chat-msg-time { text-align: right; }

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 8px;
  flex-shrink: 0;
}
.chat-chip {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--navy-700);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.chat-chip:hover {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.chat-typing {
  align-self: flex-start;
  padding: 10px 14px;
  background: var(--gray-100);
  border-radius: 14px 14px 14px 4px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-400);
  animation: typingBounce 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

.chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--navy-900);
  background: var(--gray-100);
  outline: none;
  transition: all 0.2s;
}
.chat-input:focus {
  border-color: var(--navy-500);
  background: var(--white);
}
.chat-input::placeholder { color: var(--gray-400); }

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--navy-800);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.chat-send-btn:hover { background: var(--navy-700); transform: scale(1.05); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.chat-footer-note {
  font-size: 10.5px;
  color: var(--gray-400);
  text-align: center;
  padding: 0 14px 10px;
  flex-shrink: 0;
}
.chat-footer-note a { color: var(--gray-400); }

.chat-fallback { padding: 24px 16px; text-align: center; }
.chat-fallback p {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 18px;
}
.chat-fallback a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}
.chat-fallback a:hover { background: var(--navy-800); }

@media (max-width: 480px) {
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-panel { width: calc(100vw - 32px); right: -8px; max-height: 72vh; }
}
