/* Matigarh Estate — Custom Styles */
/* Design System: UI/UX Pro Max — Real Estate/Luxury + Wellness Calm */
/* Typography: Playfair Display (headings) + Inter (body) */

/* ─── Google Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── CSS Custom Properties (Brand Palette) ────────────── */
:root {
  --color-primary:       #2A5C45;  /* Forest green — Purulia jungle */
  --color-primary-dark:  #1A3D2E;  /* Deep forest */
  --color-primary-light: #3D7A5F;  /* Mid green */
  --color-gold:          #C8892E;  /* Harvest gold — mango/paddy */
  --color-gold-light:    #E8B05A;  /* Light gold */
  --color-terra:         #8B3A1A;  /* Terracotta — laterite soil */
  --color-cream:         #FAF7F2;  /* Aged paper — background */
  --color-cream-dark:    #F0EAE0;  /* Darker cream for sections */
  --color-charcoal:      #1C1408;  /* Near-black warm */
  --color-muted:         #6B6556;  /* Warm grey */
  --color-border:        #DDD6CC;  /* Warm border */
  --color-white:         #FFFFFF;
}

/* ─── Base ──────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  line-height: 1.65;
}

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

/* ─── Navigation ────────────────────────────────────────── */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-charcoal);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--color-primary); }

.nav-cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--color-primary-dark); }

/* ─── Hero ──────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(
    160deg,
    #1A3D2E 0%,
    #2A5C45 45%,
    #3D7A5F 100%
  );
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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.03'%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");
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200, 137, 46, 0.15);
  border: 1px solid rgba(200, 137, 46, 0.4);
  color: var(--color-gold-light);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── Stat Cards ─────────────────────────────────────────── */
.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.stat-card:hover {
  box-shadow: 0 8px 32px rgba(42, 92, 69, 0.12);
  transform: translateY(-2px);
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

/* ─── Section Titles ─────────────────────────────────────── */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-top: 0.5rem;
  line-height: 1.2;
}
.section-sub {
  color: var(--color-muted);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(42, 92, 69, 0.25);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(42, 92, 69, 0.35);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-gold);
  color: var(--color-white);
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-gold:hover {
  background: #b57a26;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 0.8rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: #25D366;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}

/* ─── Feature Cards ──────────────────────────────────────── */
.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.feature-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(42, 92, 69, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* ─── Process Steps ──────────────────────────────────────── */
.step-number {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ─── Legal Callout ──────────────────────────────────────── */
.legal-callout {
  border-left: 4px solid var(--color-primary);
  background: rgba(42, 92, 69, 0.05);
  padding: 1.25rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}
.legal-callout.gold {
  border-color: var(--color-gold);
  background: rgba(200, 137, 46, 0.05);
}
.legal-callout.red {
  border-color: #DC2626;
  background: rgba(220, 38, 38, 0.05);
}

/* ─── Accordion ──────────────────────────────────────────── */
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-charcoal);
  transition: color 0.15s;
}
.accordion-btn:hover { color: var(--color-primary); }
.accordion-content {
  padding-bottom: 1.25rem;
  color: var(--color-muted);
  line-height: 1.7;
  display: none;
}
.accordion-content.open { display: block; }
.accordion-icon { transition: transform 0.2s; font-size: 1.25rem; }
.accordion-icon.open { transform: rotate(45deg); }

/* ─── Table ───────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th {
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.data-table tr:nth-child(even) td { background: var(--color-cream); }
.data-table tr:hover td { background: rgba(42, 92, 69, 0.04); }

/* ─── Document Preview ────────────────────────────────────── */
.doc-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.doc-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
.doc-card-header {
  background: var(--color-primary);
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.doc-card-body { padding: 1.25rem; }

/* ─── Testimonial / Trust Strip ──────────────────────────── */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}
.trust-badge-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

/* ─── CTA Section ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer-link {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: color 0.15s;
  text-decoration: none;
}
.footer-link:hover { color: white; }

/* ─── Sticky WhatsApp Float ───────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  background: #25D366;
  color: white;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  font-size: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* ─── Comparison Table ────────────────────────────────────── */
.compare-yes { color: #16a34a; font-weight: 600; }
.compare-no  { color: #dc2626; font-weight: 600; }

/* ─── Crop Card ──────────────────────────────────────────── */
.crop-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  border-top: 3px solid var(--color-primary);
}

/* ─── Tab Buttons ────────────────────────────────────────── */
.tab-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-muted);
  transition: all 0.15s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ─── Agreement Document Style ───────────────────────────── */
.agreement-doc {
  font-family: 'Inter', sans-serif;
  line-height: 1.8;
  color: var(--color-charcoal);
}
.agreement-doc h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary-dark);
}
.agreement-doc p { margin-bottom: 1rem; }
.agreement-doc .clause {
  padding: 1rem;
  border-left: 3px solid var(--color-primary);
  background: rgba(42, 92, 69, 0.04);
  margin: 1rem 0;
  border-radius: 0 0.375rem 0.375rem 0;
}

/* ─── Print Styles ───────────────────────────────────────── */
@media print {
  .no-print, .nav-wrapper, .wa-float, .cta-section, footer { display: none !important; }
  body { background: white; font-size: 12pt; }
  .agreement-doc { max-width: 100%; }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .stat-number { font-size: 2rem; }
  .section-title { font-size: 1.5rem; }
  .btn-primary, .btn-gold, .btn-whatsapp { width: 100%; justify-content: center; }
}
