/* ==========================================================================
   Eco Dhara - Modern Sustainable Products Web Application
   Design System & Styling Rules
   ========================================================================== */

:root {
  /* Primary Palette */
  --primary-dark: #064e3b;
  --primary-main: #0f5132;
  --primary-light: #15803d;
  --accent-emerald: #10b981;
  --accent-lime: #84cc16;
  --accent-gold: #d97706;

  /* Neutral Palette */
  --bg-page: #f8fafc;
  --bg-sage: #f0fdf4;
  --bg-cream: #fefcf6;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --border-accent: #bbf7d0;

  /* Glassmorphism & Shadow Effects */
  --shadow-sm: 0 2px 4px rgba(15, 81, 50, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 81, 50, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 35px -10px rgba(6, 78, 59, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-backdrop: blur(12px);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Transitions & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.heading-serif {
  font-family: var(--font-heading);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Notification / Quick Contact Bar */
.top-bar {
  background: var(--primary-dark);
  color: #ecfdf5;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-badges {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.badge-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(110, 231, 183, 0.3);
}

/* Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Brand Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-main), var(--accent-emerald));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.logo-text span {
  color: var(--accent-emerald);
}

.logo-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  display: block;
}

/* Nav Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-body);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-main), var(--accent-emerald));
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-main);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-main), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(15, 81, 50, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 81, 50, 0.35);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-main));
}

.btn-emerald {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-main);
  color: var(--primary-main);
}

.btn-outline:hover {
  background: var(--primary-main);
  color: white;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  background: radial-gradient(circle at 80% 20%, #dcfce7 0%, var(--bg-page) 60%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: #dcfce7;
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-accent);
}

.hero-title {
  font-size: 3.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--primary-dark);
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-main), var(--accent-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 90%;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.stat-item h4 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-main);
  margin-bottom: 0.2rem;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-card-wrapper {
  position: relative;
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-main-card:hover .hero-img {
  transform: scale(1.03);
}

.floating-badge {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid white;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: float 4s ease-in-out infinite;
}

.floating-badge-1 {
  bottom: 20px;
  left: -20px;
}

.floating-badge-2 {
  top: 30px;
  right: -20px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--primary-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* 4 Pillars Section */
.pillars-section {
  padding: 4rem 0;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-emerald);
  transition: var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pillar-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

.pillar-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-sage);
  color: var(--primary-main);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pillar-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section Header styling */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  color: var(--primary-main);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

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

/* Feature Banners & Highlights */
.highlights-section {
  padding: 5rem 0;
  background: white;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.highlight-banner {
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  box-shadow: var(--shadow-md);
}

.banner-compost {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.92), rgba(15, 81, 50, 0.85)), url('https://images.unsplash.com/photo-1585320806297-9794b3e4eeae?auto=format&fit=crop&w=800&q=80') center/cover;
}

.banner-plastic {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.88)), url('https://images.unsplash.com/photo-1532996122724-e3c354a0b15b?auto=format&fit=crop&w=800&q=80') center/cover;
}

.banner-content h3 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.banner-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Products Section & Filters */
.products-section {
  padding: 5rem 0;
  background: var(--bg-sage);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.65rem 1.25rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-main);
  color: white;
  border-color: var(--primary-main);
  box-shadow: 0 4px 12px rgba(15, 81, 50, 0.2);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Flip Card Component */
.product-card {
  perspective: 1000px;
  height: 420px;
}

.product-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.product-card:hover .product-card-inner {
  transform: rotateY(180deg);
}

.product-card-front, .product-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
  border: 1px solid var(--border-light);
}

.product-card-front {
  display: flex;
  flex-direction: column;
}

.product-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

.product-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-emerald);
  color: white;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.product-flip-hint {
  font-size: 0.75rem;
  color: var(--primary-main);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
}

.product-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-main));
  color: white;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.product-card-back h4 {
  color: white;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.product-specs {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.product-specs li {
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
}

.product-specs li span {
  color: #a7f3d0;
}

/* Life Cycle Section */
.lifecycle-section {
  padding: 6rem 0;
  background: white;
}

.lifecycle-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
  margin-top: 3rem;
}

.flow-step {
  background: var(--bg-sage);
  padding: 1.75rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-accent);
  position: relative;
  transition: var(--transition-fast);
}

.flow-step:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: var(--shadow-md);
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--primary-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 1rem;
}

