/* ==========================================================================
   Wolvercote Village Hall — stylesheet
   Plain CSS, no build step. Edit values in :root to re-theme the whole site.
   ========================================================================== */

:root {
  --navy: #1f3a5f;
  --navy-dark: #16293f;
  --accent: #b8843f;      /* warm brass */
  --cream: #f7f4ee;
  --ink: #2b2b2b;
  --muted: #5f6b76;
  --line: #e3ddd2;
  --white: #ffffff;
  --max: 1140px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}

/* ------------------------------------------------------------------ base -- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 18px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section--tint { background: var(--cream); }
.section--navy { background: var(--navy); color: #eaf0f7; }
.section--navy h2, .section--navy h3 { color: #fff; }

.text-center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

/* ----------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  text-decoration: none;
  border-bottom-color: var(--accent);
}
.nav-links .btn { color: #fff; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.3s;
}

/* -------------------------------------------------------------- buttons --- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  border: 2px solid var(--accent);
  transition: 0.2s;
  cursor: pointer;
}
.btn:hover { background: #a1712f; border-color: #a1712f; text-decoration: none; }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ----------------------------------------------------------------- hero --- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(22, 41, 63, 0.55), rgba(22, 41, 63, 0.55));
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 0.3em; }
.hero .lead { color: #f2ede4; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.page-hero {
  min-height: 42vh;
}

/* --------------------------------------------------------------- feature -- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

/* ------------------------------------------------------------ info grid --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px;
  margin-top: 32px;
}
.info-item {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
}
.info-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.info-item p { margin: 0; font-size: 0.98rem; color: var(--muted); }

/* --------------------------------------------------------- usage lists -- */
.usage-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 40px;
}
.usage-group h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.usage-group > p {
  color: var(--muted);
  margin-bottom: 8px;
}
.usage-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.usage-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.usage-ico {
  flex: 0 0 auto;
  color: var(--accent);
  margin-top: 2px;
}
.usage-ico svg { width: 26px; height: 26px; display: block; }
.usage-list strong {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.usage-list p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .usage-groups { grid-template-columns: 1fr; gap: 40px; }
}

/* --------------------------------------------------------------- gallery -- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(22, 41, 63, 0.85));
  color: #fff;
  padding: 24px 14px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  transition: 0.3s;
}
.gallery figure:hover figcaption { opacity: 1; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 28, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  color: #fff;
  font-weight: 700;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 0;
  color: #fff;
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close { top: 22px; right: 22px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.25); }

/* ----------------------------------------------------------- price list --- */
.prices {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  max-width: 640px;
}
.prices li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.prices li span:last-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.note { font-size: 0.92rem; color: var(--muted); font-style: italic; margin-top: 16px; }

/* --------------------------------------------------------------- prose ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.prose img { border-radius: 6px; margin: 24px 0; box-shadow: var(--shadow); }

/* --------------------------------------------------------------- map ------ */
.map-embed {
  width: 100%;
  height: 460px;
  border: 0;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.find-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

/* ------------------------------------------------------------ button row -- */
.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 8px 0 24px;
}

/* --------------------------------------------------------- copy email --- */
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.contact-line .email-address {
  font-weight: 700;
  word-break: break-all;
}
.copy-icon {
  background: none;
  border: 0;
  padding: 3px;
  cursor: pointer;
  color: inherit;
  opacity: 0.65;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 4px;
  transition: opacity 0.15s;
}
.copy-icon:hover { opacity: 1; }
.copy-icon svg { width: 15px; height: 15px; display: block; }
.copy-icon.copied { opacity: 1; color: #7fc47f; }

/* ----------------------------------------------------- calendar embeds -- */
.cal-embed { max-width: 900px; margin: 32px auto 0; }
.cal-frame {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cal-frame iframe { width: 100%; height: 620px; border: 0; display: block; }
.cal-note { font-size: 0.85rem; color: var(--muted); font-style: italic; text-align: center; margin: 16px 0 0; }

@media (max-width: 560px) {
  .cal-frame iframe { height: 520px; }
}

/* ------------------------------------------------------------ cookie bar -- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 940px;
  margin: 0 auto;
  background: var(--navy-dark);
  color: #e7edf4;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  z-index: 200;
  font-size: 0.9rem;
  line-height: 1.5;
}
.cookie-banner p { margin: 0; flex: 1 1 340px; }
.cookie-banner a { color: #e7c99b; }
.cookie-accept { flex: 0 0 auto; padding: 10px 26px; }

/* --------------------------------------------------------------- footer --- */
.site-footer {
  background: var(--navy-dark);
  color: #c3cdd9;
  padding: 48px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer h4 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #e7c99b; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  text-align: center;
  color: #8fa0b3;
  font-size: 0.85rem;
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .find-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
