/* =========================================================
   Karuna Dham — v2026
   A warm, natural, contemplative design language.
   ========================================================= */

:root {
  --bg: #faf7f2;
  --bg-alt: #f1ebdf;
  --bg-dark: #1f1c17;
  --fg: #2b2520;
  --fg-muted: #6b6058;
  --accent: #4a6741;        /* forest green */
  --accent-dark: #35492f;
  --accent-warm: #b4714d;   /* terracotta / clay */
  --accent-warm-dark: #8d5538;
  --border: #e5ddcd;
  --border-dark: #3a342b;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(43, 37, 32, 0.06);
  --shadow-md: 0 8px 28px rgba(43, 37, 32, 0.10);

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--accent-warm-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--fg);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 300; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 500; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--fg-muted);
  border-left: 3px solid var(--accent-warm);
  padding: .3em 0 .3em 1.25em;
  margin: 1.5em 0;
}

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(3rem, 8vw, 6rem) 0; }

.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #e8e2d6; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-warm);
  margin-bottom: 1rem;
  display: inline-block;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.9em 1.8em;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s, color .2s, border-color .2s;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(43, 37, 32, 0.08);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 37, 32, 0.14);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(43, 37, 32, 0.12);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-warm {
  background: var(--accent-warm);
  color: #fff;
}
.btn-warm:hover { background: var(--accent-warm-dark); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--fg); }

.btn-lg { padding: 1.1em 2.4em; font-size: 1rem; }

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Helvetica Neue", var(--font-body), Helvetica, Arial, sans-serif;
  color: var(--fg);
  line-height: 1.1;
}
.brand:hover { color: var(--accent); }
.brand-mark {
  font-size: 1.6rem;
  color: var(--accent-warm);
}
.brand-leaf {
  width: auto;
  height: 44px;
  display: block;
}
.brand-name {
  display: block;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #3e8034;
}
.brand-dham {
  font-weight: 200;
  color: #7fb84a;
}
.brand:hover .brand-name { color: #2f6226; }
.brand:hover .brand-dham { color: #6fa33e; }
.brand-tag {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--fg-muted);
  margin-top: 2px;
}

.primary-nav {
  display: flex;
  gap: 0.1rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav li { position: relative; }

.primary-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  position: relative;
  padding: 0.9em 0.95em;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: color .2s ease;
}
.primary-nav > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.5em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-warm);
  transform: translateX(-50%) scale(0);
  transition: transform .25s cubic-bezier(.3,.8,.4,1.2);
}
.primary-nav > li > a:hover,
.primary-nav li.active > a,
.primary-nav[data-active="home"] [data-nav="home"] > a,
.primary-nav[data-active="stay"] [data-nav="stay"] > a,
.primary-nav[data-active="experience"] [data-nav="experience"] > a,
.primary-nav[data-active="projects"] [data-nav="projects"] > a,
.primary-nav[data-active="gallery"] [data-nav="gallery"] > a,
.primary-nav[data-active="contact"] [data-nav="contact"] > a {
  color: var(--accent);
  background: transparent;
}
.primary-nav > li > a:hover::after,
.primary-nav[data-active="home"] [data-nav="home"] > a::after,
.primary-nav[data-active="stay"] [data-nav="stay"] > a::after,
.primary-nav[data-active="experience"] [data-nav="experience"] > a::after,
.primary-nav[data-active="projects"] [data-nav="projects"] > a::after,
.primary-nav[data-active="gallery"] [data-nav="gallery"] > a::after,
.primary-nav[data-active="contact"] [data-nav="contact"] > a::after {
  transform: translateX(-50%) scale(1);
}
.has-dropdown:hover > a,
.has-dropdown:focus-within > a { color: var(--accent); }

