/* ==========================================================================
   SHANTI SOLAR & ELECTRICALS — PRODUCTION DESIGN SYSTEM (CSS3)
   100% Vanilla CSS, Zero Build-time Dependency, Fully Platform-Independent
   ========================================================================== */

:root {
  /* Font Families */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Dimensions & Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.625rem;
  --radius: 0.75rem;      /* 12px standard rounded */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.25rem;   /* 20px */
  --radius-full: 9999px;

  /* Color Tokens (OKLCH with sRGB Fallbacks) */
  --background: oklch(0.99 0.006 85);       /* #FDFBF7 Warm cream */
  --foreground: oklch(0.18 0.01 60);        /* #23211F Deep Charcoal */
  --card: #ffffff;
  --card-foreground: oklch(0.18 0.01 60);
  --popover: #ffffff;
  --popover-foreground: oklch(0.18 0.01 60);

  /* Solar Orange (Primary CTA & Brand Accent) */
  --primary: oklch(0.52 0.17 50);           /* #C2410C Solar Saffron/Orange */
  --primary-hover: oklch(0.48 0.18 48);
  --primary-foreground: oklch(0.99 0.01 85);/* White */
  --primary-light: oklch(0.96 0.03 55);

  /* Forest Green (Eco, Net Metering, Certifications) */
  --secondary: oklch(0.95 0.02 140);        /* #EEF5EE Forest green tint */
  --secondary-foreground: oklch(0.30 0.05 145); /* #1D4424 */
  --forest-green: oklch(0.45 0.13 145);     /* #166534 Vibrant Forest */

  /* Muted & Neutral Grays */
  --muted: oklch(0.96 0.01 80);             /* #F4F2EE */
  --muted-foreground: oklch(0.44 0.02 70);  /* #6B665F */

  /* Accents & Borders */
  --accent: oklch(0.92 0.03 145);           /* Sage green tint */
  --accent-foreground: oklch(0.28 0.06 145);
  --border: oklch(0.90 0.01 70);            /* #E5E2DC */
  --input: oklch(0.90 0.01 70);
  --ring: oklch(0.52 0.17 50);

  /* Social / Brand Colors */
  --whatsapp: #25D366;
  --whatsapp-hover: #20bd5a;
  --instagram: #E1306C;
  --gmail: #EA4335;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   CSS RESET & BASE DEFAULTS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

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

a:not([class*="text-"]) {
  color: inherit;
}

a {
  text-decoration: none;
}

button:not([class*="text-"]), input:not([class*="text-"]), select:not([class*="text-"]), textarea:not([class*="text-"]) {
  font: inherit;
  color: inherit;
  background: transparent;
}

button {
  cursor: pointer;
  border: none;
}

ul, ol {
  list-style: none;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--muted);
}
::-webkit-scrollbar-thumb {
  background: oklch(0.75 0.05 70);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --------------------------------------------------------------------------
   LAYOUT UTILITIES & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

.max-w-7xl { max-width: 80rem; }    /* 1280px */
.max-w-6xl { max-width: 72rem; }    /* 1152px */
.max-w-5xl { max-width: 64rem; }    /* 1024px */
.max-w-4xl { max-width: 56rem; }    /* 896px */
.max-w-3xl { max-width: 48rem; }    /* 768px */
.max-w-2xl { max-width: 42rem; }    /* 672px */
.max-w-xl  { max-width: 36rem; }

.section-py {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 640px) {
  .section-py { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY & BRAND GRADIENTS
   -------------------------------------------------------------------------- */
.text-gradient-solar {
  background: linear-gradient(135deg, oklch(0.68 0.17 55), oklch(0.45 0.13 145));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-gradient-forest {
  background: linear-gradient(135deg, oklch(0.45 0.13 145) 0%, oklch(0.60 0.13 145) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-solar {
  background: linear-gradient(135deg, oklch(0.52 0.17 50) 0%, oklch(0.78 0.15 50) 100%);
}

.bg-gradient-forest {
  background: linear-gradient(135deg, oklch(0.45 0.13 145) 0%, oklch(0.60 0.13 145) 100%);
}
.bg-radial-solar {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, oklch(0.78 0.15 50 / 0.15), transparent 70%);
}

.bg-grid-solar {
  background-image:
    linear-gradient(to right, oklch(0.68 0.17 55 / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.68 0.17 55 / 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 30s linear infinite;
}

.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.tracking-tight { letter-spacing: -0.025em; }

/* --------------------------------------------------------------------------
   BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.3);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(194, 65, 12, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
}
.btn-outline:hover {
  background-color: var(--muted);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}
.btn-secondary:hover {
  background-color: var(--accent);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-xl);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-1px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  line-height: 1;
}

.badge-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid rgba(22, 101, 52, 0.15);
}

.badge-primary {
  background-color: oklch(0.96 0.03 55);
  color: var(--primary);
  border: 1px solid rgba(194, 65, 12, 0.2);
}

/* --------------------------------------------------------------------------
   CARDS & SURFACES
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(194, 65, 12, 0.3);
}

/* --------------------------------------------------------------------------
   STICKY HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

#site-header.scrolled {
  background-color: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
@media (min-width: 1024px) {
  .nav-container { height: 5rem; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

/* Nav links styling is powered by Tailwind classes: relative px-3 py-1.5 text-sm font-medium rounded-md text-foreground/80 hover:text-foreground hover:bg-muted/40 */
.nav-link {
  display: block;
}

/* Mobile Navigation Sheet */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 22rem;
  background-color: var(--card);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-2xl);
  overflow-y: auto;
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.hero-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.floating-badge {
  animation: floatBadge 4s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   MARQUEE (CERTIFICATIONS & BRANDS)
   -------------------------------------------------------------------------- */
@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
  gap: 3rem;
}
.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-mask {
  position: relative;
  overflow: hidden;
}
.marquee-mask::before, .marquee-mask::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4rem;
  z-index: 2;
  pointer-events: none;
}
.marquee-mask::before {
  left: 0;
  background: linear-gradient(to right, var(--background), transparent);
}
.marquee-mask::after {
  right: 0;
  background: linear-gradient(to left, var(--background), transparent);
}

/* --------------------------------------------------------------------------
   SERVICES GRID
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .service-card-media img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   SOLAR CALCULATOR COMPONENT
   -------------------------------------------------------------------------- */
.calc-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .calc-container { grid-template-columns: 1.15fr 0.85fr; }
}

.calc-tabs {
  display: flex;
  background-color: var(--muted);
  border-radius: var(--radius-lg);
  padding: 0.35rem;
  gap: 0.25rem;
}
.calc-tab-btn {
  flex: 1;
  padding: 0.625rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.2s ease;
  color: var(--muted-foreground);
}
.calc-tab-btn.active {
  background-color: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--muted);
  outline: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  font-size: 0.9375rem;
  outline: none;
}
.calc-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}

.calc-metric-pill {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
}

/* --------------------------------------------------------------------------
   PRICING MATRIX
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--card);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover {
  border-color: rgba(194, 65, 12, 0.3);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--foreground);
}

.faq-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  shrink: 0;
  color: var(--muted-foreground);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-content {
  display: none;
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}
.faq-item.open .faq-content {
  display: block;
}

/* --------------------------------------------------------------------------
   FORMS & INPUTS
   -------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.125rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}

/* --------------------------------------------------------------------------
   CHATBOT WIDGET (SUNNY)
   -------------------------------------------------------------------------- */
#chat-launcher {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 45;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.52 0.17 50) 0%, oklch(0.78 0.15 50) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#chat-launcher:hover {
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   PREMIUM CHATBOT STYLES
   -------------------------------------------------------------------------- */
#chat-launcher {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  z-index: 50;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, oklch(0.48 0.16 150) 0%, oklch(0.42 0.15 155) 50%, oklch(0.68 0.17 50) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -6px rgba(16, 185, 129, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
@media (min-width: 1024px) {
  #chat-launcher {
    bottom: 2rem;
    right: 2rem;
  }
}
#chat-launcher:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 18px 36px -6px rgba(16, 185, 129, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.chat-launcher-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: floatTooltip 3s ease-in-out infinite;
}
.chat-launcher-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 1.25rem;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.92) transparent transparent transparent;
}
@keyframes floatTooltip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

