/* ==========================================================================
   Kamagiri Nivas — theme stylesheet
   Design language follows the client-approved Palatio reference:
   dark charcoal ground, high-contrast display serif, warm tan accent,
   terracotta call-to-action, subtle damask pattern overlay.

   Section order in this file mirrors the order sections appear on the page,
   so it maps 1:1 onto WordPress template parts later.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ground */
  --c-bg:          #181a1c;  /* page background */
  --c-bg-alt:      #252529;  /* alternating band */
  --c-bg-deep:     #0f1114;  /* deepest band / footer */
  --c-bg-raise:    #1f2124;  /* cards sitting on --c-bg */

  /* Ink */
  --c-text:        #c6c2be;  /* body copy */
  --c-heading:     #f9efed;  /* headings, near-white warm */
  --c-muted:       #8b8783;  /* captions, meta */

  /* Brand */
  --c-accent:      #dea97d;  /* warm tan — eyebrows, rules, links */
  --c-accent-soft: #b8916f;
  --c-cta:         #8f423c;  /* terracotta — primary buttons */
  --c-cta-hover:   #a24e47;

  /* Lines */
  --c-line:        rgba(222, 169, 125, 0.22);
  --c-line-faint:  rgba(255, 255, 255, 0.08);

  /* Type */
  --f-display: "Playfair Display", "Times New Roman", serif;
  --f-body:    "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --shell:       1320px;  /* max content width */
  --gutter:      clamp(20px, 5vw, 64px);
  --section-y:   clamp(72px, 10vw, 150px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

/* Content images ship as <picture> (WebP first, JPEG fallback). `display:
   contents` drops the wrapper's own box, so every rule further down still
   sees the <img> as a direct child — including the grid spans and the
   absolutely positioned hero/banner layers. */
picture { display: contents; }
/* With the wrapper gone, <source> would otherwise become a layout box of its
   own — and a grid item inside .room-row__media. It must never render. */
source { display: none; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--c-heading);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.3vw, 1.95rem); }
h4 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

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

/* Browsers give blockquote/figure a 40px inline margin — it squeezes the
   testimonial copy into a narrow column. Reset it. */
blockquote, figure { margin: 0; }

/* Anchor targets sit under the fixed header without this. */
[id] { scroll-margin-top: 100px; }

::selection { background: var(--c-accent); color: #181a1c; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--c-accent);
  color: #181a1c;
  padding: 12px 20px;
  font-size: 0.85rem;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--alt  { background: var(--c-bg-alt); }
.section--deep { background: var(--c-bg-deep); }

/* Damask pattern wash — the reference theme's signature texture.
   Inline SVG so there is no extra request and it tints with the palette. */
.section--pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23dea97d' stroke-opacity='0.07' stroke-width='1'%3E%3Cpath d='M45 8c9 10 16 20 16 29S54 66 45 76 29 46 29 37 36 18 45 8z'/%3E%3Ccircle cx='45' cy='42' r='7'/%3E%3Cpath d='M0 42c9-10 16-20 16-29M90 42c-9-10-16-20-16-29'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 90px 90px;
}
.section--pattern > * { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   4. Typographic components
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 18px;
  display: block;
}

.lead {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  max-width: 62ch;
  color: var(--c-text);
}

.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* Thin ornamental rule with a centred diamond */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 22px;
}
.rule::before, .rule::after {
  content: "";
  height: 1px;
  width: clamp(36px, 8vw, 88px);
  background: linear-gradient(90deg, transparent, var(--c-accent));
}
.rule::after { background: linear-gradient(90deg, var(--c-accent), transparent); }
.rule span {
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--c-accent);
}

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 15px 38px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease);
}

.btn--primary {
  background: var(--c-cta);
  color: #f9efed;
}
.btn--primary:hover { background: var(--c-cta-hover); }

.btn--ghost {
  background: transparent;
  color: var(--c-heading);
  border-color: var(--c-line);
}
.btn--ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* Arrow link — "EXPLORE ROOMS →" pattern from the content deck */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-line);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.arrow-link span { transition: transform 0.35s var(--ease); }
.arrow-link:hover { color: var(--c-heading); border-color: var(--c-accent); }
.arrow-link:hover span { transform: translateX(6px); }

