/* =========================================================================
   ITPIHRC — Homepage Redesign
   Design concept: "The Drawing Sheet" — borrows the vocabulary of a town
   planner's own working documents: title blocks, sheet numbers, registration
   marks, plot tags and survey-brass instrument tones. Cream drawing paper,
   blueprint navy, brass accent, a single muted marker red used sparingly.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  /* ---- Palette -------------------------------------------------------- */
  --ink:        #172236;   /* blueprint navy — headings, dark sections */
  --ink-soft:   #2C3B57;
  --paper:      #F5F1E6;   /* survey paper cream — page background */
  --paper-2:    #EFE9D9;   /* slightly deeper paper for alt sections */
  --line:       #D9D0B8;   /* hairlines on paper */
  --brass:      #AD8A3E;   /* accent — dividers, numerals, icon strokes */
  --brass-dark: #8C6F2E;
  --marker:     #9B3A2C;   /* muted marker red — sparing use only */
  --teal:       #2E5C56;   /* secondary accent — links, tags */
  --white:      #FFFFFF;
  --ink-70:     rgba(23,34,54,.7);
  --ink-45:     rgba(23,34,54,.45);
  --paper-70:   rgba(245,241,230,.7);

  /* ---- Type ------------------------------------------------------------*/
  --f-display: 'Fraunces', Georgia, serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --container: 1240px;
}

/* ---- Reset --------------------------------------------------------------*/
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img{ max-width:100%; display:block; height:auto; }
.brand img, .site-header .brand img{ max-width:none !important; width:auto !important; height:52px !important; flex-shrink:0; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--f-display); margin:0; color: var(--ink); font-weight:600; }
p{ margin:0; }
button{ font-family: inherit; cursor:pointer; }
.container{ width:100%; max-width: var(--container); margin:0 auto; padding:0 18px; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--ink); color:var(--paper);
  padding:12px 18px; z-index:999; font-family:var(--f-mono); font-size:.8rem;
}
.skip-link:focus{ left:12px; top:12px; }

/* ---- Shared utility bits --------------------------------------------- */
.eyebrow{
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-dark);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px; background: var(--brass);
  display:inline-block;
}
.eyebrow.on-dark{ color:#D8C387; }
.eyebrow.on-dark::before{ background:#D8C387; }

.section{ padding: 96px 0; }
.section-tight{ padding: 64px 0; }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap:32px;
  margin-bottom: 48px; flex-wrap: wrap;
}
.section-head h2{ font-size: clamp(1.8rem, 3vw, 2.6rem); line-height:1.15; max-width:640px; }
.section-head .lede{ color: var(--ink-70); max-width: 380px; font-size: .98rem; }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--f-mono); font-size: .78rem; letter-spacing:.06em; text-transform: uppercase;
  padding: 14px 26px; border:1px solid transparent; border-radius: 2px;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn svg{ width:14px; height:14px; transition: transform .25s ease; }