#chat-drawer {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: calc(100vw - 2rem);
  max-width: 25.5rem;
  height: min(38rem, calc(100dvh - 2rem));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
  z-index: 60;
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 640px) {
  #chat-drawer {
    bottom: 2rem;
    right: 2rem;
    height: min(38rem, calc(100vh - 4rem));
  }
}
#chat-drawer.open {
  display: flex !important;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chat-header-premium {
  padding: 0.85rem 1.1rem;
  background: linear-gradient(135deg, oklch(0.38 0.14 150) 0%, oklch(0.48 0.16 155) 60%, oklch(0.55 0.16 160) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.chat-header-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background-color: var(--muted);
  opacity: 1;
  scroll-behavior: smooth;
}
#chat-messages::-webkit-scrollbar {
  width: 4px;
}
#chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
#chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 9999px;
}

.chat-msg-row {
  display: flex;
  gap: 0.55rem;
  max-width: 90%;
  animation: fadeInMsg 0.22s ease-out;
}
@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg-bot {
  align-self: flex-start;
}
.chat-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble-card {
  padding: 0.75rem 0.95rem;
  border-radius: 1.15rem;
  font-size: 0.84rem;
  line-height: 1.5;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
  word-break: break-word;
}
.chat-msg-bot .chat-bubble-card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-bottom-left-radius: 0.35rem;
}
.chat-msg-user .chat-bubble-card {
  background: linear-gradient(135deg, oklch(0.48 0.16 150) 0%, oklch(0.42 0.15 155) 100%);
  color: #ffffff;
  border-bottom-right-radius: 0.35rem;
}