.nav-chev {
  width: 11px;
  height: 7px;
  margin-left: 0.15em;
  color: var(--accent-warm);
  opacity: 0.85;
  transition: transform .28s cubic-bezier(.3,.8,.4,1.2), opacity .2s ease;
}
.has-dropdown > a { position: relative; }
/* Small subtle dot above the chevron as a persistent "has menu" indicator */
.has-dropdown > a::before {
  content: "";
  position: absolute;
  top: 0.55em;
  right: 0.72em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-warm);
  opacity: 0.65;
  transition: opacity .2s ease, transform .25s cubic-bezier(.3,.8,.4,1.2);
}
.has-dropdown:hover > a .nav-chev,
.has-dropdown:focus-within > a .nav-chev {
  transform: rotate(180deg);
  opacity: 1;
}
.has-dropdown:hover > a::before,
.has-dropdown:focus-within > a::before {
  opacity: 1;
  transform: scale(1.25);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 340px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 40px -8px rgba(43, 37, 32, 0.18),
    0 2px 6px rgba(43, 37, 32, 0.06);
  padding: 0.55rem;
  list-style: none;
  margin: 0.6rem 0 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s cubic-bezier(.25,.8,.4,1), visibility 0s linear .45s;
  transition-delay: .35s;
}
/* Invisible hover bridge so the gap between trigger and dropdown doesn't break hover */
.dropdown::before {
  content: "";
  position: absolute;
  top: -0.8rem;
  left: 0;
  right: 0;
  height: 0.8rem;
}
/* Small pointer triangle connecting the dropdown to its trigger */
.dropdown::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: -1px -1px 1px rgba(43, 37, 32, 0.03);
  border-top-left-radius: 2px;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .22s ease, transform .22s cubic-bezier(.25,.8,.4,1), visibility 0s;
  transition-delay: 0s;
}

.dropdown li { display: block; }

.dropdown-grouped { min-width: 360px; }
.dropdown-label {
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-warm);
  padding: 0.85em 0.9em 0.4em;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.dropdown-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.dropdown-grouped > .dropdown-label:first-child { padding-top: 0.35em; }
.dropdown-grouped > .dropdown-label + li a { margin-top: 0; }

.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.85em;
  position: relative;
  padding: 0.75em 2em 0.75em 0.9em;
  border-radius: 8px;
  color: var(--fg);
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, padding .2s ease;
}
.dropdown a + a { margin-top: 1px; }

.dd-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 9px;
  background: rgba(74, 103, 65, 0.08);
  color: var(--accent);
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background .2s ease, color .2s ease, transform .25s cubic-bezier(.3,.8,.4,1.2);
}
.dd-icon polygon { fill: currentColor; fill-opacity: 0.12; }

