/* ==========================================================
   BRAND SETTINGS — edit these to restyle the whole site.
   Defaults are based on the Nature Nurture Instagram branding
   (cream background, deep green, terracotta accent).
   ========================================================== */
:root {
  --color-primary: #3a5a40;      /* deep green — headings, nav, buttons */
  --color-secondary: #c96f2f;    /* terracotta/orange accent */
  --color-background: #faf6ec;   /* warm cream */
  --color-surface: #f1ead8;      /* slightly darker cream for alt sections */
  --color-text: #33402f;         /* dark green-grey body text */
  --color-light: #ffffff;
  --color-brown: #4f3d2a;        /* logo "NATURE NURTURE" brown */
  --color-logo-green: #5f7040;   /* logo "OUTDOOR PLAY" olive green */

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
  --font-review: 'Patrick Hand', cursive; /* rounded handwriting font for reviews */

  /* Hero fallback image — shown until the background video is
     actually playing (same frame the video loop starts on) */
  --hero-image: url('images/video-poster.jpg');

  --section-padding: 6rem;       /* vertical breathing room between sections */
  --container-width: 1100px;
  --radius: 8px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* keeps anchored sections from hiding under the sticky nav */
  scroll-padding-top: 5rem;
}

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

h1, h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

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

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

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-background);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: bold;
  text-decoration: none;
  line-height: 1.2;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

/* Logo text colours — matched to the illustrated logo */
.text-brown {
  color: var(--color-brown);
}

.text-green {
  color: var(--color-logo-green);
}

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

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
}

.nav-links a:hover {
  color: var(--color-secondary);
}

.nav-cta {
  background-color: var(--color-primary);
  color: var(--color-light) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background-color: var(--color-secondary);
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  min-height: 85svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* STATIC HERO IMAGE — swap via --hero-image at the top of this file.
     The video shows at full colour; readability comes from the
     frosted panel behind the text, not a full-screen wash. */
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary); /* fallback while image loads */
}

/* Background video, with the same cream wash as the image so the
   brand text stays readable */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  /* invisible until actually playing — so Safari's play-button
     glyph over a non-playing video can never be seen; the hero's
     background image (same garden frame) shows instead */
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-video.is-playing {
  opacity: 1;
}

/* Light cream wash + a stronger glow pooled behind the centre,
   so the brown/green brand text reads while the video stays vivid */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 52%, rgba(250, 246, 236, 0.62) 0%, rgba(250, 246, 236, 0.42) 55%, rgba(250, 246, 236, 0) 100%),
              rgba(250, 246, 236, 0.38);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
}

/* Gentle cream halo lifts the letters off busy video detail */
.hero-content h1,
.hero-content .tagline {
  text-shadow: 0 0 14px rgba(250, 246, 236, 0.9), 0 0 34px rgba(250, 246, 236, 0.8);
}

/* Bigger, unmissable CTA */
.hero-content .btn-primary {
  font-size: 1.2rem;
  padding: 1.05rem 2.75rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.hero-content .btn-primary:hover {
  transform: translateY(-2px);
}

.hero-content h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
}

.tagline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-size: 1.05rem;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-light);
}

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

/* ---------- Sections ---------- */
.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background-color: var(--color-surface);
}

/* ---------- About: tabs ---------- */
h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem;
}

.about-text p + p {
  margin-top: 1rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid rgba(58, 90, 64, 0.15);
}

.tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  padding: 0.75rem 1.25rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab:hover {
  color: var(--color-secondary);
}

.tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-secondary);
}

.tab-panel[hidden] {
  display: none;
}

.feature-list {
  list-style: none;
  margin-top: 0.5rem;
}

.feature-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.feature-list li::before {
  content: "\2022"; /* bullet — swap for a leaf emoji or icon if you like */
  color: var(--color-secondary);
  font-size: 1.3rem;
  position: absolute;
  left: 0.3rem;
  top: -0.15rem;
}

/* Taller shape for portrait photos (e.g. Niamh) */
.photo-portrait {
  aspect-ratio: 3 / 4;
}

/* Real photos in the About columns get consistent framing */
.about-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Unframed photos (e.g. Niamh, Emily) — shown whole at natural shape */
.about-photos img.photo-natural {
  aspect-ratio: auto;
  object-fit: unset;
  height: auto;
}

/* ---------- Contact us ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-review .review-card {
  background-color: var(--color-background);
}

.contact-review #see-reviews {
  margin-top: 1.5rem;
}

/* ---------- Reviews popup ---------- */
.reviews-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.reviews-modal[hidden] {
  display: none;
}

.reviews-panel {
  position: relative;
  background-color: var(--color-background);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 1000px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

.reviews-panel h2 {
  margin-bottom: 1.5rem;
}

/* Collage layout: cards flow down columns and pack together
   vertically, so short cards sit close beneath each other */
.reviews-panel .review-cards {
  display: block;
  columns: 3;
  column-gap: 1rem;
}

.reviews-panel .review-card {
  background-color: var(--color-surface);
  break-inside: avoid;
  margin-bottom: 1rem;
}

.reviews-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 2rem;
  line-height: 1;
  padding: 0.25rem;
}