.chat-bot-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, oklch(0.72 0.17 50) 0%, oklch(0.55 0.16 155) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.chat-msg-time {
  font-size: 0.65rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
  padding: 0 0.25rem;
}
.chat-msg-user .chat-msg-time {
  text-align: right;
}

.chat-typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.65rem 0.95rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  border-bottom-left-radius: 0.35rem;
  width: fit-content;
}
.chat-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(0.55 0.16 155);
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.chat-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-dot:nth-child(2) { animation-delay: -0.16s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.15); opacity: 1; }
}

#chat-quick-replies {
  display: flex;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--card);
  border-top: 1px solid var(--border);
  scrollbar-width: none;
  flex-shrink: 0;
}
#chat-quick-replies::-webkit-scrollbar {
  display: none;
}
.chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: oklch(0.55 0.16 155 / 0.08);
  border: 1px solid oklch(0.55 0.16 155 / 0.25);
  color: oklch(0.38 0.14 150);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.chat-chip:hover {
  background: oklch(0.55 0.16 155 / 0.18);
  border-color: oklch(0.55 0.16 155 / 0.5);
  transform: translateY(-1px);
}
.chat-chip:active {
  transform: scale(0.96);
}

.chat-input-bar {
  padding: 0.65rem 0.85rem 0.75rem;
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.chat-input-container {
  display: flex;
  align-items: center;
  flex: 1;
  background: var(--background);
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  padding: 0.35rem 0.65rem 0.35rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-input-container:focus-within {
  border-color: oklch(0.55 0.16 155);
  box-shadow: 0 0 0 3px oklch(0.55 0.16 155 / 0.15);
}
.chat-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.85rem;
  color: var(--foreground);
}
.chat-send-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, oklch(0.48 0.16 150) 0%, oklch(0.42 0.15 155) 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
}
.chat-send-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.06);
}
.chat-send-btn:active {
  transform: scale(0.95);
}

