/*
==============================================
   IMPERIAL HERITAGE — SIGIRIYA PALACE
   Vanilla CSS (converted from Tailwind)
==============================================
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ---------- Design Tokens ---------- */
:root {
  --primary:                 #803643;
  --on-primary:              #ffffff;
  --red-300:                 #aa7881;
  --red-400:                 #995e69;
  --primary-container:       #803643;
  --primary-fixed:           #ffdadc;
  --primary-fixed-dim:       #ffb2b9;
  --on-primary-fixed:        #400010;
  --on-surface:              #1a1c1c;
  --on-surface-variant:      #554243;
  --on-background:           #1a1c1c;
  --surface:                 #f9f9f9;
  --surface-bright:          #f9f9f9;
  --surface-dim:             #dadada;
  --surface-container-lowest:#ffffff;
  --surface-container-low:   #f3f3f3;
  --surface-container:       #eeeeee;
  --surface-container-high:  #e8e8e8;
  --surface-container-highest:#e2e2e2;
  --surface-variant:         #e2e2e2;
  --background:              #f9f9f9;
  --secondary:               #605e5e;
  --secondary-fixed:         #e5e2e1;
  --secondary-container:     #e5e2e1;
  --tertiary:                #5B5B41;
  --tertiary-fixed:          #e6e4c3;
  --tertiary-fixed-dim:      #c9c8a8;
  --outline:                 #887273;
  --outline-variant:         #dac0c2;
  --inverse-surface:         #2f3131;
  --inverse-on-surface:      #f1f1f1;
  --charcoal-stone:          #2F2E2E;
  --travertine-white:        #FFFFFF;
  --sandstone-tan:           #F5F0E8;
  --parchment-gray:          #F1F1F1;
  --error:                   #ba1a1a;

  /* Gold accent — card labels & links */
  --gold:                    #c9933a;  /* Base amber gold */
  --gold-bright:             #d4a44e;  /* Slightly lighter for text on dark */
  --gold-hover:              #e8bf78;  /* Warm highlight on hover */
  --gold-muted:              rgba(201, 147, 58, 0.7); /* Dimmed default state */
  /* Typography */
  --ff-display: 'EB Garamond', serif;
  --ff-body:    'DM Sans', sans-serif;

  /* Legacy inner-page variables (backward compatibility) */
  --c-imperial-red: #732130;
  --c-charcoal-stone: #2F2E2E;
  --c-moss-preservation: #5B5B41;
  --c-travertine-white: #FFFFFF;
  --c-parchment-gray: #F1F1F1;
  --c-sandstone-tan: #F5F0E8;
  --c-surface: #f9f9f9;
  --c-surface-container: #eeeeee;
  --c-surface-container-low: #f3f3f3;
  --c-surface-container-high: #e8e8e8;
  --c-surface-container-highest: #e2e2e2;
  --c-on-surface: #1a1c1c;
  --c-on-surface-variant: #554243;
  --c-outline: #887273;
  --c-outline-variant: #dac0c2;

  /* Spacing */
  --margin-mobile:  20px;
  --margin-desktop: 64px;
  --gutter:         24px;
  --max-w:          1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface);
  background: var(--background);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .3s; }
button { cursor: pointer; }

/* Scrollbar */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track  { background: var(--surface-container-low); }
::-webkit-scrollbar-thumb  { background: var(--outline); }

/* Material Icons config */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ---------- Typography ---------- */
.font-display      { font-family: var(--ff-display); }
.font-body         { font-family: var(--ff-body); }

