/* ==========================================================================
   TRUSOF RO - Design System & Stylesheet
   Brand: Trusof ("Trust of India")
   Helpline: +91 92206 30966 | Merchant UPI: 9015558820@ptyes
   Theme: Default White / Pure Water Cyan & Sapphire Palette
   Mobile: Zero-Overflow Compact Responsive Architecture
   ========================================================================== */

/* Design Tokens - Default White Theme */
:root {
  --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  
  --color-primary: #0284c7; /* Water Sapphire Blue */
  --color-primary-dark: #0369a1;
  --color-primary-light: #e0f2fe;
  --color-cyan: #06b6d4;
  --color-cyan-light: #ecfeff;
  --color-teal: #0d9488;
  --color-green: #16a34a;
  --color-green-light: #dcfce7;
  --color-amber: #d97706;

  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #f0f9ff;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(2, 132, 199, 0.08);
  --shadow-lg: 0 10px 25px rgba(2, 132, 199, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --nav-height: 70px;
}

/* Dark Mode Theme Variables */
[data-theme="dark"],
body.dark-theme {
  --color-primary: #38bdf8;
  --color-primary-dark: #0284c7;
  --color-primary-light: rgba(56, 189, 248, 0.15);
  --color-cyan: #22d3ee;
  --color-cyan-light: rgba(34, 211, 238, 0.15);

  --bg-page: #060e1a;
  --bg-subtle: #0b1526;
  --bg-card: #112238;
  --bg-surface: #0e1e33;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #1e3a5f;
  --border-light: #162c47;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* Zero Horizontal Mobile Overflow Reset */
*, *::before, *::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.text-center { text-align: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* Top Urgency Ticker */
.top-ticker {
  background: linear-gradient(90deg, #0284c7, #06b6d4);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  text-align: center;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.top-ticker a {
  text-decoration: underline;
  color: #fff;
}

/* Site Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-name span {
  color: var(--color-primary);
}

.brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.home-btn-pill:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--border-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px;
}

/* Hero Section */
.hero-section {
  padding: 45px 0 35px;
  background: radial-gradient(circle at top right, #e0f2fe 0%, var(--bg-page) 70%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.hero-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--bg-surface);
}

/* Hero Quick Booking Card */
.quick-book-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.quick-book-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.quick-book-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

/* Trust Stats Strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-top: 30px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Multi-Brand Strip */
.brands-strip {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.brands-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.brands-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Section Shared */
.section {
  padding: 45px 0;
}

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

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 30px;
}

.section-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.4);
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.service-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.service-icon-wrap img {
  width: 28px;
  height: 28px;
}

.service-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.service-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.service-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

.service-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
}

.service-price span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* AMC Plans Pricing Grid */
.amc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.amc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.amc-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.amc-card:hover {
  transform: translateY(-4px);
}

.amc-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.amc-plan-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.amc-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.amc-price span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.amc-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.amc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}

.amc-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.amc-features li::before {
  content: '✓';
  color: var(--color-green);
  font-weight: bold;
}

/* Water Quality & TDS Tool */
.tds-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.tds-meter-bar {
  height: 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #22c55e 0%, #38bdf8 30%, #f59e0b 60%, #ef4444 100%);
  margin: 20px 0 10px;
  position: relative;
}

.tds-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-control:focus {
  border-color: var(--color-primary);
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

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

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

/* Milestone Progress Tracker */
.milestones-wrapper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 24px 0;
}

.milestones-wrapper::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--border-color);
  z-index: 1;
}

.milestone-step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 70px;
}

.milestone-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  margin: 0 auto 6px;
}

.milestone-step.active .milestone-circle {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
}

.milestone-step.completed .milestone-circle {
  border-color: var(--color-green);
  background: var(--color-green);
  color: #ffffff;
}

.milestone-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  background: #091322;
  color: #94a3b8;
  padding: 50px 0 24px;
  font-size: 13px;
  border-top: 1px solid #162c47;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 36px;
}

.footer-brand-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a:hover {
  color: #38bdf8;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #162c47;
  font-size: 12px;
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: none;
  animation: slideUp 0.25s ease;
}

.toast-msg.active {
  display: block;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
  }

  .amc-grid {
    grid-template-columns: 1fr;
  }

  .amc-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
