/* FixKerala — Custom Styles */

:root {
  --primary:       #1B4332;
  --primary-mid:   #2D6A4F;
  --primary-light: #52796F;
  --accent:        #D4A373;
  --accent-dark:   #B5835A;
  --bg-light:      #F8FAF8;
  --bg-section:    #EEF4F0;
  --white:         #FFFFFF;
  --dark:          #1A1A1A;
  --mid:           #444444;
  --muted:         #666666;
  --border:        #E0E8E4;
  --success:       #27AE60;
  --whatsapp:      #25D366;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* Malayalam text */
.ml-text {
  font-family: 'Noto Sans Malayalam', sans-serif;
  font-size: 0.95rem;
}

/* Section spacing */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
}

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

/* Alternating backgrounds */
.bg-white { background: var(--white); }
.bg-light { background: var(--bg-light); }
.bg-section { background: var(--bg-section); }
.bg-primary { background: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-green {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-green:hover {
  background: var(--primary-mid);
  border-color: var(--primary-mid);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-pill { border-radius: 50px; }

/* Cards */
.card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}
.badge-gold { background: var(--accent); color: var(--white); }
.badge-green { background: var(--primary); color: var(--white); }
.badge-light { background: var(--bg-section); color: var(--primary); }

/* Section heading */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 12px;
  color: var(--dark);
}
.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.3s ease;
  padding: 16px 0;
}

#navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}
.logo-text .fix { color: var(--white); }
.logo-text .kerala { color: var(--accent); }
#navbar.scrolled .logo-text .fix { color: var(--primary); }

.logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: all 0.2s ease;
  position: relative;
}

#navbar.scrolled .nav-links a { color: var(--mid); }

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-links .partner-link a {
  color: var(--accent) !important;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-call-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.2s ease;
  text-decoration: none;
}
#navbar.scrolled .nav-call-btn {
  color: var(--primary);
  border-color: var(--primary);
}
.nav-call-btn:hover { background: rgba(255,255,255,0.15); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
#navbar.scrolled .hamburger span { background: var(--dark); }

/* Mobile drawer */
#mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: var(--white);
  z-index: 1100;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
#mobile-drawer.open { right: 0; }

#drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1090;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--primary);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.drawer-nav {
  padding: 16px 0;
  flex: 1;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  color: var(--dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}
.drawer-nav a:hover, .drawer-nav a.active {
  background: var(--bg-section);
  color: var(--primary);
}
.drawer-nav a.partner-link {
  color: var(--accent-dark);
  font-weight: 600;
}

.drawer-ctas {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 20px
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  margin: 16px 0 20px;
  line-height: 1.15;
}

.hero-sub {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.hero .ml-text {
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  font-size: 1rem;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  border-left-color: var(--primary-mid);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-section);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.service-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.service-card .btn { font-size: 0.82rem; padding: 7px 14px; }

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-item {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.step-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps-grid::before { display: none; }
  .step-item { display: flex; gap: 16px; text-align: left; padding: 0; align-items: flex-start; }
  .step-num { flex-shrink: 0; width: 48px; height: 48px; font-size: 1rem; margin: 0; }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--primary);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item .stat-num { font-size: 2rem; }
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .testimonials-grid::-webkit-scrollbar { height: 4px; }
  .testimonials-grid::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
  .testimonials-grid::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 2px; }
}

.testimonial-card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  scroll-snap-align: start;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .testimonial-card { width: 85vw; max-width: 320px; }
}

