/* ============================================================
   RISHIKESH YOGPEETH — style.css
   Design tokens, base styles, typography, shared utilities.
   Load order: style.css → components.css → responsive.css
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Brand palette */
  --ryp-primary:      #223A31;   /* Deep Spruce — cool formal green */
  --ryp-secondary:    #4E6B5C;   /* Eucalyptus */
  --ryp-bg:           #FAF8F4;   /* Porcelain */
  --ryp-card:         #FFFFFF;   /* White marble */
  --ryp-accent:       #B04A31;   /* Burnt Sienna */
  --ryp-accent-dark:  #8F3B26;   /* Deep Sienna */
  --ryp-body:         #23241F;   /* Charcoal */
  --ryp-muted:        #6B6F66;   /* Stone Gray */
  --ryp-line:         #E5E2D9;   /* Travertine hairline */
  --ryp-open:         #4F8A6D;   /* Verdigris — availability */
  --ryp-text:         #ffffff;
  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Karla', -apple-system, 'Segoe UI', sans-serif;

  /* Rhythm */
  --radius:      14px;
  --radius-lg:   22px;
  --section-pad: 6rem;
  --header-h:    74px;

  /* iPhone 15+ safe areas (0 on other devices) */
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left, 0px);
  --safe-right:  env(safe-area-inset-right, 0px);

  /* Bootstrap variable bridge */
  --bs-body-bg:          var(--ryp-bg);
  --bs-body-color:       var(--ryp-body);
  --bs-body-font-family: var(--font-body);
  --bs-link-color:       var(--ryp-secondary);
  --bs-link-hover-color: var(--ryp-accent-dark);
  --bs-border-color:     var(--ryp-line);
}

.btn-accent { color: #FFFFFF; }
.btn-accent:hover, .btn-accent:focus { color: #FFFFFF; }

/* ---------- Rules with hardcoded marigold tints → sienna tints */
.ph::before {
  background:
    radial-gradient(ellipse 60% 45% at 25% 105%, rgba(176, 74, 49, .30), transparent),
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(255, 255, 255, .05) 34px 35px);
}
.final-cta::before {
  background: radial-gradient(ellipse 55% 60% at 80% 110%, rgba(176, 74, 49, .18), transparent);
}
.accordion { --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(176, 74, 49, .4); }
.path-node.is-here .path-disc { box-shadow: 0 0 0 6px rgba(176, 74, 49, .22); }
.save-row.is-total { background: rgba(176, 74, 49, .08); }
.room-card.is-featured { box-shadow: 0 14px 34px rgba(176, 74, 49, .12); }
.faq-nav a:hover { background: rgba(176, 74, 49, .07); }

/* ---------- Availability chips: verdigris / sienna */
.chip-open { background: rgba(79, 138, 109, .13); color: #38634E; }
.chip-soon { background: rgba(176, 74, 49, .12); color: var(--ryp-accent-dark); }

/* ---------- Shadows: cool stone, very restrained (palace formality) */
.course-card:hover, .pick-card:hover, .dur-card:hover, .post-card:hover, .about-tile:hover {
  box-shadow: 0 14px 36px rgba(35, 36, 31, .10);
}

/* ---------- Dark bands: deep spruce, minimal gradient — formal flatness */
.final-cta { background: linear-gradient(150deg, #35544A, #223A31); }

/* ---------- Palace refinements: crisper hairlines, quieter radii */
.trustbar, .band-card .why-card, .course-card, .review-card {
  border-color: var(--ryp-line);
}

/* ---------- 2. BASE ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;           /* iOS: no auto text inflation */
}
body {
  background: var(--ryp-bg);
  color: var(--ryp-body);
  font-size: 1.0625rem;                      /* 17px — comfortable on 390–430px */
  line-height: 1.6;
  -webkit-tap-highlight-color: #afc1b5;  /* iOS: no grey tap flash */
  overflow-x: hidden;                        /* guard: no horizontal scroll */
}
img, svg { max-width: 100%; height: auto; }
:focus-visible {
  outline: 3px solid var(--ryp-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; z-index: 2000;
  background: var(--ryp-primary); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4, .brand {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ryp-primary);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.display-title { font-size: clamp(2.35rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ryp-accent-dark);
  margin-bottom: .9rem;
}
.eyebrow-light { color: var(--ryp-text);; }
.eyebrow-gold  { color: var(--ryp-text); }
.lede {
  color: var(--ryp-muted);
  font-size: 1.1rem;
  max-width: 640px;
}
.lede-light   { color: #B9C7BC; }
.text-muted-2 { color: var(--ryp-muted); }
.link-forest {
  color: var(--ryp-secondary); font-weight: 700; text-decoration: none;
}
.link-forest:hover { color: var(--ryp-accent-dark); }

/* ---------- 4. LAYOUT UTILITIES ---------- */
.section-pad    { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section-pad-sm { padding-top: calc(var(--section-pad) * .5); padding-bottom: calc(var(--section-pad) * .5); }
.section-head   { max-width: 720px; margin: 0 auto 3rem; }
.section-head .lede { margin-left: auto; margin-right: auto; }
.band-card   { background: var(--ryp-card); border-top: 1px solid var(--ryp-line); border-bottom: 1px solid var(--ryp-line); }
.band-forest { background: var(--ryp-primary); }
.band-forest h2, .band-forest h3 { color: #fff; }

/* ---------- 5. BUTTONS ---------- */
.btn { font-weight: 700; border-radius: 999px; min-height: 44px; /* iOS touch target */ display: inline-flex; align-items: center; justify-content: center; }
.btn-accent {
  background: var(--ryp-accent-dark); border: 2px solid var(--ryp-accent-dark);
  color: var(--ryp-bg);
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--ryp-accent); border-color: var(--ryp-accent); color: #fff;
}
.btn-forest {
  background: var(--ryp-primary); border: 2px solid var(--ryp-primary); color: #fff;
}
.btn-forest:hover { background: var(--ryp-secondary); border-color: var(--ryp-secondary); color: #fff; }
.btn-outline-forest {
  border: 2px solid var(--ryp-primary); color: var(--ryp-primary); background: transparent;
}
.btn-outline-forest:hover { background: var(--ryp-primary); color: #fff; }
.btn-outline-light { border-width: 2px; }
.btn-lg-cta { padding: .85rem 1.9rem; font-size: .98rem; }
.btn-nav    { padding: .5rem 1.35rem; font-size: .9rem; }

/* ---------- 6. PHOTO PLACEHOLDERS ----------
   Swap each <figure class="ph"> for a real <img loading="lazy"> in production.
   The gradient stands in so layout can be reviewed before photography. */
.ph {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(140deg, var(--ryp-secondary), var(--ryp-primary));
}
.ph::before {
  content: ""; position: absolute; inset: 0; opacity: .28;
  background:
    radial-gradient(ellipse 60% 45% at 25% 105%, rgba(227,154,46,.4), transparent),
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(255,255,255,.05) 34px 35px);
}
.ph-label {
  position: relative;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  padding: .8rem 1rem;
}

/* ---------- 7. REVEAL-ON-SCROLL (animations.js) ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Ensure the offcanvas drawer takes full viewport height */
.offcanvas.mobile-menu {
  height: 100dvh !important; /* dvh handles mobile browser address bars better than vh */
  display: flex !important;
  flex-direction: column !important;
}

/* Allow body to scroll freely and add bottom clearance */
.offcanvas.mobile-menu .offcanvas-body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  max-height: none !important; /* Remove max-height constraint */
  padding-bottom: 3.5rem !important; /* Adds extra spacing below the bottom buttons */
  -webkit-overflow-scrolling: touch;
}