/* ============================================
   OZ PALACE — Master Stylesheet
   Luxury kasbah hospitality, editorial restraint
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=Italiana&display=swap');

:root {
  /* Brand */
  --green: #175653;
  --green-deep: #0f3e3c;
  --green-soft: #2a6f6c;
  --gold: #b38702;
  --gold-light: #d4a017;
  --gold-pale: #f3e9c9;

  /* Neutrals — warm Moroccan palette */
  --bone: #f7f2ea;
  --sand: #ede4d3;
  --terracotta: #c08458;
  --clay: #8b5a3c;
  --ink: #1a1a1a;
  --charcoal: #2c2c2c;
  --stone: #6b6b67;
  --line: rgba(26, 26, 26, 0.12);

  /* Type */
  --display: 'Italiana', 'Cormorant Garamond', serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;

  /* Spacing & motion */
  --max: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--bone);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }

/* ============ TYPE ============ */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.eyebrow::before,
.eyebrow.with-line::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.05;
  color: var(--green-deep);
}

h1.display { font-size: clamp(2.4rem, 6vw, 5rem); }
h2.display { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h3.display { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }

p.lede {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.65;
  color: var(--charcoal);
  font-weight: 300;
}

p { font-weight: 400; }

/* ============ LAYOUT ============ */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.section-tight { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
}

/* ============ NAV ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s var(--ease);
  background: transparent;
}

/* Backdrop blur lives on a pseudo-element, NOT on .nav itself.
   backdrop-filter on .nav would create a containing block that traps
   the position:fixed mobile menu overlay inside the nav's tiny height. */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(247, 242, 234, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.nav.scrolled::before { opacity: 1; }
.nav.scrolled {
  padding: 0.9rem var(--gutter);
}

.nav-brand {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  color: var(--bone);
  transition: color 0.4s var(--ease);
  z-index: 110;
}

.nav-brand small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.45em;
  margin-top: 2px;
  opacity: 0.75;
  font-weight: 400;
}

.nav.scrolled .nav-brand,
.nav.light .nav-brand { color: var(--green-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav.scrolled .nav-links a,
.nav.light .nav-links a { color: var(--charcoal); }

.nav.scrolled .nav-links a:hover,
.nav.light .nav-links a:hover { color: var(--gold); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 24px;
  position: relative;
  z-index: 110;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--bone);
  position: absolute;
  left: 0;
  transition: all 0.35s var(--ease);
}

.nav.scrolled .nav-burger span,
.nav.light .nav-burger span,
.nav-burger.open span { background: var(--green-deep); }

.nav-burger span:nth-child(1) { top: 4px; }
.nav-burger span:nth-child(2) { top: 11px; width: 70%; }
.nav-burger span:nth-child(3) { top: 18px; }

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-burger { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bone);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--green-deep) !important; font-size: 14px; }
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 2rem;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  border: none;
  position: relative;
}

.btn-primary {
  background: var(--green);
  color: var(--bone);
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(179, 135, 2, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(247, 242, 234, 0.5);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline-dark {
  background: transparent;
  color: var(--green-deep);
  border: 1px solid var(--green-deep);
}

.btn-outline-dark:hover {
  background: var(--green-deep);
  color: var(--bone);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}

.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--green-deep);
  transition: all 0.3s var(--ease);
}

.link-arrow:hover {
  color: var(--gold);
  border-color: var(--gold);
  gap: 1.1rem;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoom 24s var(--ease) forwards;
}

@keyframes zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 62, 60, 0.45) 0%, rgba(15, 62, 60, 0.1) 35%, rgba(15, 62, 60, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  color: var(--bone);
}

.hero-content .eyebrow {
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  animation: fadeUp 1.2s var(--ease) 0.3s both;
}

.hero-content .eyebrow::before { background: var(--gold-light); }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1.02;
  font-weight: 400;
  color: var(--bone);
  max-width: 14ch;
  margin-bottom: 1.5rem;
  animation: fadeUp 1.2s var(--ease) 0.5s both;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 300;
  max-width: 52ch;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  opacity: 0.92;
  animation: fadeUp 1.2s var(--ease) 0.7s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 1.2s var(--ease) 0.9s both;
}

.hero-meta {
  position: absolute;
  z-index: 5;
  bottom: clamp(2rem, 5vh, 3rem);
  right: var(--gutter);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.7;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  animation: fadeUp 1.5s var(--ease) 1.5s both;
}

@media (max-width: 700px) {
  .hero-meta { display: none; }
}

