/* KBL Saarang — shared styles */
:root {
  --teal: #326263;
  --teal-deep: #1e3d3e;
  --teal-darker: #142a2b;
  --copper: #b87333;
  --copper-light: #d89a5a;
  --cream: #f4efe6;
  --cream-warm: #ebe4d4;
  --ink: #0d1414;
  --ink-soft: #1a2121;
  --paper: #faf7f1;
  --line: rgba(50, 98, 99, 0.18);
  --line-light: rgba(244, 239, 230, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.font-serif { font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif; }
.font-mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }

/* Typography */
.display {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
  letter-spacing: -0.035em;
  line-height: 0.92;
}
.display em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }

.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 400;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
  mix-blend-mode: normal;
}
/* Subtle gradient sheen behind every nav so menu text always stays readable
   on top of any hero photo. Fades out on scroll because .nav.scrolled gets its
   own backdrop. */
.nav::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 180px;
  background: linear-gradient(180deg, rgba(13,20,20,0.55) 0%, rgba(13,20,20,0.25) 55%, rgba(13,20,20,0) 100%);
  pointer-events: none; z-index: -1;
  transition: opacity 0.4s ease;
}
.nav.dark-text::before {
  background: linear-gradient(180deg, rgba(250,247,241,0.85) 0%, rgba(250,247,241,0.45) 55%, rgba(250,247,241,0) 100%);
}
.nav.scrolled::before { opacity: 0; }
.nav.scrolled {
  background: rgba(13, 20, 20, 0.72);
  backdrop-filter: blur(16px);
  padding: 16px 48px;
  color: var(--cream);
}
.nav.light { color: var(--cream); }
.nav.dark-text { color: var(--ink); }
.nav.nav-open {
  color: var(--cream);
  z-index: 210;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  width: clamp(148px, 12vw, 206px);
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:focus-visible,
.footer-logo:focus-visible {
  outline: 2px solid var(--copper-light);
  outline-offset: 5px;
}
.nav-logo .brand-mark {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}
.nav-logo .brand-mark-dark { display: none; }
.nav.dark-text:not(.scrolled):not(.nav-open) .brand-mark-light { display: none; }
.nav.dark-text:not(.scrolled):not(.nav-open) .brand-mark-dark { display: block; }
.nav.scrolled .brand-mark-dark,
.nav.light .brand-mark-dark,
.nav.nav-open .brand-mark-dark { display: none; }
.nav.scrolled .brand-mark-light,
.nav.light .brand-mark-light,
.nav.nav-open .brand-mark-light { display: block; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: inherit; text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  position: relative; padding: 6px 0;
  transition: opacity 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:focus-visible {
  outline: 2px solid var(--copper-light);
  outline-offset: 8px;
}
.nav-cta {
  padding: 12px 22px !important;
  border: 1px solid currentColor;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--copper); border-color: var(--copper); color: var(--cream) !important; }

/* Buttons — single primary system: copper-filled default, ink-fill on hover */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  text-decoration: none;
  border: 1px solid var(--copper);
  background: var(--copper); color: var(--cream);
  cursor: pointer;
  transition: color 0.45s cubic-bezier(0.2, 0.9, 0.3, 1), border-color 0.45s ease;
  position: relative; overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
  z-index: -1;
}
.btn:hover { color: var(--cream); border-color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 3px; }

/* Outline variant — copper border on light backgrounds */
.btn-light {
  background: transparent; border-color: var(--cream); color: var(--cream);
}
.btn-light::before { background: var(--cream); }
.btn-light:hover { color: var(--ink); border-color: var(--cream); }

/* Outline variant on light bg — copper border with copper fill on hover */
.btn-copper {
  background: transparent; border-color: var(--copper); color: var(--copper);
}
.btn-copper::before { background: var(--copper); }
.btn-copper:hover { color: var(--cream); border-color: var(--copper); }

.btn-filled { background: var(--teal); border-color: var(--teal); color: var(--cream); }
.btn-filled::before { background: var(--ink); }
.btn-filled:hover { color: var(--cream); border-color: var(--ink); }

