:root {
  /* Brand palette pulled from the live rajputfarms.com (forest green + gold) */
  --green: #1f6b43;
  --green-dark: #123d27;
  --green-light: #e8f2ec;
  --gold: #c9a227;
  --gold-light: #e8cc6b;
  --dark: #0c1f15;
  --dark-2: #123321;
  --ink: #0f231a;
  --text: #2b332e;
  --muted: #667069;
  --border: #e4e7e2;
  --bg: #fff;
  --bg-alt: #f6f8f5;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(16, 36, 26, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 36, 26, 0.10);
  --shadow-lg: 0 20px 50px rgba(16, 36, 26, 0.16);
  --font-head: 'Poppins', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  margin: 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--green); color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; margin: 0 0 12px; }
p { margin: 0 0 14px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
a { color: var(--green-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green); }

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  z-index: 100;
}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 20px; }
.brand { display: flex; align-items: center; min-width: 0; }
.brand img { display: block; height: 40px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.nav-collapse { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: flex-end; min-width: 0; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--text); font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--green-light); color: var(--green-dark); }
.nav-cta { display: flex; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none; position: relative;
  width: 40px; height: 40px; padding: 0; border: none; background: none; cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  position: absolute; left: 9px; width: 22px; height: 2px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-collapse {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    max-height: 0; overflow-y: auto; padding: 0 20px;
    transition: max-height .3s ease, padding .3s ease;
  }
  .nav-collapse.is-open { max-height: calc(100vh - 65px); padding: 12px 20px 20px; }
  .main-nav { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 14px; }
  .nav-cta { flex-direction: column; margin-top: 8px; }
  .nav-cta .btn { justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; }
.btn-call { background: var(--ink); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--dark); }
.btn-ghost { background: transparent; color: #fff; box-shadow: none; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center; padding: 120px 24px 100px;
  background: var(--dark);
  color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-media video.is-playing { opacity: 1; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,26,17,.75), rgba(10,26,17,.55) 45%, var(--dark) 100%);
}
.hero-kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light);
  padding: 6px 16px; border: 1px solid rgba(201,162,39,.5); border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -.02em; max-width: 820px; margin: 0 auto 16px; color: #fff; }
.hero h1 .accent { color: var(--gold-light); }
.hero > p { max-width: 640px; margin: 0 auto; color: #d7ded8; font-size: 18px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Trust strip (real named clients) ---------- */
.trust-strip { background: var(--dark-2); padding: 32px 24px; text-align: center; }
.trust-strip .kicker {
  font-family: var(--font-head); font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px; display: block;
}
.trust-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.trust-list li {
  border: 1px solid rgba(201,162,39,.4); border-radius: 8px; padding: 8px 16px;
  color: #e7ebe6; font-size: 14px; font-weight: 500;
}

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--dark); color: #fff; padding: 48px 24px; text-align: center; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.stat-grid strong { display: block; font-family: var(--font-head); font-size: 32px; color: var(--gold-light); font-weight: 800; }
.stat-grid span { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #b9c4bd; }

section.container { padding: 56px 24px; }
section.container > h2 { font-size: 28px; text-align: center; margin-bottom: 6px; }
section.container > h2 + p,
section.container > h2 ~ .section-lead { text-align: center; color: var(--muted); }

.hero-img, .detail-hero {
  display: block; width: 100%; object-fit: cover;
  border-radius: var(--radius); margin: 28px 0; box-shadow: var(--shadow-lg);
}
.hero-img { max-height: 440px; }
.detail-hero { max-height: 380px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-top: 28px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; text-decoration: none; }
.card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 17px; margin-bottom: 6px; }
.card-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 0; }
.card-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-alt); transition: transform .35s ease; }
.card:hover .card-img { transform: scale(1.05); }

.location-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 16px; box-shadow: var(--shadow-sm); }
.location-card .card-img { aspect-ratio: 21 / 9; }
.location-card .card-body { padding: 18px 22px; }

/* ---------- Divisions (about page) ---------- */
.division-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.division-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px;
  box-shadow: var(--shadow-sm);
}
.division-thumb { width: 76px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--bg-alt); }

/* ---------- Admin image previews ---------- */
.settings-preview { display: block; width: 180px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); margin: 8px 0 4px; border: 1px solid var(--border); background: var(--bg-alt); }
.admin-preview { display: block; width: 240px; height: 140px; object-fit: cover; border-radius: var(--radius-sm); margin: 8px 0 4px; border: 1px solid var(--border); background: var(--bg-alt); }

/* ---------- Chips ---------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; justify-content: center; }
.chip {
  border: 1.5px solid var(--border); background: #fff; border-radius: 999px; padding: 8px 18px;
  color: var(--text); font-weight: 500; font-size: 14.5px; transition: all .15s ease;
}
.chip:hover { background: var(--green); border-color: var(--green); color: #fff; text-decoration: none; }

/* ---------- Prose (rich-text description blocks) ---------- */
.prose { color: var(--text); font-size: 16px; }
.prose p { margin-bottom: 14px; }
.prose h2, .prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: var(--radius-sm); }

/* ---------- FAQ ---------- */
.faq-section { margin-top: 48px; }
.faq-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 18px;
  background: var(--bg-alt); transition: background .15s ease;
}
.faq-item[open] { background: #fff; box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--green); flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 16px; color: var(--muted); margin: 0; }

.cta-block { display: flex; gap: 12px; margin: 34px 0; flex-wrap: wrap; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; margin-top: 28px; align-items: start; }
.contact-form, .contact-details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-form label, .admin-form label { display: block; margin-bottom: 16px; font-weight: 600; font-size: 14.5px; }
.contact-form input, .contact-form textarea,
.admin-form input, .admin-form textarea, .admin-form select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-family: var(--font-body);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus,
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light);
}
.contact-info { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-info li { margin-bottom: 12px; font-size: 15px; }
.contact-details iframe { border-radius: var(--radius-sm); margin-top: 6px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin: 16px 0; font-weight: 500; }
.alert-success { background: var(--green-light); border: 1px solid var(--green); color: var(--green-dark); }
.alert-error { background: #fdecea; border: 1px solid #d32f2f; color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark) url('/uploads/branding/footer-bg.png') no-repeat right bottom / 480px auto;
  color: #b9c4bd; margin-top: 72px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 24px 36px; }
.footer-grid h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-grid p { color: #a3b0a8; font-size: 14.5px; }
.footer-grid a { color: #b9c4bd; }
.footer-grid a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.social-links { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 10px; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  font-size: 13px; font-weight: 600;
}
.social-links a:hover { background: var(--gold); color: var(--dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 24px; font-size: 13px; }
.footer-bottom p { margin: 0; color: #8a978f; }
.footer-logo { height: 34px; margin-bottom: 12px; display: block; }

.small { color: var(--muted); font-size: 14px; }
.lead { font-size: 18px; color: var(--muted); }
.breadcrumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green); }

/* ---------- Scroll-reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Header gains a shadow once the page has scrolled past the hero */
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  section.container { padding: 40px 20px; }
  .hero { padding: 90px 20px 70px; }
}
