/* ============================================
   Spean Lodge — Shared Stylesheet
   ============================================ */

:root {
  --color-forest: #2f3a2e;
  --color-forest-dark: #20281f;
  --color-cream: #f7f4ec;
  --color-cream-dark: #efe9da;
  --color-gold: #b08d57;
  --color-text: #3a3a35;
  --color-white: #ffffff;
  --font-heading: "Playfair Display", "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-body: "Nunito Sans", "Nunito", -apple-system, sans-serif;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
  font-weight: 300;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Eyebrow / Section Labels ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-forest-dark);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.2rem; }

.btn {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  border: 1px solid var(--color-forest-dark);
  color: var(--color-forest-dark);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  background: transparent;
}
.btn:hover { background: var(--color-forest-dark); color: var(--color-white); }
.btn-light {
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-light:hover { background: var(--color-white); color: var(--color-forest-dark); }
.btn-fill {
  background: var(--color-forest-dark);
  color: var(--color-white);
  border-color: var(--color-forest-dark);
}
.btn-fill:hover { background: transparent; color: var(--color-forest-dark); }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 0;
}
.site-header.is-solid {
  position: sticky;
  background: var(--color-cream);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 16px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
}

/* Centered logo, split nav either side */
.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--color-cream);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: box-shadow 0.3s ease;
}
.site-logo img {
  height: 52px;
  width: auto;
  display: block;
}
.is-solid .site-logo { box-shadow: none; }
.site-logo-mobile { display: none; }

.main-nav { display: flex; align-items: center; flex: 1; }
.nav-group { display: flex; gap: 0.6rem 0.7rem; align-items: center; flex-wrap: nowrap; min-width: 0; justify-content: space-between; width: 100%; }

.main-nav a {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-white);
  font-weight: 600;
  color: var(--color-white);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, transform 0.25s ease;
  white-space: nowrap;
  display: inline-block;
  transform: scale(1);
}
.is-solid .main-nav a { color: var(--color-forest-dark); }
.main-nav a:hover { border-color: var(--color-gold); transform: scale(1.1); }
.main-nav a.btn { color: var(--color-white); border: 1px solid var(--color-white); padding: 0.6rem 1.3rem; }
.is-solid .main-nav a.btn { color: var(--color-forest-dark); border-color: var(--color-forest-dark); }
.is-solid .main-nav a.btn:hover { background: var(--color-forest-dark); color: var(--color-white); }

/* Small logo graphic dividing rooms from other nav links - also links home */
.nav-divider { display: flex; align-items: center; padding: 0 0.1rem; flex: 0 0 auto; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-divider:hover { transform: scale(1.12); opacity: 1; }
.nav-divider-img { height: 26px; width: auto; opacity: 0.9; }
.nav-divider-img.dark { display: none; }
.is-solid .nav-divider-img.light { display: none; }
.is-solid .nav-divider-img.dark { display: block; }

/* Reviews dropdown */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle::after {
  content: "\25BE";
  font-size: 0.7em;
  margin-left: 0.3em;
}
.nav-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.9rem;
  background: var(--color-cream);
  border-radius: 4px;
  padding: 0.4rem 0;
  min-width: 150px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 20;
}
.nav-item.open .nav-dropdown { display: flex; }
.nav-dropdown a {
  color: var(--color-forest-dark) !important;
  padding: 0.55rem 1.2rem !important;
  border-bottom: none !important;
  white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--color-cream-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-white);
  cursor: pointer;
}
.is-solid .nav-toggle { color: var(--color-forest-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,40,31,0.35) 0%, rgba(32,40,31,0.55) 100%);
}
/* Lighter overlay on the video hero so the footage keeps its natural colour */
.hero-video::after {
  background: linear-gradient(180deg, rgba(32,40,31,0.05) 0%, rgba(32,40,31,0.22) 100%);
}
.hero-video { overflow: hidden; }
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; padding: 0 24px; max-width: 900px; }
.hero .eyebrow { color: var(--color-cream); }
.hero h1 { color: var(--color-white); margin-bottom: 1.5rem; }

.page-hero {
  min-height: 55vh;
}

/* Monochrome lodge graphic used as a hero backdrop, tiled at its
   original proportions so the illustration isn't distorted */