.text-display-lg   { font-family: var(--ff-display); font-size: 64px; line-height: 72px; letter-spacing: -0.02em; font-weight: 500; }
.text-display-lg-m { font-family: var(--ff-display); font-size: 40px; line-height: 48px; letter-spacing: -0.01em; font-weight: 500; }
.text-headline-xl  { font-family: var(--ff-display); font-size: 84px; line-height: 92px; letter-spacing: -0.02em; font-weight: 500; }
.text-headline-lg  { font-family: var(--ff-display); font-size: 32px; line-height: 40px; font-weight: 500; }
.text-headline-md  { font-family: var(--ff-display); font-size: 24px; line-height: 32px; font-weight: 500; }
.text-body-lg      { font-family: var(--ff-body); font-size: 18px; line-height: 28px; font-weight: 400; }
.text-body-md      { font-family: var(--ff-body); font-size: 16px; line-height: 24px; font-weight: 400; }
.text-label-caps   { font-family: var(--ff-body); font-size: 12px; line-height: 16px; letter-spacing: 0.1em; font-weight: 600; text-transform: uppercase; }
.text-label-lg     { font-family: var(--ff-body); font-size: 14px; line-height: 20px; letter-spacing: 0.05em; font-weight: 600; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left:  var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all .5s ease;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem var(--margin-mobile);
  transition: padding .4s;
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--travertine-white);
  transition: color .3s;
  text-decoration: none;
}

.nav-center {
  display: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--travertine-white);
  opacity: 0.85;
  transition: all .3s;
}
.nav-link:hover, .nav-link.active { color: var(--travertine-white); opacity: 1; }
.nav-link.active { font-weight: 700; border-bottom: 2px solid var(--travertine-white); padding-bottom: 2px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-lang {
  display: none;
  font-size: 16px;
  color: var(--travertine-white);
  cursor: pointer;
  position: relative;
  font-family: var(--ff-body);
  align-items: center;
  gap: 0.25rem;
}
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface-container-lowest);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  border-radius: 0;
  display: none;
  flex-direction: column;
  min-width: 140px;
  padding: 0.5rem 0;
  z-index: 100;
  margin-top: 0.5rem;
}
/* Invisible bridge to prevent hover loss over the margin gap */
.lang-dropdown::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}
.nav-lang:hover .lang-dropdown {
  display: flex;
}
.lang-dropdown a {
  padding: 0.5rem 1rem;
  color: var(--on-surface);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;
}
.lang-dropdown a:hover {
  background: var(--surface-container-low);
  color: var(--primary);
}

.mobile-lang-link {
  font-family: var(--ff-body);
  color: var(--on-surface-variant);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.mobile-lang-link:hover {
  color: var(--primary);
}

.btn-book {
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--ff-body);
  font-size: 12px; line-height: 16px;
  letter-spacing: 0.1em; font-weight: 600;
  text-transform: uppercase;
  padding: 12px 32px;
  border: none;
  box-shadow: 0 4px 12px rgba(128,54,67,.2);
  transition: background .3s, color .3s, box-shadow .3s, transform .3s;
}
.btn-book:hover {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 16px rgba(201, 147, 58, 0.4);
}

.hamburger {
  display: flex;
  background: none; border: none;
  color: var(--travertine-white);
  cursor: pointer;
}

/* scrolled state */
.navbar.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(218,192,194,.3);
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.navbar.scrolled .navbar-inner { padding-top: .75rem; padding-bottom: .75rem; }
.navbar.scrolled .nav-logo     { color: var(--primary); }
.navbar.scrolled .nav-link     { color: var(--on-surface-variant); opacity: 1; }
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active { color: var(--primary); }
.navbar.scrolled .nav-link.active { border-bottom-color: var(--primary); }
.navbar.scrolled .nav-lang     { color: var(--on-surface); }
.navbar.scrolled .hamburger    { color: var(--on-surface); }

/* mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem var(--margin-mobile);
  background: var(--travertine-white);
  border-bottom: 1px solid var(--outline-variant);
}
.mobile-menu.show { display: flex; }
.mobile-menu .nav-link { color: var(--on-surface-variant); }
.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- Hero Sequence ---------- */
.hero-sequence-section {
  position: relative;
  height: 300vh; /* 300vh provides plenty of scroll distance for the 120 frames */
  width: 100%;
  background: var(--surface-container-lowest);
}