.btn:hover svg{ transform: translateX(4px); }
.btn-primary{ background: var(--brass); color: var(--ink); }
.btn-primary:hover{ background: var(--brass-dark); }
.btn-outline-light{ border-color: rgba(255,255,255,.4); color:#fff; }
.btn-outline-light:hover{ background: rgba(255,255,255,.12); border-color:#fff; }
.btn-outline-dark{ border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover{ background: var(--ink); color: var(--paper); }
.btn-text{ font-family: var(--f-mono); font-size:.76rem; letter-spacing:.06em; text-transform:uppercase; color: var(--teal); display:inline-flex; align-items:center; gap:8px; }
.btn-text svg{ width:13px; height:13px; transition: transform .25s ease;}
.btn-text:hover svg{ transform: translateX(4px); }

/* reveal-on-scroll */
.reveal{ opacity:0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform: translateY(0); }

/* =========================================================================
   TOP UTILITY BAR
   ========================================================================= */
.util-bar{
  background: var(--ink);
  color: rgba(245,241,230,.75);
  font-family: var(--f-mono);
  font-size: .74rem;
}
.util-bar .container{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  height:40px;
}
.util-ticker{
  flex:1; display:flex; align-items:center; gap:10px; overflow:hidden; min-width:0;
}
.util-ticker .tag{
  flex-shrink:0; background: var(--brass); color: var(--ink); padding:2px 8px;
  letter-spacing:.08em; text-transform:uppercase; font-size:.68rem; font-weight:600;
}
.util-ticker-viewport{
  flex:1; overflow:hidden; min-width:0; position:relative;
}
.util-ticker-track{
  display:flex; width:max-content; white-space:nowrap;
  animation: ticker-scroll 35s linear infinite;
}
.util-ticker-track span{
  padding-right: 4rem;
  display:inline-block;
}
.util-ticker-viewport:hover .util-ticker-track{
  animation-play-state: paused;
}
@keyframes ticker-scroll{
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.util-right{ display:flex; align-items:center; gap:22px; flex-shrink:0; }
.util-right .u-item{ display:none; align-items:center; gap:7px; white-space:nowrap; }
.util-right .u-item svg{ width:13px; height:13px; opacity:.8; }
.util-social{ display:flex; gap:12px; align-items:center; }
.util-social a svg{ width:14px; height:14px; }
.util-social a{ opacity:.8; transition: opacity .2s; }
.util-social a:hover{ opacity:1; color:#D8C387; }
@media (min-width: 860px){
  .util-right .u-item{ display:inline-flex; }
}

/* =========================================================================
   MAIN NAVIGATION
   ========================================================================= */
.site-header{
  position: sticky; top:0; z-index:200;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled{ box-shadow: 0 8px 24px rgba(23,34,54,.08); }

.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 8px 0;
  gap: 12px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  flex-shrink:0;
  min-width: 48px;
}
.brand img{
  height:52px !important;
  width:auto !important;
  max-width:none !important;
  display:block;
  flex-shrink:0;
}
.brand-name{ font-family: var(--f-display); line-height:1.15; }
.brand-name strong{ display:block; font-size:1.05rem; font-weight:600; color: var(--ink); }
.brand-name span{ display:block; font-family: var(--f-mono); font-size:.66rem; letter-spacing:.1em; text-transform:uppercase; color: var(--teal); margin-top:3px; }

.main-nav{ display:none; flex:1; min-width:0; }
.main-nav ul{
  display:flex; align-items:center; justify-content:flex-end;
  flex-wrap:nowrap; gap: 0;
}
.main-nav > ul > li{ position:relative; flex-shrink:0; }
.main-nav > ul > li > a{
  display:flex; align-items:center; gap:3px;
  padding: 8px 8px; font-size:.8rem; font-weight:500; color: var(--ink-soft);
  border-radius:4px; transition: color .2s ease, background .2s ease;
  white-space:nowrap;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.is-open > a{ color: var(--ink); background: var(--paper-2); }
.main-nav > ul > li > a svg{ width:9px; height:9px; opacity:.55; }

/* Highlight Room Booking */
.main-nav > ul > li > a.nav-highlight,
.main-nav a.nav-highlight{
  background: var(--brass) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 12px !important;
}
.main-nav > ul > li > a.nav-highlight:hover{
  background: var(--brass-dark) !important;
  color: #fff !important;
}
/* Professional dropdown submenu */
.dropdown{
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
 
  margin: 0;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(23, 34, 54, 0.08);
  border-radius: 10px;
  box-shadow:
    0 4px 6px rgba(23, 34, 54, 0.04),
    0 12px 28px rgba(23, 34, 54, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 300;
  list-style: none;
}
/* Invisible hover bridge so menu doesn't close when moving to submenu */
.dropdown::before{
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.main-nav > ul > li:hover > .dropdown,
.main-nav > ul > li.is-open > .dropdown{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}
.dropdown li{ margin: 0; padding: 0; border: none; }
.dropdown a{
  display: block;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 7px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, padding-left .15s ease;
  position: relative;
}
.dropdown a:hover{
  background: #F5F1E6;
  color: var(--ink);
  padding-left: 18px;
}
.dropdown a:hover::before{
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--brass);
}

.nav-cta{ display:none; }
.nav-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border:1px solid var(--line); background:none;
  color: var(--ink);
}
.nav-toggle svg{ width:20px; height:20px; }

@media (min-width: 1100px){
  .main-nav{ display:block; }
  .nav-cta{ display:none !important; }
  .nav-toggle{ display:none; }
}
@media (min-width: 1100px) and (max-width: 1280px){
  .main-nav > ul > li > a{ padding: 7px 6px; font-size:.76rem; }
  .brand img{ height:46px !important; }
}
.container{ padding-left: 16px; padding-right: 16px; }
.nav-row .container, .site-header .container{   }


/* Off-canvas mobile menu */
.mobile-nav{
  position: fixed; top:0; right:0; bottom:0; left:0; z-index: 300;
  visibility:hidden; pointer-events:none;
}
.mobile-nav.is-open{ visibility:visible; pointer-events:auto; }
.mobile-nav-backdrop{
  position:absolute; top:0; right:0; bottom:0; left:0; background: rgba(23,34,54,.5);
  opacity:0; transition: opacity .3s ease;
}
.mobile-nav.is-open .mobile-nav-backdrop{ opacity:1; }
.mobile-nav-panel{
  position:absolute; top:0; right:0; height:100%; width: min(360px, 88vw);
  background: var(--paper); border-left:1px solid var(--line);
  transform: translateX(100%); transition: transform .32s ease;
  overflow-y:auto; padding: 22px;
}
.mobile-nav.is-open .mobile-nav-panel{ transform: translateX(0); }
.mobile-nav-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 20px; }
.mobile-nav-close{ background:none; border:1px solid var(--line); width:38px; height:38px; }
.mobile-nav-close svg{ width:16px; height:16px; }
.mobile-nav ul li{ border-bottom: 1px solid var(--line); }
.mobile-nav ul > li > a{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 4px; font-weight:500; width:100%;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav ul > li.menu-item > a::after{
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 10px;
  opacity: .55;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.mobile-nav ul > li.menu-item.is-open > a::after{
  transform: rotate(-135deg);
  opacity: .9;
}
/* Reset ALL desktop dropdown rules so submenu is clickable on mobile */
.mobile-nav .dropdown,
.mobile-nav ul.dropdown{
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 8px 8px !important;
  background: transparent !important;
  display: none;
  z-index: auto !important;
}
.mobile-nav .dropdown::before{ display: none !important; content: none !important; }
.mobile-nav li.is-open > .dropdown{ display: block !important; }
.mobile-nav .dropdown li{
  border-bottom: none !important;
  list-style: none;
}
.mobile-nav .dropdown a{
  display: block !important;
  padding: 11px 12px !important;
  font-size: .9rem !important;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  pointer-events: auto !important;
}
.mobile-nav .dropdown a:hover,
.mobile-nav .dropdown a:active{
  background: var(--paper-2);
  color: var(--ink);
}
.mobile-nav-foot{ margin-top:18px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero{
  position:relative; overflow:hidden;
  min-height: min(88vh, 780px);
  display:flex; align-items:flex-end;
  background: var(--ink);
}
.hero-slides{ position:absolute; top:0; right:0; bottom:0; left:0; }
.hero-slide{
  position:absolute; top:0; right:0; bottom:0; left:0; opacity:0; transition: opacity 1.1s ease;
}
.hero-slide.is-active{ opacity:1; }
.hero-slide img{ width:100%; height:100%; object-fit:cover; object-position:center; }
.hero-scrim{
  position:absolute; top:0; right:0; bottom:0; left:0;
  /*background:linear-gradient(0deg, rgba(15,22,36,.92) 0%, rgba(15,22,36,.55) 42%, rgba(15,22,36,.35) 100%);*/
}
.hero-grid{
  position:absolute; top:0; right:0; bottom:0; left:0; opacity:.35; pointer-events:none;
  background-image:
    linear-gradient(rgba(216,195,135,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,195,135,.14) 1px, transparent 1px);
  background-size: 42px 42px;
}
.hero-corner{
  position:absolute; width:22px; height:22px; border-color:#D8C387; opacity:.75;
}
.hero-corner.tl{ top:28px; left:28px; border-top:1px solid; border-left:1px solid; }
.hero-corner.tr{ top:28px; right:28px; border-top:1px solid; border-right:1px solid; }

.hero-body{
  position:relative; z-index:2; width:100%;
  padding: 120px 0 0;
}
.hero-text{ max-width: 760px; }
.hero-text h1{
  color:#fff; font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height:1.04; letter-spacing:-.01em;
  margin-bottom: 22px;
}
.hero-text h1 em{ font-style: italic; color:#D8C387; }
.hero-text p{
  color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width:560px; margin-bottom:34px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 56px; }

.hero-controls{
  position:absolute; right:28px; bottom: 265px; z-index:3;
  display:flex; flex-direction:column; gap:10px;
}
.hero-controls button{
  width:40px; height:40px; border:1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.06);
  color:#fff; display:flex; align-items:center; justify-content:center;
}
.hero-controls button:hover{ background: rgba(255,255,255,.18); }
.hero-controls svg{ width:16px; height:16px; }

.hero-dots{
  position:absolute; left:28px; bottom:30px; z-index:3; display:flex; gap:8px; align-items:center;
}
.hero-dots button{
  width:22px; height:2px; background: rgba(255,255,255,.35); border:none; padding:0;
  transition: background .2s ease, width .2s ease;
}
.hero-dots button.is-active{ background:#D8C387; width:34px; }

/* ---- Title block strip (SIGNATURE ELEMENT) ---------------------------- */
.title-block{
  position:relative; z-index:2;
  background: var(--paper);
  border-top: 3px solid var(--brass);
}
.title-block .container{ padding-top:0; padding-bottom:0; }
.title-block-grid{
  display:grid; grid-template-columns: 1fr; 
}
.tb-cell{
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display:flex; align-items:center; gap:16px;
}
.tb-cell:last-child{ border-right:none; }
.tb-icon{
  width:40px; height:40px; flex-shrink:0; border:1px solid var(--brass); color: var(--brass-dark);
  display:flex; align-items:center; justify-content:center;
}
.tb-icon svg{ width:19px; height:19px; }
.tb-copy .tb-label{ font-family: var(--f-mono); font-size:.66rem; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-45); margin-bottom:3px; }
.tb-copy .tb-title{ font-weight:600; font-size:.98rem; }
.tb-copy .tb-links{ display:flex; gap:10px; margin-top:4px; flex-wrap:wrap; }
.tb-copy .tb-links a{ font-size:.8rem; color: var(--teal); border-bottom:1px solid transparent; }
.tb-copy .tb-links a:hover{ border-color: var(--teal); }
.tb-cell > a.tb-arrow{ margin-left:auto; flex-shrink:0; }
.tb-cell > a.tb-arrow svg{ width:15px; height:15px; color: var(--ink-45); transition: transform .2s ease, color .2s ease; }
.tb-cell:hover > a.tb-arrow svg{ transform: translateX(4px); color: var(--ink); }

@media (min-width: 760px){
  .title-block-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px){
  .title-block-grid{ grid-template-columns: repeat(4, 1fr); }
  .tb-cell:nth-child(4){ border-right:none; }
}

/* =========================================================================
   ABOUT
   ========================================================================= */
.about{ background: var(--paper); }
.about-grid{
  display:grid; grid-template-columns: 1fr; gap: 56px; align-items:center;
}
@media (min-width: 900px){
  .about-grid{ grid-template-columns: .82fr 1fr; gap:64px; align-items:start; }
}
.about-media{ position:relative; margin-bottom: 44px; }
.about-media figure{
  position:relative; margin:0; border: 1px solid var(--line); padding: 14px;
}
.about-media img{ width:100%; height: 420px; object-fit:cover; }
.reg-mark{ position:absolute; width:16px; height:16px; }
.reg-mark::before, .reg-mark::after{ content:""; position:absolute; background: var(--brass); }
.reg-mark::before{ width:100%; height:1px; top:50%; }
.reg-mark::after{ height:100%; width:1px; left:50%; }
.reg-mark.tl{ top:-8px; left:-8px; }
.reg-mark.br{ bottom:-8px; right:-8px; }
.about-plaque{
  position:absolute; left:-20px; bottom: -28px; z-index:2;
  background: var(--ink); color:#fff; padding: 20px 24px;
  width: 210px;
}
.about-plaque .num{ font-family: var(--f-display); font-size:2.1rem; color:#D8C387; line-height:1; }
.about-plaque .lbl{ font-family: var(--f-mono); font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; color: rgba(255,255,255,.7); margin-top:6px; }

.about-copy h2{ font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom:20px; line-height:1.2; }
.about-copy p{ color: var(--ink-70); margin-bottom:16px; font-size: .98rem; }
.about-facts{
  display:flex; gap: 28px; margin: 28px 0; flex-wrap:wrap;
  padding-top:20px; border-top: 1px solid var(--line);
}
.about-facts div strong{ display:block; font-family: var(--f-display); font-size:1.5rem; color: var(--ink); }
.about-facts div span{ font-family: var(--f-mono); font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-45); }

.objectives{ margin-top: 26px; display:flex; flex-direction:column; gap:0; }
.objectives li{ display:flex; gap:16px; padding: 14px 0; border-top:1px solid var(--line); }
.objectives li:last-child{ border-bottom:1px solid var(--line); }
.plot-tag{
  flex-shrink:0; width:38px; height:26px; border:1px solid var(--brass); color: var(--brass-dark);
  font-family: var(--f-mono); font-size:.72rem; display:flex; align-items:center; justify-content:center;
}
.objectives li p{ font-size: .92rem; color: var(--ink-soft); padding-top:2px; }

/* =========================================================================
   HIGHLIGHTS & UPDATES — tabbed "sheet" browser
   ========================================================================= */
.highlights{ background: var(--ink); color: var(--paper); position:relative; }
.highlights::before{
  content:""; position:absolute; top:0; right:0; bottom:0; left:0; opacity:.06; pointer-events:none;
  background-image: linear-gradient(rgba(245,241,230,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(245,241,230,.5) 1px, transparent 1px);
  background-size: 46px 46px;
}
.highlights .container{ position:relative; }
.highlights .section-head h2{ color:#fff; }
.highlights .section-head .lede{ color: rgba(245,241,230,.65); }

.tabs{ display:flex; gap:2px; margin-bottom: 40px; flex-wrap:wrap; border-bottom:1px solid rgba(245,241,230,.18); }
.tab-btn{
  background:none; border:none; color: rgba(245,241,230,.55);
  padding: 14px 6px; margin-right: 30px; font-family: var(--f-mono); font-size:1.5rem; letter-spacing:.04em;
  position:relative; display:flex; align-items:center; gap:10px;
}
.tab-btn .sheet-no{ color: var(--brass); font-weight:600; }
.tab-btn::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:5px; background: var(--brass);
  transform: scaleX(0); transform-origin:left; transition: transform .25s ease;
}
.tab-btn:hover{ color: rgba(245,241,230,.85); }
.tab-btn.is-active{ color:#fff; }
.tab-btn.is-active::after{ transform: scaleX(1); }

.tab-panel{ display:none; }
.tab-panel.is-active{ display:block; }

.card-grid{ display:grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 700px){ .card-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .card-grid{ grid-template-columns: repeat(3, 1fr); } }

.sheet-card{
  background: var(--paper); color: var(--ink);
  display:flex; flex-direction:column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.sheet-card:hover{ transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.sheet-card .sc-media{ position:relative; height: 190px; overflow:hidden; background:#000; }
.sheet-card .sc-media img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.sheet-card:hover .sc-media img{ transform: scale(1.06); }
.sheet-card .sc-date{
  position:absolute; top:12px; left:12px; background: var(--ink); color:#D8C387;
  font-family: var(--f-mono); font-size:.68rem; padding: 5px 9px; letter-spacing:.05em;
}
.sheet-card .sc-body{ padding: 18px 18px 20px; display:flex; flex-direction:column; gap:10px; flex:1; }
.sheet-card h3{ font-size: 1.05rem; line-height:1.35; font-weight:600; }
.sheet-card .sc-foot{ margin-top:auto; display:flex; justify-content:space-between; align-items:center; }

.gallery-card{ position:relative; overflow:hidden; height:230px; }
.gallery-card img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.gallery-card:hover img{ transform: scale(1.08); }
.gallery-card::after{
  content:""; position:absolute; top:0; right:0; bottom:0; left:0; background: linear-gradient(0deg, rgba(23,34,54,.75), transparent 55%);
}
.gallery-card span{
  position:absolute; left:14px; bottom:12px; z-index:2; color:#fff; font-family: var(--f-mono); font-size:.72rem; letter-spacing:.05em;
}

.tab-panel-foot{ margin-top: 40px; display:flex; justify-content:flex-end; }
.tab-panel-foot .btn-text{ color:#D8C387; }

.empty-note{ font-family: var(--f-mono); font-size:.85rem; color: rgba(245,241,230,.55); padding: 24px 0; }

/* =========================================================================
   FACILITIES
   ========================================================================= */
.facilities{ background: var(--paper-2); }
.fac-grid{ display:grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width:860px){ .fac-grid{ grid-template-columns: repeat(3, 1fr); } }
.fac-card{
  background: var(--white); border:1px solid var(--line);
  display:flex; flex-direction:column; overflow:hidden;
  transition: box-shadow .3s ease, transform .3s ease;
}
.fac-card:hover{ box-shadow: 0 18px 36px rgba(23,34,54,.12); transform: translateY(-4px); }
.fac-media{ height: 200px; overflow:hidden; }
.fac-media img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.fac-card:hover .fac-media img{ transform: scale(1.06); }
.fac-body{ padding: 22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.fac-body .fac-idx{ font-family: var(--f-mono); font-size:.7rem; color: var(--brass-dark); letter-spacing:.08em; }
.fac-body h3{ font-size:1.15rem; }
.fac-body p{ color: var(--ink-70); font-size:.9rem; flex:1; }

/* =========================================================================
   PUBLICATIONS — horizontal scroll
   ========================================================================= */
.publications{ background: var(--paper); }
.pub-scroller{
  display:flex; gap:20px; overflow-x:auto; padding-bottom: 14px; scroll-snap-type: x proximity;
  -ms-overflow-style:none; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.pub-card{
  scroll-snap-align:start; flex: 0 0 260px;
  border: 1px solid var(--line); background:var(--white);
  display:flex; flex-direction:column;
}
.pub-thumb{ height: 180px; overflow:hidden; background: var(--paper-2); position:relative; }
.pub-thumb img{ width:100%; height:100%; object-fit:cover; }
.pub-date-tag{
  position:absolute; top:10px; left:10px; background: var(--ink); color:#D8C387;
  font-family: var(--f-mono); font-size:.64rem; padding:5px 8px; text-align:center; line-height:1.3;
}
.pub-date-tag strong{ display:block; font-size:.9rem; }
.pub-body{ padding: 16px; display:flex; flex-direction:column; gap:10px; flex:1; }
.pub-body h4{ font-size:.94rem; font-weight:600; line-height:1.35; }
.pub-body .pub-foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; }
.pub-filetag{ font-family: var(--f-mono); font-size:.66rem; text-transform:uppercase; color: var(--teal); border:1px solid var(--teal); padding:3px 7px; }

/* =========================================================================
   CTA BAND
   ========================================================================= */
.cta-band{
  background: var(--ink); position:relative; overflow:hidden; border-top:3px solid var(--brass); border-bottom: 3px solid var(--brass);
}
.cta-band .container{ padding-top:64px; padding-bottom:64px; display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.cta-band h2{ color:#fff; font-size: clamp(1.6rem, 3vw, 2.2rem); max-width:520px; }
.cta-band p{ color: rgba(245,241,230,.65); margin-top:10px; max-width:480px; font-size:.92rem; }
.cta-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer{ background: var(--ink); color: rgba(245,241,230,.75); }
.footer-top{ padding: 72px 0 48px; }
.footer-grid{ display:grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 760px){ .footer-grid{ grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap:32px; } }
.footer-brand img{ height:46px; margin-bottom:16px; }
.footer-brand p{ font-size:.88rem; color: rgba(245,241,230,.6); max-width:280px; }
.footer-col h5{ font-family: var(--f-mono); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:#D8C387; margin-bottom:18px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul li a{ font-size:.9rem; color: rgba(245,241,230,.72); transition:color .2s; }
.footer-col ul li a:hover{ color:#fff; }
.footer-contact li{ display:flex; gap:10px; font-size:.88rem; margin-bottom:14px; align-items:flex-start; }
.footer-contact li svg{ width:15px; height:15px; flex-shrink:0; margin-top:3px; color: var(--brass); }
.footer-social{ display:flex; gap:12px; margin-top:18px; }
.footer-social a{ width:34px; height:34px; border:1px solid rgba(245,241,230,.25); display:flex; align-items:center; justify-content:center; }
.footer-social a svg{ width:14px; height:14px; }
.footer-social a:hover{ background: var(--brass); border-color:var(--brass); color: var(--ink); }
.footer-bottom{
  border-top: 1px solid rgba(245,241,230,.15); padding: 22px 0;
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-family: var(--f-mono); font-size:.72rem; color: rgba(245,241,230,.5);
}
.footer-bottom a{ color: rgba(245,241,230,.7); }
.footer-bottom a:hover{ color:#fff; }

/* ---- Back to top -------------------------------------------------------*/
.to-top{
  position: fixed; right:24px; bottom:24px; z-index:150;
  width:46px; height:46px; background: var(--ink); color:#D8C387; border:1px solid var(--brass);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.to-top.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }
.to-top svg{ width:18px; height:18px; }

/* ========== INNER PAGE HERO ========== */
.page-hero{
  position:relative;
  padding: 120px 0 64px;
  background: var(--ink, #0B1C2C);
  color:#fff;
  overflow:hidden;
}
.page-hero::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(11,28,44,.95) 0%, rgba(15,50,60,.9) 100%);
  z-index:1;
}
.page-hero .container{ position:relative; z-index:2; }
.page-hero .breadcrumb{
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  font-size:.8rem; letter-spacing:.04em; text-transform:uppercase;
  font-family: var(--f-mono, monospace);
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
}
.page-hero .breadcrumb a{ color: rgba(255,255,255,.7); }
.page-hero .breadcrumb a:hover{ color: var(--brass, #D8C387); }
.page-hero .breadcrumb span{ opacity:.5; }
.page-hero h1{
  font-size: clamp(2rem, 4vw, 3rem);
  line-height:1.15;
  margin:0 0 12px;
  max-width: 720px;
}
.page-hero p.lede{
  color: rgba(255,255,255,.7);
  max-width: 520px;
  font-size:1.05rem;
  margin:0;
}

/* Content blocks */
.page-content{ padding: 72px 0; }
.page-content .prose{
  max-width: 780px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-70, #3a4a5a);
}
.page-content .prose p{ margin-bottom: 1.1em; }
.page-content .prose h2{ color: var(--ink); margin: 1.6em 0 .6em; font-size:1.4rem; }
.page-content .prose ul{ margin: 0 0 1.2em 1.2em; }
.page-content .prose li{ margin-bottom: .45em; }

.content-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
  margin-bottom: 24px;
}

.obj-list{ list-style:none; margin:0; padding:0; }
.obj-list li{
  display:flex; gap:14px; align-items:flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: var(--ink-70);
  line-height:1.55;
}
.obj-list li:last-child{ border-bottom:none; }
.obj-list .num{
  flex-shrink:0;
  width:28px; height:28px; border-radius:50%;
  background: var(--brass, #D8C387);
  color: var(--ink);
  font-size:.75rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--f-mono, monospace);
}

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.gallery-grid a{
  display:block; border-radius:12px; overflow:hidden;
  aspect-ratio: 4/3; background:#eee;
}
.gallery-grid img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .4s ease;
}
.gallery-grid a:hover img{ transform: scale(1.05); }

.list-card{
  display:flex; gap:20px; align-items:flex-start;
  padding: 22px;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  margin-bottom:16px;
  transition: box-shadow .25s ease;
}
.list-card:hover{ box-shadow: 0 8px 28px rgba(0,0,0,.08); }
.list-card img{
  width:120px; height:90px; object-fit:cover; border-radius:8px; flex-shrink:0;
}
.list-card h3{ font-size:1.1rem; margin:0 0 6px; color: var(--ink); }
.list-card p{ margin:0; color: var(--ink-70); font-size:.95rem; line-height:1.5; }
.list-card .meta{ font-size:.8rem; color: var(--teal, #1a7a6d); margin-top:8px; font-family: var(--f-mono, monospace); }

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media(max-width:768px){
  .contact-grid{ grid-template-columns:1fr; }
  .list-card{ flex-direction:column; }
  .list-card img{ width:100%; height:160px; }
}

.facility-hero-img{
  width:100%; max-height:360px; object-fit:cover; border-radius:14px; margin-bottom:28px;
}

.table-modern{
  width:100%; border-collapse:collapse; font-size:.95rem;
}
.table-modern th, .table-modern td{
  padding:12px 14px; text-align:left; border-bottom:1px solid rgba(0,0,0,.08);
}
.table-modern th{
  background:#f8fafc; font-size:.78rem; text-transform:uppercase;
  letter-spacing:.04em; color: var(--ink-70);
}
.table-modern tr:hover td{ background:#fafbfc; }

.member-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap:20px;
}
.member-card{
  background:#fff; border:1px solid rgba(0,0,0,.06);
  border-radius:14px; padding:24px; text-align:center;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.member-card .avatar{
  width:80px; height:80px; border-radius:50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color:#fff; font-size:1.6rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 14px;
}
.member-card h3{ font-size:1.05rem; margin:0 0 4px; }
.member-card .role{ font-size:.85rem; color: var(--teal); margin-bottom:8px; }
.member-card .info{ font-size:.85rem; color: var(--ink-70); line-height:1.45; }

/* Force white text on dark page hero */
.page-hero,
.page-hero h1,
.page-hero h2,
.page-hero p,
.page-hero p.lede,
.page-hero .breadcrumb,
.page-hero .breadcrumb a,
.page-hero .breadcrumb span,
.page-hero * {
  color: #ffffff !important;
}
.page-hero .breadcrumb a:hover {
  color: #D8C387 !important;
}
.page-hero h1 {
  font-weight: 600;
}

/* Room booking popup */
.rb-popup[hidden] { display: none !important; }
.rb-popup.is-open { display: flex !important; }
.rb-popup {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.rb-popup-backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 28, 44, 0.65);
  backdrop-filter: blur(4px);
}
.rb-popup-box {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  animation: rb-in .35s ease;
}
@keyframes rb-in {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.rb-popup-close {
  position: absolute; top: 12px; right: 14px;
  border: none; background: transparent;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  color: #64748b; padding: 4px 8px;
}
.rb-popup-icon { font-size: 2.4rem; margin-bottom: 8px; }
.rb-popup-box h2 {
  margin: 0 0 10px; font-size: 1.4rem; color: var(--ink, #0B1C2C);
}
.rb-popup-box p {
  margin: 0 0 22px; color: #64748b; font-size: .98rem; line-height: 1.55;
}
.rb-popup-box .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.rb-popup-later {
  border: none; background: none; color: #94a3b8;
  font-size: .9rem; cursor: pointer; text-decoration: underline;
}

/* Gallery lightbox slider */
.gal-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
  flex-direction: column; padding: 20px;
}
.gal-lightbox.is-open { display: flex; }
.gal-lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.gal-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.gal-lightbox-nav:hover { background: rgba(255,255,255,.3); }
.gal-lightbox-prev { left: 16px; }
.gal-lightbox-next { right: 16px; }
.gal-lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: #fff;
  font-size: 2rem; cursor: pointer; line-height: 1;
}
.gal-lightbox-caption {
  color: rgba(255,255,255,.8); margin-top: 14px; font-size: .95rem;
}
.gallery-grid a { cursor: zoom-in; }

.mobile-nav a.nav-highlight{
  background: var(--brass) !important;
  color: #fff !important;
  border-radius: 6px;
  margin: 6px 0;
  padding: 12px 14px !important;
  display: block;
  text-align: center;
  font-weight: 600;
}

/* Mobile hero & section height fixes */
@media (max-width: 900px) {
  .hero {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    display: block;
    aspect-ratio: 16 / 10;
    position: relative;
  }
  .hero-slides {
    position: absolute;
    inset: 0;
  }
  .hero-slide {
    position: absolute;
    inset: 0;
  }
  .hero-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #0b1c2c;
  }
  .hero-body {
    position: relative;
    z-index: 2;
    padding: 24px 0 28px !important;
    background: linear-gradient(0deg, rgba(15,22,36,.92) 0%, rgba(15,22,36,.5) 65%, transparent 100%);
  }
  .hero-text h1 {
    font-size: clamp(1.5rem, 6vw, 2.1rem) !important;
  }
  .hero-text p {
    font-size: .95rem !important;
  }
  .hero-actions {
    margin-bottom: 12px !important;
  }

  /* Arrows: mid of image band (not over text) */
  .hero-controls {
    position: absolute !important;
    right: auto !important;
    bottom: auto !important;
    top: 40% !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 10px !important;
    gap: 0 !important;
    z-index: 4 !important;
    pointer-events: none;
    transform: none !important;
  }
  .hero-controls button {
    pointer-events: auto;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,.5) !important;
    border: 1px solid rgba(255,255,255,.4) !important;
    backdrop-filter: blur(4px);
  }

  /* Dots: just above title text, center */
  .hero-dots {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    top: 90% !important;
    transform: translateX(-50%) !important;
    z-index: 5 !important;
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .hero-dots button {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.45) !important;
  }
  .hero-dots button.is-active {
    background: #D8C387 !important;
    width: 20px !important;
    border-radius: 4px !important;
  }

  /* Hide decorative corners on mobile — clutter */
  .hero-corner { display: none !important; }

  /* Other fixed-height sections */
  .about-media img {
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    object-fit: contain !important;
  }
  .sheet-card .sc-media,
  .sheet-card .sc-media img,
  .gallery-card,
  .gallery-card img,
  .fac-media,
  .fac-media img {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .sheet-card .sc-media img,
  .gallery-card img,
  .fac-media img {
    width: 100% !important;
    object-fit: contain !important;
    aspect-ratio: 4 / 3;
  }
  .section { padding: 48px 0 !important; }
  .section-tight { padding: 36px 0 !important; }
  .page-hero { padding: 100px 0 48px !important; }
}

@media (max-width: 560px) {
  .hero {
    aspect-ratio: 4 / 3;
  }
  .hero-slide img {
    object-fit: contain !important;
  }
  .hero-controls {
    padding: 0 6px !important;
  }
  .hero-controls button {
    width: 32px !important;
    height: 32px !important;
  }
  .hero-dots {
    bottom: 10px !important;
  }
}