.reviews-close:hover {
  color: var(--color-secondary);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--color-primary);
  font-size: 1.15rem;
  word-break: break-all; /* keeps the long email on-screen on small phones */
}

.contact-link:hover {
  color: var(--color-secondary);
}

.contact-icon {
  color: var(--color-logo-green);
  flex-shrink: 0;
}

.contact-link:hover .contact-icon {
  color: var(--color-secondary);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-photos {
  display: grid;
  gap: 1.5rem;
}

/* ---------- Placeholders (swap for real <img> tags) ---------- */
.photo-placeholder {
  background-color: var(--color-surface);
  border: 2px dashed rgba(58, 90, 64, 0.35);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  aspect-ratio: 4 / 3;
  font-size: 0.9rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Real images dropped into the grid get cropped consistently */
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-item {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-item.photo-placeholder {
  aspect-ratio: 1 / 1;
  border: 2px dashed rgba(58, 90, 64, 0.35);
  background-color: var(--color-surface);
  font-family: var(--font-body);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item img {
  transition: transform 0.2s ease;
}

/* Extra photos hidden until "Show all photos" is pressed */
.gallery-extra {
  display: none;
}

.gallery-grid.expanded .gallery-extra {
  display: flex;
}

.gallery-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---------- Video gallery ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.video-grid video {
  width: 100%;
  border-radius: var(--radius);
  background-color: var(--color-surface);
  aspect-ratio: 16 / 9;
}

/* Single video: centred, comfortable width, sized by the video
   itself (no forced frame, so no letterbox bars) */
.video-grid-single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

.video-grid-single video {
  aspect-ratio: auto;
  height: auto;
  background: none;
}

/* ---------- Review cards ---------- */
.review-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.review-card {
  background-color: var(--color-background);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.review-stars {
  color: var(--color-secondary);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.review-card blockquote {
  margin: 0;
}

.review-card blockquote p {
  font-family: var(--font-review);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--color-primary);
}

/* ---------- Lightbox (full-screen photo viewer) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

/* Placeholder shown in the viewer until real photos are added */
.lightbox-stage .photo-placeholder {
  width: 70vw;
  max-width: 600px;
  color: var(--color-light);
  border-color: rgba(255, 255, 255, 0.5);
  background: none;
  font-size: 1.25rem;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-light);
  cursor: pointer;
  font-size: 2.5rem;
  line-height: 1;
  padding: 1rem;
}

.lightbox-close {
  top: 0.5rem;
  right: 1rem;
}

.lightbox-prev {
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
}

.lightbox-next {
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
}

/* ---------- Booking ---------- */
.book-review {
  background-color: var(--color-surface);
  max-width: 480px;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
}

.book-review .review-stars {
  margin-bottom: 0.4rem;
}

.book-intro {
  margin-bottom: 2rem;
}

.booking-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: var(--color-light);
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.booking-home:hover {
  background-color: var(--color-secondary);
}

.booking-placeholder {
  border: 2px dashed rgba(58, 90, 64, 0.35);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-primary);
  background-color: var(--color-surface);
}

/* If your Bookwhen iframe needs sizing help, this makes it full-width */
#book iframe {
  width: 100%;
  border: none;
  min-height: 600px;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ==========================================================
   MOBILE
   ========================================================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 4rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--color-background);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem;
  }

  .nav-cta {
    border-radius: 0;
  }

  .hero {
    min-height: 78vh;
    min-height: 78svh;
  }

  .tagline {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  /* Tabs: wrap instead of overflowing off-screen, comfier taps */
  .tabs {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .tab {
    font-size: 1rem;
    padding: 0.7rem 0.85rem;
  }

  /* 44px+ touch targets */
  .btn,
  .booking-home,
  .nav-cta {
    min-height: 44px;
  }

  .lightbox-prev,
  .lightbox-next {
    padding: 1.25rem 0.85rem;
  }

  /* Booking calendar: shorter frame so the page doesn't feel endless */
  #bookwhen-frame {
    height: 720px !important;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photos {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Phones: just 3 photos up front — the rest behind "Show all photos" */
  .gallery-grid:not(.expanded) .gallery-item:nth-child(n+4) {
    display: none;
  }

  .review-cards {
    grid-template-columns: 1fr;
  }

  .reviews-panel .review-cards {
    columns: 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .reviews-panel {
    padding: 2rem 1.25rem;
  }
}

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

  .about-photos {
    grid-template-columns: 1fr;
  }

  .nav-logo {
    font-size: 0.98rem;
    gap: 0.5rem;
  }

  .nav-logo img {
    height: 40px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .contact-link {
    font-size: 1.02rem;
  }
}