.dd-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}
.dd-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--fg);
  transition: color .18s ease;
}
.dd-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--fg-muted);
  margin-top: 4px;
  line-height: 1.35;
}
.dd-ext {
  font-size: 0.85em;
  color: var(--fg-muted);
  margin-left: 0.1em;
}
.dropdown a::after {
  content: "→";
  position: absolute;
  right: 0.95em;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  color: var(--accent);
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity .18s ease, transform .22s ease;
}
.dropdown a:hover {
  background: linear-gradient(90deg, rgba(74, 103, 65, 0.08), rgba(74, 103, 65, 0.02));
  padding-right: 2.35em;
}
.dropdown a:hover .dd-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05) rotate(-2deg);
}
.dropdown a:hover .dd-icon polygon { fill: #fff; fill-opacity: 0.22; }
.dropdown a:hover .dd-title { color: var(--accent); }
.dropdown a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.primary-nav > li > a.donate-btn {
  margin-left: 0.5rem;
  padding: 0.85em 1.5em;
  background: var(--accent-warm);
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(180, 113, 77, 0.28);
  transition: transform .18s ease, box-shadow .18s ease, background .2s;
}
.primary-nav > li > a.donate-btn:hover {
  background: var(--accent-warm-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(180, 113, 77, 0.38);
}
.primary-nav > li > a.donate-btn::after { content: none; display: none; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 101;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--fg);
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-menu { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; color: var(--fg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: #1f1c17;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,12,8,0.35) 0%, rgba(15,12,8,0.6) 100%);
}
/* Lighter variant — use when the background photo should stay bright and colourful */
.hero-bg.hero-bg--light::after {
  background: linear-gradient(100deg, rgba(15,12,8,0.48) 0%, rgba(15,12,8,0.18) 55%, rgba(15,12,8,0) 100%);
}
/* Rocket-stove infographic hero: WebP with JPG fallback; keep the right-hand illustration visible */
.hero-bg.hero-bg--rocket {
  background-image: url('../images/content/rocket-stove-hero.jpg');
  background-image: -webkit-image-set(
    url('../images/content/rocket-stove-hero.webp') type('image/webp') 1x,
    url('../images/content/rocket-stove-hero.jpg') type('image/jpeg') 1x
  );
  background-image: image-set(
    url('../images/content/rocket-stove-hero.webp') type('image/webp') 1x,
    url('../images/content/rocket-stove-hero.jpg') type('image/jpeg') 1x
  );
  background-position: 75% center;
}
.hero-bg.hero-bg--rocket::after {
  background: linear-gradient(90deg,
    rgba(15,12,8,0.88) 0%,
    rgba(15,12,8,0.78) 45%,
    rgba(15,12,8,0.35) 75%,
    rgba(15,12,8,0) 100%);
}
@media (max-width: 768px) {
  .hero-bg.hero-bg--rocket { background-position: 68% center; }
  .hero-bg.hero-bg--rocket::after {
    background: linear-gradient(180deg, rgba(15,12,8,0.70) 0%, rgba(15,12,8,0.82) 100%);
  }
}
/* Biogas digester hero — same treatment as rocket, positioned on the drum */
.hero-bg.hero-bg--biogas {
  background-image: url('../images/content/biogas-hero.jpg');
  background-image: -webkit-image-set(
    url('../images/content/biogas-hero.webp') type('image/webp') 1x,
    url('../images/content/biogas-hero.jpg') type('image/jpeg') 1x
  );
  background-image: image-set(
    url('../images/content/biogas-hero.webp') type('image/webp') 1x,
    url('../images/content/biogas-hero.jpg') type('image/jpeg') 1x
  );
  background-position: 65% center;
}
.hero-bg.hero-bg--biogas::after {
  background: linear-gradient(90deg,
    rgba(15,12,8,0.88) 0%,
    rgba(15,12,8,0.78) 45%,
    rgba(15,12,8,0.35) 75%,
    rgba(15,12,8,0) 100%);
}
@media (max-width: 768px) {
  .hero-bg.hero-bg--biogas { background-position: 55% center; }
  .hero-bg.hero-bg--biogas::after {
    background: linear-gradient(180deg, rgba(15,12,8,0.70) 0%, rgba(15,12,8,0.82) 100%);
  }
}

/* ========= Expandable technical detail (<details>/<summary>) ========= */
.tech-detail {
  margin: 2rem 0 2.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tech-detail > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
  transition: background 0.15s ease;
}
.tech-detail > summary::-webkit-details-marker { display: none; }
.tech-detail > summary::before {
  content: "+";
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}
.tech-detail[open] > summary::before {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--bg);
}
.tech-detail > summary:hover { background: rgba(74, 103, 65, 0.05); }
.tech-detail > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.tech-detail-body {
  padding: 0.5rem 1.75rem 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.tech-detail-body h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  color: var(--accent-dark);
}
.tech-detail-body h3:first-of-type { margin-top: 1.25rem; }
.tech-figure {
  margin: 1.25rem -1.75rem 0.5rem;
  background: var(--bg-alt);
  padding: 1rem;
  text-align: center;
}
.tech-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.tech-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-style: italic;
}
.tech-note {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  font-size: 0.95rem;
}
/* Slideshow variant — stacks .hero-slide children, cross-fades one at a time */
.hero-bg.hero-bg--slideshow { background: none; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  z-index: 0;
}
.hero-slide.is-active { opacity: 1; }
.hero .hero-inner.hero-inner--readable h1,
.hero .hero-inner.hero-inner--readable p,
.hero .hero-inner.hero-inner--readable .eyebrow {
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 6rem 0 5rem;
  max-width: 760px;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: #f1ebdf;
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-quote cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c4b99f;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-mini {
  min-height: 42vh;
  padding: 2rem 0;
}

/* Autoplay video background in hero (YouTube iframe, covers the hero area) */
.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;      /* 16:9 based on viewport width */
  min-height: 100vh;    /* cover when viewport is portrait */
  min-width: 177.78vh;  /* cover when viewport is portrait */
  border: 0;
  pointer-events: none;
}
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 12, 8, 0.28) 0%, rgba(15, 12, 8, 0.55) 100%);
  z-index: 2;
  pointer-events: none;
}

/* ---------- Feature grid (homepage cards) ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.feature-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--fg-muted); flex: 1; }
.feature-card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.feature-card-link::after {
  content: " →";
  transition: margin-left .2s;
}
.feature-card:hover .feature-card-link::after { margin-left: 4px; }

/* ---------- Two-column content ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.two-col img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: #e6e1d5; max-width: 540px; margin: 0 auto 1.5rem; }

/* ---------- Info list (rooms, activities etc.) ---------- */