.hero-graphic {
  background-color: var(--color-forest-dark);
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------- Hero Book Bar ---------- */
.hero-book-bar {
  position: absolute;
  left: 50%;
  bottom: calc(7% - 38px);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hero-book-bar:hover {
  transform: translateX(-50%) translateY(-3px);
  opacity: 0.85;
}
.hero-book-bar img {
  height: 72px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.4));
}
.hero-book-bar span {
  color: var(--color-white);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
@media (max-width: 600px) {
  .hero-book-bar { bottom: 5%; }
  .hero-book-bar img { height: 52px; }
  .hero-book-bar span { font-size: 0.68rem; letter-spacing: 0.15em; }
}

/* ---------- Content Video ---------- */
.content-video {
  max-width: 900px;
  margin: 0 auto;
}
.content-video video {
  width: 100%;
  display: block;
  border-radius: 4px;
}

/* ---------- Video thumbnail with play button ---------- */
.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.video-thumb:hover img { transform: scale(1.05); }
.video-thumb::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2320281f' d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 56% center;
  background-size: 32px 32px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}
.video-thumb:hover::after { transform: translate(-50%, -50%) scale(1.08); }

/* ---------- Sections ---------- */
section { padding: 6rem 0; }
.section-cream { background: var(--color-cream); }
.section-white { background: var(--color-white); }
.section-forest { background: var(--color-forest); color: var(--color-cream); }
.section-forest h2, .section-forest h3 { color: var(--color-white); }
.section-forest .eyebrow { color: var(--color-gold); }

.center { text-align: center; }

/* Welcome CTA: elegant italic heading, button drops down with a faint lodge sketch inside it */
.welcome-cta {
  padding-top: 9rem;
}
.welcome-cta .btn {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  padding: 0.95rem 1.6rem;
}
.welcome-cta .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/spean-lodge-illustration.png');
  background-repeat: no-repeat;
  background-position: center 80%;
  background-size: cover;
  opacity: 0.18;
  pointer-events: none;
}
.welcome-cta h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: 0.02em;
  color: var(--color-gold);
}
.intro { max-width: 760px; margin: 0 auto 3rem; text-align: center; }

/* Gallery intro: faint lodge illustration as a masthead motif behind the heading */
.intro--gallery {
  position: relative;
  z-index: 1;
}
.intro--gallery::before {
  content: '';
  position: absolute;
  top: -155px;
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  height: 440px;
  background-image: url('../images/spean-lodge-illustration-faint.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
}
/* Exclusive Use gallery section: large faint lodge illustration behind the photos */
.exclusive-gallery {
  position: relative;
  overflow: hidden;
}
.exclusive-gallery::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3000px;
  height: 1975px;
  background-image: url('../images/lodge-gold-house.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.exclusive-gallery .container {
  position: relative;
  z-index: 1;
}

.intro-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.intro-rule::before,
.intro-rule::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.6;
}
.intro-rule-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-forest);
}

/* ---------- Accent rule: short gold underline for left-aligned headings ---------- */
.accent-rule {
  width: 64px;
  height: 2px;
  background: var(--color-gold);
  margin: -0.4rem 0 1.6rem;
  opacity: 0.85;
}

/* ---------- Framed photo: gold-mat treatment for feature images ---------- */
.framed-photo {
  border: 8px solid var(--color-white);
  outline: 1px solid var(--color-gold);
  outline-offset: -8px;
  box-shadow: 0 14px 36px rgba(32,40,31,0.2);
}

/* ---------- Host portrait: gold ring ---------- */
.host-photo {
  border-radius: 50%;
  max-width: 160px;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  box-shadow: 0 8px 24px rgba(32,40,31,0.15);
}

/* ---------- Room card: gold underline on hover ---------- */
.room-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.room-card:hover::after { transform: scaleX(1); }

/* ---------- Illustrated section backdrop: faint lodge motif ---------- */
.section-illustrated { position: relative; overflow: hidden; }
.section-illustrated::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1400px; height: 1400px;
  background-image: url('../images/spean-lodge-illustration-faint.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}
.section-illustrated .container { position: relative; z-index: 1; }

/* Compact Lodge Host bio section */
.host-section { padding: 2.5rem 0; }
.host-section .gallery-divider { margin: 0 0 2rem; }
.host-section .split { gap: 2.5rem; }
.host-section h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.5rem; }
.host-section p { font-size: 0.92rem; margin-bottom: 0.8rem; }

/* ---------- Map Embed ---------- */
.map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 45%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 700px) {
  .map-embed { padding-bottom: 80%; }
}