/* --------------------------------------------------------------------------
   6. Site header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 22px;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.site-header.is-stuck {
  background: rgba(15, 17, 20, 0.94);
  backdrop-filter: blur(10px);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--c-line-faint);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo — PLACEHOLDER. Swap .logo for an <img> when the real file arrives. */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--c-heading);
}
.logo__mark {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: 0.06em;
}
.logo__sub {
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-top: 6px;
}
.logo img { height: clamp(40px, 4.6vw, 56px); width: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  font-family: var(--f-display);
  font-size: 1.02rem;
  color: var(--c-heading);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

.header-cta { display: inline-block; }

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 10px;
  width: 24px; height: 1.5px;
  background: var(--c-heading);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--c-bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--f-display);
  font-size: 1.7rem;
  color: var(--c-heading);
}
.mobile-nav a:hover { color: var(--c-accent); }

/* --------------------------------------------------------------------------
   7. Hero slider
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero__slide.is-active { opacity: 1; }

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Slow Ken Burns drift; only runs on the visible slide */
  transform: scale(1.06);
}

.hero__slide.is-active img { animation: kenburns 9s var(--ease) forwards; }

@keyframes kenburns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.14); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  /* Two layers: a wedge that anchors the copy on the left whatever the photo
     is doing, plus the top/bottom falloff for the header and the dots. */
  background:
    linear-gradient(100deg, rgba(15,17,20,0.90) 0%,  rgba(15,17,20,0.66) 32%,
                            rgba(15,17,20,0.12) 66%, rgba(15,17,20,0)    100%),
    linear-gradient(180deg, rgba(15,17,20,0.62) 0%,  rgba(15,17,20,0.18) 40%,
                            rgba(15,17,20,0.80) 100%);
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero__copy { max-width: 900px; }

.hero__title {
  margin-bottom: 22px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.45);
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  max-width: 58ch;
  color: #ded9d4;
  margin-bottom: 38px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Slide copy animates in each time its slide becomes active */
.hero__slide .hero__title,
.hero__slide .hero__sub,
.hero__slide .hero__actions {
  opacity: 0;
  transform: translateY(26px);
}
.hero__slide.is-active .hero__title,
.hero__slide.is-active .hero__sub,
.hero__slide.is-active .hero__actions {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.hero__slide.is-active .hero__sub     { transition-delay: 0.15s; }
.hero__slide.is-active .hero__actions { transition-delay: 0.3s; }

/* Dots */
.hero__dots {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 14px;
}
.hero__dots button {
  width: 34px; height: 2px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.hero__dots button.is-active { background: var(--c-accent); }

/* Page banner used on inner pages instead of the slider */
.page-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.page-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(15,17,20,0.62) 0%, rgba(15,17,20,0.18) 62%, rgba(15,17,20,0) 100%),
    linear-gradient(180deg, rgba(15,17,20,0.84), rgba(15,17,20,0.66));
}
.page-hero .shell { position: relative; z-index: 2; padding-top: 90px; }
.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.breadcrumb a:hover { color: var(--c-heading); }

/* --------------------------------------------------------------------------
   8. Feature grid — "Your stay at Kamagiri Nivas"
   -------------------------------------------------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--c-line-faint);
  border: 1px solid var(--c-line-faint);
}

.feature {
  background: var(--c-bg);
  padding: clamp(26px, 3vw, 40px);
  transition: background 0.4s var(--ease);
}
.feature:hover { background: var(--c-bg-raise); }
.feature__icon {
  color: var(--c-accent);
  margin-bottom: 18px;
  display: block;
}
.feature__icon svg { width: 30px; height: 30px; }
.feature h4 {
  font-family: var(--f-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-heading);
  margin-bottom: 10px;
}
.feature p { font-size: 0.94rem; color: var(--c-muted); }

/* --------------------------------------------------------------------------
   9. Room cards
   -------------------------------------------------------------------------- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
}

.room-card {
  display: flex;
  flex-direction: column;
}
/* Pin the rate to the foot of every card so a wrapped meta row in one card
   does not leave the row of rates ragged. */
.room-card .room-card__meta { margin-top: auto; }

.room-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 22px;
}
.room-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.room-card:hover .room-card__media img { transform: scale(1.06); }

.room-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15,17,20,0.7) 100%);
}

.room-card__tag {
  position: absolute;
  z-index: 2;
  left: 18px; top: 18px;
  background: rgba(15,17,20,0.78);
  border: 1px solid var(--c-line);
  color: var(--c-accent);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 14px;
}

