/* ==========================================================================
   Divine Inn Kumbakonam — design system
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* brand — red sampled from the Ganesha logo mark (#d00c0d), tempered */
  --brand:        #c1121f;
  --brand-dark:   #8c0d16;
  --brand-deep:   #4a0a10;
  --brand-tint:   #fdf0f0;
  --maroon:       #7a1022;

  /* green — booking actions */
  --green:        #1e8a44;
  --green-dark:   #0e5a2b;

  /* gold — Kumbakonam brass & panchaloha heritage */
  --gold:         #b8893b;
  --gold-light:   #d8b26a;
  --gold-tint:    #faf3e6;

  --ink:          #1c1613;
  --ink-soft:     #4a403a;
  --ink-faint:    #8a7d75;

  --cream:        #fbf8f3;
  --cream-deep:   #f3ede2;
  --line:         #e6ddcf;
  --white:        #ffffff;

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

  --shadow-sm: 0 1px 2px rgba(28, 22, 19, .06), 0 2px 8px rgba(28, 22, 19, .04);
  --shadow-md: 0 4px 12px rgba(28, 22, 19, .07), 0 12px 32px rgba(28, 22, 19, .07);
  --shadow-lg: 0 8px 24px rgba(28, 22, 19, .09), 0 28px 64px rgba(28, 22, 19, .12);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 78px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1240px;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* A <picture> box does not stretch on its own, so an inner img's height:100%
   resolves against an auto-height parent and falls back to the intrinsic
   ratio — which leaves gaps in any container we mean to crop to. */
.hero__slide picture,
.cta__bg picture,
.room__media picture,
.gallery__item picture { display: block; width: 100%; height: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.9rem + 3.2vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
p  { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 50%; top: 0; z-index: 200;
  transform: translate(-50%, -120%);
  background: var(--brand); color: #fff;
  padding: .75rem 1.5rem; border-radius: 0 0 8px 8px;
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --- Layout primitives -------------------------------------------------- */
.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 3rem + 7vw, 9rem); position: relative; }
/* keep anchor targets clear of the fixed header */
section[id] { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.section--tight { padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem); }
.section--cream { background: var(--cream-deep); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .86rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px;
  background: currentColor; opacity: .55;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: ""; width: 34px; height: 1px;
  background: currentColor; opacity: .55;
}
.eyebrow--light { color: var(--gold-light); }

.section-head { max-width: 62ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1.15rem; font-size: 1.05rem; color: var(--ink-soft); }

.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.65; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 2rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  border-radius: 2px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brand-dark);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover::after { transform: scaleX(1); transform-origin: left; }

