/* ==========================================================================
   Majestic Meadows — site styles
   Used by index.html and the three policy pages (privacy, terms, cancellation).

   Contents
     1. Design tokens
     2. Base elements and typography
     3. Accessibility helpers
     4. Shared components (sections, Greek-key divider, buttons, links)
     5. Header and navigation
     6. Opening film
     7. Hero
     8. Photo frames
     9. Welcome
    10. The grounds
    11. One weekend (journey)
    12. Celebrations
    13. Gallery
    14. Enquiry (contact) section
    15. Footer
    16. Floating WhatsApp button
    17. Photo viewer (lightbox)
    18. Policy pages
    19. Heading motion (reveal on scroll, hover)
    20. Ornamental motion and arched frames
    21. Reduced motion

   Breakpoints: 980px (tablet: mobile menu, stacked layouts) and 640px (phone).
   After editing this file, bump the ?v= tag where it is linked in the four HTML pages.
   ========================================================================== */


/* 1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --ink: #293329;
  --stone: #efe4d6;
  --stone-dim: #e4d5c1;
  --aegean: #1f3a40;
  --aegean-deep: #142a2e;
  --olive: #55603f;
  --gold: #c6aa70;
  --gold-deep: #6e5730;         /* darker gold: passes 4.5:1 contrast for small text on stone */
  --gold-light: #e2c992;        /* gold for text and focus rings on dark backgrounds */
  --terracotta: #b5532f;
  --error: #8c3b2c;
  --heading-hover: #1d3a6b;
  --line: rgba(67, 65, 47, 0.2);

  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --serif: "Cormorant Garamond", "Garamond", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Work Sans", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Greek-key divider tile and the faint marble texture on the page background */
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M0 1H16M0 15H16M2 15V3H13V13H6V7H10' fill='none' stroke='%23b8975a' stroke-width='1.2'/%3E%3C/svg%3E");
  --marble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0025 .011' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .46 0 0 0 0 .36 0 0 0 -2.4 1.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='.09'/%3E%3Cg fill='none' stroke='%23a08a6a' stroke-opacity='.13' stroke-width='.8'%3E%3Cpath d='M-20 140C180 100 260 260 470 210S760 120 920 160'/%3E%3Cpath d='M-20 610C150 560 330 700 520 640S800 560 920 600'/%3E%3Cpath d='M260 -20C300 180 210 320 330 520S380 780 280 920'/%3E%3C/g%3E%3C/svg%3E");

  /* Horizontal page gutter: 7vw, widening so content never exceeds 1320px */
  --gutter: max(7vw, calc((100vw - 1320px) / 2));
}


/* 2. Base elements and typography
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; } /* anchor jumps clear the fixed header */
body {
  margin: 0;
  background: var(--stone) var(--marble);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
p { margin: 0 0 1rem; text-wrap: pretty; }
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0 0 1rem; font-weight: 500; text-wrap: balance; }
h1, h2 { font-family: var(--display); letter-spacing: 0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); max-width: 22ch; }
h3 { font-family: var(--serif); letter-spacing: 0; line-height: 1.02; }

/* Uppercase, widely spaced "inscription" labels */
.hero-kicker, .welcome-copy h2, .gallery-tabs button, .classical-name, .direct-contact span {
  text-transform: uppercase; letter-spacing: 0.18em;
}


/* 3. Accessibility helpers
   -------------------------------------------------------------------------- */
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
/* Lighter focus ring wherever the background is dark */
.site-header:not(.scrolled) :focus-visible, .film :focus-visible, .site-footer :focus-visible,
.whatsapp-float:focus-visible, .lightbox :focus-visible, .contact-card :focus-visible { outline-color: var(--gold-light); }
main:focus { outline: none; } /* main is focused by the skip link; no ring around the whole page */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem;
  background: var(--stone); color: var(--ink); transition: top 0.2s;
}
.skip-link:focus { top: 1rem; outline-color: var(--gold-deep); }


/* 4. Shared components
   -------------------------------------------------------------------------- */
.section { padding: clamp(5rem, 10vw, 9rem) var(--gutter); }
@media (max-width: 640px) { .section { padding: 4.5rem 6vw; } }

/* Greek-key divider between sections */
.meander {
  height: 14px; margin-inline: var(--gutter);
  background-image: var(--meander); background-repeat: repeat-x;
  background-size: 14px 14px; background-position: left center;
}
.meander--footer { margin: 0; background-color: var(--aegean-deep); }

.button, .reserve-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.7rem 1.25rem;
  border: 1px solid currentColor; font-size: 0.82rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.button:hover, .reserve-button:hover { transform: translateY(-2px); }