.room-card h3 { margin-bottom: 8px; transition: color 0.3s var(--ease); }
.room-card:hover h3 { color: var(--c-accent); }
.room-card p { color: var(--c-muted); font-size: 0.95rem; margin-bottom: 16px; }

.room-card__rate {
  display: block;
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--c-accent);
}
.room-card__rate b { font-family: var(--f-display); font-weight: 400; font-size: 1.05rem; }

.room-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line-faint);
  padding-top: 14px;
}

/* Full room entry on rooms.html — alternating image / copy rows */
.room-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
  padding-block: clamp(46px, 6vw, 84px);
  border-bottom: 1px solid var(--c-line-faint);
}
.room-row:last-child { border-bottom: 0; }
.room-row:nth-child(even) .room-row__media { order: 2; }

.room-row__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.room-row__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.room-row__media picture:first-child img { grid-column: span 2; aspect-ratio: 4 / 3; }

.amenity-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
}
.amenity-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--c-text);
}
.amenity-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 5px; height: 5px;
  transform: rotate(45deg);
  background: var(--c-accent);
}

/* Rate line under a room's amenities */
.room-rate {
  margin: 0 0 28px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line-faint);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--c-muted);
}
.room-rate b {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   10. Marquee ticker
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--c-line-faint);
  padding-block: clamp(22px, 3vw, 40px);
  background: var(--c-bg-alt);
}
.marquee__track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 5vw, 4.2rem);
  color: var(--c-accent);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 60px;
}
.marquee__item::after {
  content: "";
  width: 12px; height: 12px;
  transform: rotate(45deg);
  border: 1px solid var(--c-accent);
  flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   11. Testimonials
   -------------------------------------------------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
}

.testimonial {
  border: 1px solid var(--c-line-faint);
  padding: clamp(28px, 3.2vw, 44px);
  background: var(--c-bg-raise);
  display: flex;
  flex-direction: column;
}
.testimonial__quote {
  font-family: var(--f-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--c-accent);
  margin-bottom: 22px;
  display: block;
}
.testimonial blockquote { flex: 1; margin-bottom: 26px; }
.testimonial p {
  font-size: 1rem;
  color: var(--c-text);
}
.testimonial__by {
  border-top: 1px solid var(--c-line-faint);
  padding-top: 18px;
}
.testimonial__name {
  font-family: var(--f-display);
  color: var(--c-heading);
  font-size: 1.1rem;
  display: block;
}
.testimonial__from {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   12. Gallery
   -------------------------------------------------------------------------- */
/* Four-column mosaic: the first tile occupies a 2x2 block, the remaining
   four fill the two columns beside it. Fixed row height keeps the block
   from stretching to the portrait images' natural ratio. */
.gallery-teaser {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(160px, 19vw, 240px);
  gap: 12px;
}
.gallery-teaser .gallery-item { aspect-ratio: auto; height: 100%; }
.gallery-teaser a:nth-child(1) { grid-column: span 2; grid-row: span 2; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: block;
  background: var(--c-bg-raise);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); opacity: 0.82; }
.gallery-item::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 2.4rem;
  color: var(--c-heading);
  background: rgba(15,17,20,0.35);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 11, 13, 0.96);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: 1px solid var(--c-line);
  color: var(--c-heading);
  width: 48px; height: 48px;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { border-color: var(--c-accent); color: var(--c-accent); }