.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn--ghost::after { background: #fff; }
.btn--ghost:hover { --btn-fg: var(--ink); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--outline::after { background: var(--ink); }
.btn--outline:hover { --btn-fg: #fff; }

.btn--gold { --btn-bg: var(--gold); }
.btn--gold::after { background: #9c7130; }

.btn--wa { --btn-bg: #1faa54; }
.btn--wa::after { background: #178a43; }

.btn--green { --btn-bg: var(--green); }
.btn--green::after { background: var(--green-dark); }
.btn--deepgreen { --btn-bg: var(--green-dark); }         /* hover keeps the default maroon */
.btn--maroon { --btn-bg: var(--maroon); }
.btn--maroon::after { background: var(--green-dark); }
.btn--hover-maroon::after { background: var(--maroon); }

.btn--block { width: 100%; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* --- Header ------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .45s var(--ease), box-shadow .45s var(--ease), height .45s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,12,10,.72), rgba(20,12,10,0));
  transition: opacity .4s var(--ease);
}
.header.is-stuck { background: rgba(251,248,243,.92); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }
.header.is-stuck::before { opacity: 0; }

.header .shell { display: flex; align-items: center; gap: 2rem; position: relative; }

.brand { display: flex; align-items: center; gap: .8rem; margin-right: auto; }
.brand__mark {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: #fff; border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__mark img { width: 28px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: #fff; letter-spacing: .01em; transition: color .4s var(--ease);
}
.brand__sub {
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.72); margin-top: .3rem; transition: color .4s var(--ease);
}
.header.is-stuck .brand__name { color: var(--ink); }
.header.is-stuck .brand__sub  { color: var(--brand); }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  position: relative;
  padding: .55rem .7rem;
  font-size: .92rem; letter-spacing: .05em;
  color: rgba(255,255,255,.9);
  transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .25rem;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--gold-light); }
.header.is-stuck .nav a { color: var(--ink-soft); }
.header.is-stuck .nav a:hover, .header.is-stuck .nav a.is-active { color: var(--brand); }

.header .shell { gap: 1.25rem; max-width: 1440px; }
.header__cta { padding: .85rem 1.6rem; font-size: .82rem; }

.header__social { display: flex; gap: .35rem; }
.header__social a {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.header__social a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.header__social svg { width: 14px; height: 14px; }
.header.is-stuck .header__social a { color: var(--ink-soft); border-color: var(--line); }
.header.is-stuck .header__social a:hover { color: #fff; border-color: var(--green); }

.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .3s var(--ease);
}
.burger span {
  display: block; width: 22px; height: 1.5px; background: #fff;
  position: relative; transition: background .3s var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: inherit;
  transition: transform .4s var(--ease);
}
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }
.header.is-stuck .burger span, .header.is-stuck .burger span::before, .header.is-stuck .burger span::after { background: var(--ink); }
.burger[aria-expanded="true"] span { background: transparent !important; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile drawer ------------------------------------------------------ */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--brand-deep);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--nav-h) var(--gutter) 2rem;
  clip-path: circle(0% at calc(100% - 3rem) 2.4rem);
  transition: clip-path .7s var(--ease);
  visibility: hidden;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 3rem) 2.4rem); visibility: visible; }
.drawer::after {
  content: ""; position: absolute; right: -12%; bottom: -18%;
  width: 60vmin; height: 60vmin;
  background: radial-gradient(circle, rgba(216,178,106,.16), transparent 68%);
  pointer-events: none;
}
.drawer nav { display: flex; flex-direction: column; gap: .15rem; }
.drawer nav a {
  font-family: var(--font-display); font-size: clamp(1.7rem, 6vw, 2.5rem);
  color: rgba(255,255,255,.9);
  padding: .3rem 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s var(--ease);
}
.drawer.is-open nav a { opacity: 1; transform: none; }
.drawer nav a:hover { color: var(--gold-light); }
.drawer__foot {
  margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-direction: column; gap: .9rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s .35s var(--ease), transform .5s .35s var(--ease);
}
.drawer.is-open .drawer__foot { opacity: 1; transform: none; }
.drawer__foot a { color: rgba(255,255,255,.82); font-size: .95rem; display: flex; align-items: center; gap: .7rem; }
.drawer__foot svg { width: 17px; height: 17px; color: var(--gold-light); flex: none; }
.drawer__social { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.drawer__social a { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.drawer__social a:hover { color: var(--gold-light); }

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.hero__stage { position: absolute; inset: 0; z-index: -2; background: var(--brand-deep); }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { animation: kenburns 8.5s linear forwards; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.14); } }

/* Two scrims. The horizontal one does the real work — it gives the headline a
   dark bed on the left whatever the photo is doing, while clearing off by the
   midpoint so the right-hand two-fifths of the picture stays bright. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(20,8,7,.86) 0%, rgba(20,8,7,.66) 26%,
                              rgba(20,8,7,.2) 54%, rgba(20,8,7,0) 76%),
    linear-gradient(to top,   rgba(20,8,7,.72) 0%, rgba(20,8,7,.14) 44%,
                              rgba(20,8,7,.3) 100%);
}

/* Narrow viewports put the copy across the full width, so the side scrim is
   no use — fall back to an even vertical wash. */