.hero-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh; /* Fallback */
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-fit: cover; /* Fallback if not handled by JS */
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.10);
}

.hero-body {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  z-index: 10;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
  opacity: 0;
  transform: translateY(50px);
  pointer-events: none;
}

.hero-card {
  width: 100%;
  background: var(--primary);
  padding: 2.5rem;
  color: var(--travertine-white);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transition: all .7s;
}

.hero-card .label {
  font-family: var(--ff-body);
  font-size: 12px; line-height: 16px;
  letter-spacing: 0.3em; font-weight: 600;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.hero-card h1 {
  font-family: var(--ff-display);
  font-size: 32px; line-height: 1.2;
  letter-spacing: -0.02em; font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-card .desc {
  font-family: var(--ff-body);
  font-size: 18px; line-height: 1.6;
  opacity: .9;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn-hero-primary {
  background: var(--travertine-white);
  color: var(--primary);
  font-family: var(--ff-body);
  font-size: 12px; letter-spacing: 0.1em; font-weight: 700;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  transition: background .3s, color .3s, box-shadow .3s;
}
.btn-hero-primary:hover { background: var(--gold); color: #fff; box-shadow: 0 8px 24px rgba(201,147,58,0.4); }

.btn-hero-outline {
  background: transparent;
  color: var(--travertine-white);
  font-family: var(--ff-body);
  font-size: 12px; letter-spacing: 0.1em; font-weight: 600;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--travertine-white);
  transition: background .3s, color .3s, border-color .3s;
}
.btn-hero-outline:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ---------- Stat Strip ---------- */
.stat-strip {
  background: var(--surface-container-lowest);
  padding: 5rem 0;
  border-top: 1px solid rgba(218,192,194,.3);
  border-bottom: 1px solid rgba(218,192,194,.3);
}

.stat-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid rgba(218,192,194,.3);
}
.stat-item:last-child { border-right: none; }

.stat-value {
  font-family: var(--ff-display);
  font-size: 48px; line-height: 1;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: .5rem;
}

.stat-label {
  font-family: var(--ff-body);
  font-size: 12px; line-height: 16px;
  letter-spacing: 0.1em; font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary);
}

/* ---------- Six Wonders (Bento Grid) ---------- */
.wonders-section { padding: 6rem 0; background: var(--surface); }

.section-header { margin-bottom: 3rem; }
.section-header .label {
  font-family: var(--ff-body);
  font-size: 12px; line-height: 16px;
  letter-spacing: 0.3em; font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: .5rem;
}
.section-header h2 {
  font-family: var(--ff-display);
  font-size: 32px; line-height: 40px;
  font-weight: 500;
  margin-bottom: 1rem;
}
.section-header .bar { height: 4px; width: 96px; background: var(--primary); }

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

.wonder-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-container-high);
  height: 440px;
}

.wonder-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.wonder-card:hover img { transform: scale(1.05); }

.wonder-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(47,46,46,.9) 0%, rgba(47,46,46,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.wonder-card .overlay .sub-label {
  font-size: 12px; letter-spacing: 0.1em; font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-fixed);
  opacity: 0;
  margin-bottom: .5rem;
  transition: opacity .3s;
}
.wonder-card:hover .overlay .sub-label { opacity: 1; }

.wonder-card .overlay h3 {
  font-family: var(--ff-display);
  font-size: 24px; line-height: 32px;
  color: var(--travertine-white);
  margin-bottom: .5rem;
}

.wonder-card .overlay p {
  color: rgba(255,255,255,.8);
  font-size: 16px; line-height: 24px;
  opacity: 0;
  transition: opacity .5s;
}
.wonder-card:hover .overlay p { opacity: 1; }

.wonder-card .overlay .arrow {
  color: var(--primary-fixed);
  margin-top: 1rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all .3s;
}
.wonder-card:hover .overlay .arrow { opacity: 1; transform: translateX(0); }

