/* Lakeside Falls — static rebuild of lakesidefalls.net
   Palette and type match the current public (Wix) site. */

:root {
  --green: #769250;        /* page background */
  --header: #565651;       /* sticky header bar */
  --footer: #2f2e2e;       /* footer bar */
  --cream: #fdf8f2;        /* light text on dark */
  --ink: #000;
  --ink-soft: #1d1d1b;
  --green-dark: #4d6433;   /* accents on cream */
  --error: #a1260d;        /* form errors on cream */

  --script: "Dancing Script", cursive;
  --sans: "Poppins", system-ui, sans-serif;
  --serif: "Bitter", Georgia, serif;

  --max: 1180px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--green);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
picture { display: contents; } /* layouts style the <img> directly */
picture > source { display: none; } /* otherwise <source> becomes an empty grid/flex item */
a { color: inherit; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--cream); color: var(--ink); padding: .5rem 1rem; border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  height: var(--header-h);
  box-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.site-header .inner {
  max-width: 960px; height: 100%; margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo img { height: 47px; width: auto; }
.nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav a.nav-section { display: none; }
@media (min-width: 900px) { .nav a.nav-section { display: inline; } }
.nav a {
  font-family: var(--sans); font-weight: 600; font-size: 1.125rem;
  color: #fff; text-decoration: none; letter-spacing: .02em;
  padding: .35rem 0; border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.nav { align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--cream); }
.nav a.nav-cta {
  border: 2px solid var(--cream); border-radius: 999px; padding: .3rem 1.1rem;
  transition: background .2s, color .2s;
}
.nav a.nav-cta:hover { background: var(--cream); color: var(--ink); }
@media (max-width: 560px) {
  .logo img { height: 34px; }
  .nav { gap: 1rem; }
  .nav a { font-size: .9rem; }
  .nav a.nav-cta { padding: .2rem .8rem; }
}
@media (max-width: 440px) {
  .nav a[href="index.html"] { display: none; }  /* the logo already links home */
}

/* ---------- Shared section styling ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 1rem; }
.section-cream { background: var(--cream); }
.section-cream :focus-visible { outline-color: var(--green-dark); }

.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .02em;
  padding: .75rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: var(--cream); color: var(--cream); background: rgba(0,0,0,.45); }
.btn-ghost:hover { background: rgba(0,0,0,.65); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--green-dark); }
.container { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 920px; margin: 0 auto; }

.script-heading {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 3.25rem); line-height: 1.2;
  text-align: center; margin: 0 0 1.5rem;
}

.lead {
  text-align: center; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5;
  max-width: 820px; margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; isolation: isolate; }
.hero > *, .hero img { grid-area: 1 / 1; } /* img sits inside a display:contents <picture> */
.hero img {
  width: 100%; height: clamp(560px, 80vh, 820px); object-fit: cover; object-position: 60% center;
  z-index: -2;
}
.hero::after {
  content: ""; grid-area: 1 / 1; z-index: -1;
  /* Darkens the photo behind the text enough for WCAG AA contrast, even where it's brightest */
  background:
    radial-gradient(ellipse 60% 45% at 50% 48%, rgba(0,0,0,.5), rgba(0,0,0,0) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.2) 35%, rgba(0,0,0,.65) 100%);
}
.hero-content {
  align-self: center; justify-self: center; text-align: center;
  padding: 3rem 1rem 7rem; color: var(--cream); max-width: 900px;
}
.hero h1 {
  font-family: var(--script); font-weight: 400; line-height: 1;
  font-size: clamp(3.75rem, 11vw, 7.5rem); margin: 0;
  text-shadow: 0 3px 18px rgba(0,0,0,.55);
}
.hero-tagline {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; font-size: clamp(.85rem, 2vw, 1.1rem);
  margin: 1rem 0 2rem; text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
@media (max-width: 560px) {
  .hero img { object-position: 68% center; }
  .hero-tagline span { display: block; }
  .hero-tagline .dot { display: none; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.hero-verse {
  position: absolute; left: 0; right: 0; bottom: 1.5rem; margin: 0 auto; padding: 0 1rem;
  max-width: 640px; text-align: center; color: var(--cream);
  font-size: clamp(.85rem, 1.6vw, 1rem); line-height: 1.5; text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.hero-verse p { margin: 0; font-style: italic; }
.hero-verse cite { display: block; font-style: normal; font-size: .85em; opacity: .9; margin-top: .25rem; }

/* ---------- Packages ---------- */
.packages-grid {
  list-style: none; padding: 0; margin: clamp(3rem, 7vw, 6rem) auto 0;
  display: grid; gap: 2.5rem 1.5rem;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1340px; align-items: stretch;
}
.package {
  display: flex; flex-direction: column; text-align: center;
  background: var(--cream); border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.package img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.package-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.1rem 1.5rem; }
.package h3 {
  font-family: var(--sans); font-weight: 700; font-size: 1.5rem; line-height: 1.25;
  margin: 0;
}
.package .price {
  font-family: var(--sans); font-weight: 600; font-size: 1.15rem; color: var(--green-dark);
  margin: .5rem 0 .75rem;
}
.package .details { font-size: .95rem; line-height: 1.65; margin: 0 0 1.25rem; }
.package .details span { display: block; }
.package .btn { margin-top: auto; font-size: .9rem; padding: .6rem 1rem; }

@media (max-width: 1100px) { .packages-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .packages-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } .package:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .5rem); } .package h3 { font-size: 1.2rem; } .package-body { padding: 1rem .75rem 1.1rem; } }
@media (max-width: 360px)  { .packages-grid { grid-template-columns: 1fr; } }

/* ---------- Three-photo strip ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.photo-strip img { width: 100%; height: clamp(320px, 65vw, 914px); object-fit: cover; }
@media (max-width: 600px) {
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip img { height: 420px; }
}

/* ---------- Meet the Fosters ---------- */
.fosters-photo { width: 180px; height: 185px; object-fit: cover; margin: 0 auto 3rem; }
.prose p { margin: 0 0 1.75rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); letter-spacing: .03em; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- View the Gallery card ---------- */
.gallery-cta {
  position: relative; display: block; max-width: 600px; margin: 0 auto;
  text-decoration: none; overflow: hidden;
}
.gallery-cta img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.gallery-cta span {
  position: absolute; left: 1.9rem; top: .75rem;
  font-family: var(--script); font-size: clamp(2.25rem, 6vw, 3.25rem); color: var(--cream);
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.gallery-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 40%);
}
.gallery-cta span { z-index: 1; }
.gallery-cta:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .gallery-cta img { transition: none; } }