.hero-scroll {
  position: absolute;
  z-index: 5;
  bottom: clamp(1.5rem, 3vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: fadeUp 1.5s var(--ease) 1.7s both;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 28px;
  background: var(--bone);
  animation: scrollLine 2s var(--ease) infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ PAGE HEADER (non-home pages) ============ */

.page-header {
  position: relative;
  height: 62vh;
  min-height: 460px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bone);
}

.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 62, 60, 0.5) 0%, rgba(15, 62, 60, 0.55) 100%);
}

.page-header-content {
  position: relative;
  z-index: 5;
  padding: 0 var(--gutter);
}

.page-header .eyebrow {
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  justify-content: center;
}
.page-header .eyebrow::before,
.page-header .eyebrow.with-line::after { background: var(--gold-light); }

.page-header h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 1.05;
  color: var(--bone);
  max-width: 16ch;
  margin: 0 auto 1.2rem;
}

.page-header p {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  max-width: 56ch;
  margin: 0 auto;
  font-weight: 300;
  opacity: 0.92;
}

/* ============ SECTION HEADINGS ============ */

.section-head {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-head .eyebrow { justify-content: center; margin-bottom: 1.2rem; }
.section-head h2 { max-width: 22ch; margin: 0 auto 1.2rem; }
.section-head p {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--stone);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ============ MOROCCAN ORNAMENT ============ */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
}

.ornament-line {
  width: 50px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.ornament svg {
  width: 28px;
  height: 28px;
  fill: var(--gold);
  opacity: 0.85;
}

/* ============ HIGHLIGHTS GRID ============ */

.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.highlight {
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 2.5vw, 2.2rem);
  border-right: 1px solid var(--line);
  text-align: left;
  transition: background 0.5s var(--ease);
}

.highlight:last-child { border-right: none; }

.highlight:hover { background: rgba(179, 135, 2, 0.04); }

.highlight-num {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}

.highlight h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--green-deep);
  margin-bottom: 0.9rem;
  line-height: 1.2;
}

.highlight p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--stone);
}

@media (max-width: 980px) {
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(2) { border-right: none; }
  .highlight:nth-child(1), .highlight:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .highlights { grid-template-columns: 1fr; }
  .highlight { border-right: none !important; border-bottom: 1px solid var(--line); }
  .highlight:last-child { border-bottom: none; }
}

/* ============ ROOMS GRID ============ */

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.room-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--sand);
  cursor: pointer;
  transition: transform 0.6s var(--ease);
}

.room-card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.room-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s 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 50%, rgba(15, 62, 60, 0.55) 100%);
  opacity: 0.7;
  transition: opacity 0.4s var(--ease);
}

.room-card-body {
  padding: 2rem clamp(1.5rem, 2.5vw, 2.5rem) 2.2rem;
  background: var(--bone);
  border: 1px solid var(--line);
  border-top: none;
}

.room-card-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  display: block;
}

.room-card h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: var(--green-deep);
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.room-card p {
  font-size: 0.98rem;
  color: var(--stone);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.room-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.room-card-amenities {
  display: flex;
  gap: 1.2rem;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--stone);
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .rooms-grid { grid-template-columns: 1fr; }
}

/* ============ EXPERIENCES ============ */

.experience-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 7vw, 6rem);
}

.experience-row.reverse { direction: rtl; }
.experience-row.reverse > * { direction: ltr; }

.experience-row:last-child { margin-bottom: 0; }

.experience-img {
  position: relative;
  aspect-ratio: 5/6;
  overflow: hidden;
}

.experience-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.experience-img:hover img { transform: scale(1.04); }

.experience-num {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--bone);
  letter-spacing: 0.15em;
  z-index: 2;
}

.experience-content .eyebrow { margin-bottom: 1.3rem; }

.experience-content h3 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--green-deep);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}

.experience-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.experience-content ul {
  list-style: none;
  margin-bottom: 2rem;
}

.experience-content ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.55rem;
  font-size: 0.98rem;
  color: var(--stone);
}

.experience-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.85rem;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

@media (max-width: 880px) {
  .experience-row, .experience-row.reverse { direction: ltr; grid-template-columns: 1fr; }
}

/* ============ PARALLAX QUOTE ============ */

.quote-section {
  position: relative;
  padding: clamp(8rem, 18vh, 14rem) var(--gutter);
  overflow: hidden;
  text-align: center;
  color: var(--bone);
  background: var(--green-deep);
}