/* ---------- Two Column ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* Video features: Secret Garden / Lodge Tour side by side */
.video-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.video-feature {
  text-align: center;
}
.video-feature .thumb-frame {
  position: relative;
  margin-bottom: 1.6rem;
}
.video-feature .thumb-frame::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-gold);
  border-radius: 6px;
  z-index: -1;
}
.video-feature .video-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(32,40,31,0.18);
}
.video-feature .video-thumb img {
  border-radius: 6px;
}
.video-feature h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}
.video-feature p {
  font-size: 0.98rem;
  max-width: 420px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .video-features { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Grid / Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-white);
  overflow: hidden;
}
.card img { width: 100%; height: 280px; object-fit: cover; }
.card-body { padding: 1.8rem; }
.card h3 { margin-bottom: 0.6rem; }
.card .btn { margin-top: 1rem; }

/* ---------- Rooms grid ---------- */
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.room-card { position: relative; overflow: hidden; }
.room-card img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.6s ease; }
.room-card:hover img { transform: scale(1.06); }
.room-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.2rem 1rem;
  background: linear-gradient(0deg, rgba(32,40,31,0.75) 0%, rgba(32,40,31,0) 100%);
  color: var(--color-white);
}
.room-card-label h3 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.room-card-label .room-script {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.35));
  transition: transform 0.5s ease;
}
.room-card:hover .room-script { transform: translateY(-2px); }
.room-card-label .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial {
  background: var(--color-white);
  padding: 2rem;
  border-top: 3px solid var(--color-gold);
}
.testimonial p { font-style: italic; }
.testimonial .author { font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; }
.testimonial .date { font-size: 0.78rem; color: #999; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.gallery a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(32,40,31,0.12);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  position: relative;
}
.gallery img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery a:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(32,40,31,0.28);
  z-index: 2;
}
.gallery a:hover img { transform: scale(1.12); }

/* Larger three-photo gallery (Exclusive Use) */
.gallery--three {
  gap: 2.6rem;
}
.gallery--three img {
  height: 460px;
}
@media (max-width: 900px) {
  .gallery--three {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .gallery--three img {
    height: 320px;
  }
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(32,40,31,0.12);
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}
.carousel-slide a {
  display: block;
}
.carousel-slide img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}
.carousel-caption {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-top: 1.2rem;
  min-height: 1.2em;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(32,40,31,0.18);
  color: var(--color-forest-dark);
  transition: background 0.3s ease, color 0.3s ease;
  z-index: 3;
}
.carousel-btn:hover { background: var(--color-gold); color: var(--color-white); }
.carousel-prev { left: -24px; }
.carousel-next { right: -24px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-cream-dark);
  border: 1px solid var(--color-gold);
  cursor: pointer;
  padding: 0;
}
.carousel-dot.active { background: var(--color-gold); }

@media (max-width: 900px) {
  .carousel-slide img { height: 360px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .carousel-btn { width: 40px; height: 40px; font-size: 1.2rem; }
}

/* Per-photo framing adjustments */
.carousel-slide img[src*="landscape-img-2357"] { object-position: center 75%; }
.carousel-slide img[src*="landscape-bonnieprincecharliemonument-7"] { object-position: center 85%; }
.carousel-slide img[src*="landscape-033-dscf9991"] { object-position: center 95%; }
.carousel-slide img[src*="landscape-image26"] { object-position: center 80%; }
.carousel-slide img[src*="landscape-dia3-12"] {
  object-fit: contain;
  background: var(--color-cream-dark);
}

/* ---------- History Archive ---------- */
.history-archive {
  margin-top: 3.5rem;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.7rem;
}
.history-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #fdf8ec;
  border: 7px solid #fdf8ec;
  outline: 1px solid rgba(74, 52, 26, 0.3);
  outline-offset: -7px;
  box-shadow: 0 3px 10px rgba(35, 24, 10, 0.25), inset 0 0 20px rgba(74, 52, 26, 0.22);
  filter: sepia(35%) contrast(1.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.history-grid img:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(35, 24, 10, 0.35), inset 0 0 20px rgba(74, 52, 26, 0.22);
  position: relative;
  z-index: 1;
}
.history-archive-caption {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold);
}
@media (max-width: 900px) {
  .history-grid { grid-template-columns: repeat(3, 1fr); }
  .history-grid img { height: 150px; }
}