/* ---------- Premier Event Venue ---------- */
.venue-grid {
  display: grid; grid-template-columns: minmax(0, 503px) 1fr; gap: clamp(2rem, 4vw, 3rem);
  align-items: end; margin-top: 2.5rem;
}
.venue-media { position: relative; }
.video-toggle {
  position: absolute; right: .75rem; bottom: .75rem;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(0,0,0,.6); color: #fff;
}
.video-toggle:hover { background: rgba(0,0,0,.8); }
.video-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.video-toggle .icon-play { fill: currentColor; stroke-width: 1.5; }
.video-toggle .icon-play, .video-toggle.is-paused .icon-pause { display: none; }
.video-toggle.is-paused .icon-play { display: block; }
.venue-grid video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #333; }
@media (max-width: 860px) {
  .venue-grid { grid-template-columns: 1fr; }
  .venue-media { width: 100%; max-width: 420px; margin: 0 auto; order: 2; }
}

/* ---------- Amenities ---------- */
.amenities {
  list-style: none; padding: 0; margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.amenities li {
  display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center;
  padding: 1.5rem 1rem; border-radius: 12px;
  background: rgba(0,0,0,.22); color: var(--cream);
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.35;
}
.amenities svg {
  width: 40px; height: 40px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 860px) { .amenities { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contact ---------- */
.contact h2 {
  font-family: var(--sans); font-weight: 500; font-size: 1.875rem;
  text-align: center; margin: 0 0 3rem;
}
.contact-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 450px) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.contact-form { width: 100%; }
.visit h3 { font-family: var(--sans); font-weight: 600; font-size: 1.25rem; margin: 0 0 1rem; }
.map-frame { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #e7e2d8; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-frame.has-focus { outline: 3px solid var(--green-dark); outline-offset: 3px; } /* set by site.js: :focus-within doesn't see into the map's frame */
.visit address { font-style: normal; margin: 1.25rem 0 1rem; line-height: 1.6; }
.visit p { margin: 0 0 1rem; }
.visit a:not(.btn) { color: var(--green-dark); }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; max-width: 450px; }
}
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-weight: 700; font-size: 1.05rem; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--ink);
  font: inherit; font-size: 1.05rem; color: var(--ink); padding: .4rem .75rem;
}
.field textarea { min-height: 90px; resize: vertical; }
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.form-hint { font-size: .9rem; margin: 0 0 1.25rem; }
.req { color: var(--error); font-weight: 700; }
.field-error { color: var(--error); font-size: .9rem; font-weight: 700; margin: .4rem 0 0; }
.field-error::before { content: "⚠ "; }
.field [aria-invalid="true"] { border-bottom-color: var(--error); background: rgba(161,38,13,.06); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit:disabled { opacity: .7; cursor: progress; }
.form-note:focus { outline: none; }
.field input::placeholder, .field textarea::placeholder { color: rgba(0,0,0,.55); }
.field input:focus, .field textarea:focus, .field select:focus { background: rgba(118,146,80,.12); border-bottom-color: var(--green-dark); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }
.btn-submit {
  width: 100%; padding: .65rem 1rem; border: 0; cursor: pointer;
  background: #000; color: var(--cream);
  font-family: var(--sans); font-size: 1rem; transition: background .2s;
}
.btn-submit:hover { background: var(--green-dark); }
.form-note { font-size: .9rem; text-align: center; margin-top: 1rem; min-height: 1.5em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--cream); padding: 3rem 1rem 1.25rem; }
.site-footer .inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 2rem; align-items: start;
  font-size: 1rem; line-height: 1.7;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand img { height: 47px; width: auto; }
