/* ==========================================================================
   insurancepickjournal - Master Stylesheet
   Pure Vanilla CSS (Mobile-First Architecture)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette */
  --navy: #0b2545;
  --navy-dark: #06162a;
  --navy-light: #133968;
  --teal: #13a89e;
  --teal-hover: #0e857d;
  --teal-subtle: rgba(19, 168, 158, 0.08);
  --teal-border: rgba(19, 168, 158, 0.25);
  --bg-soft: #f5f8fb;
  --surface: #ffffff;
  --surface-alt: #eef3f8;
  --text-main: #1b2a3a;
  --text-muted: #54667a;
  --text-light: #8494a5;
  --border: #e2e8f0;
  --border-light: #edf2f7;

  /* Accent & Status */
  --accent-gold: #d97706;
  --success: #059669;
  --error: #dc2626;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', Times, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.06), 0 1px 2px rgba(11, 37, 69, 0.04);
  --shadow-md: 0 6px 18px rgba(11, 37, 69, 0.08), 0 2px 6px rgba(11, 37, 69, 0.04);
  --shadow-lg: 0 16px 36px rgba(11, 37, 69, 0.12), 0 4px 10px rgba(11, 37, 69, 0.06);

  /* Layout & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container-max: 1200px;
  --header-height: 72px;
  --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-soft);
  color: var(--text-main);
  line-height: 1.65;
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.08rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw + 1rem, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.65rem, 3vw + 0.8rem, 2.5rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.25rem, 1.8vw + 0.7rem, 1.65rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1.15rem;
  color: var(--text-muted);
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  background-color: #e2e8f0;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.section {
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-alt {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.section-title {
  margin-bottom: 0.9rem;
}

.section-desc {
  font-size: clamp(1.02rem, 0.5vw + 0.95rem, 1.18rem);
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none;
  min-height: 48px;
}

.btn-primary {
  background-color: var(--teal);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--teal-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(19, 168, 158, 0.35);
}

.btn-secondary {
  background-color: var(--navy);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--navy-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.25);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background-color: var(--teal-subtle);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-outline-white:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   5. Header & Navigation (Identical Across 5 Pages)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background-color var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Brand Logo Lockup */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  color: var(--teal);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand-text span {
  color: var(--teal);
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

.desktop-nav-list {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-item-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition);
}

.nav-item-link:hover {
  color: var(--teal);
}

.nav-item-link.active {
  color: var(--teal);
  font-weight: 600;
}

.nav-item-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--teal);
  border-radius: 2px;
}

/* Hamburger Toggle Button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 1010;
  transition: border-color var(--transition);
}

.hamburger-btn:hover {
  border-color: var(--teal);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-origin: center;
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Slide-in Drawer (Opens Left to Right) */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  width: min(85vw, 340px);
  height: 100vh;
  height: 100dvh;
  background-color: #ffffff;
  z-index: 1005;
  box-shadow: 8px 0 32px rgba(11, 37, 69, 0.18);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.6rem 2rem;
  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-close-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.drawer-close-btn:hover {
  background-color: var(--teal-subtle);
  color: var(--teal);
  border-color: var(--teal);
}