.stars { color: #F59E0B; margin-bottom: 14px; font-size: 1rem; }

.testimonial-text {
  color: var(--mid);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== FORM ===== */
.form-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

@media (max-width: 640px) {
  .form-card { padding: 24px; }
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
}

.form-group .required-star { color: #E53E3E; margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s ease;
  outline: none;
  appearance: auto;
}

.form-control:focus { border-color: var(--primary-mid); }
.form-control.error { border-color: #E53E3E; }

.field-error {
  display: none;
  font-size: 0.78rem;
  color: #E53E3E;
  margin-top: 4px;
}
.field-error.show { display: block; }

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

.same-phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
}

.form-success {
  display: none;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.9rem;
  margin-top: 12px;
}
.form-success.show { display: block; }

/* ===== PARTNER BANNER ===== */
.partner-banner {
  background: var(--primary);
  padding: 64px 0;
  text-align: center;
}
.partner-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.partner-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-logo .logo-text .fix { color: var(--primary); }
.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col ul a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul a:hover { color: var(--accent); }

.footer-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin: 10px 0 6px;
}

.footer-ml {
  font-family: 'Noto Sans Malayalam', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s ease;
  font-size: 0.9rem;
}
.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}
.footer-contact-item i {
  color: var(--accent);
  margin-top: 3px;
  width: 14px;
  flex-shrink: 0;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== FLOATING WHATSAPP ===== */
#floating-wa {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 900;
  display: none;
}

@media (min-width: 1024px) {
  #floating-wa { display: block; }
}

.wa-circle {
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  position: relative;
  transition: transform 0.2s ease;
}
.wa-circle:hover { transform: scale(1.1); }

.wa-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.wa-tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark);
  color: var(--white);
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--dark);
}
#floating-wa:hover .wa-tooltip { opacity: 1; }

/* ===== MOBILE STICKY BOTTOM BAR ===== */
#mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
}

@media (min-width: 1024px) {
  #mobile-cta-bar { display: none; }
}

.mcta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white);
  border: none;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.mcta-btn:hover { opacity: 0.9; }
.mcta-btn i { font-size: 1.1rem; }
.mcta-btn.call { background: var(--primary); }
.mcta-btn.whatsapp { background: var(--whatsapp); }
.mcta-btn.request { background: var(--accent); }

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 800;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#back-to-top.show { display: flex; }
#back-to-top:hover { background: var(--primary-mid); transform: translateY(-2px); }

@media (min-width: 1024px) {
  #back-to-top { bottom: 100px; right: 24px; }
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--primary);
  padding: 120px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 20px
  );
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 600px;
}

/* ===== SERVICES PAGE ===== */
.services-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 1024px) {
  .services-layout { grid-template-columns: 1fr; }
}

.services-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-nav {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: var(--bg-section);
  color: var(--primary);
}

.service-tabs-mobile {
  display: none;
  overflow-x: auto;
  gap: 8px;
  padding: 16px 0;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.service-tabs-mobile::-webkit-scrollbar { display: none; }

@media (max-width: 1024px) {
  .service-tabs-mobile { display: flex; }
  .services-sidebar { display: none; }
}

.tab-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--mid);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.tab-pill:hover, .tab-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.service-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.service-section:last-child { border-bottom: none; }

.service-section h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
}

.service-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .service-bullets { grid-template-columns: 1fr; }
}

.service-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--mid);
}
.service-bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-mid);
  flex-shrink: 0;
  margin-top: 7px;
}

.callout-amber {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-left: 4px solid #F59E0B;
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #78350F;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* ===== HOW IT WORKS PAGE ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

@media (max-width: 768px) {
  .timeline::before { left: 28px; }
}

.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-left: 64px;
  }
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .timeline-dot {
    left: 0;
    transform: none;
    width: 40px;
    height: 40px;
    position: absolute;
  }
}

.timeline-content {
  width: calc(50% - 44px);
  background: var(--white);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

@media (max-width: 768px) {
  .timeline-content {
    width: 100%;
  }
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
  }
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--primary);
}
.timeline-content p { font-size: 0.875rem; color: var(--muted); }

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.compare-table th {
  background: var(--primary);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}
.compare-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--mid);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--bg-light); }

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  text-align: left;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  transition: background 0.2s ease;
}
.faq-question:hover { background: var(--bg-section); }
.faq-question i {
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  background: var(--white);
}
.faq-item.open .faq-answer { display: block; }

/* ===== ABOUT PAGE ===== */
.comparison-table-3col {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  font-size: 0.875rem;
}
.comparison-table-3col th {
  padding: 14px 16px;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}
