/*
Theme Name: King's Lynn Caravan
Theme URI: https://kl-cc.co.uk/
Author: King's Lynn Caravan & Camping Park
Description: Fresh WordPress theme for King's Lynn Caravan & Camping Park, filled with the pages, prices, and photographs from the Joomla site.
Version: 1.3.0
Requires at least: 6.4
Text Domain: klcc
*/

:root {
  --blue: #163a72;
  --blue-bright: #245ea8;
  --nav: #102848;
  --ink: #17233a;
  --muted: #5c6b82;
  --paper: #f3efe6;
  --card: #fffcf7;
  --line: rgba(23, 35, 58, 0.1);
  --gold: #e8b84a;
  --shadow: 0 24px 60px rgba(16, 32, 64, 0.12);
  --serif: "Fraunces", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --sheet-top: 132px;
  --chrome-h: 128px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out 0.28s ease both; }
::view-transition-new(root) { animation: fade-in 0.4s var(--ease) both; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--gold); color: #1c1404; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  background: var(--paper);
  overflow-x: clip;
}
body.is-menu-open { overflow: hidden; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
button, a, summary { touch-action: manipulation; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--blue);
  padding: 8px 12px;
  z-index: 80;
}
.skip-link:focus { top: 12px; }

.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.4s var(--ease);
}
.chrome::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 24, 52, 0.72);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
body.is-scrolled .chrome { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22); }
body.is-scrolled .chrome::before { background: rgba(8, 20, 44, 0.96); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), #fff6d8);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 4px;
  transition: padding 0.35s var(--ease);
}
body.is-scrolled .site-header { padding-top: 8px; padding-bottom: 0; }

.brand img {
  display: block;
  height: 64px;
  width: auto;
  transition: height 0.35s var(--ease);
}
body.is-scrolled .brand img { height: 48px; }

.header-contact {
  color: #fff;
  text-align: right;
  font-size: 15px;
  line-height: 1.45;
}
.header-contact a { color: #fff; font-weight: 600; text-decoration: none; }
.header-contact a:hover { text-decoration: underline; }
.header-contact span { display: block; opacity: 0.9; }

.nav-bar { background: transparent; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 8px;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.menu > li { position: relative; }
.menu > li > a:hover,
.menu > li.current-menu-item > a,
.menu > li.current-menu-ancestor > a { background: rgba(255, 255, 255, 0.14); }

.menu .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% - 2px);
  min-width: 250px;
  background: rgba(10, 24, 48, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  list-style: none;
  margin: 0;
  padding: 8px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  z-index: 41;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s var(--ease), visibility 0.22s;
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.menu .sub-menu a { padding: 10px 12px; font-size: 15px; border-radius: 12px; }
.menu .sub-menu a:hover { background: rgba(255, 255, 255, 0.1); }
.menu .sub-menu .sub-menu { left: calc(100% - 8px); top: 0; }
.submenu-toggle { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 6px 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-bar.is-open .nav-toggle-bars { background: transparent; }
.nav-bar.is-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-bar.is-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.book-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--gold);
  color: #1d2b12 !important;
  text-decoration: none !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 18px !important;
  margin: 6px 0 6px 8px;
  transition: transform 0.25s var(--ease), filter 0.25s ease;
}
.book-link:hover { transform: translateY(-2px); filter: brightness(1.06); }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 78vh;
  margin: 0;
  overflow: hidden;
  background: #102848;
  color: #fff;
}
.home .hero {
  margin-top: calc(var(--chrome-h) * -1);
  min-height: 100svh;
  padding-bottom: 88px;
}
.hero-shift { position: absolute; inset: -20% 0 -10%; }
.hero-media {
  position: absolute;
  inset: 0;
  background: #102848 center/cover no-repeat;
  animation: drift 28s ease-in-out infinite alternate;
  transform: scale(1.06);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 14, 32, 0.78) 0%, rgba(6, 14, 32, 0.46) 38%, rgba(6, 14, 32, 0.05) 68%),
    linear-gradient(180deg, rgba(6, 14, 32, 0.62) 0%, transparent 26%, rgba(6, 14, 32, 0.35) 70%, rgba(6, 14, 32, 0.82) 100%);
  z-index: 1;
}
.hero-glow {
  position: absolute;
  z-index: 1;
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 184, 74, 0.38), transparent 68%);
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.45s ease;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 0 36px;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45);
}
.hero-actions,
.hero-actions .btn { text-shadow: none; }
.hero-kicker,
.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 5.2vw, 72px);
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0 0 16px;
}
.hero-copy > p:not(.hero-kicker) {
  max-width: 38rem;
  margin: 0 0 22px;
  font-size: clamp(18px, 2vw, 21px);
  color: rgba(255, 255, 255, 0.92);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.js .hero-copy > * { animation: rise 0.9s var(--ease) both; }
.js .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.js .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.js .hero-copy > *:nth-child(4) { animation-delay: 0.26s; }

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: max(20px, calc((100% - 1180px) / 2));
  bottom: 108px;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-cue span {
  display: block;
  width: 24px;
  height: 38px;
  margin-top: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  position: relative;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: #fff;
  animation: cue 1.6s ease-in-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: #1d2b12;
  box-shadow: 0 10px 24px rgba(180, 130, 20, 0.28);
}
.btn-gold::after {
  content: "â†’";
  transition: transform 0.25s var(--ease);
}
.btn-gold:hover::after { transform: translateX(4px); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.facts {
  position: relative;
  z-index: 3;
  margin-top: -52px;
}
.facts ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
}
.facts li {
  background: rgba(255, 252, 247, 0.86);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.facts span { display: block; font-size: 14px; color: var(--muted); }
.js .facts li { animation: rise 0.8s var(--ease) both; }
.js .facts li:nth-child(2) { animation-delay: 0.08s; }
.js .facts li:nth-child(3) { animation-delay: 0.16s; }
.js .facts li:nth-child(4) { animation-delay: 0.24s; }

.marquee {
  margin-top: 28px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.65);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  padding: 14px 0;
  animation: ticker 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
}
.marquee span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0.85rem 0 0;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-1px);
}