.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(6, 22, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-item {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-nav-drawer.open .mobile-nav-item {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-drawer.open .mobile-nav-item:nth-child(1) { transition-delay: 0.08s; }
.mobile-nav-drawer.open .mobile-nav-item:nth-child(2) { transition-delay: 0.13s; }
.mobile-nav-drawer.open .mobile-nav-item:nth-child(3) { transition-delay: 0.18s; }
.mobile-nav-drawer.open .mobile-nav-item:nth-child(4) { transition-delay: 0.23s; }
.mobile-nav-drawer.open .mobile-nav-item:nth-child(5) { transition-delay: 0.28s; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: var(--radius-sm);
  text-decoration: none;
  min-height: 48px;
  transition: background-color var(--transition), color var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: var(--teal-subtle);
  color: var(--teal);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. Home Page - Hero Section & Ken Burns Animation
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-dark);
  color: #ffffff;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.05);
  animation: kenBurns 22s infinite alternate ease-in-out;
}

@keyframes kenBurns {
  0% {
    transform: scale(1.05) translate(0, 0);
  }
  50% {
    transform: scale(1.15) translate(-1.5%, 1.2%);
  }
  100% {
    transform: scale(1.08) translate(1.5%, -1%);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(6, 22, 42, 0.94) 0%, rgba(11, 37, 69, 0.82) 60%, rgba(19, 168, 158, 0.35) 100%);
  z-index: 2;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge-editorial {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 1.1rem;
}

.hero-badge-editorial svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 1vw + 0.95rem, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.4rem;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust-item svg {
  color: var(--teal);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Layered Floating Collage for Desktop */
.hero-visual {
  display: none;
  position: relative;
  min-height: 420px;
}

.collage-card-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 85%;
  aspect-ratio: 4/3;
  background-color: var(--navy);
}

.collage-card-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-card-floating {
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 62%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border: 3px solid #ffffff;
  aspect-ratio: 4/3;
  animation: floatCard 6s ease-in-out infinite alternate;
}

.collage-card-floating img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-stat-box {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(11, 37, 69, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  z-index: 4;
}

.collage-stat-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.collage-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

@keyframes floatCard {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-14px);
  }
}

/* --------------------------------------------------------------------------
   7. Animated Image Carousel / Slider
   -------------------------------------------------------------------------- */
.slider-wrapper {
  position: relative;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-top: 1rem;
}

.slider-track {
  position: relative;
  width: 100%;
  min-height: 380px;
}

.slider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  display: grid;
  grid-template-columns: 1fr;
}

.slider-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.slide-image-col {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.slide-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content-col {
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-meta {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.slide-title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.2rem, 1.5vw + 0.8rem, 1.6rem);
}

.slide-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.slider-controls {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.slider-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--border);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
  background-color: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 0.5rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.slider-dot.active {
  background-color: var(--teal);
  width: 22px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   8. Cards & Grid Systems (Mobile-First Architecture)
   RULE: On small screens, cards with image + content occupy 100% full width,
   while multi-card sections with text-only scroll horizontally.
   -------------------------------------------------------------------------- */
.cards-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  width: 100%;
}

/* Horizontal Scroll for Text-Only Multi-Card Sections on Mobile */
.mobile-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .text-cards-scroll-mobile,
  .steps-grid,
  .tips-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 1.1rem !important;
    padding-top: 0.4rem !important;
    padding-bottom: 1.4rem !important;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    scrollbar-width: thin;
    scrollbar-color: var(--teal) var(--border-light);
  }

  .text-cards-scroll-mobile::-webkit-scrollbar,
  .steps-grid::-webkit-scrollbar,
  .tips-grid::-webkit-scrollbar {
    height: 4px;
    display: block;
  }

  .text-cards-scroll-mobile::-webkit-scrollbar-track,
  .steps-grid::-webkit-scrollbar-track,
  .tips-grid::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 4px;
  }

  .text-cards-scroll-mobile::-webkit-scrollbar-thumb,
  .steps-grid::-webkit-scrollbar-thumb,
  .tips-grid::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 4px;
  }

  .text-cards-scroll-mobile > *,
  .steps-grid > *,
  .tips-grid > * {
    flex: 0 0 84% !important;
    max-width: 84% !important;
    width: 84% !important;
    scroll-snap-align: start !important;
    margin-bottom: 0 !important;
  }

  /* Image + Content cards occupy full 100% width on small screen */
  .guide-card,
  .guide-card-item {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (min-width: 769px) {
  .mobile-scroll-hint {
    display: none !important;
  }
}

/* Fallback for Unbroken Images */
.img-fallback-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  text-align: center;
}

.img-fallback-placeholder svg {
  width: 36px;
  height: 36px;
  color: var(--teal);
}

.img-fallback-placeholder span {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}

/* Standard Guide Card */
.guide-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-border);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.guide-card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: clamp(1.2rem, 2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.card-meta-category {
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.card-title a {
  color: var(--navy);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--teal);
}

.card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
}

.card-link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--teal);
}

.card-link-more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.guide-card:hover .card-link-more svg {
  transform: translateX(4px);
}

/* Feature Card (Why Trust Us) */
.feature-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--teal-subtle);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Animated Counters Section
   -------------------------------------------------------------------------- */
.counters-section {
  background-color: var(--navy);
  color: #ffffff;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  text-align: center;
}

.counter-item {
  padding: 1rem;
}

.counter-value {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.5vw + 1rem, 3.2rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.counter-label {
  font-size: clamp(0.85rem, 0.4vw + 0.8rem, 1rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   10. Parallax Banner
   -------------------------------------------------------------------------- */
.parallax-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
  color: #ffffff;
  background-color: var(--navy-dark);
  margin: clamp(2rem, 4vw, 4rem) 0;
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  opacity: 0.38;
  z-index: 1;
  will-change: transform;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(6, 22, 42, 0.95) 0%, rgba(11, 37, 69, 0.75) 100%);
  z-index: 2;
}

.parallax-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
}

