@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&family=Playfair+Display:wght@700&display=swap');

:root {
  --saffron: #E8722A;
  --saffron-light: #F5A75C;
  --saffron-pale: #FDF4EC;
  --forest: #1E3A2F;
  --forest-mid: #2D5741;
  --gold: #C9973A;
  --gold-light: #F0C96B;
  --cream: #FAF7F2;
  --charcoal: #1A1A1A;
  --muted: #6B6560;
  --border: #E8E2D9;
  --white: #FFFFFF;
  --shadow: 0 4px 32px rgba(30,58,47,0.10);
  --shadow-lg: 0 12px 60px rgba(30,58,47,0.15);
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow); }

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-brand .logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; color: white; font-weight: 600;
}
.nav-brand .brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.02em;
}
.nav-brand .brand-name span { color: var(--saffron); }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.9rem; font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1.5px;
  background: var(--saffron); transform: scaleX(0); transition: transform 0.2s;
}
.nav-links a:hover { color: var(--saffron); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .nav-cta {
  background: var(--forest); color: white !important;
  padding: 9px 20px; border-radius: 8px;
  font-weight: 500; transition: background 0.2s, transform 0.2s !important;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--forest-mid) !important; transform: translateY(-1px); }

.nav-hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: all 0.3s; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding: 120px 5% 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 55%; height: 100%;
  background: linear-gradient(135deg, var(--saffron-pale) 0%, #FDE8D0 100%);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--saffron-pale); border: 1px solid #F0C096;
  color: var(--saffron); padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 500; margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.hero-badge::before { content: '✦'; font-size: 0.7rem; }

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 600; line-height: 1.1;
  color: var(--forest);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--saffron); }