.info-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.info-card .price {
  font-family: var(--font-display);
  color: var(--accent-warm);
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}
.info-card p { color: var(--fg-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-dark);
  color: #c4bcb0;
  padding: 4rem 0 1.5rem;
  font-size: 0.93rem;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.2rem;
}
.site-footer a { color: #d8cfbf; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-brand p { color: #a39a8d; margin-top: 1rem; max-width: 320px; line-height: 1.55; }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #8a8176;
  font-size: 0.85rem;
}
.footer-bottom a { color: #a39a8d; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Breadcrumb / page header ---------- */

.page-header {
  background: var(--bg-alt);
  padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 0.6rem; }
.page-header .lede {
  font-size: 1.2rem;
  color: var(--fg-muted);
  max-width: 640px;
}

/* ---------- Prose ---------- */

.prose { max-width: 720px; margin: 0 auto; }
.prose p + h2, .prose p + h3 { margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose ul li { margin-bottom: 0.35em; }

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.stack-sm > * + * { margin-top: 0.6em; }
.stack > * + * { margin-top: 1.2em; }
.stack-lg > * + * { margin-top: 2em; }

.pill {
  display: inline-block;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--bg-alt);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

/* ---------- Mobile Nav ---------- */

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: min(340px, 88vw);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.25rem 2rem;
    box-shadow: -8px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform .28s ease;
    overflow-y: auto;
    gap: 0;
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav > li > a {
    padding: 1em 0.6em;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    justify-content: space-between;
  }
  .primary-nav > li > a::after { display: none; }
  .nav-chev { transition: transform .25s ease; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.25rem 0 0.75rem 0.5rem;
    margin: 0;
  }
  .dropdown::before, .dropdown::after { display: none; }
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    transform: none;
  }
  .dropdown a {
    padding: 0.7em 0.6em;
    border-bottom: 0;
    white-space: normal;
  }
  .dropdown a::after { display: none; }
  .dropdown a:hover {
    padding-left: 0.6em;
    padding-right: 0.6em;
  }
  .dd-icon {
    width: 34px;
    height: 34px;
    padding: 8px;
  }
  .dd-title { font-size: 1rem; }
  .dd-sub { font-size: 0.78rem; }
  .has-dropdown > a::before { display: none; }
  .primary-nav > li > a.donate-btn {
    margin: 1.25rem 0.25rem 0;
    text-align: center;
    padding: 1em 1.4em;
    justify-content: center;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 99;
  }
}

/* ---------- Contact form ---------- */

.contact-form label {
  display: block;
  margin-bottom: 1.1rem;
}
.contact-form label > span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.15);
}
.contact-form textarea { resize: vertical; }

/* ---------- Gallery grid ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s;
  cursor: zoom-in;
}
.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* ---------- Video embed ---------- */

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Map embed ---------- */

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-alt);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.route-map {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
}
.route-map img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.route-map figcaption {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-top: 0.75rem;
}

/* ---------- Zoomable image (magnifier) ---------- */

.zoomable {
  position: relative;
  display: inline-block;
  cursor: zoom-in;
  max-width: 100%;
  line-height: 0;
}
.zoomable img {
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(31, 28, 23, 0.78);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  transition: opacity .2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.zoom-hint svg { width: 13px; height: 13px; }
.zoomable.is-active .zoom-hint { opacity: 0; }

.zoom-lens {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.32),
    0 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  background-repeat: no-repeat;
  background-color: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity .18s, transform .18s;
  z-index: 10;
}
.zoomable.is-active .zoom-lens {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 600px) {
  .zoom-lens { width: 160px; height: 160px; }
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--fg);
  color: var(--bg);
  border-radius: 4px;
  font-weight: 500;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--accent-warm); }

/* ========= Donate page: UPI + copy-to-clipboard ========= */
.pay-upi-id {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.pay-upi-id .pay-link {
  color: var(--accent-warm);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-warm);
}
.pay-upi-id .pay-link:hover { color: var(--accent-warm-dark); }
.pay-hint {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin: 0;
}
.pay-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.35rem 0;
}
.pay-copy {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pay-copy:hover { border-color: var(--accent); color: var(--accent); }
.pay-copy.is-copied {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(74, 103, 65, 0.08);
}
.pay-online { border-color: var(--accent); }
.pay-razorpay { margin-top: 1rem; min-height: 48px; }

/* Reusable donate CTA block — used on project pages */
.donate-block {
  margin: 2.5rem auto;
  padding: 2rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.donate-block .pay-razorpay {
  margin-top: 0;
  display: flex;
  justify-content: center;
}
.donate-block-alt {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--fg-muted);
}
.donate-block-alt a {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
}
.donate-block-alt a:hover { color: var(--accent-dark); }