.footer-brand p { margin: .75rem 0 0; opacity: .85; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: .25rem; }
.footer-nav a { font-family: var(--sans); font-weight: 500; }
.site-footer address { font-style: normal; }
.copyright {
  max-width: var(--max); margin: 2.5rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid rgba(253,248,242,.2); text-align: center; font-size: .85rem; opacity: .8;
}
@media (max-width: 760px) {
  .site-footer .inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; }
}

/* ---------- Call bar (phones only) ---------- */
.call-bar { display: none; }
@media (max-width: 760px) {
  .call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--header); box-shadow: 0 -2px 10px rgba(0,0,0,.25);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .call-bar a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 56px; color: #fff; text-decoration: none;
    font-family: var(--sans); font-weight: 600; font-size: 1rem;
  }
  .call-bar a + a { border-left: 1px solid rgba(255,255,255,.2); }
  .call-bar a:first-child { background: var(--green-dark); }
  .call-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* ---------- Gallery page ---------- */
.gallery-page { padding: 0 1rem 3.5rem; }
.gallery-video { max-width: 975px; margin: 0 auto; background: #000; }
.gallery-video:focus-within { outline: 3px solid var(--cream); outline-offset: 3px; } /* focus may be on the native controls */
.gallery-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; }

.masonry {
  max-width: 1280px; margin: 1rem auto 0;
  columns: 4 260px; column-gap: 6px;
  list-style: none; padding: 0;
}
.masonry li { break-inside: avoid; margin-bottom: 6px; }
.masonry button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  overflow: hidden;
}
/* With JS: CSS grid masonry that keeps left-to-right order (spans set in site.js) */
.masonry.is-grid {
  columns: auto; display: grid; gap: 0 6px; grid-auto-rows: 1px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.masonry.is-grid li { margin: 0; }
.masonry img { width: 100%; height: auto; transition: transform .4s ease, filter .4s ease; }
.masonry button:hover img { transform: scale(1.03); filter: brightness(1.05); }
@media (prefers-reduced-motion: reduce) { .masonry img { transition: none; } }

/* Video description */
.video-description { max-width: 975px; margin: .75rem auto 0; font-size: 1rem; line-height: 1.6; }
.video-description summary {
  cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: .95rem;
  display: inline-block; padding: .25rem 0;
}
.video-description ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.video-description li { margin-bottom: .35rem; }

/* Filters */
.gallery-filters {
  max-width: 1280px; margin: 1.5rem auto 0;
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
}
.gallery-filters[hidden] { display: none; }
.gallery-filters button {
  font-family: var(--sans); font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: .5rem 1.1rem; border-radius: 999px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
}
.gallery-filters button:hover { background: rgba(0,0,0,.08); }
.gallery-filters button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.gallery-filters .count { font-weight: 500; opacity: .8; }
.masonry li[hidden] { display: none; }
@media (max-width: 600px) {
  .gallery-filters {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    margin: 1rem -1rem 0; padding: 0 1rem .5rem; scrollbar-width: thin;
  }
  .gallery-filters button { flex: 0 0 auto; }
}

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100vh; background: rgba(0,0,0,.94); color: #fff;
}
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100vw - 7rem); max-height: calc(100vh - 4rem); object-fit: contain; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; font-family: var(--sans); font-size: .9rem; opacity: .8; }
@media (max-width: 600px) {
  .lightbox img { max-width: 100vw; }
  .lb-prev, .lb-next { top: auto; bottom: .75rem; transform: none; }
}