/* WhatsApp brand button */
.btn-whatsapp {
  background: #25D366; border-color: #25D366; color: #fff;
}
.btn-whatsapp::before { background: #128C7E; }
.btn-whatsapp:hover { color: #fff; border-color: #128C7E; }
.btn-whatsapp .wa-icon { width: 14px; height: 14px; flex-shrink: 0; }

.btn .arrow { display: inline-block; transition: transform 0.4s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Sticky floating WhatsApp button bottom-right */
.fab-wa {
  position: fixed; right: 20px; bottom: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(37,211,102,0.4), 0 4px 12px rgba(0,0,0,0.18);
  text-decoration: none; z-index: 200;
  transition: transform 0.3s cubic-bezier(0.2,0.9,0.3,1), box-shadow 0.3s;
}
.fab-wa:hover { transform: scale(1.08); box-shadow: 0 16px 40px rgba(37,211,102,0.5), 0 6px 16px rgba(0,0,0,0.2); }
.fab-wa svg { width: 28px; height: 28px; fill: currentColor; }
.fab-wa::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: #25D366; opacity: 0.25; z-index: -1;
  animation: fab-pulse 2.4s ease-out infinite;
}
@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.35; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* Nav WhatsApp icon link */
.nav-wa {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  margin-left: 4px;
  color: #25D366 !important;
  transition: color 0.3s, transform 0.3s;
}
.nav-wa:hover { color: #128C7E !important; transform: scale(1.1); }
.nav-wa::after { display: none !important; }
.nav.scrolled .nav-wa { color: #25D366 !important; }

/* Reveal animations */
.reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
}
.reveal-word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.reveal-word.in > span { transform: translateY(0); }

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.2, 0.9, 0.3, 1), transform 1s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.fade-up.in { opacity: 1; transform: translateY(0); }

.mask-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.mask-reveal.in { clip-path: inset(0 0 0% 0); }

body.anim-subtle .reveal-word > span,
body.anim-subtle .fade-up,
body.anim-subtle .mask-reveal {
  transition-duration: 0.5s !important;
}

/* Placeholder-free: using real KBL Saarang venue photography */
.ph {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  position: relative; overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 120px 48px 48px;
  position: relative;
}
.site-footer-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line-light);
}
.footer-logo {
  display: inline-flex;
  width: clamp(220px, 22vw, 330px);
  margin-bottom: 24px;
}
.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.site-footer h3 {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: 48px; line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.site-footer h3 em { color: var(--copper-light); }
.site-footer .footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  font-weight: 400;
  color: var(--copper-light);
  margin-bottom: 24px;
}
.site-footer .footer-col a, .site-footer .footer-col p {
  color: var(--cream); opacity: 0.7;
  display: block; padding: 6px 0;
  text-decoration: none;
  font-size: 14px; font-weight: 300;
  transition: opacity 0.3s;
}
.site-footer .footer-col a:hover { opacity: 1; color: var(--copper-light); }
.site-footer-base {
  max-width: 1400px; margin: 0 auto;
  padding-top: 32px;
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  opacity: 0.5;
}

/* Utility */
.section { padding: 140px 48px; }
.section-sm { padding: 80px 48px; }
.container { max-width: 1400px; margin: 0 auto; }
.container-narrow { max-width: 1080px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--copper);
  margin-bottom: 32px;
}
.eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--copper);
}

/* Cursor custom - subtle */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--copper);
    pointer-events: none; z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s, height 0.3s;
    mix-blend-mode: difference;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--teal); }

/* ----------------------------------------------------------------------
   Headline rendering — Fraunces italic with WONK swings descenders/ascenders
   below the baseline, so any tight line-height + overflow:hidden ancestor
   clips them. Add breathing room everywhere those headlines render.
   ---------------------------------------------------------------------- */
h1, h2, h3, h4,
.hero-title, .display, .t-title, .t-year,
.cap h4, .am h4, .rm-info h2, .venue-info h2, .occ-info h3,
.ritual-head h2, .room-strip-head h2, .venue-strip-head h2,
.bk-head h1, .bk-card h3, .timeline-head h2, .moods h2,
.team-head h2, .am-head h2, .format-head h2, .cap-head h2 {
  padding-bottom: 0.14em;       /* descender clearance */
  padding-right: 0.06em;        /* italic right-overhang clearance */
}
/* Headlines that contain italic <em> pieces need extra horizontal padding so
   the WONK swing on letters like f, j, v, z don't get clipped by the right edge */
h1 em, h2 em, h3 em, h4 em,
.display em, .hero-title em {
  padding-right: 0.06em;
  margin-right: 0.02em;
}

/* The reveal-word mask uses overflow:hidden to slide letters in from below.
   Give it room so descenders survive the mask. */
.reveal-word {
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;       /* keep the visual rhythm unchanged */
}