/* ---------- Editorial / Reviews ---------- */
.editorial-section {
  padding: 6rem 0;
  background: var(--surface-container-low);
  overflow: hidden;
}

.press-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .press-strip {
    gap: 3rem;
    justify-content: space-between;
    margin-bottom: 5rem;
  }
}

.press-strip span {
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.4;
  transition: all 0.4s ease;
}
@media (min-width: 768px) {
  .press-strip span {
    font-size: 16px;
  }
}
.press-strip span.active {
  opacity: 1;
  color: var(--primary);
  transform: translateY(-2px);
}

.editorial-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.featured-review {
  background: var(--travertine-white);
  border: 1px solid rgba(218,192,194,.3);
  padding: 3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
  position: relative;
  overflow: hidden;
}

.featured-review > * {
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.featured-review .review-author { transition-delay: 0s; }
.featured-review h2 { transition-delay: 0.1s; }
.featured-review .body-text { transition-delay: 0.2s; }
.featured-review .read-more { transition-delay: 0.3s; }

.featured-review.fade-out > * {
  opacity: 0;
  transform: translateY(15px);
  filter: blur(3px);
  transition-delay: 0s !important;
}

.review-author {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.review-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(128,54,67,.2);
  flex-shrink: 0;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }

.review-name { font-weight: 700; color: var(--on-surface); }
.review-role { font-size: 10px; letter-spacing: 0.1em; font-weight: 700; text-transform: uppercase; color: var(--primary); }

.featured-review h2 {
  font-family: var(--ff-display);
  font-size: 32px; line-height: 1.2;
  margin-bottom: 1.5rem;
}

.featured-review .body-text {
  color: var(--on-surface-variant);
  font-size: 18px; line-height: 1.7;
  margin-bottom: 2.5rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--primary);
  font-size: 12px; letter-spacing: 0.1em; font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}
.read-more:hover .material-symbols-outlined { transform: translateX(4px); }
.read-more .material-symbols-outlined { font-size: 16px; transition: transform .3s; }

.quotes-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  position: relative;
}

.quotes-sidebar-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quote-block {
  padding: 2rem;
  border-bottom: 1px solid rgba(218,192,194,.3);
  transition: all 0.4s ease;
  position: relative;
  background: transparent;
  opacity: 0.5;
}
.quote-block:last-child { border-bottom: none; }
.quote-block.active {
  opacity: 1;
  background: var(--surface-container-lowest);
  border-left: 4px solid var(--primary);
  padding-left: calc(2rem - 4px);
}
.progress-bar {
  height: 2px;
  width: 100%;
  background: rgba(0,0,0,0.05);
  margin-top: 1rem;
  overflow: hidden;
  display: none;
}

.mobile-loader {
  display: none;
}

@media (max-width: 1023px) {
  .quotes-sidebar {
    display: none !important;
  }
  .mobile-loader {
    display: block !important;
    margin-top: 0;
    position: absolute;
    top: 0;
    left: 0;
  }
}
.quote-block.active .progress-bar {
  display: block;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.1s linear;
}

.quote-block .source {
  font-size: 12px; letter-spacing: 0.1em; font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: .5rem;
}

.quote-block p {
  font-family: var(--ff-display);
  font-size: 26px; line-height: 1.3;
  font-style: italic;
  color: var(--on-surface);
}

/* ---------- Conservation ---------- */
.conservation-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  color: var(--travertine-white);
}

.conservation-bg {
  position: absolute; inset: 0;
}
.conservation-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate(var(--translateX, 0px), var(--translateY, 0px)) scale(1.05);
  transition: transform 0.3s ease-out;
}
.conservation-bg .dim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
}

.conservation-content {
  position: relative; z-index: 10;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}

.conservation-inner {
  max-width: 672px;
  border-left: 4px solid var(--tertiary-fixed);
  padding-left: 3rem;
}

.conservation-inner .label {
  font-size: 12px; letter-spacing: 0.3em; font-weight: 700;
  text-transform: uppercase;
  color: var(--tertiary-fixed);
  display: block;
  margin-bottom: 1rem;
}

