:root {
  --saffron: #E8813A;
  --saffron-light: #FDF0E6;
  --saffron-dark: #C46A28;
  --sage: #6B9E6E;
  --sage-light: #EEF5EE;
  --sage-dark: #4A7A4D;
  --warm-white: #FAF7F2;
  --charcoal: #2D2D2D;
  --charcoal-light: #555555;
  --dusty-rose: #C49A8A;
  --cream: #F4EFE6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--charcoal);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* Scroll animation base */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Nav */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  padding: 1.2rem 2rem;
}
nav.scrolled {
  background: rgba(250,247,242,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 0.8rem 2rem;
}
.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--saffron); }
.nav-cta {
  background: var(--saffron);
  color: white !important;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.nav-cta:hover {
  background: var(--saffron-dark);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #1a1208 0%, #2C1A0A 40%, #3D2612 70%, #1a1208 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-texture {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(232,129,58,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(107,158,110,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}
.hero-image-overlay {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 55%;
  background: url('https://punyamitram.com/wp-content/uploads/2025/07/PM1.webp') center/cover no-repeat;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.85) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.85) 100%);
  opacity: 0.35;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232,129,58,0.15);
  border: 1px solid rgba(232,129,58,0.35);
  color: #F4A66A;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge span { width: 6px; height: 6px; background: var(--saffron); border-radius: 50%; display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.5); } }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
  color: #FAF7F2;
  margin-bottom: 1.2rem;
  font-style: italic;
}
.hero h1 em { color: var(--saffron); font-style: normal; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(250,247,242,0.7);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--saffron);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 30px rgba(232,129,58,0.35);
}
.btn-primary:hover {
  background: var(--saffron-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232,129,58,0.45);
}
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: #25D366;
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 30px rgba(37,211,102,0.4);
  text-decoration: none;
  font-size: 1.6rem;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 40px rgba(37,211,102,0.5);
}
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-6px); } }
.call-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
  background: var(--saffron);
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 30px rgba(232,129,58,0.4);
  text-decoration: none;
  font-size: 1.5rem;
  transition: transform 0.2s;
  animation: float 3s ease-in-out infinite 1.5s;
}
.call-float:hover { transform: scale(1.1); }

/* Trust bar */
.trust-bar {
  background: #fff;
  border-top: 3px solid var(--saffron);
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}
.trust-item {
  text-align: center;
  padding: 2rem 1rem;
  border-right: 1px solid #F0EDE8;
}
.trust-item:last-child { border-right: none; }
.trust-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--saffron);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.trust-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-light);
  font-weight: 600;
}

/* Section styles */
.section-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--saffron);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--saffron);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--charcoal-light);
  line-height: 1.75;
  max-width: 560px;
}

/* Empathy gate cards */
.empathy-card {
  background: white;
  border: 1.5px solid #EDE9E3;
  border-radius: 20px;
  padding: 2rem 1.8rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: block;
  position: relative;
  overflow: hidden;
}
.empathy-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.empathy-card:hover {
  border-color: var(--saffron);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(232,129,58,0.15);
}
.empathy-card:hover::before { transform: scaleX(1); }
.empathy-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

/* Services */
.service-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #EDE9E3;
  transition: all 0.35s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.1);
  border-color: var(--sage);
}
.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover img { transform: scale(1.05); }

/* Conditions */
.condition-pill {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.pill-default {
  background: white;
  border: 1.5px solid #E0DAD2;
  color: var(--charcoal);
}
.pill-default:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,129,58,0.25);
}

/* Why us */
.why-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.8rem;
  border-radius: 16px;
  transition: background 0.2s;
}
.why-item:hover { background: white; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.why-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--saffron-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid #EDE9E3;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--saffron-light);
  line-height: 1;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px;
  gap: 12px;
  border-radius: 20px;
  overflow: hidden;
}
.gallery-grid .g1 { grid-column: span 2; grid-row: span 2; }
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  background: var(--cream);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

/* Blog */
.blog-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #EDE9E3;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s;
}
.blog-card:hover img { transform: scale(1.04); }

/* Steps */
.step-line {
  position: absolute;
  top: 32px;
  left: calc(50% + 40px);
  right: calc(-50% + 40px);
  height: 2px;
  background: linear-gradient(to right, var(--saffron), var(--sage));
  z-index: 0;
}

/* Backgroud of admission section (Wait, was this step-line? No, let's keep it) */

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, #2C1A0A 0%, #3D2612 50%, #2A1F0F 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(232,129,58,0.15) 0%, transparent 70%);
}

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250,247,242,0.98);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  backdrop-filter: blur(10px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
}
.hamburger { cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: all 0.3s; }

/* Scroll indicator */
.scroll-line {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { transform:scaleY(1); opacity:1; } 50% { transform:scaleY(0.3); opacity:0.3; } }

/* Form */
.form-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid #E0DAD2;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--saffron); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-grid .g1 { grid-column: span 2; }
  nav .desktop-menu { display: none !important; }
  nav .hamburger { display: flex !important; }
}