/* Per-photo framing adjustments: keep people in shot */
.history-grid img[src*="history-bicycles"] { object-position: center bottom; }
.history-grid img[src*="history-boy-kilt-door"] { object-position: center 37%; }
.history-grid img[src*="history-boy-kilt-steps"] { object-position: center 36%; }
.history-grid img[src*="history-woman-steps"] { object-position: center 31%; }
.history-grid img[src*="history-bench-group"] { object-position: center 35%; }
.history-grid img[src*="history-croquet"] { object-position: center 35%; }
.history-grid img[src*="history-garden-group"] { object-position: center 30%; }
.history-grid img[src*="history-veranda-group"] { object-position: center 30%; }

/* ---------- Gallery: Magazine Layout ---------- */
.gallery-magazine {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 2.6rem;
}
.gallery-magazine a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(32,40,31,0.12);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  position: relative;
}
.gallery-magazine img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-magazine img[src*="Spean-airbnb-14"] {
  object-position: center 75%;
}
.gallery-magazine a:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(32,40,31,0.28);
  z-index: 2;
}
.gallery-magazine a:hover img { transform: scale(1.1); }

.gallery-magazine .g-feature { grid-column: span 4; grid-row: span 2; }
.gallery-magazine .g-tall    { grid-column: span 2; grid-row: span 2; }
.gallery-magazine .g-half    { grid-column: span 3; grid-row: span 1; }
.gallery-magazine .g-small   { grid-column: span 2; grid-row: span 1; }

/* Five upright images side by side in a single row */
.gallery-magazine--five {
  grid-template-columns: repeat(5, 1fr);
}
.gallery-magazine--five .g-tall { grid-column: span 1; }

/* Four upright images side by side in a single row */
.gallery-magazine--four {
  grid-template-columns: repeat(4, 1fr);
}
.gallery-magazine--four .g-tall { grid-column: span 1; }

/* Review panel sitting inside a gallery grid, in the g-feature slot */
.gallery-magazine .g-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.2rem 2.6rem;
  border-radius: 4px;
  background-color: var(--color-cream-dark);
  background-image: url('../images/spean-lodge-illustration-faint.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 380px auto;
}
.gallery-magazine .g-quote blockquote {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-forest-dark);
  margin: 0 0 0.9rem;
  border-left: 3px solid var(--color-forest);
  padding-left: 1.4rem;
}
.gallery-magazine .g-quote cite {
  display: block;
  font-family: 'Nunito Sans', sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Decorative chapter breaks, featuring the Spean Lodge mark */
.gallery-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 4.5rem 0;
}
.gallery-divider .line {
  flex: 1;
  max-width: 260px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.45;
}
.gallery-divider--end {
  margin: 3.5rem 0 0.5rem;
}
.gallery-divider img {
  height: 64px;
  width: auto;
  opacity: 0.9;
  padding: 18px;
  background: rgba(47,58,46,0.05);
  border-radius: 50%;
  box-sizing: content-box;
}