.feature-band { padding: 64px 0 20px; }
.section-head { margin-bottom: 22px; }
.section-head h2,
.invite h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}
.swipe-hint {
  display: none;
  margin: 0 auto 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.feature-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 24px;
  overflow: hidden;
  background: #d7deea;
  box-shadow: 0 16px 40px rgba(16, 36, 72, 0.1);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(16, 36, 72, 0.18);
}
.feature-card img {
  display: block;
  width: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.feature-card:hover img { transform: scale(1.08); }
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}
.feature-card:hover::after { transform: translateX(130%); }
.panel {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 40px 44px 32px;
  margin: 36px auto 28px;
}
.story { margin-top: 48px; }

.mast {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 42px 0 72px;
  background:
    radial-gradient(520px 220px at 92% 0%, rgba(232, 184, 74, 0.28), transparent 70%),
    linear-gradient(160deg, #102848 0%, #1a4d8c 72%, #2a6cb0 100%);
}
.mast::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  bottom: -120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  animation: orb 8s ease-in-out infinite alternate;
}
.mast h1 {
  position: relative;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
}
.mast .crumbs { position: relative; color: rgba(255, 255, 255, 0.75); }
.mast .crumbs a { color: #fff; }

.sheet {
  margin-top: -36px;
  position: relative;
  z-index: 1;
}

.crumbs { font-size: 15px; margin: 0 0 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.entry-content { font-size: 18px; overflow-wrap: anywhere; }
.entry-content::after { content: ""; display: block; clear: both; }
.entry-content h2,
.entry-content h3,
.section-links h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.entry-content h2 { font-size: 32px; margin: 1.3em 0 0.35em; }
.entry-content h3 { font-size: 24px; margin: 1.15em 0 0.35em; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li { margin: 0.25em 0; }
.entry-content img { border-radius: 16px; }
.entry-content iframe {
  width: 100% !important;
  max-width: 100%;
  border: 0;
  border-radius: 18px;
  min-height: 280px;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.4em;
  font-size: 16px;
  display: block;
  overflow-x: auto;
}
.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
}
.entry-content a[href$=".pdf"],
.entry-content a[href$=".PDF"] {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 4px 8px 4px 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f4efe4;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s var(--ease), background 0.25s ease;
}
.entry-content a[href$=".pdf"]:hover,
.entry-content a[href$=".PDF"]:hover { background: #efe4cc; transform: translateY(-2px); }

.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 36px 16px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq[open] summary { color: var(--blue); }
.faq[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq[open] .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq[open] .faq-answer > div { padding-bottom: 14px; }

.section-links { margin-top: 32px; }
.section-links h2 { font-size: 32px; margin: 0 0 14px; }
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.link-grid a {
  display: block;
  text-decoration: none;
  background: #f7f3ea;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 18px 42px 16px 18px;
  color: var(--ink);
  min-height: 100%;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background 0.35s ease;
}
.link-grid a::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 24px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.link-grid strong { display: block; color: var(--blue); margin-bottom: 4px; }
.link-grid span { color: var(--muted); font-size: 15px; }
.link-grid a:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: var(--shadow);
}
.link-grid a:hover::after { transform: translateX(4px) rotate(45deg); }

.book-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: #f6f1e4;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 22px;
}
.book-banner p { margin: 0; }

.map-frame {
  margin-top: 22px;
  border: 0;
  width: 100%;
  height: 360px;
  border-radius: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
.gallery-grid a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #e7e1d6;
}
.gallery-grid img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-grid a:hover img { transform: scale(1.08); }
a.js-lightbox img { cursor: zoom-in; }

.invite {
  position: relative;
  margin-top: 12px;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.invite-media {
  position: absolute;
  inset: -8%;
  background: #102848 center/cover no-repeat;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease);
}
.invite:hover .invite-media { transform: scale(1.14); }
.invite::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 20, 44, 0.82) 0%, rgba(8, 20, 44, 0.35) 70%, rgba(8, 20, 44, 0.2) 100%);
}
.invite-copy { position: relative; z-index: 1; padding: 64px 0; max-width: 640px; }
.invite-copy .eyebrow { color: var(--gold); }
.invite h2 { margin-bottom: 10px; }
.invite p { margin: 0 0 18px; font-size: 19px; }