.conservation-inner h2 {
  font-family: var(--ff-display);
  font-size: 84px; line-height: 92px;
  letter-spacing: -0.02em; font-weight: 500;
  margin-bottom: 1.5rem;
}

.conservation-inner .body-text {
  font-size: 18px; line-height: 28px;
  opacity: .9;
  margin-bottom: 2.5rem;
}

.conservation-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--secondary-fixed);
  font-size: 18px; letter-spacing: 0.2em; font-weight: 700;
  text-transform: uppercase;
  transition: color .3s;
}
.conservation-link:hover { color: var(--travertine-white); }
.conservation-link .material-symbols-outlined { transition: transform .3s; }
.conservation-link:hover .material-symbols-outlined { transform: translateX(8px); }

/* ---------- Big Quote / Testimonial ---------- */
.testimonial-section {
  padding: 8rem 0;
  background: var(--surface-container-lowest);
}

.testimonial-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--margin-mobile);
}

.testimonial-inner .quote-icon {
  font-size: 80px;
  color: var(--primary);
  opacity: .4;
  margin-bottom: 2rem;
}

.testimonial-inner blockquote {
  font-family: var(--ff-display);
  font-size: 36px; line-height: 1.25;
  font-style: italic;
  font-weight: 500;
  color: var(--on-surface);
  margin-bottom: 2.5rem;
}

.testimonial-inner .divider {
  height: 2px; width: 96px;
  background: rgba(128,54,67,.3);
  margin: 0 auto 1.5rem;
}

.testimonial-inner .attribution {
  font-size: 12px; letter-spacing: 0.4em; font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

/* ---------- Nearby Places ---------- */
.nearby-section { padding: 6rem 0; background: var(--surface); overflow: hidden; }

.nearby-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

.nearby-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--charcoal-stone);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.nearby-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .7;
  transition: transform .7s, opacity .5s;
}

.nearby-card:hover img { transform: scale(1.1); opacity: .85; }

.nearby-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(47,46,46,.9) 0%, rgba(47,46,46,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.nearby-card .overlay h3 {
  font-family: var(--ff-display);
  font-size: 24px; line-height: 32px;
  color: var(--travertine-white);
  margin-bottom: .5rem;
}

.nearby-card .overlay p {
  color: rgba(255,255,255,.8);
}

.nearby-card .overlay .explore-tag {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--primary-fixed);
  font-size: 12px; letter-spacing: 0.1em; font-weight: 600;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .3s;
}
.nearby-card:hover .overlay .explore-tag { opacity: 1; }

/* ---------- CTA Banner ---------- */
.cta-section {
  background: var(--primary);
  color: var(--on-primary);
  padding: 6rem 0;
  text-align: center;
}

.cta-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}

.cta-inner h2 {
  font-family: var(--ff-display);
  font-size: 84px; line-height: 92px;
  letter-spacing: -0.02em; font-weight: 500;
  margin-bottom: 1.5rem;
}

.cta-inner p {
  font-size: 20px; line-height: 1.5;
  opacity: .8;
  margin-bottom: 3rem;
}