/* Review spotlight panel - faint lodge illustration behind a guest quote */
.gallery-quote {
  position: relative;
  margin: 4.5rem 0;
  padding: 4.5rem 3rem;
  text-align: center;
  background-image: url('../images/spean-lodge-illustration-faint.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 640px auto;
}
.gallery-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.65rem;
  line-height: 1.65;
  color: var(--color-forest-dark);
  max-width: 720px;
  margin: 0 auto 1.2rem;
}
.gallery-quote cite {
  display: block;
  font-family: 'Nunito Sans', sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.gallery-quote cite a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.gallery-quote cite a:hover { opacity: 1; }

/* Typewriter effect: ghost text reserves the layout space while the
   visible text is typed out on top of it as the panel scrolls into view */
.gallery-quote blockquote.typewriter {
  position: relative;
  text-align: left;
  border-left: 3px solid var(--color-forest);
  padding-left: 1.8rem;
}
.gallery-quote .tw-ghost,
.gallery-magazine .g-quote .tw-ghost {
  visibility: hidden;
}
.gallery-quote .tw-text,
.gallery-magazine .g-quote .tw-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.gallery-quote .tw-text::after,
.gallery-magazine .g-quote .tw-text::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  background: var(--color-gold);
  vertical-align: -0.15em;
  animation: tw-blink 0.8s step-end infinite;
}
.gallery-quote blockquote.typewriter.done .tw-text::after,
.gallery-magazine .g-quote blockquote.typewriter.done .tw-text::after {
  animation: none;
  opacity: 0;
}
@keyframes tw-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-forest-dark);
  color: var(--color-cream);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-logo {
  width: 200px;
  height: auto;
  display: block;
  margin-bottom: 1.5rem;
  opacity: 0.92;
}
.footer-grid h4 {
  color: var(--color-white);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-grid a, .footer-grid p { color: rgba(247,244,236,0.75); font-size: 0.95rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a:hover { color: var(--color-gold); }
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(247,244,236,0.3);
  color: rgba(247,244,236,0.75);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.social-links a:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}
.social-links svg {
  width: 18px;
  height: 18px;
}
.footer-bottom {
  border-top: 1px solid rgba(247,244,236,0.12);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(247,244,236,0.5);
  letter-spacing: 0.05em;
}

/* ---------- Breadcrumb / page intro ---------- */
.page-intro { padding-top: 8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid, .grid-2, .grid-4, .rooms-grid, .gallery, .testimonials, .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .gallery img { height: 200px; }

  .gallery-quote { padding: 3rem 1.5rem; background-size: 320px auto; }
  .gallery-quote blockquote { font-size: 1.3rem; }

  .gallery-magazine { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 1.2rem; }
  .gallery-magazine .g-feature,
  .gallery-magazine .g-half { grid-column: span 2; grid-row: span 1; }
  .gallery-magazine .g-tall { grid-column: span 1; grid-row: span 2; }
  .gallery-magazine .g-small { grid-column: span 1; grid-row: span 1; }
  .gallery-magazine .g-quote { grid-column: span 2; grid-row: span 2; background-size: 240px auto; padding: 1.8rem; }
  .gallery-magazine .g-quote blockquote { font-size: 1rem; }
  .gallery-magazine--five { grid-template-columns: repeat(2, 1fr); }
  .gallery-magazine--five .g-tall { grid-column: span 1; grid-row: span 2; }
  .gallery-magazine--four { grid-template-columns: repeat(2, 1fr); }
  .gallery-magazine--four .g-tall { grid-column: span 1; grid-row: span 2; }
  .gallery-divider { margin: 2.5rem 0; gap: 1rem; }
  .gallery-divider .line { max-width: 60px; }
  .gallery-divider img { height: 40px; }

  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse .split-media { order: 0; }

  .header-inner { position: relative; justify-content: flex-end; }
  .site-logo-desktop { display: none; }
  .site-logo-mobile {
    display: flex;
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    padding: 0.3rem 0.7rem;
  }
  .site-logo-mobile img { height: 38px; }

  .main-nav { display: flex; position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 340px;
    background: var(--color-forest-dark); flex-direction: column; flex-wrap: nowrap; justify-content: flex-start;
    align-items: flex-start; padding: 6rem 2rem 2rem; gap: 1.4rem; transition: right 0.35s ease;
    overflow-y: auto; }
  .main-nav.open { right: 0; }
  .nav-group { flex-direction: column; align-items: flex-start; justify-content: flex-start; flex: none; width: 100%; gap: 1.4rem; }
  .main-nav .site-logo { display: none; }
  .main-nav a, .is-solid .main-nav a { color: var(--color-cream); font-size: 0.78rem; }
  .nav-toggle { display: block; }

  .nav-item { position: static; width: 100%; }
  .nav-dropdown {
    position: static;
    transform: none;
    margin: 1rem 0 0 1rem;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 1rem;
  }
  .nav-dropdown a, .is-solid .nav-dropdown a { color: var(--color-cream) !important; padding: 0 !important; }

  .nav-divider { padding: 0.4rem 0; }
  .nav-divider-img.light { display: block !important; }
  .nav-divider-img.dark { display: none !important; }
}

/* ---------- Contact Form ---------- */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.contact-form .form-group {
  margin-bottom: 1.5rem;
}
.contact-form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(47, 58, 46, 0.25);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-forest-dark);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}
.contact-form .form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form .form-feedback {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.contact-form .form-feedback.success { color: var(--color-forest); }
.contact-form .form-feedback.error { color: #b3261e; }

@media (max-width: 700px) {
  .contact-form .form-row { grid-template-columns: 1fr; }
}

/* ---------- Video Lightbox ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.video-modal.open { display: flex; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}
.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 1.5rem;
  z-index: 1;
}
.video-modal-content video {
  width: 100%;
  max-height: 80vh;
  display: block;
  background: #000;
}
.video-modal-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 1.8rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.video-modal-close:hover { background: rgba(255, 255, 255, 0.3); }
body.video-modal-active { overflow: hidden; }

@media (max-width: 700px) {
  .video-modal-content { margin: 0 1rem; }
  .video-modal-close { top: -2.8rem; right: 0; width: 2.4rem; height: 2.4rem; font-size: 1.5rem; }
}