.hero p {
  font-size: 1.05rem; color: var(--muted);
  max-width: 480px; margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--saffron);
  color: white; text-decoration: none;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 500; font-size: 0.95rem;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(232,114,42,0.35);
  border: none; cursor: pointer; display: inline-block;
}
.btn-primary:hover { background: #D0601C; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,114,42,0.4); }

.btn-secondary {
  background: transparent;
  color: var(--forest); text-decoration: none;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 500; font-size: 0.95rem;
  border: 1.5px solid var(--forest);
  transition: all 0.25s; display: inline-block; cursor: pointer;
}
.btn-secondary:hover { background: var(--forest); color: white; transform: translateY(-2px); }

.hero-visual { position: relative; z-index: 1; }
.hero-stats-card {
  background: white; border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.hero-stats-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; color: var(--muted);
  margin-bottom: 20px; font-weight: 400;
}
.stat-row { display: flex; gap: 16px; margin-bottom: 16px; }
.stat-item {
  flex: 1; background: var(--cream); border-radius: 12px; padding: 16px;
  border: 1px solid var(--border);
}
.stat-item .label { font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }
.stat-item .value { font-size: 1.4rem; font-weight: 500; color: var(--forest); }
.stat-item .change { font-size: 0.78rem; color: #2D7D46; margin-top: 2px; }
.stat-item .change.neg { color: #C0392B; }

.mini-chart { height: 48px; margin-top: 20px; }
.mini-chart svg { width: 100%; height: 100%; }

/* ── FEATURES ── */
.features { padding: 100px 5%; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  color: var(--saffron); font-size: 0.8rem;
  font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600; color: var(--forest);
  line-height: 1.2; letter-spacing: -0.02em;
}
.section-header p { color: var(--muted); max-width: 520px; margin: 12px auto 0; font-size: 1rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: white; border-radius: 16px;
  padding: 32px; border: 1px solid var(--border);
  transition: all 0.3s; cursor: default;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--saffron-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 500; color: var(--forest); margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.feature-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; color: var(--saffron); font-size: 0.88rem;
  font-weight: 500; text-decoration: none;
  transition: gap 0.2s;
}
.feature-link:hover { gap: 10px; }

/* ── CALCULATOR SECTION ── */
.calculator-section {
  padding: 100px 5%;
  background: var(--forest);
  position: relative; overflow: hidden;
}
.calculator-section::before {
  content: 'सम्पथ'; position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20vw; color: rgba(255,255,255,0.03);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; white-space: nowrap;
  font-weight: 600;
}
.calculator-section .section-header h2 { color: white; }
.calculator-section .section-header p { color: rgba(255,255,255,0.6); }
.calculator-section .section-tag { color: var(--gold-light); }

.calc-container {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px; padding: 40px;
  max-width: 900px; margin: 0 auto;
  backdrop-filter: blur(10px);
}
.calc-tabs {
  display: flex; gap: 8px; margin-bottom: 36px;
  background: rgba(0,0,0,0.2); border-radius: 12px; padding: 6px;
}
.calc-tab {
  flex: 1; padding: 10px; border: none; background: transparent;
  color: rgba(255,255,255,0.5); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  cursor: pointer; transition: all 0.25s; font-weight: 500;
}
.calc-tab.active {
  background: var(--saffron); color: white;
  box-shadow: 0 4px 12px rgba(232,114,42,0.4);
}

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.calc-inputs { display: flex; flex-direction: column; gap: 24px; }
.input-group label {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.input-group label span { color: var(--gold-light); font-weight: 500; }
.range-input {
  width: 100%; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,0.15);
  outline: none; cursor: pointer;
  -webkit-appearance: none;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--saffron); cursor: pointer;
  box-shadow: 0 0 0 3px rgba(232,114,42,0.3);
  transition: box-shadow 0.2s;
}
.range-input::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px rgba(232,114,42,0.25); }

.calc-result {
  background: rgba(255,255,255,0.08);
  border-radius: 16px; padding: 28px;
  text-align: center;
}
.result-label { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-bottom: 8px; }
.result-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 600; color: var(--gold-light);
  line-height: 1.1;
}
.result-breakdown { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.breakdown-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.05);
  font-size: 0.85rem;
}
.breakdown-row .bkey { color: rgba(255,255,255,0.5); }
.breakdown-row .bval { color: white; font-weight: 500; }
.breakdown-row .bval.green { color: #6FCF97; }

/* ── BLOG ── */
.blog-section { padding: 100px 5%; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px; margin-top: 0;
}
.blog-card {
  background: white; border-radius: 16px;
  overflow: hidden; border: 1px solid var(--border);
  transition: all 0.3s; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.blog-thumb {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative; overflow: hidden;
}
.blog-thumb.bg1 { background: linear-gradient(135deg, #FDE8D0, #F5C99A); }
.blog-thumb.bg2 { background: linear-gradient(135deg, #D4E8D8, #9FC9A8); }
.blog-thumb.bg3 { background: linear-gradient(135deg, #D8E4F0, #9AB8D8); }
.blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-tag {
  display: inline-block; color: var(--saffron);
  font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 1.1rem; font-weight: 500; color: var(--forest); line-height: 1.4; margin-bottom: 10px; }
.blog-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; flex: 1; }
.blog-meta { display: flex; justify-content: space-between; margin-top: 16px; font-size: 0.78rem; color: var(--muted); }

/* ── CONTACT ── */
.contact-section {
  padding: 100px 5%;
  background: var(--saffron-pale);
  border-top: 1px solid #F0C096;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact-info h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 600; color: var(--forest); margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.contact-info p { color: var(--muted); line-height: 1.7; margin-bottom: 32px; }
.contact-detail { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-detail .icon {
  width: 40px; height: 40px; background: white;
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.contact-detail .text { font-size: 0.9rem; color: var(--charcoal); }

.contact-form {
  background: white; border-radius: 20px;
  padding: 40px; box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--charcoal); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; color: var(--charcoal);
  background: var(--cream); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232,114,42,0.12);
  background: white;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none; text-align: center; padding: 20px;
  color: var(--forest); background: #EAF5EE; border-radius: 10px;
  font-weight: 500; margin-top: 16px;
}

/* ── FOOTER ── */
footer {
  background: var(--charcoal); color: rgba(255,255,255,0.6);
  padding: 60px 5% 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: white; margin-bottom: 12px; }
.footer-brand .brand-name span { color: var(--saffron); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: white; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--saffron); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 0.8rem;
}
.disclaimer { font-size: 0.75rem; color: rgba(255,255,255,0.3); margin-top: 8px; }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 100px 5% 60px; }
  .hero::before { display: none; }
  .hero-visual { display: none; }
  .calc-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--cream); padding: 20px 5%; border-bottom: 1px solid var(--border); gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { flex-direction: column; }
}