.btn-cta {
  background: var(--travertine-white);
  color: var(--primary);
  font-family: var(--ff-body);
  font-size: 12px; letter-spacing: 0.1em; font-weight: 700;
  text-transform: uppercase;
  padding: 20px 64px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn-cta:hover { 
  transform: scale(1.05); 
  background: var(--gold);
  color: #fff;
  box-shadow: 0 10px 30px rgba(201, 147, 58, 0.45);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 20;
  background: var(--surface-container-highest);
  padding: 5rem 0;
  border-top: 1px solid rgba(218,192,194,.3);
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

.footer-brand .logo {
  font-family: var(--ff-display);
  font-size: 30px; font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--on-surface);
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--on-surface-variant);
  max-width: 320px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-social a {
  color: var(--secondary);
  cursor: pointer;
  transition: color .3s;
  display: inline-flex;
}
.footer-social a:hover { color: var(--primary); }

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.footer-col h4 {
  font-family: var(--ff-body);
  font-size: 12px; letter-spacing: 0.1em; font-weight: 700;
  text-transform: uppercase;
  color: var(--on-surface);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(128,54,67,.2);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-bottom: .75rem;
  transition: color .3s;
}
.footer-col a:hover { color: var(--primary); }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-meta p {
  color: var(--on-surface-variant);
  font-size: 12px;
  text-align: left;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-logos img {
  height: 48px;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
  mix-blend-mode: multiply;
}

.footer-logos .sep {
  width: 1px; height: 48px;
  background: rgba(218,192,194,.3);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.5rem; }

.form-label {
  font-family: var(--ff-body);
  font-size: 12px; letter-spacing: 0.05em; font-weight: 600;
  text-transform: uppercase;
  display: block;
  margin-bottom: .5rem;
}

.form-input {
  width: 100%; padding: 1rem;
  border: 1px solid var(--outline-variant);
  background: var(--travertine-white);
  font-family: var(--ff-body);
  font-size: 16px;
  transition: border-color .3s;
}
.form-input:focus { outline: none; border-color: var(--primary); }

.form-error {
  color: var(--primary);
  font-size: 12px;
  margin-top: .5rem;
  display: none;
}

.error .form-input { border-color: var(--primary); }
.error .form-error { display: block; }

/* ---------- Inner-page header ---------- */
.page-header {
  padding: 6rem 0;
  background: var(--surface-container-high);
}

/* ===================
   RESPONSIVE
=================== */

/* Tablet + */
@media (min-width: 768px) {
  .container,
  .navbar-inner { padding-left: var(--margin-desktop); padding-right: var(--margin-desktop); }

  .conservation-content { padding-left: var(--margin-desktop); padding-right: var(--margin-desktop); }

  .hamburger     { display: none; }
  .nav-center    { display: flex; }
  .nav-lang      { display: flex; }

  .hero { align-items: center; }
  .hero-body { padding: 0 var(--margin-desktop); }
  .hero-card { max-width: 672px; padding: 3.5rem; }
  .hero-card h1 { font-size: 44px; }

  .stat-grid { grid-template-columns: repeat(4, 1fr); padding: 0 var(--margin-desktop); }

  .bento-grid    { grid-template-columns: repeat(3, 1fr); }
  .nearby-grid   { grid-template-columns: repeat(2, 1fr); }

  .editorial-grid { flex-direction: row; }
  .featured-review { flex: 0 0 60%; padding: 3rem; }
  .quotes-sidebar  { flex: 0 0 40%; }

  .footer-grid { grid-template-columns: repeat(3, 1fr); padding: 0 var(--margin-desktop); }
  .footer-meta { align-items: flex-end; }
  .footer-meta p { text-align: right; }

  .testimonial-inner blockquote { font-size: 48px; }
}

/* Large desktop */
@media (min-width: 1024px) {
  .nearby-grid { grid-template-columns: repeat(4, 1fr); }
  .featured-review h2 { font-size: 40px; }
  .testimonial-inner blockquote { font-size: 60px; }
}

/* Small phones */
@media (max-width: 767px) {
  .conservation-inner h2 { font-size: 40px; line-height: 48px; }
  .cta-inner h2          { font-size: 40px; line-height: 48px; }
  .conservation-inner    { padding-left: 1.5rem; }
  .display-lg            { font-size: 40px; line-height: 48px; }
}

/* ===========================================
   INNER-PAGE UTILITIES (backward compat)
=========================================== */

/* Section spacing */
.section { padding: 6rem 0; }

/* Typography aliases (used as class names on inner pages) */
.display-lg  { font-family: var(--ff-display); font-size: 64px; line-height: 72px; letter-spacing: -0.02em; font-weight: 500; }
.headline-lg { font-family: var(--ff-display); font-size: 32px; line-height: 40px; font-weight: 500; }
.headline-md { font-family: var(--ff-display); font-size: 24px; line-height: 32px; font-weight: 500; }
.body-lg     { font-size: 18px; line-height: 28px; }
.body-md     { font-size: 16px; line-height: 24px; }
.label-caps  { font-family: var(--ff-body); font-size: 12px; line-height: 16px; letter-spacing: 0.1em; font-weight: 600; text-transform: uppercase; }

/* Layout utilities */
.grid       { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-gap   { gap: var(--gutter); }
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center   { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-4  { gap: 1rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Buttons (inner-page variants) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--ff-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 15px rgba(128,54,67,.2);
}
.btn-primary:hover { background: var(--gold); color: #fff; box-shadow: 0 4px 16px rgba(201,147,58,0.35); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-outline:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* Gallery cards (inner pages) */
.card-gallery {
  position: relative;
  overflow: hidden;
  height: 450px;
  background: var(--surface-container-high);
}
.card-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.card-gallery:hover img { transform: scale(1.05); }
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(47,46,46,.9) 0%, transparent 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--travertine-white);
}
.card-title { margin-bottom: .5rem; }
.card-desc {
  opacity: 0; transform: translateY(10px);
  transition: all .5s; font-size: 14px;
}
.card-gallery:hover .card-desc { opacity: 1; transform: translateY(0); }

/* Footer element fallback (inner pages use bare <footer>) */
footer {
  background: var(--surface-container-highest);
  padding: 4rem 0;
  border-top: 1px solid rgba(218,192,194,.3);
}

/* Inner-page responsive overrides */
@media (max-width: 767px) {
  .grid-cols-2, .grid-cols-3 { grid-template-columns: 1fr; }
}



/* Wonders Horizontal Scrolling Section Styles */
.wonders-section-horizontal-track {
    height: 400vh; /* scroll length controls speed, 6 items need more height */
    position: relative;
}

.wonders-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0;
}

.horiz-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    margin-bottom: 2rem;
}

.wonders-viewport {
    width: 100%;
    overflow: visible;
    padding: 4rem 0;
}

.wonders-horizontal-row {
    display: flex;
    gap: 3.5rem;
    padding-left: calc((100vw - 1200px) / 2 + 2rem);
    padding-right: 15rem;
    will-change: transform;
}

@media (max-width: 1200px) {
    .wonders-horizontal-row {
        padding-left: 4rem;
    }
}

.horizontal-card {
    flex-shrink: 0;
    width: 440px;
    height: 500px;
    background-color: var(--surface-container-low);
    border: 1px solid var(--surface-container-high);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) translateZ(0);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.1s ease-out;
}

