/* =========================================================================
   The Sun Resort Bandhavgarh: Design System
   Theme reference: bandhavgarh-national-park.com (forest green + warm stone)
   with the logo's sun gold as the single accent.

   - Text hierarchy : kicker (sun mark) → heading → lead → body → meta
   - Font           : Plus Jakarta Sans only; hierarchy through size, weight and colour
   - Colour         : ~60% white/stone · 30% forest green · 10% sun gold
   - Repetition     : petal-sun kicker + horizon sweep (both from the logo icon), one image radius, pill buttons
   ========================================================================= */

:root {
  /* ---- Colour: primitives ---- */
  --green-950: #12291B;
  --green-900: #183823;
  --green-800: #22492C;   /* reference primary */
  --green-600: #3D6B47;
  --green-100: #E9F0EA;
  --sun-500:   #E3A72F;   /* logo sun: the accent */
  --sun-600:   #B9821A;   /* accent on light backgrounds */
  --sun-300:   #F2C66A;   /* accent on dark backgrounds */
  --sun-100:   #FBF2DE;
  --logo-sun:   #FFCB29;   /* logo colours: used only in brand marks */
  --logo-lime:  #AACF46;
  --logo-green: #2CB582;
  --logo-blue:  #29A9E0;
  --stone-100: #F1EEE9;   /* reference warm stone */
  --stone-200: #E6E1D8;
  --white:     #FFFFFF;
  --ink-900:   #18261D;
  --ink-600:   #5A665F;
  --ink-400:   #8A938D;

  /* ---- Colour: roles ---- */
  --heading:       var(--green-800);
  --text:          var(--ink-900);
  --text-muted:    var(--ink-600);
  --line:          #E4E0D8;
  --on-dark:       #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, .74);
  --line-dark:     rgba(255, 255, 255, .16);

  /* ---- Type ---- */
  --f-sans:   "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  
  --fs-h1:     clamp(2.8rem, 1.5rem + 4.8vw, 5.8rem);
  --fs-h2:     clamp(2.1rem, 1.5rem + 2.2vw, 3.4rem);
  --fs-h3:     clamp(1.2rem, 1.1rem + .4vw, 1.45rem);
  --fs-lead:   clamp(1.08rem, 1rem + .3vw, 1.25rem);
  --fs-body:   1.0625rem;
  --fs-kicker: .95rem;

  /* ---- Space ---- */
  --space-section: clamp(5rem, 3.2rem + 5.5vw, 8.5rem);
  --space-head:    clamp(2.5rem, 2rem + 2vw, 4rem);

  /* ---- Shape ---- */
  --r-sm:   12px;
  --r-md:   18px;
  --r-img:  24px;     /* one image radius, everywhere */
  --r-lg:   28px;
  --r-pill: 999px;
  
  /* ---- Depth & motion ---- */
  --shadow-1: 0 12px 30px -18px rgba(18, 41, 27, .35);
  --shadow-2: 0 30px 60px -30px rgba(18, 41, 27, .45);
  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --header-h: 84px;
}

.container, .container-xl { --bs-gutter-x: 2rem; }
@media (min-width: 1400px) { .container-xl { max-width: 1280px; } }

/* ============================== Base ============================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--sun-500); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: .6rem 1rem; background: var(--sun-500); color: var(--green-950); font-weight: 600; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =========================== Typography =========================== */
/* Kicker with the logo's petal sun */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--sun-600);
}
.kicker::before {
  content: "";
  width: 20px; height: 20px;
  flex-shrink: 0;
  background: var(--logo-sun);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.8 15.0 Q3.3 12.4 -2.2 15.0 Q3.3 17.6 7.8 15.0ZM9.0 12.0 Q7.7 7.0 2.0 5.0 Q4.0 10.7 9.0 12.0ZM12.0 10.8 Q14.6 6.3 12.0 0.8 Q9.4 6.3 12.0 10.8ZM15.0 12.0 Q20.0 10.7 22.0 5.0 Q16.3 7.0 15.0 12.0ZM16.2 15.0 Q20.7 17.6 26.2 15.0 Q20.7 12.4 16.2 15.0Z'/%3E%3Ccircle cx='12' cy='15' r='2.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.8 15.0 Q3.3 12.4 -2.2 15.0 Q3.3 17.6 7.8 15.0ZM9.0 12.0 Q7.7 7.0 2.0 5.0 Q4.0 10.7 9.0 12.0ZM12.0 10.8 Q14.6 6.3 12.0 0.8 Q9.4 6.3 12.0 10.8ZM15.0 12.0 Q20.0 10.7 22.0 5.0 Q16.3 7.0 15.0 12.0ZM16.2 15.0 Q20.7 17.6 26.2 15.0 Q20.7 12.4 16.2 15.0Z'/%3E%3Ccircle cx='12' cy='15' r='2.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.on-dark .kicker { color: var(--sun-300); }

/* Headings: one family, one colour, refined weight */
.h1, .h2 {
  font-family: var(--f-sans);
  color: var(--heading);
  text-wrap: balance;
}
.h1 { font-size: var(--fs-h1); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }
.h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; letter-spacing: -.038em; max-width: 16ch; }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; color: var(--heading); }
.on-dark .h1, .on-dark .h2, .on-dark .h3 { color: var(--on-dark); }

p, li, dd { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--text-muted); max-width: 36rem; }
.muted { color: var(--text-muted); }
.on-dark .lead, .on-dark .muted { color: var(--on-dark-muted); }

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 54px;
  padding: .9rem 1.75rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--sun   { background: var(--sun-500); color: var(--green-950); }
.btn--sun:hover { background: #F0B947; box-shadow: 0 12px 26px -12px rgba(227, 167, 47, .7); }
.btn--green { background: var(--green-800); color: var(--white); }
.btn--green:hover { background: var(--green-600); }
.btn--line  { border-color: var(--green-800); color: var(--green-800); }
.btn--line:hover { background: var(--green-800); color: var(--white); }
.btn--glass { border-color: rgba(255, 255, 255, .55); color: var(--white); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn--glass:hover { background: var(--white); color: var(--green-800); border-color: var(--white); }
.btn--sm { min-height: 46px; padding: .65rem 1.35rem; font-size: .88rem; }
.btn--block { width: 100%; }

.link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--green-800);
  border-bottom: 1.5px solid var(--sun-500);
  padding-bottom: .2rem;
}
.link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.on-dark .link { color: var(--white); }

.arrow-btn {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--green-800);
  color: var(--green-800);
  transition: background .3s, color .3s, border-color .3s;
}
.arrow-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.arrow-btn:hover { background: var(--green-800); color: var(--white); }
.on-dark .arrow-btn { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.on-dark .arrow-btn:hover { background: var(--white); color: var(--green-800); border-color: var(--white); }
.arrow-btn:disabled { opacity: .35; pointer-events: none; }
.arrows { display: flex; gap: .6rem; }

/* ========================= Section system ========================= */
.section { position: relative; padding-block: var(--space-section); }
.section--alt  { background: var(--stone-100); }
.section--dark { background: var(--green-800); color: var(--on-dark); }

.head { display: grid; gap: 1.25rem 4rem; margin-bottom: var(--space-head); }
@media (min-width: 992px) {
  .head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
  .head--split > :last-child { justify-self: end; }
}
.head--center { text-align: center; justify-items: center; }
.head__side { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }

/* One clean image treatment */
.frame { overflow: hidden; border-radius: var(--r-img); background: var(--stone-200); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.frame:hover img { transform: scale(1.04); }

/* ========================= Reveal motion ========================= */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