.lightbox__close { top: 26px; right: 26px; }
.lightbox__prev  { left: 26px;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 26px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   13. Split feature band (image + copy)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split--flip .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Three simple service blocks */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  text-align: center;
}
.service__icon { color: var(--c-accent); margin-bottom: 20px; }
.service__icon svg { width: 34px; height: 34px; margin-inline: auto; }
.service h4 {
  font-family: var(--f-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.service p { color: var(--c-muted); font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   14. Enquiry form
   -------------------------------------------------------------------------- */
/* The enquiry form leads the contact page, centred in its own column so the
   fields stay a comfortable width; the details and map sit in a band below. */
.enquiry-panel {
  max-width: 880px;
  margin-inline: auto;
}
.enquiry-panel .section-head { margin-bottom: clamp(34px, 4vw, 52px); }

.contact-details {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: stretch;
}
/* Let the map run the full height of the details beside it rather than
   leaving a gap under a fixed 16:10 box. */
.contact-details > * { display: flex; flex-direction: column; }
.contact-details .map-embed {
  margin-top: 0;
  flex: 1;
  aspect-ratio: auto;
  min-height: 300px;
}
.contact-details .map-link { flex: none; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.field--wide { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 9px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-line-faint);
  color: var(--c-heading);
  font-family: var(--f-body);
  font-size: 0.98rem;
  padding: 11px 0;
  transition: border-color 0.3s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #5f5c59; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--c-accent);
}
.field select { cursor: pointer; }
.field select option { background: var(--c-bg-deep); color: var(--c-heading); }
.field textarea { resize: vertical; min-height: 110px; }

/* Native date pickers render a dark-on-dark icon; brighten it */
.field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.75) sepia(0.4) saturate(3) hue-rotate(340deg);
  cursor: pointer;
}

.field--error input,
.field--error select,
.field--error textarea { border-bottom-color: #c4685f; }

.field__error {
  display: none;
  font-size: 0.74rem;
  color: #d4837b;
  margin-top: 7px;
}
.field--error .field__error { display: block; }

.form-note {
  font-size: 0.8rem;
  color: var(--c-muted);
  margin-top: 20px;
}

.form-status {
  display: none;
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px solid var(--c-line);
  background: rgba(222, 169, 125, 0.07);
  color: var(--c-heading);
  font-size: 0.94rem;
}
.form-status.is-visible { display: block; }

/* Contact detail list */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  padding-block: 20px;
  border-bottom: 1px solid var(--c-line-faint);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 8px;
}
.contact-list a:hover { color: var(--c-accent); }

.map-embed {
  margin-top: 34px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--c-line-faint);
  background: var(--c-bg-raise);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--c-muted);
  font-size: 0.86rem;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* A live embed fills its box — drop the placeholder's padding and centring,
   and warm the map a little so it does not glare out of the dark page. */
.map-embed--live { padding: 0; display: block; overflow: hidden; }
.map-embed--live iframe { display: block; filter: saturate(0.82) contrast(0.94) brightness(0.86); }

.map-link { margin: 18px 0 0; }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding-block: clamp(80px, 11vw, 160px);
  text-align: center;
  overflow: hidden;
}
.cta-band img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Source photos are tall portraits; bias the crop upward so the signage
     and skyline survive rather than the street at the bottom of the frame. */
  object-position: center 46%;
}
.cta-band__scrim {
  position: absolute; inset: 0;
  background: rgba(15, 17, 20, 0.78);
}
.cta-band .shell { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-bg-deep);
  padding-top: clamp(60px, 8vw, 100px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(48px, 6vw, 76px);
}
.footer-grid h4 {
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 20px;
}
.footer-grid p,
.footer-grid a { font-size: 0.92rem; color: var(--c-muted); }
.footer-grid a:hover { color: var(--c-accent); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }

.footer-logo {
  height: 46px;
  width: auto;
  margin-bottom: 18px;
  opacity: 0.92;
}
.footer-tagline {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--c-heading);
  margin-bottom: 18px;
}

.socials { display: flex; gap: 14px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--c-line-faint);
  display: grid;
  place-items: center;
  color: var(--c-text);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.socials a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.socials svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid var(--c-line-faint);
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   16b. Tariff panel — the room-by-room rate card on rooms.html
   A table, because the data is tabular, but dressed as a panel: plate-style
   room numbers, cooling shown as a chip, and the with-breakfast column tinted
   because it is the rate most guests actually book. Under 760px every row
   folds into its own card (labels come from each cell's data-label), so the
   section never scrolls sideways on a phone.
   -------------------------------------------------------------------------- */
.tariff-panel {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  /* No inline padding: the cells supply it, so the row rules and the tinted
     with-breakfast column reach the panel border instead of stopping short. */
  padding: clamp(8px, 1.4vw, 16px) 0;
}
.tariff-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tariff {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

/* Head */
.tariff thead th {
  padding: 14px 18px 16px;
  text-align: left;
  font-family: var(--f-body);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  white-space: nowrap;
  border-bottom: 1px solid var(--c-line);
}
.tariff thead .tariff__col-rate { text-align: right; }

/* Body */
.tariff tbody th,
.tariff tbody td {
  padding: 18px;
  text-align: left;
  font-weight: 400;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-line-faint);
  vertical-align: middle;
}
.tariff tbody tr:last-child th,
.tariff tbody tr:last-child td { border-bottom: 0; }
.tariff thead th:first-child,
.tariff tbody tr > :first-child { padding-left: clamp(18px, 2.4vw, 30px); }
.tariff thead th:last-child,
.tariff tbody tr > :last-child { padding-right: clamp(18px, 2.4vw, 30px); }
.tariff tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.018); }
.tariff tbody tr { transition: background 0.3s var(--ease); }
.tariff tbody tr:hover { background: rgba(222, 169, 125, 0.055); }