.button:active, .reserve-button:active { transform: translateY(1px); }
.button-primary { padding: 0.95rem 1.6rem; background: var(--gold); border-color: var(--gold); color: #212c23; }
.button-primary:hover { background: #d7bd87; border-color: #d7bd87; color: #212c23; }

.text-link {
  display: inline-flex; align-items: center; margin-top: 0.5rem;
  padding-block: 0.75rem 0.35rem; border-bottom: 1px solid var(--gold); font-size: 0.85rem;
  transition: color 0.2s var(--ease);
}
.text-link:hover { color: var(--terracotta); }


/* 5. Header and navigation
   Desktop: logo | centred nav | phone + CTA, as a three-column grid so the nav sits at the exact
   centre whatever the widths of the two sides. Tablet/phone: logo | call, CTA, menu button.
   The header is transparent over the film and turns cream once the page scrolls (.scrolled, set
   in script.js); the logo emblem only appears in the scrolled state because the hero shows the full logo.
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: 96px; padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  color: var(--ink); background: transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.site-header:not(.scrolled) { color: #f6efe4; }
.site-header.scrolled {
  background: rgba(239, 228, 214, 0.97); color: var(--ink);
  box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px);
}
.legal-page .site-header { position: sticky; }

.brand {
  display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
  font-family: var(--serif); font-size: 1.15rem;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.site-header:not(.scrolled) .brand { opacity: 0; visibility: hidden; }
.brand-logo { display: block; width: 64px; height: 68px; object-fit: contain; }

.desktop-nav { display: flex; align-items: center; gap: 2.2rem; font-size: 0.83rem; }
.desktop-nav a { position: relative; padding-bottom: 3px; }
.desktop-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.3s var(--ease);
}
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.phone-link { font-size: 0.82rem; white-space: nowrap; }
.phone-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.reserve-button { padding: 0.7rem 1.4rem; border-color: #897144; color: var(--ink); }
.site-header:not(.scrolled) .reserve-button { color: #f6efe4; border-color: rgba(246, 239, 228, 0.7); }

.call-button, .menu-toggle, .mobile-menu { display: none; }
.mobile-menu:not([hidden]) { display: block; color: var(--ink); }

@media (min-width: 981px) {
  .site-header { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 2rem; }
  .site-header .brand { justify-self: start; }
  .site-header .desktop-nav { justify-self: center; }
  .site-header .header-actions { justify-self: end; }
}

@media (max-width: 980px) {
  .desktop-nav, .phone-link { display: none; }
  .call-button {
    display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
    border: 1px solid currentColor; border-radius: 50%;
  }
  .menu-toggle {
    display: grid; gap: 5px; width: 44px; height: 44px; place-content: center;
    border: 1px solid currentColor; border-radius: 50%; background: transparent;
  }
  .menu-toggle span:not(.sr-only) { display: block; width: 15px; height: 1px; background: currentColor; transition: transform 0.2s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

  .mobile-menu {
    position: fixed; top: 96px; left: 0; right: 0; z-index: 19;
    padding: 1.5rem 6vw 2rem; background: var(--stone); border-bottom: 1px solid var(--line);
  }
  .mobile-menu nav { display: grid; }
  .mobile-menu nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.6rem; }
  .mobile-contact { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
  .mobile-contact .button { justify-content: center; padding: 0.75rem 1rem; border-color: var(--ink); font-size: 0.9rem; }
  .mobile-contact .button:first-child { background: var(--aegean); border-color: var(--aegean); color: #f2efe4; }
}

@media (max-width: 640px) {
  .site-header { height: 82px; }
  .brand-logo { width: 54px; height: 58px; }
  .header-actions { gap: 0.7rem; }
  .reserve-button { padding: 0.65rem 0.75rem; font-size: 0.72rem; }
  .mobile-menu { top: 82px; }
}


/* 6. Opening film
   script.js decides whether to load the video at all (see "Estate film" there); without it the
   poster image shows with a play button.
   -------------------------------------------------------------------------- */
.film { position: relative; height: min(80svh, 820px); min-height: 520px; overflow: hidden; background: #1d2a22; }
.film-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: scale(1.03); /* hides the thin white edge baked into the clip */
}
.film::after { /* darkens top and bottom so the header and captions stay readable */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(10, 16, 12, 0.55), transparent 26%, transparent 68%, rgba(10, 16, 12, 0.55));
}
.film-toggle, .film-next, .film-place { position: absolute; z-index: 1; color: #f6efe4; }
.film-toggle {
  left: 5vw; bottom: 1.6rem; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(246, 239, 228, 0.7); border-radius: 50%; background: rgba(10, 16, 12, 0.25);
}
.film-toggle .icon-play, .film-toggle[aria-pressed="true"] .icon-pause { display: none; }
.film-toggle[aria-pressed="true"] .icon-play { display: inline; }
.film-next {
  left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  padding: 0.9rem 0.4rem 0.6rem; border-bottom: 1px solid rgba(246, 239, 228, 0.6);
  font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.film-next span { margin-left: 0.5rem; }
.film-next:hover { color: var(--gold-light); }
.film-place {
  left: 50%; bottom: 5.2rem; transform: translateX(-50%); margin: 0;
  width: max-content; max-width: 90vw; text-align: center;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

@media (min-width: 981px) {
  .film { height: 100vh; height: 100svh; min-height: 560px; } /* full screen, edge to edge */
}
@media (max-width: 640px) {
  .film { height: min(72svh, 125vw); min-height: 0; }
  .film-toggle { bottom: 1.2rem; }
  .film-next { bottom: 1.4rem; }
  .film-place { bottom: 4.4rem; width: 86vw; font-size: 0.62rem; letter-spacing: 0.08em; }
}


/* 7. Hero
   One full-screen section: the mansion illustration covers the whole hero and the logo, heading,
   buttons and contact line sit centred on top of it. A soft cream glow behind the text keeps it
   readable without hiding the building. Images: hero-wide (desktop, 16:9) and hero-tall (phones).
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--ink); background: var(--stone);
}
.hero-photo {
  position: absolute; inset: 0;
  background-image: url("assets/hero-wide.png");
  background-image: image-set(url("assets/hero-wide.webp") type("image/webp"), url("assets/hero-wide.png") type("image/png"));
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 55% at 50% 52%, rgba(246, 239, 229, 0.62) 0%, rgba(246, 239, 229, 0.32) 60%, rgba(246, 239, 229, 0) 100%),
    linear-gradient(rgba(239, 228, 214, 0) 82%, var(--stone));
}
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 1100px; margin-inline: auto; padding: 120px 6vw 80px; }
.hero-logo { display: block; width: auto; height: clamp(170px, 15vw, 230px); margin: 0 auto 1.2rem; }
.hero-kicker { margin-bottom: 0.9rem; font-size: 0.72rem; color: var(--gold-deep); }
#hero-title {
  margin: 0 auto 0.9rem; max-width: none;
  font-size: clamp(1.7rem, 2.5vw, 2.6rem); line-height: 1.12; letter-spacing: 0.03em; color: var(--ink);
  transform-origin: center;
}
#hero-title span { display: inline; }
#hero-title em { font-style: normal; font-weight: 400; color: #8a6a37; }
.hero-copy { max-width: 460px; margin: 0 auto 1.6rem; font-size: 1rem; line-height: 1.65; color: rgba(34, 38, 31, 0.85); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.5rem; }
.hero-explore {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.8rem 1.4rem;
  border: 1px solid rgba(34, 38, 31, 0.7); font-size: 0.82rem; color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.hero-explore span { margin-left: 0.8rem; }
.hero-explore:hover { background: var(--ink); color: var(--stone); }
.hero-contact { margin: 1.1rem auto 0; font-size: 0.85rem; color: rgba(34, 38, 31, 0.85); }
.hero-contact a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.hero-contact a:hover { color: var(--aegean); }

@media (max-width: 640px) {
  .hero-photo {
    background-image: url("assets/hero-tall.png");
    background-image: image-set(url("assets/hero-tall.webp") type("image/webp"), url("assets/hero-tall.png") type("image/png"));
  }
  .hero-photo::after {
    background:
      radial-gradient(ellipse 90% 50% at 50% 46%, rgba(246, 239, 229, 0.7) 0%, rgba(246, 239, 229, 0.4) 60%, rgba(246, 239, 229, 0) 100%),
      linear-gradient(rgba(239, 228, 214, 0) 86%, var(--stone));
  }
  .hero-content { padding: 112px 8vw 64px; }
  .hero-logo { height: 150px; margin-bottom: 0.9rem; }
  .hero-kicker { margin-bottom: 0.7rem; font-size: 0.6rem; line-height: 1.7; }
  .hero-kicker .kicker-place { display: none; } /* the film caption already gives the location */
  #hero-title { margin-bottom: 0.7rem; font-size: clamp(1.3rem, 5.8vw, 1.8rem); line-height: 1.2; }
  .hero-copy { margin: 0 auto 1.3rem; font-size: 0.95rem; }
  .hero-actions { gap: 0.75rem; }
  .hero-actions .button, .hero-explore { min-height: 44px; padding: 0.7rem 1.1rem; font-size: 0.75rem; }
}


/* 8. Photo frames
   Every photo sits in a .photo frame with a coloured gradient behind it. If an image file is
   missing, script.js adds .is-missing: the <img> is hidden and the caption (data-caption) shows instead.
   -------------------------------------------------------------------------- */
.photo {
  position: relative; overflow: hidden; margin: 0; padding: 0; border: 0;
  min-height: 220px; background-size: cover; background-position: center;
}
.photo::before { /* soft light-and-shade wash over the photo */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0, 0, 0, 0.14), transparent 55%);
}
.photo::after { /* placeholder caption, only shown for missing photos */
  content: none; position: absolute; left: 0.85rem; bottom: 0.85rem; max-width: calc(100% - 1.7rem);
  padding: 0.35rem 0.65rem; background: rgba(20, 20, 16, 0.78); color: #f2efe4;
  font-size: 0.68rem; letter-spacing: 0.02em; backdrop-filter: blur(2px);
}
.photo > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.is-missing > img { visibility: hidden; }
.photo.is-missing::after { content: attr(data-caption); z-index: 2; }

.photo--stone  { background: linear-gradient(155deg, #d9d0b4, #b9ae8c); }
.photo--olive  { background: linear-gradient(155deg, #6c7852, #3d4630); }
.photo--aegean { background: linear-gradient(155deg, #2c5057, #142a2e); }
.photo--gold   { background: linear-gradient(155deg, #c7a466, #8a6a37); }
.photo--ink    { background: linear-gradient(155deg, #3a3d33, #181a14); }

/* Name plate on the grounds photos, e.g. "The grand pavilion / THE BASILICA" */
.space-label {
  position: absolute; left: 0.85rem; bottom: 0.85rem; z-index: 2;
  padding: 0.55rem 0.85rem; background: rgba(20, 26, 22, 0.78); backdrop-filter: blur(3px);
  color: #f6efe4; font-family: var(--serif); font-size: 1.2rem; line-height: 1.2;
}
.classical-name {
  display: block; margin-top: 0.3rem;
  font-family: var(--display); font-size: 0.66rem; font-weight: 500; color: var(--gold-deep);
}
.space-label .classical-name { font-size: 0.6rem; color: var(--gold-light); }


/* 9. Welcome
   -------------------------------------------------------------------------- */
.welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center; }
.welcome-copy h2 { max-width: none; font-size: 0.8rem; color: var(--gold-deep); }
.welcome-copy h3 { max-width: 30ch; margin: 1.7rem 0 1.2rem; font-size: clamp(2rem, 3.2vw, 3.3rem); line-height: 1.13; }
.welcome-copy p { max-width: 58ch; color: rgba(34, 38, 31, 0.78); }
.welcome-copy > p { margin-block: 1.8rem; line-height: 1.8; }
.welcome-photo { aspect-ratio: 4 / 5; }

/* "Read our story" expander (<details>) */
.welcome-story { margin-block: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.welcome-story summary {
  display: flex; justify-content: space-between; padding-block: 1.2rem;
  font-size: 0.86rem; list-style: none; cursor: pointer;
}
.welcome-story summary::-webkit-details-marker { display: none; }
.welcome-story summary span { color: var(--terracotta); }
.welcome-story[open] summary span { transform: rotate(45deg); }
.story-body { padding: 1rem 0; }
.story-body p { margin-bottom: 1.5rem; line-height: 1.85; }
.story-body h3 { font-size: 1.9rem; }

@media (max-width: 980px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome-photo { max-height: 580px; }
}


/* 10. The grounds
   -------------------------------------------------------------------------- */
.estate-heading { max-width: 640px; margin-bottom: 2.5rem; }
.estate-heading p { color: rgba(34, 38, 31, 0.78); }
.estate-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 1fr; grid-template-rows: 240px 240px; gap: 0.85rem; }
.estate-grid .tall { grid-row: span 2; }
.estate-grid .wide { grid-column: span 2; }
.estate-grid .photo.is-missing::after { top: 0.85rem; bottom: auto; }

@media (max-width: 980px) {
  .estate-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .estate-grid .tall { grid-row: span 1; }
}
@media (max-width: 640px) {
  .estate-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 220px); }
  .estate-grid .wide { grid-column: span 1; }
}


/* 11. One weekend (journey)
   -------------------------------------------------------------------------- */
.journey-heading { max-width: 640px; margin-bottom: 2.5rem; }
.journey-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.journey-list li { padding: 0 1.5rem; border-left: 1px solid var(--line); }
.journey-list li:first-child { padding-left: 0; border-left: 0; }
.journey-num { display: block; margin-bottom: 0.6rem; font-family: var(--serif); font-size: 1.7rem; letter-spacing: 0.06em; color: var(--terracotta); }
.journey-list h3 { margin-bottom: 0.4rem; font-size: 1.45rem; }
.journey-list p { margin: 0; font-size: 0.9rem; color: rgba(34, 38, 31, 0.75); }

@media (max-width: 980px) {
  .journey-list { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .journey-list li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .journey-list { grid-template-columns: 1fr; }
  .journey-list li { padding-left: 0; padding-top: 1.25rem; border-left: 0; border-top: 1px solid var(--line); }
  .journey-list li:first-child { padding-top: 0; border-top: 0; }
}


/* 12. Celebrations
   -------------------------------------------------------------------------- */
.celebrations { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.celebrations-copy p { max-width: 46ch; color: rgba(34, 38, 31, 0.78); }
.celebration-list { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.celebration-list div { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.celebration-list strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.celebration-list span { font-size: 0.9rem; color: rgba(34, 38, 31, 0.75); }
.celebrations-photo { aspect-ratio: 4 / 5; }

@media (max-width: 980px) {
  .celebrations { grid-template-columns: 1fr; }
  .celebration-list div { grid-template-columns: 1fr; gap: 0.25rem; }
}


/* 13. Gallery
   "All" shows only tiles marked data-featured; filters and "Show all photos" are handled in script.js.
   Tile shapes: .landscape = 2 columns, .portrait = 2 rows, .square = 1 cell.
   -------------------------------------------------------------------------- */
.gallery-top {
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
  margin-bottom: 2.5rem; text-align: center;
}
.gallery-top h2 { margin: 0 auto; max-width: none; transform-origin: center; }
.gallery-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.gallery-tabs button {
  min-height: 44px; padding: 0.5rem 1rem; border: 1px solid var(--line); background: transparent; font-size: 0.7rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.gallery-tabs button.active { background: var(--aegean); border-color: var(--aegean); color: #f2efe4; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 0.75rem;
  grid-auto-flow: dense; /* filtered views close up the gaps */
}
.gallery-item { display: block; width: 100%; height: 100%; min-height: 0; cursor: pointer; } /* min-height 0: fill the grid cell exactly */
.gallery-item.portrait { grid-row: span 2; }
.gallery-item.landscape { grid-column: span 2; }
.gallery-item:hover::before { background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 60%); }
.gallery-more { display: block; margin: 2rem auto 0; padding: 0.75rem 0 0.35rem; background: none; border: 0; border-bottom: 1px solid var(--gold); }

@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.landscape, .gallery-item.portrait { grid-column: span 1; grid-row: span 1; }
}


/* 14. Enquiry (contact) section
   Two cards: the form (left) and direct contact details with the map (right, sticky on desktop).
   Field errors and the status message are written by script.js (.field-error, .form-status).
   -------------------------------------------------------------------------- */
.enquire {
  padding: clamp(4.5rem, 9vw, 8rem) max(6vw, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, var(--stone) 0%, var(--stone-dim) 100%);
  border-top: 1px solid rgba(110, 87, 48, 0.18);
}
.enquire-head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.enquire-head h2 { margin: 0 auto 1rem; max-width: none; transform-origin: center; }
.enquire-head p { max-width: 46ch; margin: 0 auto; color: rgba(34, 38, 31, 0.8); }
.enquire-head::after { content: ""; display: block; width: 72px; height: 1px; margin: 1.8rem auto 0; background: var(--gold); }

.enquire-layout {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem); align-items: start;
}

/* Form card */
.booking-form {
  display: grid; gap: 1.3rem; margin: 0; padding: clamp(1.75rem, 3.5vw, 3rem);
  background: #fbf8f2; border: 1px solid rgba(110, 87, 48, 0.22); border-top: 3px solid var(--gold);
  box-shadow: 0 1px 2px rgba(41, 51, 41, 0.05), 0 24px 48px -28px rgba(20, 42, 46, 0.35);
}
.hp-field { position: absolute; left: -9999px; } /* spam honeypot, invisible to people */
.form-note { margin: 0; font-size: 0.78rem; color: rgba(34, 38, 31, 0.8); }
.req { color: var(--error); font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.5rem; }
.field { display: grid; gap: 0.5rem; align-content: start; }
.field label {
  display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep);
}
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: rgba(34, 38, 31, 0.75); }

/* Kept as separate selectors (not :is) so the textarea and select rules below can override them */
.booking-form input:not([type="checkbox"]), .booking-form select, .booking-form textarea {
  width: 100%; min-height: 50px; padding: 0.8rem 1rem;
  background: #fff; color: var(--ink); font-size: 1rem;
  border: 1px solid rgba(41, 51, 41, 0.58); border-radius: 2px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.booking-form ::placeholder { color: rgba(34, 38, 31, 0.68); opacity: 1; }
.booking-form textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.booking-form select { /* custom chevron drawn with two CSS gradients */
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 52%, calc(100% - 0.9rem) 52%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.booking-form :is(input, select, textarea):hover { border-color: rgba(41, 51, 41, 0.8); }
.booking-form :is(input, select, textarea):focus-visible {
  outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(198, 170, 112, 0.45);
}
.booking-form :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--error); }
.booking-form :is(input, select, textarea)[aria-invalid="true"]:not(:focus-visible) { box-shadow: 0 0 0 1px var(--error); }
.field-error { margin: 0; font-size: 0.8rem; line-height: 1.4; color: var(--error); }
.field-error::before { content: "! "; font-weight: 700; }

.policy { margin: 0; font-size: 0.8rem; line-height: 1.6; color: rgba(34, 38, 31, 0.8); }
.policy a { text-decoration: underline; text-underline-offset: 2px; }
.booking-form button[type="submit"] {
  width: 100%; min-height: 56px; margin-top: 0.2rem;
  background: var(--aegean); border: 1px solid var(--aegean); color: #f6efe4;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(226, 201, 146, 0.35);
}
.booking-form button[type="submit"]:hover { background: var(--aegean-deep); border-color: var(--aegean-deep); }
.booking-form button[type="submit"]:disabled { opacity: 0.7; cursor: progress; transform: none; }

.form-status { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--ink); }
.form-status:empty { display: none; }
.form-status.is-error, .form-status.is-success { padding: 0.8rem 1rem; border-left: 3px solid; }
.form-status.is-error { color: var(--error); border-color: var(--error); background: rgba(140, 59, 44, 0.08); }
.form-status.is-success { color: var(--olive); border-color: var(--olive); background: rgba(85, 96, 63, 0.12); }
.form-status a { text-decoration: underline; text-underline-offset: 2px; }

/* Direct contact card */
.contact-card {
  position: sticky; top: 120px; padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--aegean-deep); color: #efe6d4; border-top: 3px solid var(--gold);
  box-shadow: 0 24px 48px -28px rgba(20, 42, 46, 0.6);
}
.contact-card h3 { margin: 0 0 1.5rem; font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.04em; line-height: 1.3; color: #f6efe4; }
.contact-card h3:hover { color: var(--gold-light); } /* the usual dark-blue heading hover would vanish on this background */
.direct-contact { display: grid; font-size: 0.95rem; }
.direct-contact > * { display: block; padding: 0.9rem 0; border-bottom: 1px solid rgba(242, 239, 228, 0.14); }
.direct-contact > :first-child { padding-top: 0; }
.direct-contact span { display: block; margin-bottom: 0.3rem; font-size: 0.66rem; color: var(--gold-light); }
.direct-contact a { text-decoration: underline; text-decoration-color: rgba(226, 201, 146, 0.45); text-underline-offset: 3px; }
.direct-contact > a { text-decoration: none; }
.direct-contact a:hover { color: var(--gold-light); text-decoration-color: currentColor; }
.direct-contact address { line-height: 1.6; }

/* Map: Google Maps only loads after a click (script.js swaps this box for an iframe) */
.map-consent {
  display: grid; gap: 0.75rem; justify-items: start; margin-top: 1.5rem; padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(242, 239, 228, 0.22); font-size: 0.85rem;
}
.map-consent p { margin: 0; color: rgba(239, 230, 212, 0.85); }
.map-consent a { text-decoration: underline; text-underline-offset: 2px; }
.map-consent .button { background: transparent; border-color: rgba(242, 239, 228, 0.6); color: #f6efe4; }
.map-consent .button:hover { background: rgba(255, 255, 255, 0.08); }
.map-embed {
  display: block; width: 100%; height: 260px; margin-top: 1.5rem;
  border: 1px solid rgba(242, 239, 228, 0.22); filter: grayscale(0.3) sepia(0.15);
}

@media (max-width: 980px) {
  .enquire-layout { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
  .contact-card { position: static; }
}
@media (max-width: 640px) {
  .enquire { padding: 4rem 5vw; }
  .booking-form, .contact-card { padding: 1.6rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
}


/* 15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 2rem; align-items: start;
  padding: 3rem 6vw 6rem; /* extra bottom room so the WhatsApp button never covers the last line */
  background: var(--aegean-deep); color: rgba(242, 239, 228, 0.78); font-size: 0.85rem;
}
.footer-brand { font-family: var(--serif); font-size: 1.15rem; color: #f2efe4; }
.footer-brand img { display: block; width: min(180px, 100%); height: auto; }
.footer-contact { display: grid; gap: 0.4rem; }
.footer-top { display: inline-block; padding-block: 0.6rem; white-space: nowrap; }
.footer-contact a:hover, .footer-top:hover, .footer-legal a:hover { color: var(--gold); }
.footer-legal {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(242, 239, 228, 0.2); font-size: 0.78rem;
}
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }
.footer-legal p { margin: 0; }

@media (max-width: 980px) { .site-footer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .site-footer { grid-template-columns: 1fr; } }


/* 16. Floating WhatsApp button
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 30;
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 52px; padding: 0 1.15rem 0 0.95rem; border-radius: 999px;
  background: var(--aegean); color: #f3e7cf; border: 1px solid var(--gold);
  box-shadow: 0 8px 24px rgba(20, 42, 46, 0.28);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.whatsapp-float:hover { transform: translateY(-2px); background: var(--aegean-deep); }
.whatsapp-float svg { flex-shrink: 0; color: var(--gold-light); }

@media (max-width: 640px) {
  .whatsapp-float { width: 52px; padding: 0; justify-content: center; }
  .whatsapp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}


/* 17. Photo viewer (lightbox)
   -------------------------------------------------------------------------- */
.lightbox { width: min(900px, 90vw); padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(10, 14, 10, 0.85); backdrop-filter: blur(4px); }
.lightbox-photo {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  background-size: contain; background-repeat: no-repeat; background-color: var(--aegean-deep);
}
.lightbox-photo > .lightbox-img { object-fit: contain; }
.lightbox-caption { margin: 0; padding: 0.9rem 1.1rem; background: var(--ink); color: #f2efe4; font-size: 0.85rem; }
.lightbox-close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 50%; background: rgba(0, 0, 0, 0.3);
  color: #fff; font-size: 1.4rem; line-height: 1;
}


/* 18. Policy pages (privacy.html, terms.html, cancellation.html)
   -------------------------------------------------------------------------- */
.legal { max-width: 76ch; margin: 0 auto; padding: 4rem 6vw 6rem; }
.legal h1 { margin-bottom: 0.5rem; font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { max-width: none; margin: 2.75rem 0 0.8rem; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.legal h3 { margin: 1.75rem 0 0.6rem; font-size: 1.3rem; }
.legal p, .legal li { line-height: 1.75; }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .meta { font-size: 0.85rem; color: rgba(34, 38, 31, 0.78); }
.legal table { width: 100%; margin: 0 0 1.25rem; border-collapse: collapse; font-size: 0.9rem; }
.legal th, .legal td { padding: 0.6rem 0.75rem; border-bottom: 1px solid rgba(41, 51, 41, 0.25); text-align: left; vertical-align: top; }
.legal th { font-weight: 600; }

@media (max-width: 640px) { /* tables become stacked cards; the header row is kept for screen readers */
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .legal tr { padding: 0.6rem 0; border-bottom: 1px solid rgba(41, 51, 41, 0.25); }
  .legal td { padding: 0.15rem 0; border: 0; }
  .legal td:first-child { font-weight: 600; }
}


/* 19. Heading motion
   Headings fade up as they scroll into view (script.js adds .js-reveal to <html>, then .is-revealed
   to each heading), and on hover grow slightly and turn dark blue. Both are skipped for reduced motion.
   -------------------------------------------------------------------------- */
h1, h2, h3 { transform-origin: left center; transition: scale 0.3s var(--ease), color 0.3s var(--ease); }
@media (hover: hover) {
  h1:hover, h2:hover, h3:hover { scale: 1.04; color: var(--heading-hover); }
}
.js-reveal main :is(h1, h2, h3) {
  opacity: 0; translate: 0 18px;
  transition: opacity 0.8s var(--ease), translate 0.8s var(--ease), scale 0.3s var(--ease), color 0.3s var(--ease);
}
.js-reveal main :is(h1, h2, h3).is-revealed { opacity: 1; translate: 0 0; }


/* 20. Ornamental motion and arched frames
   Like section 19, every "before" state sits under .js-reveal (added by script.js only when motion
   is allowed), so without JavaScript or with reduced motion everything simply shows, finished.
   script.js adds .is-revealed to .hero, .meander and .journey-list as they scroll into view.
   -------------------------------------------------------------------------- */

/* Arched photo frames, echoing the estate's arched doors. The huge radius is scaled down by the
   browser to exactly half the width, which gives a true semicircle at any size. The gold outline
   sits a few pixels outside, like a moulding. */
.welcome-photo, .celebrations-photo {
  border-radius: 9999px 9999px 0 0;
  outline: 1px solid rgba(198, 170, 112, 0.7); outline-offset: 10px;
}
@media (max-width: 640px) {
  .welcome-photo, .celebrations-photo { outline-offset: 6px; }
}

/* Hero: the logo opens out from its centre, then the kicker, heading, text and buttons follow */
.js-reveal .hero-logo {
  opacity: 0; scale: 0.94; clip-path: circle(0% at 50% 38%);
  transition: clip-path 1.6s var(--ease), opacity 1s var(--ease), scale 1.6s var(--ease);
}
.js-reveal .hero.is-revealed .hero-logo { opacity: 1; scale: 1; clip-path: circle(100% at 50% 38%); }
.js-reveal .hero :is(.hero-kicker, .hero-copy, .hero-actions, .hero-contact) {
  opacity: 0; translate: 0 14px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease);
}
.js-reveal .hero.is-revealed :is(.hero-kicker, .hero-copy, .hero-actions, .hero-contact) { opacity: 1; translate: 0 0; }
.js-reveal .hero .hero-kicker { transition-delay: 0.5s; }
.js-reveal .hero #hero-title { transition-delay: 0.7s, 0.7s, 0s, 0s; } /* opacity, translate, then hover scale/colour */
.js-reveal .hero .hero-copy { transition-delay: 0.95s; }
.js-reveal .hero .hero-actions { transition-delay: 1.15s; }
.js-reveal .hero .hero-contact { transition-delay: 1.35s; }

/* Section titles (the Cinzel h2s with an id) are "inscribed" left to right as they fade up.
   The clip box is padded by 0.3em so letters are never cut off, including on hover. */
.js-reveal main h2[id] {
  clip-path: inset(-0.3em 100% -0.3em -0.3em);
  transition: opacity 0.8s var(--ease), translate 0.8s var(--ease), clip-path 1.3s var(--ease), scale 0.3s var(--ease), color 0.3s var(--ease);
}
.js-reveal main h2[id].is-revealed { clip-path: inset(-0.3em -0.3em -0.3em -0.3em); }

/* Greek-key dividers run out from the left */
.js-reveal .meander:not(.meander--footer) {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.js-reveal .meander.is-revealed { clip-path: inset(0 0 0 0); }

/* One weekend: a gold line runs across with a small diamond marking each step, and the steps
   I to IV appear one after another. The line and diamonds are desktop only (4 columns). */
.js-reveal .journey-list li {
  opacity: 0; translate: 0 16px;
  transition: opacity 0.8s var(--ease), translate 0.8s var(--ease);
}
.js-reveal .journey-list.is-revealed li { opacity: 1; translate: 0 0; }
.js-reveal .journey-list li:nth-child(2) { transition-delay: 0.25s; }
.js-reveal .journey-list li:nth-child(3) { transition-delay: 0.5s; }
.js-reveal .journey-list li:nth-child(4) { transition-delay: 0.75s; }

@media (min-width: 981px) {
  .journey-list { position: relative; padding-top: 2.2rem; }
  .journey-list::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, var(--gold), rgba(198, 170, 112, 0.25));
    transform-origin: left;
  }
  .journey-list li { position: relative; }
  .journey-list li::before {
    content: ""; position: absolute; top: calc(-2.2rem - 4px); left: 1.5rem;
    width: 9px; height: 9px; background: var(--stone); border: 1px solid var(--gold); rotate: 45deg;
  }
  .journey-list li:first-child::before { left: 0; }
  .js-reveal .journey-list::before { transform: scaleX(0); transition: transform 1.6s var(--ease); }
  .js-reveal .journey-list.is-revealed::before { transform: scaleX(1); }
}

/* Grounds and gallery photos: a slow zoom on hover. On the grounds cards a thin gold frame also
   draws in from the edge and the name plate lifts. Hover only, so touch screens are unaffected. */
.estate-grid .photo > img, .gallery-item > img { transition: scale 1.2s var(--ease); }
.estate-grid .photo::before {
  outline: 1px solid rgba(226, 201, 146, 0); outline-offset: -6px;
  transition: outline-color 0.6s var(--ease), outline-offset 0.6s var(--ease);
}
.space-label { transition: translate 0.5s var(--ease), background 0.5s var(--ease); }
@media (hover: hover) {
  .estate-grid .photo:hover > img, .gallery-item:hover > img { scale: 1.06; }
  .estate-grid .photo:hover::before { outline-color: rgba(226, 201, 146, 0.85); outline-offset: -14px; }
  .estate-grid .photo:hover .space-label { translate: 0 -6px; background: rgba(20, 26, 22, 0.88); }
}


/* 21. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
  h1:hover, h2:hover, h3:hover { scale: none; }
}
