/* ============================================
   Gleann Síth House — Design tokens
   ============================================ */
:root {
  --pine:      #1D3A2C;   /* headings, wordmark, dark surfaces */
  --pine-800:  #14281F;
  --ivory:     #F6F2E9;   /* base background */
  --ivory-2:   #EFE9DB;   /* secondary panel background */
  --slate:     #7C93A0;   /* sea / sky accent */
  --gold:      #C7A24A;   /* sparing accent: dividers, sun */
  --charcoal:  #3D3A33;   /* body text */
  --moss:      #6C7A5A;   /* small accents / tags */
  --white:     #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1200px;
  --gutter: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--pine);
  margin: 0 0 0.4em;
  line-height: 1.15;
  font-weight: 500;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; }

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--moss);
  margin-bottom: 0.9em;
  position: relative;
  padding-left: 28px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
}
.eyebrow.center { text-align: center; padding-left: 0; }
.eyebrow.center::before { display: none; }

.center { text-align: center; margin-left: auto; margin-right: auto; }

.section-lede {
  font-size: 1.15rem;
  color: var(--charcoal);
  max-width: 60ch;
}
.section-lede.center { margin-left: auto; margin-right: auto; }

.link-arrow {
  display: inline-block;
  font-weight: 500;
  color: var(--pine);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.link-arrow:hover { opacity: 0.65; }
.link-arrow.center { display: block; text-align: center; width: fit-content; margin: 40px auto 0; }

.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-primary {
  background: var(--ivory);
  color: var(--pine);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--white); }

/* ============================================
   Placeholder photo blocks
   (Remove entirely once real photography is added —
   just replace with an <img> or <video> tag)
   ============================================ */
.placeholder-photo {
  background: repeating-linear-gradient(
    135deg,
    var(--ivory-2),
    var(--ivory-2) 12px,
    #e3ddcc 12px,
    #e3ddcc 24px
  );
  border: 1px dashed #b8ad91;
  color: #8a806b;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  width: 100%;
  height: 100%;
  padding: 20px;
  line-height: 1.5;
}
.placeholder-photo.small { min-height: 220px; }
.placeholder-photo.tall { min-height: 480px; }

/* Real photo variants — same footprint as placeholders, no dashed border */
.feature-img, .gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.gallery-img.tall { height: 480px; }
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Nav
   ============================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.scrolled {
  background: var(--ivory);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
.site-nav.scrolled .nav-mark { color: var(--pine); }
.nav-logo-icon {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}
.site-nav.scrolled .nav-logo-icon { filter: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease, opacity 0.2s ease;
}
.nav-links a:hover { opacity: 0.75; }
.site-nav.scrolled .nav-links a { color: var(--charcoal); }

.nav-cta {
  border: 1px solid rgba(255,255,255,0.6);
  padding: 9px 18px;
  border-radius: 2px;
}
.site-nav.scrolled .nav-cta { border-color: var(--pine); color: var(--pine) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: background 0.3s ease;
}
.site-nav.scrolled .nav-toggle span { background: var(--pine); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero-media {
  position: absolute;
  inset: 0;
  height: 100%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,40,31,0.35) 0%, rgba(20,40,31,0.15) 40%, rgba(20,40,31,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 100px;
  max-width: 760px;
}
.hero-content .eyebrow { color: rgba(255,255,255,0.85); text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.hero-content .eyebrow::before { background: var(--gold); }
.hero-content h1 { color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero-sub { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 52ch; text-shadow: 0 1px 8px rgba(0,0,0,0.3); }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  text-decoration: none;
  font-size: 1.3rem;
  z-index: 2;
  opacity: 0.85;
  animation: floaty 2.4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============================================
   Sections — generic
   ============================================ */
.section {
  padding: 110px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-intro { max-width: 700px; margin-bottom: 56px; }

.section-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.section-grid.reverse { direction: rtl; }
.section-grid.reverse > * { direction: ltr; }
.section-media { min-height: 420px; }
.section-media .placeholder-photo { height: 100%; min-height: 420px; }

.place { background: var(--ivory-2); }

/* Feature grid (The House) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 32px;
  margin-bottom: 20px;
}
.house-hero-media img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  margin-bottom: 56px;
}
.feature-card h3 { margin-top: 20px; }

/* Address + map (Contact page) */
.address-map-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: stretch;
}
.address-block {
  background: var(--white);
  padding: 36px;
  border-radius: 2px;
}
.address-lines {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--pine);
  line-height: 1.6;
  margin-bottom: 24px;
}
.map-embed {
  min-height: 380px;
  border-radius: 2px;
  overflow: hidden;
}
@media (max-width: 880px) {
  .address-map-grid { grid-template-columns: 1fr; }
  .map-embed { min-height: 320px; }
}

/* Reviews */
.reviews { background: var(--pine); color: rgba(255,255,255,0.92); text-align: center; }
.reviews h2 { color: var(--white); }
.reviews .eyebrow { color: var(--gold); }
.reviews .section-lede { color: rgba(255,255,255,0.8); }

.review-carousel {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: left;
}
.review-track {
  position: relative;
  min-height: 300px;
}
.review-card {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
}
.review-card.active {
  opacity: 1;
  visibility: visible;
}
.review-card p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.95);
  max-width: none;
  margin: 0 0 20px;
}
.review-card cite {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gold);
}
.review-card cite span { color: rgba(255,255,255,0.6); }