@media (max-width: 940px) {
  .hero::after {
    background: linear-gradient(to top, rgba(20,8,7,.88) 0%, rgba(20,8,7,.66) 52%, rgba(20,8,7,.55) 100%);
  }
}

.hero__inner { padding-bottom: clamp(3.5rem, 8vh, 5.5rem); padding-top: calc(var(--nav-h) + 2rem); }
.hero__content { max-width: 40rem; }
.hero__place { font-size: clamp(.9rem, .8rem + .35vw, 1.1rem); color: #f3d38f; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 1.7rem + 2.8vw, 4.1rem); }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero__lede { color: rgba(255,255,255,.88); margin-top: 1.25rem; max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }

.hero__facts {
  display: grid; grid-template-columns: repeat(3, auto);
  justify-content: start; gap: 1.4rem clamp(1.75rem, 4vw, 3.25rem);
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero__fact strong {
  display: block; font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 500; color: #fff; line-height: 1;
}
.hero__fact span {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-top: .5rem; display: block;
}

.hero__dots { position: absolute; right: var(--gutter); bottom: clamp(4rem, 10vh, 7rem); display: flex; flex-direction: column; gap: .75rem; z-index: 2; }
.hero__dots button {
  width: 2px; height: 26px; background: rgba(255,255,255,.32);
  transition: background .4s var(--ease), height .4s var(--ease);
}
.hero__dots button.is-active { background: var(--gold-light); height: 40px; }


/* --- Reveal animations -------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

.hero [data-hero] { opacity: 0; transform: translateY(26px); animation: heroIn 1s var(--ease) forwards; animation-delay: var(--delay, 0ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .hero [data-hero] { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero__slide.is-active img { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* --- Intro / about ------------------------------------------------------ */
.intro__grid {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .intro__grid { grid-template-columns: 1.05fr 1fr; } }

.intro__media { position: relative; isolation: isolate; }
.intro__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
/* offset gold frame, peeking out at the top-right */
.intro__media::before {
  content: ""; position: absolute;
  top: -18px; right: -18px; bottom: 18px; left: 18px;
  border: 1px solid var(--gold); opacity: .55; border-radius: 3px; z-index: 0;
}
.intro__badge {
  position: absolute; left: -1.5rem; bottom: -1.75rem;
  background: var(--brand); color: #fff;
  padding: 1.4rem 1.6rem; border-radius: 3px;
  box-shadow: var(--shadow-md); max-width: 200px;
}
.intro__badge strong { font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; line-height: 1; display: block; }
.intro__badge span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .82; display: block; margin-top: .4rem; }

.intro__body > * + * { margin-top: 1.25rem; }
.intro__points { display: grid; gap: 1.1rem; margin-top: 2rem; }
.intro__point { display: flex; gap: 1rem; align-items: flex-start; }
.intro__point svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: .3rem; }
.intro__point h4 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.intro__point p { font-size: .92rem; margin-top: .15rem; }

/* --- Rooms -------------------------------------------------------------- */
.rooms__grid { display: grid; gap: 1.75rem; margin: 3.5rem auto 0; max-width: 940px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .rooms__grid { grid-template-columns: repeat(2, 1fr); } }

.room {
  background: #fff; border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  position: relative;
}
.room:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.room--feature { box-shadow: 0 0 0 1.5px var(--gold), var(--shadow-md); }

.room__media { position: relative; overflow: hidden; aspect-ratio: 16/11; }
.room__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.room:hover .room__media img { transform: scale(1.07); }
.room__tag {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--gold); color: #fff;
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 2px;
}

.room__body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.room__body > h3 { margin-bottom: .35rem; }
.room__note { font-size: .92rem; color: var(--ink-soft); }

.room__price { display: flex; align-items: baseline; gap: .4rem; margin: 1.25rem 0 1rem; }
.room__price b { font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; color: var(--brand); line-height: 1; }
.room__price span { font-size: .8rem; color: var(--ink-faint); }
.room__price .room__poa { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); }