.quote-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.quote-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.quote-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 62, 60, 0.6), rgba(15, 62, 60, 0.85));
}

.quote-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.quote-content p {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.35;
  font-weight: 400;
  font-style: italic;
}

.quote-content .quote-mark {
  font-size: 4rem;
  color: var(--gold-light);
  line-height: 0.5;
  display: block;
  margin-bottom: 1.5rem;
}

.quote-attr {
  display: block;
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-style: normal;
}

/* ============ CTA STRIP ============ */

.cta-strip {
  background: var(--green-deep);
  color: var(--bone);
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(179, 135, 2, 0.12), transparent 50%),
    radial-gradient(circle at 85% 50%, rgba(179, 135, 2, 0.08), transparent 50%);
}

.cta-strip > * { position: relative; z-index: 2; }

.cta-strip h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--bone);
  margin-bottom: 1.2rem;
  line-height: 1.1;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-strip p {
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.9;
}

/* ============ FOOTER ============ */

.footer {
  background: #0a2a28;
  color: var(--bone);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247, 242, 234, 0.12);
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: 0.18em;
  color: var(--bone);
  margin-bottom: 1rem;
}

.footer-brand small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.4em;
  margin-top: 4px;
  opacity: 0.7;
}

.footer-tagline {
  font-size: 0.95rem;
  opacity: 0.7;
  max-width: 32ch;
  line-height: 1.6;
  margin-top: 1rem;
}

.footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a {
  font-size: 0.95rem;
  opacity: 0.75;
  transition: opacity 0.3s var(--ease);
}
.footer ul a:hover { opacity: 1; color: var(--gold-light); }

.footer-contact { font-size: 0.93rem; opacity: 0.75; line-height: 1.8; }
.footer-contact strong { font-weight: 500; opacity: 1; color: var(--gold-light); display: block; margin-top: 1rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.55;
}

.footer-bottom div { display: flex; gap: 1.5rem; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ============ REVEAL ON SCROLL ============ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.36s; }

/* ============ EXTRAS ============ */

.figure-caption {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 1rem;
  text-align: center;
}

/* image stack composition for about */
.image-stack {
  position: relative;
  aspect-ratio: 4/5;
}
.image-stack .img-main, .image-stack .img-accent {
  position: absolute;
  overflow: hidden;
}
.image-stack .img-main {
  inset: 0 18% 18% 0;
}
.image-stack .img-accent {
  inset: 32% 0 0 35%;
}
.image-stack img { width: 100%; height: 100%; object-fit: cover; }

/* Gallery — guaranteed 3 cols desktop, 2 cols mobile.
   CSS Grid (not CSS columns) so column count never collapses
   when filters reduce the visible item set. align-items: start
   keeps the masonry-feel: items size naturally, top-aligned per row. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}
.gallery-grid figure {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-grid figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}
.gallery-grid figure:hover img {
  transform: scale(1.04);
  filter: brightness(1.05);
}
@media (max-width: 880px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.85;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(247, 242, 234, 0.4);
  color: var(--bone);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: var(--sans);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox { padding: 3.5rem 0.5rem; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.8rem;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
}
.field input, .field select, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--charcoal);
  transition: border 0.3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field textarea { min-height: 110px; resize: vertical; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* Two-col page intro */
.intro-two {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.intro-two h2 { line-height: 1.05; }
.intro-two p { font-size: 1.1rem; line-height: 1.75; color: var(--charcoal); }
.intro-two p + p { margin-top: 1.2rem; }
@media (max-width: 880px) { .intro-two { grid-template-columns: 1fr; } }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.pillar {
  padding: 2rem 1.5rem;
  background: var(--bone);
  border: 1px solid var(--line);
  text-align: center;
  transition: all 0.4s var(--ease);
}
.pillar:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.pillar svg {
  width: 32px; height: 32px;
  fill: var(--gold);
  margin: 0 auto 1.2rem;
  display: block;
}
.pillar h4 {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--green-deep);
  margin-bottom: 0.8rem;
}
.pillar p { font-size: 0.93rem; color: var(--stone); line-height: 1.65; }
@media (max-width: 880px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pillars { grid-template-columns: 1fr; } }