.review-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.review-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.review-dot:hover { border-color: rgba(255,255,255,0.75); }
.review-dot.active { background: var(--gold); border-color: var(--gold); transform: scale(1.15); }

@media (max-width: 600px) {
  .review-track { min-height: 380px; }
}
@media (max-width: 400px) {
  .review-track { min-height: 420px; }
}

/* Booking */
.book { background: var(--ivory-2); }
.book-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.book .section-lede { margin-left: auto; margin-right: auto; }
.booking-placeholder { margin: 40px 0; min-height: 200px; }
.book-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
  margin-top: 20px;
}
.book-details div {
  border-top: 1px solid var(--gold);
  padding-top: 12px;
}
.book-details strong {
  display: block;
  font-family: var(--font-display);
  color: var(--pine);
  margin-bottom: 4px;
}
.book-details span { color: var(--charcoal); font-size: 0.95rem; }

/* Gallery */
.gallery-group { margin-top: 48px; }
.gallery-group:first-of-type { margin-top: 40px; }
.gallery-group-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd4bc;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid .placeholder-photo { min-height: 260px; }

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 780px;
  border-top: 1px solid #ddd4bc;
}
.faq-item {
  border-bottom: 1px solid #ddd4bc;
  padding: 22px 0;
}
.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--pine);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 14px 0 0;
  color: var(--charcoal);
  max-width: 65ch;
}

/* ============================================
   Contact
   ============================================ */
.contact { background: var(--ivory-2); padding-bottom: 56px; }
/* Tighten the join to "Find us" and break the matching background so the
   map/address section reads as clearly starting below, not as empty space. */
#get-in-touch + .section.place { padding-top: 56px; background: var(--ivory); }

.contact-details {
  margin-top: 28px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.contact-details strong {
  display: block;
  font-family: var(--font-display);
  color: var(--pine);
  margin-bottom: 4px;
}
.contact-details span { color: var(--charcoal); }

.contact-form-wrap { min-height: unset; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  padding: 36px;
  border-radius: 2px;
}
.contact-form[hidden] { display: none; }
.contact-form label {
  font-size: 0.85rem;
  color: var(--moss);
  margin-top: 14px;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 12px;
  border: 1px solid #cfc7b0;
  border-radius: 2px;
  background: var(--ivory);
  color: var(--charcoal);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--pine);
}
.btn-dark {
  background: var(--pine);
  color: var(--white);
  border: none;
  cursor: pointer;
  margin-top: 20px;
  align-self: flex-start;
}
.btn-dark:hover { background: var(--pine-800); }
.form-error {
  font-size: 0.85rem;
  color: #a83232;
  margin: 12px 0 0;
}
.btn-dark[disabled] { opacity: 0.6; cursor: default; }
.form-success {
  background: var(--white);
  padding: 48px 36px;
  border-radius: 2px;
  text-align: center;
}
.form-success h3 {
  font-family: var(--font-display);
  color: var(--pine);
  font-size: 1.5rem;
  margin: 0 0 12px;
}
.form-success p {
  color: var(--charcoal);
  margin: 0;
  max-width: none;
}
.form-note {
  font-size: 0.8rem;
  color: #8a8470;
  margin: 14px 0 0;
  max-width: none;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--pine-800);
  color: rgba(255,255,255,0.75);
  padding: 60px var(--gutter) 40px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  max-width: 260px;
  margin: 0 auto 28px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-fine { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin: 0; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section-grid { grid-template-columns: 1fr; }
  .section-grid.reverse { direction: ltr; }
  .feature-grid { grid-template-columns: 1fr; }
  .book-details { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px var(--gutter); }
}