.horizontal-card:hover {
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.horiz-img-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.horiz-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.1) translate3d(0, var(--scroll-translate-y, 0px), 0);
}

.horizontal-card:hover .horiz-image {
    transform: scale(1.18) translate3d(0, var(--scroll-translate-y, 0px), 0);
}

/* Gradient Overlay */
.horizontal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(28, 29, 33, 0.95) 0%,
        rgba(28, 29, 33, 0.5) 55%,
        rgba(28, 29, 33, 0.1) 100%
    );
    z-index: 2;
    transition: 0.3s ease;
}

.horizontal-card:hover::after {
    background: linear-gradient(
        to top,
        rgba(28, 29, 33, 0.98) 0%,
        rgba(28, 29, 33, 0.6) 55%,
        rgba(28, 29, 33, 0.2) 100%
    );
}

.horiz-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--gold);
    color: #1a1208;
    font-family: var(--ff-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    letter-spacing: 1px;
    z-index: 3;
    box-shadow: 0 4px 14px rgba(201, 147, 58, 0.4);
}

.horiz-info {
    position: relative;
    z-index: 3;
    padding: 2.5rem 2.5rem 4rem; /* INCREASED BOTTOM PADDING */
    transform: translateZ(35px); /* Pop out layer */
}

.horiz-meta {
    font-family: var(--ff-body);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--gold-bright);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.horiz-info h3 {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    color: #fff;
}

