/* ===== Variables ===== */
:root {
  --primary: #1a6b3c;
  --primary-dark: #145230;
  --primary-light: #e8f5ee;
  --accent: #e8a838;
  --accent-dark: #c48a1f;
  --text: #1a1a2e;
  --text-muted: #5a5a72;
  --bg: #fafaf8;
  --white: #ffffff;
  --border: #e5e5e0;
  --shadow: 0 4px 24px rgba(26, 107, 60, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 107, 60, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --font-ml: 'Noto Sans Malayalam', sans-serif;
  --font-en: 'Inter', sans-serif;
  --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ml);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body[data-lang="en"] {
  font-family: var(--font-en);
}

body[data-lang="en"] .btn,
body[data-lang="en"] .form-group input,
body[data-lang="en"] .form-group select,
body[data-lang="en"] .form-group textarea {
  font-family: var(--font-en);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-ml);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

.btn-full {
  width: 100%;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  color: var(--white);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
}

.logo-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-nav {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 50px;
}

.btn-nav:hover {
  background: var(--primary-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2d8a52 100%);
  z-index: -2;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(232, 168, 56, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-content {
  color: var(--white);
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-en);
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* ===== Section Common ===== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== Services ===== */
.services {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Areas ===== */
.areas {
  padding: 5rem 0;
  background: var(--white);
}

.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.area-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(26, 107, 60, 0.15);
  transition: var(--transition);
}

.area-tag:hover {
  background: var(--primary);
  color: var(--white);
}

.areas-map {
  display: flex;
  justify-content: center;
}

.map-placeholder {
  background: linear-gradient(135deg, var(--primary-light), #d4edda);
  border-radius: var(--radius-lg);
  padding: 3rem 4rem;
  text-align: center;
  border: 2px dashed rgba(26, 107, 60, 0.2);
}

.map-placeholder span {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.map-placeholder p {
  font-weight: 600;
  color: var(--primary-dark);
  font-family: var(--font-en);
}

/* ===== How it works ===== */
.how-it-works {
  padding: 5rem 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  font-family: var(--font-en);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  align-self: center;
  font-weight: 700;
  padding-top: 2rem;
}

/* ===== Why Us ===== */
.why-us {
  padding: 5rem 0;
  background: var(--white);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-us-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.why-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.why-list strong {
  display: block;
  margin-bottom: 0.15rem;
}

.why-list p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.image-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.big-emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 1rem;
}

.image-card p {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--primary-light) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-method:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.contact-method.whatsapp:hover {
  border-color: #25d366;
}

.method-icon {
  font-size: 1.75rem;
}

.contact-method strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-method span:last-child {
  font-weight: 600;
  color: var(--text);
}

/* ===== Form ===== */
.booking-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ml);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.15);
  background: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-links li {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  opacity: 0.75;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.6;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card:hover,
  .btn-primary:hover,
  .whatsapp-float:hover {
    transform: none;
  }
}

/* ===== About / Fact sheet (AI-friendly) ===== */
.about-summary {
  padding: 3rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.fact-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.fact-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.fact-item dt {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.fact-item dd {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.fact-item a {
  color: var(--primary-dark);
  font-weight: 600;
}

.fact-item a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== FAQ ===== */
.faq {
  padding: 5rem 0;
  background: var(--bg);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary:hover {
  color: var(--primary-dark);
}

.faq-answer {
  padding: 0 1.25rem 1.1rem;
  border-top: 1px solid var(--border);
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-top: 0.85rem;
  line-height: 1.7;
}

/* ===== Performance ===== */
.services,
.areas,
.how-it-works,
.why-us,
.about-summary,
.faq,
.contact {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

@media (max-width: 900px) {
  .why-us-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .step-arrow {
    display: none;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