/* Tighten the gap between an eyebrow and the immediately-following h2 */
.eyebrow + h2,
.eyebrow + h1,
section .eyebrow ~ h2 {
  margin-top: 8px;
}

/* Cap leftover huge bottom-margins on the section header headlines. */
.timeline-head, .team-head, .cap-head, .format-head,
.am-head, .room-strip-head, .venue-strip-head,
.ritual-head, .occ-head, .moods-wrap, .bk-head {
  margin-bottom: 64px !important;
}

/* Big section-vertical-padding tighteners. The originals were 180px which
   leaves enormous gaps and breaks small viewports. */
.timeline, .team, .philosophy-block, .amenities,
.capability, .format, .ritual, .occasions, .moods, .room-strip, .venue-strip {
  padding-top: clamp(80px, 10vw, 130px);
  padding-bottom: clamp(80px, 10vw, 130px);
}
.cta-big {
  padding-top: clamp(80px, 10vw, 140px) !important;
  padding-bottom: clamp(80px, 10vw, 140px) !important;
}

/* Hero / page-hero content stays vertically centred but uses fluid height */
.page-hero {
  min-height: clamp(560px, 90vh, 920px);
}

/* Scoped responsive padding using fluid clamp instead of fixed 48px walls */
.timeline, .team, .philosophy-block, .amenities, .capability,
.format, .ritual, .occasions, .moods, .room-strip, .venue-strip {
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

/* Map component */
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.map-frame iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(0.18) contrast(1.02);
}
.map-frame .map-overlay-link {
  position: absolute; inset: 0; z-index: 2;
  display: block; text-decoration: none;
  background: transparent;
}
.map-frame .map-cta {
  position: absolute; bottom: 18px; right: 18px; z-index: 3;
  background: var(--copper); color: var(--cream);
  padding: 12px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.3s, transform 0.3s;
  pointer-events: none;            /* the wrapper link captures clicks */
}
.map-frame:hover .map-cta { background: var(--ink); transform: translateY(-2px); }

/* Active nav underline */
.nav-links a.active::after { width: 100%; }

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(13, 20, 20, 0.08);
  border: 1px solid currentColor;
  color: inherit;
  z-index: 201;
  flex-shrink: 0;
}
.nav-toggle:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 4px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.25s ease;
  transform-origin: center;
}
.nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Full-screen mobile menu */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 40px 60px;
  gap: 8px;
}
#mobile-menu.open { display: flex; }
#mobile-menu .mobile-menu-brand {
  position: absolute;
  top: 22px;
  left: 40px;
  width: clamp(150px, 34vw, 220px);
}
#mobile-menu .mobile-menu-brand img {
  display: block;
  width: 100%;
  height: auto;
}
#mobile-menu a {
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-size: clamp(32px, 9vw, 52px);
  letter-spacing: -0.02em;
  color: var(--cream);
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.2s;
}
#mobile-menu a.active,
#mobile-menu a:hover { color: var(--copper-light); }
#mobile-menu a:focus-visible {
  outline: 2px solid var(--copper-light);
  outline-offset: 8px;
}
#mobile-menu .mob-cta {
  margin-top: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid var(--copper);
  background: var(--copper);
  color: var(--cream);
}

/* Responsive */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-logo { width: clamp(132px, 38vw, 174px); }
  .nav-links { display: none !important; }
  .nav-toggle { display: flex; }
  .section { padding: 80px 20px; }
  .site-footer { padding: 80px 20px 32px; }
  .site-footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .site-footer-base { flex-direction: column; gap: 12px; text-align: center; }
  .fab-wa { right: 16px; bottom: 80px; width: 52px; height: 52px; }
  .fab-wa svg { width: 24px; height: 24px; }
  /* Tables become horizontally scrollable instead of overflowing the page */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .fmt-table { white-space: nowrap; }
  /* Prevent images from causing horizontal overflow */
  img, video, iframe { max-width: 100%; }
}
@media (max-width: 600px) {
  .nav { padding: 14px 16px; }
  .nav.scrolled { padding: 10px 16px; }
  .nav-logo { width: clamp(124px, 42vw, 160px); }
  #mobile-menu { padding: 96px 24px 44px; }
  #mobile-menu .mobile-menu-brand { left: 24px; top: 20px; width: 150px; }
  .section { padding: 60px 16px; }
  .site-footer { padding: 60px 16px 28px; }
  .btn { padding: 14px 24px; font-size: 10px; }
}

/* Global guard against accidental horizontal overflow on any page */
html, body { max-width: 100%; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .cursor-dot { display: none !important; }
}