.room__rates { border-top: 1px solid var(--line); margin-top: auto; padding-top: 1rem; }
.room__rates li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .88rem; border-bottom: 1px dashed var(--line); }
.room__rates li:last-child { border-bottom: 0; }
.room__rates dt, .room__rates span:first-child { color: var(--ink-faint); }
.room__rates b { font-weight: 600; color: var(--ink); }
.room__body .btn { margin-top: 1.5rem; }

ul { list-style: none; padding: 0; }

.rooms__foot {
  margin: 2.5rem auto 0; max-width: 940px; padding: 1.4rem 1.6rem;
  background: var(--gold-tint); border-left: 3px solid var(--gold);
  font-size: .92rem; border-radius: 2px;
}
.rooms__foot > strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); margin-bottom: .6rem; }
.rooms__foot ul { display: grid; gap: .45rem; }
.rooms__foot b { color: var(--ink); font-weight: 600; }

/* --- Split feature (restaurant / hall / temple) ------------------------- */
.split { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 940px) {
  .split { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .split--flip .split__media { order: 2; }

  /* let the photo column match the height of the copy beside it rather than
     floating in the middle of it */
  .split__media { display: flex; }
  .split__media > .slider { flex: 1; display: flex; flex-direction: column; }
  .split__media > .slider .slider__track { flex: 1; }
  .split__media > .slider img { height: 100%; aspect-ratio: auto; min-height: 420px; }
  /* align-items:flex-start keeps the buttons at their natural width */
  .split__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .split__body > * { width: 100%; }
  .split__body > .btn { width: auto; }
}
.split__body > * + * { margin-top: 1.25rem; }
.split__body .btn { margin-top: .5rem; }

.split__list { display: grid; gap: .7rem; margin-top: 1.75rem; }
.split__list li { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; }
.split__list svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: .35rem; }
.split__list b { font-weight: 600; color: var(--ink); }
.band .split__list b { color: #fff; }

/* image slider used in split sections */
.slider { position: relative; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--cream-deep); }
.slider__track { display: grid; }
.slider__track picture { grid-area: 1/1; opacity: 0; transition: opacity .8s var(--ease); }
.slider__track picture.is-active { opacity: 1; }
.slider img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
/* single-image feature (temple) — taller crop so it balances a tall text column */
.slider--tall img { aspect-ratio: 4/3.3; object-position: center 42%; }
.slider__nav { position: absolute; inset: auto 1rem 1rem auto; display: flex; gap: .4rem; }
.slider__nav button {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(255,255,255,.9); color: var(--ink);
  border-radius: 50%; box-shadow: var(--shadow-sm);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.slider__nav button:hover { background: var(--brand); color: #fff; transform: scale(1.06); }
.slider__nav svg { width: 15px; height: 15px; }
.slider__count {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(28,22,19,.6); color: #fff; backdrop-filter: blur(6px);
  font-size: .7rem; letter-spacing: .1em; padding: .4rem .75rem; border-radius: 2px;
}

/* --- Dark band ---------------------------------------------------------- */
.band { background: var(--brand-deep); color: rgba(255,255,255,.82); position: relative; overflow: hidden; }
.band h2, .band h3 { color: #fff; }
.band::before {
  content: ""; position: absolute; top: -30%; left: -10%;
  width: 55vmin; height: 55vmin;
  background: radial-gradient(circle, rgba(216,178,106,.14), transparent 68%);
  pointer-events: none;
}
.band .split__list svg { color: var(--gold-light); }

.stats { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); margin-top: 2.5rem; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); font-weight: 500; color: var(--gold-light); line-height: 1; }
.stats--words strong { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.95rem); }
.stat span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .68; margin-top: .55rem; display: block; }

/* --- Amenities ---------------------------------------------------------- */
/* Hairlines live on the cards, not on a container background, so a row that
   does not fill completely leaves no orphaned coloured cells. 15 amenities
   divide exactly into the 5- and 3-column steps. */
