/* ==========================================================================
   DEMO 2: Cleenheart Template Style (Based on Figma Theme-2)
   Eco-Welfare, Nature Harmony & Kerala Green Heritage
   Palette: Forest Emerald (#1f5f3e), Leaf Green (#28a745), Warm Sand (#fcfaf7)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --primary: #1f5f3e;
  --primary-dark: #123d26;
  --primary-light: #2d8257;
  --secondary: #28a745;
  --accent: #d97706;
  --bg-main: #fcfaf7;
  --bg-alt: #f1ede4;
  --text-main: #243328;
  --text-muted: #5f7064;
  --border-color: #e0d8cc;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  color: var(--primary-dark);
}

/* Demo Top Bar */
.demo-switcher-top {
  background: #123d26;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.demo-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-pill {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.demo-pill:hover, .demo-pill.active {
  background: #28a745;
  color: #ffffff;
  font-weight: 700;
}

/* Cleenheart Header */
.cleenheart-header {
  background: #ffffff;
  border-bottom: 3px solid #1f5f3e;
  position: sticky;
  top: 41px;
  z-index: 900;
  box-shadow: 0 4px 12px rgba(31, 95, 62, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 16px;
}

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

.brand-wrap img {
  height: 50px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #123d26;
  line-height: 1.1;
  font-family: 'Cinzel', serif;
}

.brand-sub {
  font-size: 0.72rem;
  color: #28a745;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cleenheart-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-item {
  color: #243328;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 6px 4px;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-item:hover {
  color: #1f5f3e;
}

.btn-green {
  background: #1f5f3e;
  color: #ffffff;
  padding: 9px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-green:hover {
  background: #123d26;
  transform: translateY(-2px);
}

.btn-outline-green {
  background: transparent;
  color: #1f5f3e;
  border: 2px solid #1f5f3e;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline-green:hover {
  background: #1f5f3e;
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  background: #eef5f0;
  border: 1px solid #c2dec9;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #1f5f3e;
}

/* Hero Slider */
.hero-slider-wrap {
  position: relative;
  height: 560px;
  background: #123d26;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(18, 61, 38, 0.9) 0%, rgba(31, 95, 62, 0.75) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 680px;
  padding: 0 40px;
}

.leaf-badge {
  background: #e7f5eb;
  color: #17643a;
  border: 1px solid #73bd88;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* Badges over photography and dark panels need the lighter treatment. */
.hero-slide-content .leaf-badge,
#simsr .leaf-badge {
  background: rgba(134, 239, 172, 0.18);
  color: #bbf7d0;
  border-color: rgba(187, 247, 208, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.hero-slide-content h1 {
  font-size: 2.8rem;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

.hero-slide-content p {
  font-size: 1.1rem;
  color: #f1ede4;
  line-height: 1.6;
  margin-bottom: 24px;
}

.slider-controls {
  position: absolute;
  bottom: 30px;
  right: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.slider-btn:hover {
  background: #28a745;
  color: #ffffff;
}

.slider-dots {
  position: absolute;
  bottom: 36px;
  left: 40px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.slider-dot.active {
  background: #28a745;
  width: 26px;
  border-radius: 10px;
}

/* Cleenheart Curved Feature Cards */
.cleen-cards-row {
  max-width: 1200px;
  margin: -50px auto 40px auto;
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0 20px;
}

.cleen-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(31, 95, 62, 0.08);
  border: 1px solid #e0d8cc;
  transition: transform 0.25s ease;
  text-align: center;
}

.cleen-card:hover {
  transform: translateY(-6px);
  border-color: #1f5f3e;
}

.cleen-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #eef5f0;
  color: #1f5f3e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px auto;
}

.cleen-card h3 {
  font-size: 1.15rem;
  margin: 0 0 6px 0;
}

.cleen-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Common Section */
.sec-wrap {
  padding: 70px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.sec-title-wrap {
  text-align: center;
  margin-bottom: 46px;
}

.sec-title-wrap h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.sec-title-wrap p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .mobile-toggle {
    display: block;
  }
  .cleenheart-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-bottom: 3px solid #1f5f3e;
    align-items: stretch;
    box-sizing: border-box;
  }
  .cleenheart-nav.active {
    display: flex;
  }
  .cleen-cards-row {
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
  }
}

@media (max-width: 650px) {
  .cleen-cards-row {
    grid-template-columns: 1fr;
  }
  .hero-slide-content h1 {
    font-size: 2.1rem;
  }
}