/* Small phones: tighten spacing, sizing, and tap targets further */
@media (max-width: 480px) {
  .section { padding: 56px var(--gutter); }
  .section-intro { margin-bottom: 36px; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .hero-content { padding-bottom: 40px; }
  .hero-sub { font-size: 1rem; }
  .btn { padding: 14px 26px; width: 100%; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-img.tall { height: 320px; }
  .gallery-img { height: 240px; }
  .house-hero-media img { max-height: 320px; }
  .contact-form { padding: 22px; }
  .nav-toggle { padding: 12px; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
  .nav-mark { font-size: 1rem; }
  .book-details { gap: 18px; }
}

/* Short viewports (wide desktop windows that aren't very tall):
   shrink the hero text stack so it can't overflow upward into the fixed nav. */
@media (max-height: 750px) {
  .hero-content { padding-bottom: 60px; }
  .hero h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
  .hero-sub { font-size: 1rem; margin-bottom: 0.6em; }
  .hero .eyebrow { margin-bottom: 0.5em; }
}
@media (max-height: 600px) {
  .hero-content { padding-bottom: 32px; }
  .hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
}

/* ============================================
   Page hero (subpages — The House, North Skye, Gallery)
   ============================================ */
.page-hero {
  position: relative;
  height: 56vh;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.page-hero-media { position: absolute; inset: 0; height: 100%; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,40,31,0.45) 0%, rgba(20,40,31,0.2) 45%, rgba(20,40,31,0.8) 100%);
}
.page-hero-content { position: relative; z-index: 2; padding: 100px var(--gutter) 64px; max-width: 820px; }
.page-hero-content .crumb {
  display: inline-block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  margin-bottom: 20px;
}
.page-hero-content .crumb:hover { color: var(--white); }
.page-hero-content .eyebrow { color: rgba(255,255,255,0.85); text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.page-hero-content .eyebrow::before { background: var(--gold); }
.page-hero-content h1 { color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,0.3); margin-bottom: 0.3em; }
.page-hero-content p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 56ch; text-shadow: 0 1px 8px rgba(0,0,0,0.3); }

/* ============================================
   Info note (honesty callouts — placeholders, gaps)
   ============================================ */
.info-note {
  background: var(--ivory-2);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--charcoal);
  margin-top: 24px;
  max-width: 60ch;
}
.info-note p:last-child { margin-bottom: 0; }

/* ============================================
   Place cards (Location / Things to Do)
   ============================================ */
.place-list { display: flex; flex-direction: column; gap: 72px; margin-top: 56px; }
.place-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.place-card.reverse { direction: rtl; }
.place-card.reverse > * { direction: ltr; }
.place-media img { width: 100%; height: 360px; object-fit: cover; }
.place-media .placeholder-photo { height: 360px; }
.place-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.place-tag {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--moss);
  background: var(--ivory-2);
  border: 1px solid #ddd4bc;
  padding: 4px 10px;
  border-radius: 2px;
}
.place-facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #ddd4bc;
}
.place-facts div strong {
  display: block;
  font-family: var(--font-display);
  color: var(--pine);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.place-facts div span { color: var(--charcoal); font-size: 0.85rem; }

/* ============================================
   Lightbox (Gallery page)
   ============================================ */
.gallery-img { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,40,31,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 56px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: var(--white);
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
}
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

/* Responsive — subpages */
@media (max-width: 860px) {
  .place-card, .place-card.reverse { grid-template-columns: 1fr; direction: ltr; }
  .place-media img, .place-media .placeholder-photo { height: 280px; }
  .page-hero-content { padding: 90px var(--gutter) 48px; }
}
@media (max-width: 480px) {
  .page-hero { min-height: 320px; }
  .place-facts { gap: 16px; }
}

/* Short viewports (wide desktop windows that aren't very tall):
   shrink the page-hero text stack so it can't overflow upward into the fixed nav. */
@media (max-height: 750px) {
  .page-hero { min-height: 320px; }
  .page-hero-content { padding: 88px var(--gutter) 40px; }
  .page-hero-content h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
  .page-hero-content p { font-size: 1rem; margin-bottom: 0.4em; }
  .page-hero-content .crumb { margin-bottom: 12px; }
  .page-hero-content .eyebrow { margin-bottom: 0.5em; }
}
@media (max-height: 600px) {
  .page-hero { min-height: 260px; }
  .page-hero-content { padding: 76px var(--gutter) 24px; }
  .page-hero-content h1 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
  .page-hero-content p:not(.eyebrow) { display: none; }
}