.amenities__grid {
  display: grid; gap: 1px; margin-top: 3.5rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 620px)  { .amenities__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .amenities__grid { grid-template-columns: repeat(5, 1fr); } }

.amenity {
  background: var(--cream);
  box-shadow: 0 0 0 1px var(--line);
  padding: 1.9rem 1.4rem;
  display: flex; flex-direction: column; gap: .85rem;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.amenity:hover { background: #fff; box-shadow: 0 0 0 1px var(--gold), var(--shadow-sm); position: relative; z-index: 1; }
.amenity svg { width: 26px; height: 26px; color: var(--brand); transition: transform .5s var(--ease); }
.amenity:hover svg { transform: translateY(-3px) scale(1.08); }
.amenity span { font-size: .95rem; font-weight: 500; color: var(--ink); line-height: 1.35; }
.amenity small { font-size: .8rem; color: var(--ink-faint); margin-top: -.6rem; line-height: 1.4; }

/* --- Testimonials ------------------------------------------------------- */
.quotes { display: grid; gap: 1.5rem; margin-top: 3.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: #fff; padding: 2.25rem 1.9rem; border-radius: 4px;
  box-shadow: var(--shadow-sm); position: relative;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.quote:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.quote::before {
  content: "\201C"; position: absolute; top: .35rem; right: 1.4rem;
  font-family: var(--font-display); font-size: 5.5rem; line-height: 1;
  color: var(--brand); opacity: .11;
}
.quote__stars { display: flex; gap: .18rem; color: var(--gold); margin-bottom: 1rem; }
.quote__stars svg { width: 15px; height: 15px; }
.quote blockquote { font-size: 1rem; line-height: 1.7; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: .9rem; margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.quote figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.quote cite { font-style: normal; font-weight: 600; color: var(--ink); font-size: .92rem; display: block; }
.quote figcaption small { color: var(--ink-faint); font-size: .78rem; }

/* --- Gallery ------------------------------------------------------------ */
.gallery {
  display: grid; gap: 12px; margin-top: 3.5rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 145px;
  grid-auto-flow: dense;   /* back-fills any hole the spans would leave */
}
@media (min-width: 700px)  { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; } }
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 172px; } }

.gallery__item {
  position: relative; overflow: hidden; border-radius: 3px;
  background: var(--cream-deep); cursor: pointer;
  grid-column: span 2; grid-row: span 1;
}
/* Feature tiles. Unit maths at 6 columns: hero band 4+2 = 6 (2 rows),
   then 8 tiles x 2 + 2 tiles x 4 = 24 = exactly 4 full rows. */
.gallery__item--hero { grid-column: span 2; grid-row: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

@media (min-width: 700px) {
  .gallery__item--hero { grid-column: span 4; grid-row: span 2; }
  .gallery__item--wide { grid-column: span 4; }
}
@media (min-width: 1040px) {
  .gallery__item--hero { grid-column: span 4; grid-row: span 2; }
  .gallery__item--tall { grid-column: span 2; grid-row: span 2; }
  .gallery__item--wide { grid-column: span 4; grid-row: span 1; }
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24,10,8,.72), transparent 55%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item figcaption {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 1;
  color: #fff; font-size: .82rem; letter-spacing: .05em;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.gallery__item:hover figcaption { opacity: 1; transform: none; }

/* --- Lightbox ----------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16,8,7,.94); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: clamp(1rem, 5vw, 4rem);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 3px; transform: scale(.96); transition: transform .45s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__cap { color: rgba(255,255,255,.72); font-size: .85rem; text-align: center; margin-top: 1.1rem; letter-spacing: .06em; }
.lightbox button {
  position: absolute; color: #fff;
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.1);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.lightbox button:hover { background: var(--brand); transform: scale(1.07); }
.lightbox svg { width: 20px; height: 20px; }
.lightbox__close { top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); }
.lightbox__prev  { left: clamp(.5rem,2vw,2rem);  top: 50%; margin-top: -26px; }
.lightbox__next  { right: clamp(.5rem,2vw,2rem); top: 50%; margin-top: -26px; }

/* --- Contact ------------------------------------------------------------ */
.contact__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 940px) { .contact__grid { grid-template-columns: 1fr 1.15fr; } }

.contact__cards { display: grid; gap: 1rem; margin-top: 2.25rem; }
.contact__card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: #fff; padding: 1.4rem 1.5rem; border-radius: 3px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.contact__card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.contact__card svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: .3rem; }
.contact__card h4 { font-family: var(--font-body); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
.contact__card p, .contact__card a { display: block; color: var(--ink); font-size: 1rem; margin-top: .3rem; line-height: 1.6; }
.contact__card a:hover { color: var(--brand); }

.contact__map { display: flex; flex-direction: column; gap: 1.25rem; }
.contact__find h4 { font-family: var(--font-body); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
.contact__find p { color: var(--ink); margin-top: .3rem; }
.contact__card strong, .contact__find strong { font-weight: 600; color: var(--ink); }
.map { border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-lg); min-height: 340px; flex: 1; background: var(--cream-deep); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* --- Booking CTA band --------------------------------------------------- */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(74,10,16,.86), rgba(24,10,8,.9)); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.8); max-width: 54ch; margin: 1.25rem auto 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.25rem; }

/* --- Footer ------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.62); padding-block: clamp(3.5rem, 6vw, 5rem) 0; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px)  { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.footer h4 { color: #fff; font-family: var(--font-body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin-bottom: 1.25rem; }
.footer__brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.footer__brand img { width: 42px; background: #fff; border-radius: 50%; padding: 7px; }
.footer__brand b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; }
.footer p { font-size: .92rem; line-height: 1.75; }
.footer ul { display: grid; gap: .6rem; }
.footer li a, .footer address a { font-size: .92rem; transition: color .3s var(--ease), padding .3s var(--ease); }
.footer li a:hover { color: var(--gold-light); padding-left: 5px; }
.footer address { font-style: normal; font-size: .92rem; line-height: 1.8; }
.footer address a:hover { color: var(--gold-light); }
.footer__label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85); }

.social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16); border-radius: 50%;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), color .35s var(--ease);
}
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }
.social svg { width: 15px; height: 15px; }

.footer__bar {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.6rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between; align-items: center;
  font-size: .8rem;
}
.footer__bar a:hover { color: var(--gold-light); }

/* --- Floating actions --------------------------------------------------- */
.float { position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 90; display: grid; gap: .7rem; }
.float a, .float button {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  position: relative;
}
.float a:hover, .float button:hover { transform: scale(1.09) translateY(-2px); box-shadow: var(--shadow-lg); }
.float svg { width: 25px; height: 25px; }
.float__wa { background: #25d366; }
.float__call { background: var(--brand); }
.float__wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 70%,100% { transform: scale(1.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .float__wa::after { animation: none; opacity: 0; } }

.totop {
  position: fixed; left: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 90;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--ink); color: #fff; border-radius: 50%;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s, background .3s;
}
.totop.is-shown { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--brand); }
.totop svg { width: 17px; height: 17px; }

/* --- Responsive --------------------------------------------------------- */
/* the larger nav type needs more room; socials drop out first, then the nav */
@media (max-width: 1300px) {
  .header__social { display: none; }
}
@media (max-width: 1180px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
}
@media (max-width: 600px) {
  :root { --nav-h: 68px; }
  /* 6 facts read better as a 2x3 block on phones */
  .hero__facts { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; }
  .intro__badge { left: 0; bottom: -1.25rem; padding: 1.1rem 1.25rem; }
  .intro__media::before { display: none; }
  .hero__dots { display: none; }
  .float a, .float button { width: 50px; height: 50px; }
  .totop { display: none; }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .header, .drawer, .float, .totop, .hero__dots, .slider__nav { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}