.parallax-content h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.parallax-content p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.8rem;
  font-size: 1.08rem;
}

/* --------------------------------------------------------------------------
   11. Steps / How We Help Section
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  counter-reset: step-counter;
}

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

/* --------------------------------------------------------------------------
   12. Filter & Sorting System (Rule: >2 items -> Responsive Dropdown)
   -------------------------------------------------------------------------- */
.filter-section-wrapper {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Normal Buttons (When <= 2 items) */
.filter-buttons-group {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.filter-tab-btn {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-tab-btn.active {
  background-color: var(--navy);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Dropdown Menu (When > 2 items) */
.filter-dropdown-container {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.filter-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
}

.filter-dropdown-trigger:hover,
.filter-dropdown-trigger[aria-expanded="true"] {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.filter-dropdown-trigger svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  transition: transform var(--transition);
}

.filter-dropdown-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  list-style: none;
  padding: 0.4rem;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}

.filter-dropdown-menu.show {
  display: block;
}

.filter-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.94rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.filter-dropdown-item:hover {
  background-color: var(--teal-subtle);
  color: var(--teal);
}

.filter-dropdown-item.active {
  background-color: var(--teal-subtle);
  color: var(--teal);
  font-weight: 700;
}

.filter-item-count {
  font-size: 0.8rem;
  color: var(--text-light);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   13. Comparison Tables (Responsive with Card Fallback)
   -------------------------------------------------------------------------- */
.comparison-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  min-width: 680px;
}

.comparison-table th,
.comparison-table td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background-color: var(--bg-soft);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background-color: rgba(245, 248, 251, 0.6);
}

.table-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.tip-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.tip-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--teal-subtle);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tip-badge-icon svg {
  width: 22px;
  height: 22px;
}

.tip-title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.tip-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   14. Contact Page & Form Styles
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(19, 168, 158, 0.15);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--error);
  background-color: #fef2f2;
}

.form-error-msg {
  display: none;
  font-size: 0.82rem;
  color: var(--error);
  margin-top: 0.35rem;
  font-weight: 500;
}

.form-error-msg.visible {
  display: block;
}

.form-success-banner {
  display: none;
  background-color: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.8rem;
  animation: heroFadeUp 0.4s ease forwards;
}

.form-success-banner.visible {
  display: block;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--teal-subtle);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.contact-info-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.accordion-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  background: transparent;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  min-height: 48px;
  transition: color var(--transition);
}

.accordion-header:hover {
  color: var(--teal);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--teal);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
  background-color: #ffffff;
}

.accordion-content {
  padding: 0 1.4rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   15. Scroll-Reveal & Parallax Animation Utilities
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Sticky CTA Cap (Home Page only) */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(11, 37, 69, 0.1);
  padding: 0.65rem 1rem;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  max-height: 68px; /* Capped under 15% viewport */
}

.mobile-sticky-cta-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.mobile-sticky-cta-btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   16. Universal Footer (Identical Across All 5 Pages)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--navy-dark);
  color: #ffffff;
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-link {
  color: #ffffff;
}

.footer-brand .brand-text {
  color: #ffffff;
}

.footer-brand-desc {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
  max-width: 440px;
  line-height: 1.6;
}

.footer-nav-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1.1rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--teal);
}

.footer-contact-item {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-disclaimer {
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

.footer-copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* --------------------------------------------------------------------------
   17. Responsive Enhancements & Media Queries
   -------------------------------------------------------------------------- */

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .hero-visual {
    display: block;
  }

  .slider-slide {
    grid-template-columns: 1.1fr 1fr;
  }

  .slide-image-col {
    height: 100%;
    min-height: 380px;
  }

  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .counters-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1.4fr 1fr;
  }

  .footer-top {
    grid-template-columns: 2fr 1fr 1.2fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Laptop & Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
  .hamburger-btn {
    display: none;
  }

  .desktop-nav {
    display: block;
  }

  .mobile-nav-drawer,
  .nav-backdrop {
    display: none !important;
  }

  .cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Desktop hides the mobile sticky bottom button */
  .mobile-sticky-cta {
    display: none !important;
  }

  /* On large screens, allow dropdown hover open */
  .filter-dropdown-container:hover .filter-dropdown-menu {
    display: block;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-bg-image {
    animation: none !important;
    transform: none !important;
  }

  .collage-card-floating {
    animation: none !important;
    transform: none !important;
  }

  .parallax-bg {
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
