/* Repentance Creek Public Hall — heritage green & yellow palette */

:root {
  --cream: #f9f4e4;
  --cream-dark: #efe8d0;
  --timber: #3d4a36;
  --timber-light: #4a5c42;
  --gold: #c9a832;
  --gold-light: #dbbe55;
  --forest: #2f4a38;
  --forest-light: #3d5c47;
  --hall-yellow: #e2c84a;
  --hall-green: #2f4a38;
  --ink: #2c2416;
  --ink-muted: #5a5248;
  --white: #fffdf8;
  --shadow: rgba(44, 36, 22, 0.12);
  --radius: 6px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max-width: 1120px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold);
}

/* Typography */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--timber);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-muted);
  max-width: 42rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* Layout */

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--cream-dark);
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 74, 58, 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--timber);
  line-height: 1.15;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.logo__sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--timber);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--timber-light);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--timber);
  cursor: pointer;
}

/* Hero */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(44, 36, 22, 0.75) 0%, rgba(44, 36, 22, 0.25) 50%, rgba(44, 36, 22, 0.1) 100%),
    url("../images/pizza-hero-lawn.jpg") center / cover no-repeat;
  filter: sepia(0.12);
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.hero .lead {
  color: rgba(255, 253, 248, 0.9);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.6);
}

.btn--outline:hover {
  background: rgba(255, 253, 248, 0.12);
  color: var(--white);
}

.btn--dark {
  background: var(--hall-green);
  color: var(--white);
  border-color: var(--hall-green);
}

.btn--dark:hover {
  background: var(--forest-light);
  border-color: var(--forest-light);
  color: var(--white);
}

/* Cards & grids */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: start;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(92, 74, 58, 0.1);
  box-shadow: 0 4px 20px var(--shadow);
  overflow: hidden;
}

.card__body {
  padding: 1.5rem;
}

.card__image {
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
  object-fit: cover;
  width: 100%;
}

.card__meta {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

/* Feature strip */

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.feature-strip .card__body {
  text-align: center;
  padding: 1.25rem 1rem;
}

.feature-strip h3 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.feature-strip p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Info box */

.info-box {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.info-box--highlight {
  background: linear-gradient(135deg, #faf5eb 0%, var(--white) 100%);
  border: 1px solid rgba(166, 124, 42, 0.25);
  border-left: 4px solid var(--gold);
}

.placeholder {
  background: repeating-linear-gradient(
    -45deg,
    var(--cream-dark),
    var(--cream-dark) 8px,
    var(--cream) 8px,
    var(--cream) 16px
  );
  border: 2px dashed rgba(92, 74, 58, 0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Events */

.event-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.event-date {
  flex-shrink: 0;
  width: 4.5rem;
  text-align: center;
  background: var(--hall-green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 0.5rem;
}

.event-date__day {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.event-date__month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.event-card h3 {
  margin: 0 0 0.35rem;
}

.event-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Hire section */

.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(92, 74, 58, 0.12);
}

.rate-table th {
  font-weight: 600;
  color: var(--timber);
  background: var(--cream-dark);
}

.rate-table td:last-child {
  font-weight: 600;
  color: var(--forest);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(92, 74, 58, 0.1);
  display: flex;
  gap: 0.75rem;
}

.contact-list strong {
  min-width: 6rem;
  color: var(--timber);
}

.map-placeholder {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(rgba(61, 90, 71, 0.08), rgba(61, 90, 71, 0.08)),
    var(--cream-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-style: italic;
  border: 1px solid rgba(92, 74, 58, 0.15);
}

.map-embed {
  aspect-ratio: 16 / 10;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
}

.page-hero--gallery {
  position: relative;
  overflow: hidden;
}

.page-hero--gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(47, 74, 56, 0.88), rgba(47, 74, 56, 0.92)),
    url("../images/hall-exterior-full.jpg") center / cover no-repeat;
  filter: sepia(0.08);
}

.page-hero--gallery .container {
  position: relative;
  z-index: 1;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  background: var(--cream-dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  filter: sepia(0.08);
}

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

.gallery-item__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(44, 36, 22, 0.75));
  color: var(--white);
  font-size: 0.85rem;
  text-align: left;
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-item:hover .gallery-item__caption {
  opacity: 1;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(44, 36, 22, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-height: 85vh;
  max-width: 90vw;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}

.lightbox__close:hover {
  opacity: 1;
}

/* FAQ */

.faq-list {
  max-width: 48rem;
}

.faq-item {
  border-bottom: 1px solid rgba(92, 74, 58, 0.15);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--timber);
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer__inner {
  padding: 0 0 1.25rem;
  color: var(--ink-muted);
}

.faq-item.is-open .faq-answer {
  max-height: 20rem;
}

/* Page header (inner pages) */

.page-hero {
  background: var(--hall-green);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255, 253, 248, 0.8);
  margin: 0 auto;
  max-width: 32rem;
}

/* Footer */

.site-footer {
  background: var(--hall-green);
  color: rgba(255, 253, 248, 0.75);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.site-footer a {
  color: var(--gold-light);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 253, 248, 0.15);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Decorative divider */

.ornament {
  text-align: center;
  color: var(--gold);
  font-size: 1.25rem;
  letter-spacing: 0.5em;
  margin: 2rem 0;
  opacity: 0.6;
}

/* Responsive */

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .contact-grid,
  .site-footer__grid,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature-strip {
    margin-top: 2rem;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(92, 74, 58, 0.12);
    gap: 1rem;
  }

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

  .nav-toggle {
    display: block;
  }

  .site-header {
    position: relative;
  }

  .hero {
    min-height: 60vh;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3rem 0;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