.step-icon {
  font-size: 2rem;
  color: var(--accent-emerald);
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

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

/* Timeline Comparison */
.comparison-wrapper {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.comp-box {
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.comp-eco {
  background: #ecfdf5;
  border: 2px solid var(--accent-emerald);
}

.comp-plastic {
  background: #fef2f2;
  border: 2px solid #ef4444;
}

.comp-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Eco Calculator Section */
.calculator-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #064e3b, #0f5132);
  color: white;
}

.calculator-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.calc-input-group {
  margin-bottom: 2rem;
}

.calc-label {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.calc-slider {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  outline: none;
  accent-color: var(--accent-emerald);
}

.calc-results {
  background: var(--bg-sage);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px dashed var(--accent-emerald);
}

.result-metric {
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.result-metric:last-child {
  border-bottom: none;
}

.result-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-main);
}

.result-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* News / Blog Section */
.news-section {
  padding: 5rem 0;
  background: var(--bg-page);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.article-body {
  padding: 1.5rem;
}

.article-date {
  font-size: 0.8rem;
  color: var(--accent-emerald);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.article-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

/* Contact / Reach Us Section */
.contact-section {
  padding: 6rem 0;
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

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

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-sage);
  color: var(--primary-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-form-box {
  background: var(--bg-sage);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
}

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: white;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   Inquiry Modal — Mobile-First
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  z-index: 2000;
  display: flex;
  align-items: flex-end;        /* bottom-sheet by default */
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: white;
  width: 100%;
  max-width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px 20px 0 0;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

/* Drag handle indicator */
.modal-card::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin: 12px auto 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  color: var(--text-dark);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
  line-height: 1;
}

.modal-close:hover {
  background: #e2e8f0;
  transform: rotate(90deg);
}

.modal-header-banner {
  background: linear-gradient(135deg, #064e3b, #0f5132, #15803d);
  color: white;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 20px 20px 0 0;
}

.modal-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(110, 231, 183, 0.4);
  margin-bottom: 0.6rem;
}

.modal-title {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.modal-subtitle {
  color: #d1fae5;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Quote Form — single column, full width */
.quote-form {
  padding: 1.25rem 1.25rem 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

.form-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px dashed #dcfce7;
}

/* All form inputs full width, no grid */
.quote-form .form-group {
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.quote-form .form-input,
.quote-form .form-select,
.quote-form select.form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  font-size: 16px;   /* prevents iOS zoom */
  font-family: inherit;
  color: var(--text-dark);
  transition: var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.quote-form .form-input:focus,
.quote-form select.form-input:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  background: white;
}

/* Pill radio — 4 across on wide, 2 across on mobile */
.pill-radio-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pill-radio {
  cursor: pointer;
  flex: 1 1 calc(25% - 0.4rem);
  min-width: 0;
}

.pill-radio input {
  display: none;
}

.pill-radio span {
  display: block;
  text-align: center;
  padding: 0.5rem 0.25rem;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
  transition: var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-radio input:checked + span {
  background: #ecfdf5;
  border-color: var(--accent-emerald);
  color: var(--primary-dark);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

/* Live Estimate */
.live-estimate-box {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1.5px dashed var(--accent-emerald);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 0.5rem 0 1rem;
}

.estimate-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.estimate-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.estimate-price .unit-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.estimate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
}

/* Submit button */
.btn-quote-submit {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-emerald), var(--primary-main));
  color: white;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-sizing: border-box;
}

.btn-quote-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.45);
}

/* Desktop: centre the modal card, cap width */
@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 1.5rem;
  }

  .modal-card {
    max-width: 620px;
    border-radius: var(--radius-lg);
    transform: scale(0.93) translateY(20px);
    max-height: 90vh;
  }

  .modal-card::before {
    display: none;
  }

  .modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
  }

  .modal-header-banner {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 2rem 2rem 1.5rem;
  }

  .modal-title {
    font-size: 1.6rem;
  }

  .modal-subtitle {
    font-size: 0.9rem;
  }

  .quote-form {
    padding: 1.75rem 2rem 2.5rem;
  }

  /* 2-column layout on desktop for pill radios */
  .pill-radio {
    flex: 1 1 calc(25% - 0.4rem);
  }
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-dark);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: #94a3b8;
  padding: 5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a:hover {
  color: var(--accent-emerald);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Mobile & Responsive Design System Overhaul
   ========================================================================== */

/* Tablet & Smaller Screens (Max 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-card-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }

  .calculator-card {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  /* Life cycle: 3 columns on tablet */
  .lifecycle-flow {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile Screens (Max 768px) */
@media (max-width: 768px) {
  /* Top Bar Mobile — hide location, shrink */
  .top-bar {
    font-size: 0.8rem;
    padding: 0.4rem 0;
  }

  .top-bar-content {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .top-bar-info {
    font-size: 0.78rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
  }

  /* Hide location on small screens to avoid clutter */
  .top-bar-info span:last-child {
    display: none;
  }

  .top-bar-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .badge-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
  }

  /* Header & Mobile Drawer */
  .header-inner {
    height: 64px;
  }

  .logo {
    font-size: 1.2rem;
    gap: 0.5rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .logo-tagline {
    font-size: 0.6rem;
  }

  /* Mobile nav drawer from right */
  .nav-menu {
    position: fixed;
    top: 64px;
    right: -100%;
    left: auto;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 64px);
    background: white;
    border-left: 1px solid var(--border-light);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    padding: 2rem 1.5rem;
    align-items: flex-start;
    gap: 0.25rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    font-size: 1.05rem;
    display: block;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-sage);
    color: var(--primary-main);
    border: 1px solid var(--border-accent);
  }

  /* Hide "Get Quote" text on very small, keep icon */
  .nav-actions .btn-primary span {
    display: none;
  }

  /* Hero Section Mobile */
  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 0.95rem;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding-top: 1.25rem;
    text-align: center;
  }

  .stat-item h4 {
    font-size: 1.3rem;
  }

  .stat-item p {
    font-size: 0.7rem;
  }

  .hero-img {
    height: 260px;
  }

  /* Floating Badges: keep them but smaller & repositioned */
  .floating-badge {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .floating-badge-1 {
    bottom: 8px;
    left: 8px;
  }

  .floating-badge-2 {
    top: 8px;
    right: 8px;
    animation-delay: 2s;
  }

  .badge-icon {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .floating-badge strong {
    font-size: 0.75rem;
  }

  /* Section Titles Mobile */
  .section-title {
    font-size: 1.65rem;
  }

  .section-desc {
    font-size: 0.9rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Pillars — 2 columns on mobile */
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .pillar-card {
    padding: 1.25rem 1rem;
  }

  .pillar-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
  }

  .pillar-title {
    font-size: 1rem;
  }

  .pillar-text {
    font-size: 0.82rem;
  }

  /* Highlights & Feature Banners */
  .highlight-grid,
  .comparison-wrapper {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .highlight-banner {
    padding: 1.75rem 1.25rem;
    min-height: auto;
  }

  .banner-content h3 {
    font-size: 1.35rem;
  }

  /* Product Catalog Filter — horizontal scroll */
  .filter-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin-bottom: 2rem;
    gap: 0.5rem;
  }

  .filter-btn {
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* Products grid: single column, fixed-height flip cards */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* On mobile, disable CSS :hover flip — JS handles it via .flipped class */
  .product-card {
    height: 420px;
  }

  .product-card:hover .product-card-inner {
    transform: none;
  }

  .product-card.flipped .product-card-inner {
    transform: rotateY(180deg);
  }

  /* Life Cycle: single column stacked on mobile */
  .lifecycle-flow {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 2rem;
  }

  .flow-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1rem 1.25rem;
  }

  .step-num {
    margin: 0;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .step-icon {
    margin-bottom: 0;
    font-size: 1.4rem;
    flex-shrink: 0;
  }

  .step-title {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }

  .step-desc {
    font-size: 0.78rem;
  }

  /* Eco Calculator Mobile */
  .calculator-section {
    padding: 4rem 0;
  }

  .calculator-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    gap: 1.5rem;
  }

  .calc-results {
    padding: 1.25rem;
  }

  .result-number {
    font-size: 1.85rem;
  }

  /* Contact Section */
  .contact-section {
    padding: 4rem 0;
  }

  .contact-form-box {
    padding: 1.5rem;
  }

  /* Prevent iOS auto-zoom on input focus */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
  }

  /* News grid: 1 column */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Modal handled by mobile-first base styles above */
}

/* Extra Small Phones (Max 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  /* Stats: 3 equal columns still fine at 480, but allow wrap */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Pillars: single column on very small phones */
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  /* Comparison boxes stack cleanly */
  .comp-box {
    padding: 1.25rem;
  }
}