.chat-action-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.chat-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}
.chat-action-call {
  background: oklch(0.48 0.16 150);
  color: #ffffff !important;
}
.chat-action-call:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.chat-action-wa {
  background: #25d366;
  color: #ffffff !important;
}
.chat-action-wa:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.chat-action-quote {
  background: oklch(0.68 0.17 50);
  color: #ffffff !important;
}
.chat-action-quote:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Chatbot Premium Home View */
.chat-home-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem 0.15rem;
  animation: fadeInMsg 0.25s ease-out;
}
.chat-home-hero {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem 0.25rem;
}
.chat-home-avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, oklch(0.68 0.18 50) 0%, oklch(0.48 0.16 150) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}
.chat-home-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.25;
}
.chat-home-sub {
  font-size: 0.72rem;
  color: var(--muted-foreground);
  margin-top: 2px;
}
.chat-home-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.8rem 0.95rem;
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--card-foreground);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.chat-home-topics-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.2rem;
}
.chat-topic-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.chat-topic-card:hover {
  border-color: oklch(0.55 0.16 155);
  background: oklch(0.55 0.16 155 / 0.06);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.chat-topic-card:active {
  transform: scale(0.98);
}
.chat-topic-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}
.chat-topic-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.chat-topic-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.25;
}
.chat-topic-desc {
  font-size: 0.68rem;
  color: var(--muted-foreground);
  line-height: 1.2;
  margin-top: 1px;
}
.chat-topic-arrow {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}
.chat-topic-card:hover .chat-topic-arrow {
  transform: translateX(3px);
  color: oklch(0.55 0.16 155);
}

/* --------------------------------------------------------------------------
   COOKIE CONSENT DOCK
   -------------------------------------------------------------------------- */
#cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 70;
  max-width: 24rem;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  padding: 1.25rem;
  display: none;
}
@media (max-width: 639px) {
  #cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    padding: 1rem;
  }
}
#cookie-banner.show {
  display: block;
}

/* --------------------------------------------------------------------------
   FLOATING MOBILE CTA & BACK TO TOP
   -------------------------------------------------------------------------- */
#floating-cta {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: none;
}
@media (max-width: 1023px) {
  #floating-cta.show {
    display: flex;
  }
}

#back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--primary);
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
#back-to-top:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}
#back-to-top.show {
  display: flex;
}

/* Scroll progress bar - hidden to match Next.js */
#scroll-progress {
  display: none !important;
}

/* Range Sliders — brand primary color styling matching Radix UI */
input[type="range"] {
  accent-color: var(--primary);
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: var(--muted);
  border-radius: 9999px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease;
}
input[type="range"]::-moz-range-track {
  height: 8px;
  background: var(--muted);
  border-radius: 9999px;
}


/* --------------------------------------------------------------------------
   RESPONSIVE GOOGLE MAP
   -------------------------------------------------------------------------- */
.map-responsive-wrapper {
  position: relative;
  width: 100%;
  height: 340px;
}
@media (min-width: 640px) {
  .map-responsive-wrapper {
    height: 400px;
  }
}
@media (min-width: 768px) {
  .map-responsive-wrapper {
    height: 450px;
  }
}
.map-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   TESTIMONIALS EQUAL HEIGHT CARDS
   -------------------------------------------------------------------------- */
#testimonials-track {
  align-items: stretch;
}
.testimonial-slide {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}
.testimonial-slide > div {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 19.5rem;
}
.testimonial-slide > div > div {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex: 1 1 auto !important;
  height: 100% !important;
}
.testimonial-slide p.text-sm {
  min-height: 7.25rem;
}

/* --------------------------------------------------------------------------
   PRINT STYLESHEET
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  #site-header, #chat-launcher, #chat-drawer, #cookie-banner, #floating-cta, #back-to-top, #scroll-progress, .btn {
    display: none !important;
  }
  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
}