/* "facts" line on about / detail */
.facts {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact { flex: 1; min-width: 140px; }
.fact .num {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.fact .label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 0.6rem;
  display: block;
}

/* Service cards (experiences page) */
.service-card {
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 2.2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: start;
  margin-bottom: 1.2rem;
  transition: all 0.4s var(--ease);
}
.service-card:hover { border-color: var(--gold); }
.service-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon svg { width: 26px; height: 26px; fill: var(--gold); }
.service-card h4 {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}
.service-card p { color: var(--stone); font-size: 0.97rem; line-height: 1.65; }
@media (max-width: 540px) {
  .service-card { grid-template-columns: 1fr; }
}

/* destination items */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.dest-item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
}
.dest-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.dest-item:hover img { transform: scale(1.06); }
.dest-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 62, 60, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--bone);
}
.dest-item-overlay h4 {
  font-family: var(--display);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}
.dest-item-overlay span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.9;
}
@media (max-width: 760px) { .destinations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .destinations-grid { grid-template-columns: 1fr; } }

/* Booking bar */
.booking-bar {
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 1rem;
  align-items: end;
  max-width: var(--max);
  margin: -3rem auto 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 24px 60px rgba(15, 62, 60, 0.08);
}
.booking-bar .field {
  border-right: 1px solid var(--line);
  padding-right: 1rem;
}
.booking-bar .field:nth-last-child(2) { border-right: none; }
.booking-bar input,
.booking-bar select {
  padding: 0.4rem 0;
  border-bottom: none;
  font-size: 0.95rem;
  background: transparent;
  color: var(--charcoal);
}
.booking-bar .btn { width: 100%; justify-content: center; }
@media (max-width: 880px) {
  .booking-bar { grid-template-columns: 1fr 1fr; margin-top: -2rem; }
  .booking-bar .field { border-right: none; }
}


/* ===== HERO LAYOUT FIX (overrides appended at end so they win) ===== */
.hero {
  align-items: center !important;
  padding-top: clamp(7rem, 14vh, 10rem) !important;
  padding-bottom: clamp(5rem, 10vh, 8rem) !important;
  background: #2c4a45; /* warm fallback so layout is never visually broken */
}
.hero-content .eyebrow {
  margin-bottom: 1.25rem;
}
.hero-meta {
  bottom: 2.5rem;
}
.hero-scroll {
  bottom: 2rem;
}

/* ===== HERO TEXT TIGHTEN (avoid stacking with nav + booking bar) ===== */
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem) !important;
  line-height: 1.05;
  margin-bottom: 1.1rem;
  max-width: 18ch;
}
.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  margin-bottom: 0;
  max-width: 48ch;
}

/* ===== NAV LOGO ===== */
.nav-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.nav-brand img {
  height: 56px;
  width: auto;
  display: block;
  transition: filter 0.4s var(--ease), height 0.4s var(--ease);
  /* on transparent nav (over hero) the logo is dark — invert to bone */
  filter: brightness(0) invert(1);
}
.nav.scrolled .nav-brand img,
.nav.light .nav-brand img {
  filter: none;
  height: 44px;
}

/* ===== FOOTER LOGO ===== */
.footer-brand {
  line-height: 0;
  margin-bottom: 1rem;
}
.footer-brand img {
  height: 72px;
  width: auto;
  display: block;
  /* footer background is dark green — invert dark logo to bone */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* ===== EXPERIENCE IMAGES — match content height better ===== */
.experience-img {
  aspect-ratio: 4/3;
}
@media (min-width: 881px) {
  .experience-row,
  .experience-row.reverse {
    align-items: stretch;
  }
  .experience-img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 360px;
  }
  .experience-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* keep link-arrow border under text only, not full column width */
  }
}

/* ===== PAGE HEADER (about, etc.) — tighter title ===== */
.page-header h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  max-width: 22ch;
}
.page-header p {
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  max-width: 50ch;
}

/* ===== SPLIT SECTIONS (about) — image matches text column height ===== */
.split-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
@media (min-width: 881px) {
  .split:has(.split-img) {
    align-items: stretch;
  }
  .split:has(.split-img) > .reveal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  .split-img {
    aspect-ratio: auto;
    min-height: 440px;
  }
}
/* On mobile, always show the picture before the text in split sections */
@media (max-width: 880px) {
  .split:has(.split-img) > .reveal:has(.split-img) {
    order: -1;
  }
}