.comparison-table-3col th:first-child { background: #FEE2E2; color: #991B1B; }
.comparison-table-3col th:nth-child(2) { background: #FEF3C7; color: #92400E; }
.comparison-table-3col th:nth-child(3) { background: var(--primary); color: var(--white); }
.comparison-table-3col td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--mid);
  vertical-align: top;
}
.comparison-table-3col tr:last-child td { border-bottom: none; }
.comparison-table-3col tr:nth-child(even) td { background: var(--bg-light); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.team-avatar {
  width: 72px;
  height: 72px;
  background: var(--bg-section);
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-light);
}
.team-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.team-card p { font-size: 0.8rem; color: var(--muted); }

.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.district-chip {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--primary);
  text-align: center;
}

/* ===== TESTIMONIALS PAGE ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.testimonials-masonry {
  columns: 3;
  column-gap: 20px;
}
@media (max-width: 1024px) {
  .testimonials-masonry { columns: 2; }
}
@media (max-width: 640px) {
  .testimonials-masonry { columns: 1; }
}

.testimonials-masonry .testimonial-card {
  break-inside: avoid;
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
}

.testimonial-card.hidden { display: none; }

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 8px;
}

/* ===== PARTNER PAGE ===== */
.zero-risk-strip {
  background: var(--primary-mid);
  padding: 32px 0;
}
.zero-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 640px) {
  .zero-risk-grid { grid-template-columns: 1fr; gap: 16px; }
}
.zero-risk-item .amount {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.zero-risk-item .label {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
}

/* Earnings calculator */
.calculator-card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .calculator-card { padding: 24px; }
}

.calc-slider-group {
  margin-bottom: 28px;
}
.calc-slider-group label {
  display: flex;
  justify-content: space-between;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--dark);
}
.calc-slider-group label span {
  color: var(--primary);
  background: var(--bg-section);
  padding: 2px 10px;
  border-radius: 20px;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  appearance: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.calc-results {
  background: var(--bg-section);
  border-radius: 8px;
  padding: 24px;
  margin-top: 24px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--mid);
}
.calc-row:last-child { border-bottom: none; }
.calc-row.total {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  border-top: 2px solid var(--primary);
  border-bottom: none;
  margin-top: 4px;
  padding-top: 12px;
}
.calc-row .val { font-weight: 600; color: var(--dark); }
.calc-row.total .val { color: var(--primary); font-size: 1.3rem; }

/* Partner districts checkboxes */
.districts-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}
@media (max-width: 480px) {
  .districts-check-grid { grid-template-columns: 1fr; }
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--mid);
}
.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ===== BLOG PAGE ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}
.blog-card-img {
  height: 180px;
  background: var(--bg-section);
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.03); }
.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.blog-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--dark);
}
.blog-card-body p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
  flex: 1;
}
.blog-card-body .read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-mid);
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 4px;
}
.blog-card-body .read-more:hover { color: var(--accent); }

/* Blog post */
.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1024px) {
  .blog-post-layout { grid-template-columns: 1fr; }
}

.blog-post-content {
  max-width: 100%;
}
.blog-post-content h2 {
  font-size: 1.4rem;
  margin: 28px 0 12px;
  color: var(--primary);
}
.blog-post-content p {
  margin-bottom: 16px;
  color: var(--mid);
  font-size: 0.95rem;
}
.blog-post-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.blog-post-content li {
  color: var(--mid);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.blog-post-content .cta-box {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 24px;
  margin-top: 32px;
}
.blog-post-content .cta-box h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.blog-post-content .cta-box p { font-size: 0.9rem; margin-bottom: 14px; }

.blog-sidebar {
  position: sticky;
  top: 90px;
}
.sidebar-card {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
.sidebar-card h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--primary);
}

/* ===== CONTACT PAGE ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-info h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.contact-info > p {
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-section);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}
.contact-item-text span {
  font-size: 0.88rem;
  color: var(--muted);
}

.maps-container {
  border-radius: 8px;
  overflow: hidden;
  margin-top: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ===== PROMISE SECTION ===== */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .promise-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .promise-grid { grid-template-columns: 1fr 1fr; } }

.promise-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.promise-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.promise-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}