/* Room number set as a plate, category beneath it */
.tariff__no {
  display: block;
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-heading);
}
.tariff__type {
  display: block;
  margin-top: 7px;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
}

/* Cooling chip: tan when the room is air-conditioned, quiet when it is not */
.chip {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--c-line-faint);
  color: var(--c-muted);
  white-space: nowrap;
}
.chip--ac { border-color: var(--c-line); color: var(--c-accent); }

/* Rates */
.tariff tbody .tariff__rate,
.tariff tbody .tariff__none { text-align: right; white-space: nowrap; }
.tariff tbody .tariff__rate {
  font-family: var(--f-display);
  font-size: 1.22rem;
  color: var(--c-heading);
}
.tariff tbody .tariff__none { color: var(--c-muted); }
.tariff .tariff__col-lead,
.tariff tbody .tariff__rate--lead { background: rgba(222, 169, 125, 0.05); }
.tariff tbody .tariff__rate--lead { color: var(--c-accent); }

.tariff-note {
  margin: clamp(22px, 3vw, 32px) auto 0;
  max-width: 94ch;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--c-muted);
  text-align: center;
}

/* ---- Phones: fold each row into its own card ---- */
@media (max-width: 760px) {
  .tariff-panel { background: none; border: 0; padding: 0; }
  .tariff-wrap { overflow: visible; }

  .tariff { min-width: 0; font-size: 0.95rem; }
  .tariff thead { display: none; }
  .tariff tbody,
  .tariff tr,
  .tariff tbody th,
  .tariff tbody td { display: block; width: auto; }

  .tariff tbody tr,
  .tariff tbody tr:nth-child(even) {
    background: var(--c-bg);
    border: 1px solid var(--c-line-faint);
    padding: 20px 22px 14px;
    margin-bottom: 14px;
  }
  .tariff tbody th,
  .tariff tbody td { border-bottom: 0; padding: 0; }
  .tariff tbody tr > :first-child,
  .tariff tbody tr > :last-child { padding-left: 0; padding-right: 0; }

  /* The room number heads the card */
  .tariff tbody th { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line-faint); }
  .tariff__no { display: inline-block; font-size: 1.7rem; }
  .tariff__type { display: inline-block; margin: 0 0 0 12px; transform: translateY(-4px); }

  /* Remaining cells become label / value rows */
  .tariff tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
  }
  .tariff tbody td::before {
    content: attr(data-label);
    flex: none;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-accent);
  }
  .tariff tbody .tariff__rate--lead { background: none; }
  .tariff tbody .tariff__rate { font-size: 1.3rem; }
  .tariff-note { text-align: left; }
}

/* --------------------------------------------------------------------------
   16c. The 300 m walk — annotated drone frame over Maa Kamakhya
   Pin and route coordinates are tuned to the crop produced by the
   'aerial/kamakhya-walk' slot in tools/manifest.py. Re-crop the photo and
   the numbers in the inline SVG (viewBox 0 0 300 400) must be retuned too.
   -------------------------------------------------------------------------- */
.walk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
}

.walk__copy .lead { margin-bottom: 20px; }

.walk-stats {
  list-style: none;
  margin: clamp(28px, 4vw, 42px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--c-line-faint);
  padding-top: clamp(24px, 3vw, 34px);
}
.walk-stats strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--c-accent);
  line-height: 1.1;
}
.walk-stats span {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.aerial { margin: 0; }

.aerial__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--c-line);
}
.aerial__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* A whisper of the page ground at top and bottom so the labels sit on tone. */
.aerial__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15,17,20,0.46) 0%, transparent 22%),
    linear-gradient(0deg,   rgba(15,17,20,0.42) 0%, transparent 26%);
}