/* ===== CONTACT — info list rows ===== */
.contact-form-card {
  background: #fff;
  padding: clamp(1.75rem, 3vw, 3rem) clamp(1.4rem, 2.5vw, 2.75rem);
  border: 1px solid rgba(23, 86, 83, 0.08);
}
.contact-info-row {
  border-top: 1px solid rgba(23, 86, 83, 0.15);
  padding: 1.6rem 0;
}
.contact-info-row:last-of-type { border-bottom: 1px solid rgba(23, 86, 83, 0.15); }
.contact-info-row .eyebrow { font-size: 0.7rem; }
.contact-info-row p {
  margin-top: 0.6rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--green);
  line-height: 1.5;
}
.contact-info-row a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.contact-distances {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  color: var(--stone);
}
.contact-distances li {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px dotted rgba(23, 86, 83, 0.15);
}
.contact-distances li:last-child { border-bottom: none; }
.contact-distances li span:last-child {
  font-family: var(--serif);
  color: var(--green);
}

/* ===== GALLERY — filter bar + figure overlay ===== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.7rem 1.4rem;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--green-deep);
  color: var(--bone);
  border-color: var(--green-deep);
}
.gallery-grid figure { position: relative; transition: opacity 0.5s var(--ease); }
.gallery-grid figure.hidden { display: none; }
.gallery-grid figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(15, 62, 60, 0.9));
  color: var(--bone);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease);
}
.gallery-grid figure:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* ===== EVENTS — types grid (3 cols, left aligned) ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.events-grid .pillar {
  text-align: left;
  padding: 2.2rem;
}
.events-grid .pillar h4 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}
@media (max-width: 880px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .events-grid { grid-template-columns: 1fr; }
}

/* ===== EXPERIENCES — services grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== ROOMS PAGE — room detail rows ===== */
.room-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(5rem, 9vw, 8rem);
}
.room-detail.reverse { direction: rtl; }
.room-detail.reverse > * { direction: ltr; }
.room-detail-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.room-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.room-detail-img:hover img { transform: scale(1.04); }
.room-detail-num {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--bone);
  letter-spacing: 0.15em;
}
.room-detail-content h2 { line-height: 1.05; margin: 1.3rem 0 1.5rem; }
.room-detail-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 1.3rem;
}
.room-amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem 1.3rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2rem 0;
}
.room-amenities li {
  list-style: none;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--stone);
  padding-left: 1.4rem;
  position: relative;
}
.room-amenities li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 1px;
  background: var(--gold);
}
@media (min-width: 881px) {
  .room-detail { align-items: stretch; }
  .room-detail-img {
    aspect-ratio: auto;
    min-height: 480px;
  }
  .room-detail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
}
@media (max-width: 880px) {
  .room-detail,
  .room-detail.reverse {
    direction: ltr;
    grid-template-columns: 1fr;
  }
  /* Picture before text on mobile */
  .room-detail > .room-detail-img { order: -1; }
}

/* ===== KEEP BOOK NOW BUTTON READABLE WHEN NAV IS SCROLLED ===== */
.nav.scrolled .nav-links a.btn-primary,
.nav.light .nav-links a.btn-primary {
  color: var(--bone);
}
.nav.scrolled .nav-links a.btn-primary:hover,
.nav.light .nav-links a.btn-primary:hover {
  color: var(--ink);
}

/* ===== MOBILE NAV — show colored logo while menu is open ===== */
.nav.menu-open { transition: none; }
.nav.menu-open::before { opacity: 0; }
.nav.menu-open .nav-brand img {
  filter: none;
  transition: none;
}
@media (max-width: 980px) {
  /* Mobile menu rule forces all links to green-deep — bring Book Now back to bone */
  .nav-links a.btn-primary {
    color: var(--bone) !important;
    background: var(--green) !important;
  }
}

/* ===== MOBILE HERO — taller again, content centered, but capped below desktop ===== */
@media (max-width: 760px) {
  .hero {
    height: 78vh !important;
    min-height: 560px !important;
    padding-top: clamp(6rem, 18vh, 8rem) !important;
    padding-bottom: clamp(3rem, 7vh, 5rem) !important;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 8.5vw, 3.2rem) !important;
  }
  .hero-sub {
    font-size: 1rem;
  }

  /* Force scroll indicator to viewport center on mobile */
  .hero-meta { display: none !important; }
  .hero-scroll {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  /* Booking bar — 2-col fields, centered button across both */
  .booking-bar {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.2rem;
    margin-top: -1.5rem;
    padding: 1.25rem 1.25rem 1.5rem;
    text-align: left;
  }
  .booking-bar .field {
    border-right: none;
    padding-right: 0;
  }
  .booking-bar .btn {
    grid-column: 1 / -1;
    justify-self: center;
    width: auto;
    min-width: 220px;
    margin-top: 0.5rem;
  }
}