.site-footer {
  color: #fff;
  padding: 48px 0 40px;
  background:
    radial-gradient(500px 180px at 0% 0%, rgba(232, 184, 74, 0.16), transparent 70%),
    #0d203c;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 24px;
  align-items: center;
}
.site-footer a { color: #fff; }
.site-footer h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.muted { opacity: 0.86; margin: 0; }
.awards {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  padding: 8px 12px;
}
.awards img { height: 48px; width: auto; display: block; transition: transform 0.3s var(--ease); }
.awards a:hover img,
.awards img:hover { transform: translateY(-3px); }

.dock {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 45;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  transition: transform 0.35s var(--ease);
}
body.is-menu-open .dock { transform: translateY(140%); }
.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(8, 24, 56, 0.28);
}
.dock-call { background: #fff; color: var(--blue); }
.dock-book { background: var(--gold); color: #1d2b12; }

.lightbox {
  width: min(1100px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  border: 0;
  padding: 48px 56px 20px;
  border-radius: 22px;
  background: #0d2244;
  color: #fff;
}
.lightbox::backdrop {
  background: rgba(6, 16, 36, 0.78);
  backdrop-filter: blur(6px);
}
.lightbox figure { margin: 0; }
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: min(74vh, 760px);
  margin: 0 auto;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
}
.lightbox figcaption { text-align: center; margin-top: 10px; font-size: 15px; }
.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.lightbox-close { top: 10px; right: 10px; padding: 0 14px; }
.lightbox-prev { left: 8px; top: 45%; }
.lightbox-next { right: 8px; top: 45%; }

.js .reveal { animation: rise 0.9s var(--ease) both; }
@supports (animation-timeline: view()) {
  .js .reveal {
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.6%, -1%, 0); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  80% { opacity: 0; }
  100% { transform: translateY(12px); opacity: 0; }
}
@keyframes orb {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-24px, -16px, 0); }
}
@keyframes fade-out {
  to { opacity: 0; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .site-header { align-items: flex-start; gap: 8px; padding: 12px 0 4px; width: min(1180px, calc(100% - 28px)); }
  .brand img, body.is-scrolled .brand img { height: 50px; }
  .header-contact { font-size: 15px; white-space: nowrap; }
  .header-contact a[href^="mailto"] { display: none; }
  .nav-inner { width: min(1180px, calc(100% - 28px)); }
  .nav-toggle { display: inline-flex; }
  .book-link { display: none; }
  .dock { display: grid; }
  .scroll-cue { display: none; }
  .menu {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: var(--sheet-top);
    gap: 0;
    margin: 0;
    padding: 8px 12px 110px;
    background: linear-gradient(180deg, #16386a 0%, #102848 100%);
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.3s;
  }
  .nav-bar.is-open .menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .menu > li > a { font-size: 18px; padding: 12px 8px; border-radius: 12px; }
  .menu .sub-menu,
  .menu .sub-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: none;
    display: none;
    min-width: 0;
    padding: 0 0 0 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    backdrop-filter: none;
  }
  .menu li.is-open > .sub-menu { display: block; pointer-events: auto; }
  .menu li:hover > .sub-menu { display: none; pointer-events: none; }
  .menu li.is-open:hover > .sub-menu,
  .menu li.is-open > .sub-menu { display: block; pointer-events: auto; }
  .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
  .menu-item-has-children > a { flex: 1; }
  .menu-item-has-children > .sub-menu { flex-basis: 100%; }
  .submenu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
  }
  .submenu-toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
  }
  .is-open > .submenu-toggle { background: rgba(255, 255, 255, 0.28); }
  .is-open > .submenu-toggle::before { transform: rotate(225deg) translateY(-2px); }
  .home .hero { min-height: 92svh; padding-bottom: 28px; }
  .hero::after {
    background: linear-gradient(180deg, rgba(6, 14, 32, 0.72) 0%, rgba(6, 14, 32, 0.38) 42%, rgba(6, 14, 32, 0.72) 100%);
  }
  .hero-copy { padding-bottom: 18px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .facts { margin-top: 16px; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .feature-band { padding-top: 36px; }
  .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .swipe-hint { display: block; }
  .feature-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    padding: 0 16px 8px;
    width: 100%;
  }
  .feature-card { flex: 0 0 84%; scroll-snap-align: center; }
  .panel { padding: 22px 16px 18px; border-radius: 22px; }
  .mast { padding: 28px 0 56px; }
  .book-banner { flex-direction: column; align-items: stretch; }
  .entry-content img { float: none !important; display: block; margin: 0 0 14px !important; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { height: 118px; }
  .invite { min-height: 460px; align-items: flex-end; }
  .invite::after { background: linear-gradient(180deg, rgba(8, 20, 44, 0.15), rgba(8, 20, 44, 0.82)); }
  .lightbox { padding: 52px 12px 16px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media,
  .hero-shift,
  .js .hero-copy > *,
  .js .facts li,
  .js .reveal,
  .feature-card,
  .feature-card img,
  .gallery-grid img,
  .marquee-track,
  .scroll-cue span::after,
  .mast::before,
  .invite-media {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1;
  }
  .scroll-progress { display: none; }
}


/* ================================================================
   KING'S LYNN CARAVAN & CAMPING PARK â€” THEME VISUAL REFRESH
   Compatible with KLCC WordPress theme v1.2 and its existing JS.
   Forest-green / warm ivory / muted gold â€” understated Apple feel.
   Add at the END of style.css or WordPress > Additional CSS.
   ================================================================ */

/* 1. DESIGN TOKENS / TYPOGRAPHY */
:root {
  --blue: #245d44;
  --blue-bright: #32795a;
  --nav: #112d24;
  --ink: #192c23;
  --muted: #66776d;
  --paper: #f6f8f5;
  --card: #ffffff;
  --line: rgba(32, 74, 52, .13);
  --gold: #dec08a;
  --shadow: 0 14px 48px rgba(17, 48, 31, .085);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

body {
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #d2e7d4; color: #143d2b; }
:focus-visible { outline: 3px solid #bf9555; outline-offset: 3px; }
a { text-underline-offset: .23em; }

/* 2. FROSTED STICKY NAVIGATION */
.chrome {
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.chrome::before {
  background: rgba(13, 40, 30, .88);
  backdrop-filter: saturate(1.35) blur(24px);
  -webkit-backdrop-filter: saturate(1.35) blur(24px);
}
body.is-scrolled .chrome {
  box-shadow: 0 10px 30px rgba(5, 28, 18, .16);
}
body.is-scrolled .chrome::before {
  background: rgba(12, 34, 26, .96);
}
.scroll-progress {
  height: 3px;
  background: linear-gradient(90deg, #ddbc83, #f6e9c9 62%, #9ac4a3);
}
.site-header { gap: 20px; }
.brand img { filter: drop-shadow(0 2px 10px rgba(0,0,0,.11)); }
.header-contact { color: #e5f0e8; font-size: 13px; }
.header-contact a { color: #fff; font-weight: 650; }
.nav-inner { padding-bottom: 10px; }
.menu { gap: 3px; }
.menu a {
  font-size: 14px;
  font-weight: 620;
  padding: 11px 15px;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.menu > li > a:hover,
.menu > li.current-menu-item > a,
.menu > li.current-menu-ancestor > a {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.09);
}
.menu .sub-menu {
  background: rgba(16, 47, 34, .97);
  border-color: rgba(255,255,255,.13);
  border-radius: 17px;
  box-shadow: 0 22px 55px rgba(3, 21, 13, .32);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.menu .sub-menu a:hover { background: rgba(255,255,255,.12); }
.nav-toggle {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.21);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.book-link,
.dock-book {
  background: linear-gradient(135deg, #edd7ac, #d7b16f);
  color: #25331f !important;
  box-shadow: 0 8px 24px rgba(6,23,15,.16);
}
.book-link { font-size: 14px; }

/* 3. HEROES, INTERNAL PAGE MASTS */
.hero, .hero-media { background-color: #173c2b; }
.hero::after {
  background:
    linear-gradient(100deg, rgba(7, 33, 22, .78), rgba(7, 33, 22, .36) 47%, rgba(7, 33, 22, .04) 75%),
    linear-gradient(180deg, rgba(6, 28, 19, .55), transparent 32%, rgba(6, 28, 19, .72));
}
.hero-glow {
  background: radial-gradient(circle, rgba(232,191,115,.33), transparent 68%);
}
.hero h1 { letter-spacing: -.048em; line-height: 1.01; }
.hero-copy { text-shadow: 0 3px 26px rgba(0,0,0,.30); }
.hero-copy > p:not(.hero-kicker) { max-width: 42rem; }
.hero-kicker { color: #f0d7a6; }
.btn {
  font-size: 14px;
  border-radius: 999px;
  box-shadow: none;
}
.btn-gold {
  background: linear-gradient(130deg, #efdcb7, #dbb470);
  color: #183626;
  box-shadow: 0 10px 26px rgba(15, 31, 20, .16);
}
.btn-ghost { border-color: rgba(255,255,255,.46); background: rgba(255,255,255,.07); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.mast {
  padding-top: 52px;
  background:
    radial-gradient(580px 280px at 95% 0%, rgba(226,188,122,.23), transparent 72%),
    linear-gradient(145deg, #173f2f, #0c2920 85%);
}
.mast h1 { letter-spacing: -.045em; }
.mast::before { background: rgba(255,255,255,.05); }
.crumbs, .crumbs a { text-underline-offset: 3px; }

/* 4. HOMEPAGE SECTIONS, CARDS, CONTENT */
.facts li {
  background: rgba(255,255,255,.91);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(16,48,30,.10);
}
.facts strong { color: #1e4b35; }
.marquee { background: rgba(255,255,255,.65); }
.marquee span { color: #2d654a; }
.feature-grid { gap: 18px; }
.feature-card {
  border-radius: 25px;
  background: #d7e4d9;
  box-shadow: 0 14px 35px rgba(16,48,30,.09);
}
.feature-card:hover { box-shadow: 0 22px 46px rgba(16,48,30,.16); }
.panel {
  border: 1px solid rgba(32,74,52,.075);
  background: rgba(255,255,255,.97);
  border-radius: 28px;
  box-shadow: 0 20px 52px rgba(17,48,31,.075);
}
.entry-content { color: #33463a; line-height: 1.76; }
.entry-content h2, .entry-content h3 { color: #183c2b; }
.entry-content p { max-width: 82ch; }
.entry-content iframe { border-radius: 16px; }
.entry-content a[href$=".pdf"],
.entry-content a[href$=".PDF"] {
  background: #eaf3eb;
  color: #20543a;
  border: 1px solid #d7e5d9;
}
.entry-content a[href$=".pdf"]:hover,
.entry-content a[href$=".PDF"]:hover { background: #dcebdc; }
.section-links { margin-top: 42px; }
.link-grid { gap: 15px; }
.link-grid a {
  background: #f3f7f2;
  border-color: #e1eae2;
  border-radius: 20px;
  padding: 21px 45px 20px 21px;
}
.link-grid a:hover { background: #fff; }
.link-grid strong { color: #20553b; }
.book-banner { background: #eaf3e9; border: 1px solid #d8e6d9; border-radius: 20px; }
.faq[open] summary { color: #216248; }
.gallery-grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.gallery-grid a {
  position: relative;
  border-radius: 17px;
  background: #e6eee7;
  box-shadow: 0 5px 15px rgba(12,42,26,.07);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.gallery-grid a:hover,
.gallery-grid a:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(12,42,26,.14); }
.gallery-grid img { height: 172px; }
.gallery-grid a:hover img { transform: scale(1.045); }
.invite-media { background-color: #133e2b; }
.invite::after {
  background: linear-gradient(90deg, rgba(8,35,23,.83), rgba(8,35,23,.23) 75%);
}
.site-footer {
  background:
    radial-gradient(560px 250px at 0 0, rgba(221,186,116,.13), transparent 72%),
    #102b21;
}
.site-footer h2 { color: #fff; }
.awards { background: rgba(255,255,255,.95); }
.dock-call { color: #184a32; }
.dock a { box-shadow: 0 10px 27px rgba(6,28,17,.25); }

/* 5. BUILT-IN DIALOG LIGHTBOX â€” RESTYLED, NOT REPLACED */
#lightbox.lightbox {
  width: min(1150px, calc(100vw - 26px));
  max-width: none;
  max-height: calc(100dvh - 26px);
  padding: 72px 36px 21px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 29px;
  background: #101e17;
  color: #f7faf7;
  box-shadow: 0 36px 100px rgba(0,0,0,.44);
  overflow: hidden;
}
#lightbox::backdrop {
  background: rgba(5,17,12,.79);
  backdrop-filter: blur(15px) saturate(.85);
  -webkit-backdrop-filter: blur(15px) saturate(.85);
}
#lightbox figure { width: 100%; margin: 0; }
#lightbox figure > img,
#lightbox figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(66dvh, 710px);
  margin-inline: auto;
  border-radius: 13px;
  object-fit: contain;
  background: transparent;
}
#lightbox figcaption {
  max-width: 100%;
  margin: 13px 0 0;
  padding: 0 8px;
  color: #cbd7ce;
  text-align: center;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.5;
}
#lightbox .lightbox-close,
#lightbox .lightbox-prev,
#lightbox .lightbox-next {
  z-index: 20;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0;
  transition: background .2s ease, scale .2s ease;
}
#lightbox .lightbox-close:hover,
#lightbox .lightbox-prev:hover,
#lightbox .lightbox-next:hover { background: rgba(255,255,255,.25); scale: 1.04; }
#lightbox .lightbox-close { top: 15px; right: 18px; }
#lightbox .lightbox-prev { top: 50%; left: 8px; transform: translateY(-50%); }
#lightbox .lightbox-next { top: 50%; right: 8px; transform: translateY(-50%); }
#lightbox .lightbox-close::before { content: "Ã—"; font-size: 30px; font-weight: 350; line-height: 1; }
#lightbox .lightbox-prev::before { content: "â€¹"; font-size: 36px; font-weight: 400; line-height: 1; transform: translateY(-2px); }
#lightbox .lightbox-next::before { content: "â€º"; font-size: 36px; font-weight: 400; line-height: 1; transform: translateY(-2px); }

/* Enhanced zoom viewer, if installed using the theme-JS modification */
#lightbox .kl-lightbox-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: min(64dvh, 700px);
  min-height: 200px;
  overflow: hidden;
  border-radius: 14px;
  background: #091610;
  touch-action: none;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
}
#lightbox .kl-lightbox-viewport.is-zoomed { cursor: grab; }
#lightbox .kl-lightbox-viewport.is-dragging { cursor: grabbing; }
#lightbox .kl-lightbox-viewport img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  border: none;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  transform-origin: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
#lightbox .kl-zoom-tools {
  position: absolute;
  z-index: 30;
  top: 17px;
  left: 21px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(41,65,50,.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 7px 22px rgba(0,0,0,.15);
}
#lightbox .kl-zoom-tools .kl-zoom-tool {
  position: static;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  min-width: 37px;
  min-height: 37px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(255,255,255,.11);
  color: #fff;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
#lightbox .kl-zoom-tools .kl-zoom-tool:hover { background: rgba(255,255,255,.25); }
#lightbox .kl-zoom-level {
  min-width: 52px;
  padding: 0 5px;
  color: #fff;
  font-size: 12px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
#lightbox button:focus-visible { outline: 3px solid #f0c888; outline-offset: 3px; }

/* 6. RESPONSIVE SUPPORT */
@media (max-width: 980px) {
  .menu {
    background: linear-gradient(165deg, #174833 0%, #0b291e 100%);
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .menu > li > a { font-size: 17px; }
  .submenu-toggle { background: rgba(255,255,255,.12); }
  .nav-bar.is-open .menu { box-shadow: 0 18px 60px rgba(0,0,0,.15); }
  .feature-grid { gap: 12px; }
  .gallery-grid img { height: 130px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-header { gap: 10px; }
  .header-contact { font-size: 12px; }
  .panel { padding: 24px 19px 23px; border-radius: 23px; }
  .mast { padding-block: 32px 62px; }
  .mast h1 { font-size: clamp(38px, 10vw, 56px); }
  .facts li { padding: 17px 14px; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .gallery-grid img { height: 122px; }
  .feature-card { border-radius: 20px; }
  .dock { bottom: calc(12px + env(safe-area-inset-bottom)); }
  #lightbox.lightbox {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    padding: 64px 10px 18px;
    border-radius: 20px;
  }
  #lightbox .kl-lightbox-viewport { height: min(65dvh, 650px); min-height: 190px; border-radius: 10px; }
  #lightbox .kl-zoom-tools { top: 12px; left: 13px; gap: 3px; padding: 5px; }
  #lightbox .kl-zoom-tools .kl-zoom-tool { width: 32px; height: 32px; min-width: 32px; min-height: 32px; font-size: 20px; }
  #lightbox .kl-zoom-level { min-width: 44px; font-size: 11px; }
  #lightbox .lightbox-close { top: 12px; right: 12px; }
  #lightbox .lightbox-prev { left: 4px; }
  #lightbox .lightbox-next { right: 4px; }
  #lightbox .lightbox-prev, #lightbox .lightbox-next { width: 41px; height: 41px; min-width: 41px; min-height: 41px; }
}
@media (prefers-reduced-motion: reduce) {
  .chrome, .menu a, .feature-card, .gallery-grid a, #lightbox button { transition: none !important; }
  .gallery-grid a:hover, .feature-card:hover { transform: none; }
}

/* ================================================================
   KING'S LYNN CARAVAN & CAMPING PARK â€” THEME VISUAL REFRESH
   Compatible with KLCC WordPress theme v1.2 and its existing JS.
   Forest-green / warm ivory / muted gold â€” understated Apple feel.
   Add at the END of style.css or WordPress > Additional CSS.
   ================================================================ */

/* 1. DESIGN TOKENS / TYPOGRAPHY */
:root {
  --blue: #245d44;
  --blue-bright: #32795a;
  --nav: #112d24;
  --ink: #192c23;
  --muted: #66776d;
  --paper: #f6f8f5;
  --card: #ffffff;
  --line: rgba(32, 74, 52, .13);
  --gold: #dec08a;
  --shadow: 0 14px 48px rgba(17, 48, 31, .085);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

body {
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #d2e7d4; color: #143d2b; }
:focus-visible { outline: 3px solid #bf9555; outline-offset: 3px; }
a { text-underline-offset: .23em; }

/* 2. FROSTED STICKY NAVIGATION */
.chrome {
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.chrome::before {
  background: rgba(13, 40, 30, .88);
  backdrop-filter: saturate(1.35) blur(24px);
  -webkit-backdrop-filter: saturate(1.35) blur(24px);
}
body.is-scrolled .chrome {
  box-shadow: 0 10px 30px rgba(5, 28, 18, .16);
}
body.is-scrolled .chrome::before {
  background: rgba(12, 34, 26, .96);
}
.scroll-progress {
  height: 3px;
  background: linear-gradient(90deg, #ddbc83, #f6e9c9 62%, #9ac4a3);
}
.site-header { gap: 20px; }
.brand img { filter: drop-shadow(0 2px 10px rgba(0,0,0,.11)); }
.header-contact { color: #e5f0e8; font-size: 13px; }
.header-contact a { color: #fff; font-weight: 650; }
.nav-inner { padding-bottom: 10px; }
.menu { gap: 3px; }
.menu a {
  font-size: 14px;
  font-weight: 620;
  padding: 11px 15px;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.menu > li > a:hover,
.menu > li.current-menu-item > a,
.menu > li.current-menu-ancestor > a {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.09);
}
.menu .sub-menu {
  background: rgba(16, 47, 34, .97);
  border-color: rgba(255,255,255,.13);
  border-radius: 17px;
  box-shadow: 0 22px 55px rgba(3, 21, 13, .32);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.menu .sub-menu a:hover { background: rgba(255,255,255,.12); }
.nav-toggle {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.21);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.book-link,
.dock-book {
  background: linear-gradient(135deg, #edd7ac, #d7b16f);
  color: #25331f !important;
  box-shadow: 0 8px 24px rgba(6,23,15,.16);
}
.book-link { font-size: 14px; }

/* 3. HEROES, INTERNAL PAGE MASTS */
.hero, .hero-media { background-color: #173c2b; }
.hero::after {
  background:
    linear-gradient(100deg, rgba(7, 33, 22, .78), rgba(7, 33, 22, .36) 47%, rgba(7, 33, 22, .04) 75%),
    linear-gradient(180deg, rgba(6, 28, 19, .55), transparent 32%, rgba(6, 28, 19, .72));
}
.hero-glow {
  background: radial-gradient(circle, rgba(232,191,115,.33), transparent 68%);
}
.hero h1 { letter-spacing: -.048em; line-height: 1.01; }
.hero-copy { text-shadow: 0 3px 26px rgba(0,0,0,.30); }
.hero-copy > p:not(.hero-kicker) { max-width: 42rem; }
.hero-kicker { color: #f0d7a6; }
.btn {
  font-size: 14px;
  border-radius: 999px;
  box-shadow: none;
}
.btn-gold {
  background: linear-gradient(130deg, #efdcb7, #dbb470);
  color: #183626;
  box-shadow: 0 10px 26px rgba(15, 31, 20, .16);
}
.btn-ghost { border-color: rgba(255,255,255,.46); background: rgba(255,255,255,.07); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.mast {
  padding-top: 52px;
  background:
    radial-gradient(580px 280px at 95% 0%, rgba(226,188,122,.23), transparent 72%),
    linear-gradient(145deg, #173f2f, #0c2920 85%);
}
.mast h1 { letter-spacing: -.045em; }
.mast::before { background: rgba(255,255,255,.05); }
.crumbs, .crumbs a { text-underline-offset: 3px; }

/* 4. HOMEPAGE SECTIONS, CARDS, CONTENT */
.facts li {
  background: rgba(255,255,255,.91);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(16,48,30,.10);
}
.facts strong { color: #1e4b35; }
.marquee { background: rgba(255,255,255,.65); }
.marquee span { color: #2d654a; }
.feature-grid { gap: 18px; }
.feature-card {
  border-radius: 25px;
  background: #d7e4d9;
  box-shadow: 0 14px 35px rgba(16,48,30,.09);
}
.feature-card:hover { box-shadow: 0 22px 46px rgba(16,48,30,.16); }
.panel {
  border: 1px solid rgba(32,74,52,.075);
  background: rgba(255,255,255,.97);
  border-radius: 28px;
  box-shadow: 0 20px 52px rgba(17,48,31,.075);
}
.entry-content { color: #33463a; line-height: 1.76; }
.entry-content h2, .entry-content h3 { color: #183c2b; }
.entry-content p { max-width: 82ch; }
.entry-content iframe { border-radius: 16px; }
.entry-content a[href$=".pdf"],
.entry-content a[href$=".PDF"] {
  background: #eaf3eb;
  color: #20543a;
  border: 1px solid #d7e5d9;
}
.entry-content a[href$=".pdf"]:hover,
.entry-content a[href$=".PDF"]:hover { background: #dcebdc; }
.section-links { margin-top: 42px; }
.link-grid { gap: 15px; }
.link-grid a {
  background: #f3f7f2;
  border-color: #e1eae2;
  border-radius: 20px;
  padding: 21px 45px 20px 21px;
}
.link-grid a:hover { background: #fff; }
.link-grid strong { color: #20553b; }
.book-banner { background: #eaf3e9; border: 1px solid #d8e6d9; border-radius: 20px; }
.faq[open] summary { color: #216248; }
.gallery-grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.gallery-grid a {
  position: relative;
  border-radius: 17px;
  background: #e6eee7;
  box-shadow: 0 5px 15px rgba(12,42,26,.07);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.gallery-grid a:hover,
.gallery-grid a:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(12,42,26,.14); }
.gallery-grid img { height: 172px; }
.gallery-grid a:hover img { transform: scale(1.045); }
.invite-media { background-color: #133e2b; }
.invite::after {
  background: linear-gradient(90deg, rgba(8,35,23,.83), rgba(8,35,23,.23) 75%);
}
.site-footer {
  background:
    radial-gradient(560px 250px at 0 0, rgba(221,186,116,.13), transparent 72%),
    #102b21;
}
.site-footer h2 { color: #fff; }
.awards { background: rgba(255,255,255,.95); }
.dock-call { color: #184a32; }
.dock a { box-shadow: 0 10px 27px rgba(6,28,17,.25); }

/* 5. BUILT-IN DIALOG LIGHTBOX â€” RESTYLED, NOT REPLACED */
#lightbox.lightbox {
  width: min(1150px, calc(100vw - 26px));
  max-width: none;
  max-height: calc(100dvh - 26px);
  padding: 72px 36px 21px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 29px;
  background: #101e17;
  color: #f7faf7;
  box-shadow: 0 36px 100px rgba(0,0,0,.44);
  overflow: hidden;
}
#lightbox::backdrop {
  background: rgba(5,17,12,.79);
  backdrop-filter: blur(15px) saturate(.85);
  -webkit-backdrop-filter: blur(15px) saturate(.85);
}
#lightbox figure { width: 100%; margin: 0; }
#lightbox figure > img,
#lightbox figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(66dvh, 710px);
  margin-inline: auto;
  border-radius: 13px;
  object-fit: contain;
  background: transparent;
}
#lightbox figcaption {
  max-width: 100%;
  margin: 13px 0 0;
  padding: 0 8px;
  color: #cbd7ce;
  text-align: center;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.5;
}
#lightbox .lightbox-close,
#lightbox .lightbox-prev,
#lightbox .lightbox-next {
  z-index: 20;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0;
  transition: background .2s ease, scale .2s ease;
}
#lightbox .lightbox-close:hover,
#lightbox .lightbox-prev:hover,
#lightbox .lightbox-next:hover { background: rgba(255,255,255,.25); scale: 1.04; }
#lightbox .lightbox-close { top: 15px; right: 18px; }
#lightbox .lightbox-prev { top: 50%; left: 8px; transform: translateY(-50%); }
#lightbox .lightbox-next { top: 50%; right: 8px; transform: translateY(-50%); }
#lightbox .lightbox-close::before { content: "Ã—"; font-size: 30px; font-weight: 350; line-height: 1; }
#lightbox .lightbox-prev::before { content: "â€¹"; font-size: 36px; font-weight: 400; line-height: 1; transform: translateY(-2px); }
#lightbox .lightbox-next::before { content: "â€º"; font-size: 36px; font-weight: 400; line-height: 1; transform: translateY(-2px); }

/* Enhanced zoom viewer, if installed using the theme-JS modification */
#lightbox .kl-lightbox-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: min(64dvh, 700px);
  min-height: 200px;
  overflow: hidden;
  border-radius: 14px;
  background: #091610;
  touch-action: none;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
}
#lightbox .kl-lightbox-viewport.is-zoomed { cursor: grab; }
#lightbox .kl-lightbox-viewport.is-dragging { cursor: grabbing; }
#lightbox .kl-lightbox-viewport img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  border: none;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  transform-origin: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
#lightbox .kl-zoom-tools {
  position: absolute;
  z-index: 30;
  top: 17px;
  left: 21px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(41,65,50,.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 7px 22px rgba(0,0,0,.15);
}
#lightbox .kl-zoom-tools .kl-zoom-tool {
  position: static;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  min-width: 37px;
  min-height: 37px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(255,255,255,.11);
  color: #fff;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
#lightbox .kl-zoom-tools .kl-zoom-tool:hover { background: rgba(255,255,255,.25); }
#lightbox .kl-zoom-level {
  min-width: 52px;
  padding: 0 5px;
  color: #fff;
  font-size: 12px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
#lightbox button:focus-visible { outline: 3px solid #f0c888; outline-offset: 3px; }

/* 6. RESPONSIVE SUPPORT */
@media (max-width: 980px) {
  .menu {
    background: linear-gradient(165deg, #174833 0%, #0b291e 100%);
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .menu > li > a { font-size: 17px; }
  .submenu-toggle { background: rgba(255,255,255,.12); }
  .nav-bar.is-open .menu { box-shadow: 0 18px 60px rgba(0,0,0,.15); }
  .feature-grid { gap: 12px; }
  .gallery-grid img { height: 130px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-header { gap: 10px; }
  .header-contact { font-size: 12px; }
  .panel { padding: 24px 19px 23px; border-radius: 23px; }
  .mast { padding-block: 32px 62px; }
  .mast h1 { font-size: clamp(38px, 10vw, 56px); }
  .facts li { padding: 17px 14px; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .gallery-grid img { height: 122px; }
  .feature-card { border-radius: 20px; }
  .dock { bottom: calc(12px + env(safe-area-inset-bottom)); }
  #lightbox.lightbox {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    padding: 64px 10px 18px;
    border-radius: 20px;
  }
  #lightbox .kl-lightbox-viewport { height: min(65dvh, 650px); min-height: 190px; border-radius: 10px; }
  #lightbox .kl-zoom-tools { top: 12px; left: 13px; gap: 3px; padding: 5px; }
  #lightbox .kl-zoom-tools .kl-zoom-tool { width: 32px; height: 32px; min-width: 32px; min-height: 32px; font-size: 20px; }
  #lightbox .kl-zoom-level { min-width: 44px; font-size: 11px; }
  #lightbox .lightbox-close { top: 12px; right: 12px; }
  #lightbox .lightbox-prev { left: 4px; }
  #lightbox .lightbox-next { right: 4px; }
  #lightbox .lightbox-prev, #lightbox .lightbox-next { width: 41px; height: 41px; min-width: 41px; min-height: 41px; }
}
@media (prefers-reduced-motion: reduce) {
  .chrome, .menu a, .feature-card, .gallery-grid a, #lightbox button { transition: none !important; }
  .gallery-grid a:hover, .feature-card:hover { transform: none; }
}