.aerial__plot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* The walk itself: a soft dark underlay, then the travelling tan dash. */
.aerial__route-base {
  fill: none;
  stroke: rgba(12, 13, 15, 0.55);
  stroke-width: 5;
  stroke-linecap: round;
}
.aerial__route {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 9 9;
  animation: walk-travel 2.4s linear infinite;
}
@keyframes walk-travel { to { stroke-dashoffset: -18; } }

/* Endpoint markers: a breathing halo under a solid dot. */
.aerial__halo {
  fill: var(--c-accent);
  opacity: 0.28;
  transform-box: fill-box;
  transform-origin: center;
  animation: walk-pulse 3s var(--ease) infinite;
}
.aerial__dot circle + circle {
  fill: var(--c-accent);
  stroke: rgba(12, 13, 15, 0.6);
  stroke-width: 1.4;
}
.aerial__dot--temple .aerial__halo { animation-delay: 1.5s; }
@keyframes walk-pulse {
  0%, 100% { transform: scale(0.72); opacity: 0.34; }
  50%      { transform: scale(1.25); opacity: 0.06; }
}

.aerial__leader {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 0.9;
  opacity: 0.75;
  stroke-dasharray: 3 3;
}

/* Place names — stroked rather than boxed, as in the hotel's own reference. */
.aerial__name {
  font-family: var(--f-display);
  font-size: 13px;
  fill: #fdf3ea;
  paint-order: stroke fill;
  stroke: rgba(10, 11, 13, 0.82);
  stroke-width: 3.4;
  stroke-linejoin: round;
  letter-spacing: 0.02em;
}
.aerial__name--nivas { fill: var(--c-accent); }

/* The distance badge, sitting on the path between the two pins. */
.aerial__badge-box {
  fill: rgba(15, 17, 20, 0.80);
  stroke: var(--c-accent);
  stroke-width: 0.8;
}
.aerial__badge-big {
  font-family: var(--f-display);
  font-size: 21px;
  fill: var(--c-heading);
}
.aerial__badge-small {
  font-family: var(--f-body);
  font-size: 7.4px;
  font-weight: 700;
  fill: var(--c-accent);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.aerial figcaption {
  margin-top: 16px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   17. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Stagger children of a revealed grid */
.reveal-group > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-group.is-in > * { opacity: 1; transform: none; }
.reveal-group.is-in > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-group.is-in > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-group.is-in > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-group.is-in > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-group.is-in > *:nth-child(6) { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rooms-grid,
  .testimonials,
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials > :nth-child(3),
  .service-grid > :nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }

  .walk,
  .intro-grid,
  .contact-details,
  .split,
  .room-row { grid-template-columns: minmax(0, 1fr); }

  /* Stacked, the frame no longer has a column to fill — cap it so the photo
     does not run past a phone screen's worth of height. */
  .aerial__frame { max-width: 460px; margin-inline: auto; }

  .split--flip .split__media,
  .room-row:nth-child(even) .room-row__media { order: 0; }

  .gallery-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-teaser a:nth-child(1) { grid-column: span 2; grid-row: span 1; }

  /* A landscape photo in a portrait box is cropped on the x-axis, not the y.
     Nudge right so the headboard walls stay in frame instead of the floor. */
  .hero__slide img { object-position: 60% center; }
  .page-hero img { object-position: 58% center; }

  /* Copy runs the full width here, so the left-hand wedge flattens out. */
  .hero__scrim,
  .page-hero__scrim {
    background: linear-gradient(180deg, rgba(15,17,20,0.80) 0%, rgba(15,17,20,0.55) 45%, rgba(15,17,20,0.86) 100%);
  }
}

@media (max-width: 620px) {
  .rooms-grid,
  .testimonials,
  .service-grid,
  .features,
  .form-grid,
  .amenity-list { grid-template-columns: minmax(0, 1fr); }
  .testimonials > :nth-child(3),
  .service-grid > :nth-child(3) { grid-column: auto; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { height: 92svh; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .room-row__media { grid-template-columns: 1fr; }
  .room-row__media picture:first-child img { grid-column: auto; }
  .walk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .walk-stats span { letter-spacing: 0.08em; }
  .lightbox__prev { left: 12px; }
  .lightbox__next { right: 12px; }
}

/* --------------------------------------------------------------------------
   19. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-group > * { opacity: 1; transform: none; }
  .hero__slide.is-active img { animation: none; }
  .aerial__route { animation: none; }
  .aerial__halo { animation: none; opacity: 0.3; }
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .mobile-nav, .hero__dots, .marquee, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