.horiz-info p {
    font-family: var(--ff-body);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.horiz-link {
    font-family: var(--ff-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 1;
    transition: color 0.3s ease;
}

.horizontal-card:hover .horiz-link {
    color: var(--gold-hover);
}

@media (max-width: 768px) {
    .wonders-section-horizontal-track {
        height: auto !important;
    }
    .wonders-sticky-container {
        position: relative !important;
        height: auto !important;
        padding: 4rem 0 2rem 0;
    }
    .wonders-viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 0 2rem 0;
    }
    .wonders-horizontal-row {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        gap: 1.5rem;
        transform: none !important;
    }
    .horizontal-card {
        width: 300px;
        height: 400px;
        scroll-snap-align: start;
        transform: none !important;
    }
    .horiz-info {
        padding: 1.8rem;
    }
}
.subpage-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--travertine-white);
  margin-top: 0;
}

@media (max-width: 768px) {
  .subpage-hero {
    height: 100vh;
  }
}

.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.subpage-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 80px; /* Offset for navbar */
}

.subpage-hero .label-caps {
  color: var(--travertine-white) !important;
  opacity: 0.9;
}

.subpage-hero .display-lg,
.subpage-hero .body-lg {
  color: var(--travertine-white) !important;
}

/* ---------- Image Hover Card ---------- */
.image-hover-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  height: 100%;
  min-height: 400px;
}
.image-hover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.image-hover-card:hover img {
  transform: scale(1.05);
}

/* ---------- Timeline Animation ---------- */
.timeline-dot {
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-imperial-red);
}

.timeline-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--c-imperial-red);
  animation: pulse-ring 2.5s infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

/* ---------- Scrollytelling Section (Explore Page) ---------- */
.scrolly-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.scrolly-text-section {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
  border-radius: 16px;
  opacity: 0.4;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.scrolly-text-section.active {
  opacity: 1;
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
  transform: scale(1.02);
}

@media (max-width: 899px) {
  .scrolly-text-section.passed {
    opacity: 0;
  }
}

.scrolly-text-section:last-child {
  margin-bottom: 10vh;
}

.scrolly-sticky-container {
  position: sticky;
  top: 90px; 
  height: 40vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  background: var(--surface-container-high);
  z-index: 10;
}

#scrolly-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.scrolly-visual-column {
  order: -1;
  position: sticky;
  top: 90px;
  z-index: 10;
}

@media (min-width: 900px) {
  .scrolly-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 5rem;
  }
  .scrolly-text-column {
    flex: 1;
    padding-top: 20vh;
  }
  .scrolly-visual-column {
    flex: 1.2;
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    order: 0;
  }
  .scrolly-sticky-container {
    position: relative;
    top: 0;
    height: 100%;
  }
  .scrolly-text-section {
    padding: 3rem;
    margin-bottom: 2rem;
    border-bottom-color: transparent;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .scrolly-text-section.active {
    background: var(--surface-container-low);
    border: 1px solid var(--outline-variant);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    transform: translateX(1.5rem);
  }
}

/* ---------- Flip Cards (Guide Page) ---------- */
.flip-card {
  background-color: transparent;
  perspective: 1000px;
  height: 400px;
  width: 100%;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--outline-variant);
}

.flip-card-front {
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  padding: 2rem;
}

.flip-card-front .material-symbols-outlined {
  font-size: 56px;
  margin-bottom: 1rem;
  color: var(--gold-bright);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transition: color 0.4s ease, transform 0.4s ease;
}

.flip-card:hover .flip-card-front .material-symbols-outlined {
  color: var(--gold-hover);
  transform: scale(1.12);
}

.flip-card-front .headline-md {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.flip-card-back {
  background-color: var(--surface-container-low);
  color: var(--on-surface);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem;
}
