/* ============================================================
   GROW MY POST, PUBLIC SITE DESIGN SYSTEM
   Palette: deep navy + brass on warm off-white
   Type: Fraunces (display/headings) + Inter (body/UI)
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=Roboto:wght@400;500;700&family=Open+Sans:wght@400;600;700&family=Archivo:wght@400;600;700&family=Montserrat:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&family=PT+Sans:wght@400;700&display=swap');

:root {
  --navy: #16233F;
  --navy-deep: #0E1729;
  --brass: #B8912F;
  --brass-light: #D8B85C;
  --cream: #F6F4EF;
  --ink: #23262B;
  --slate: #6B7280;
  --line: #E4E0D6;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --section-pad-y: 96px;
  --section-pad-y-mobile: 56px;
  --container-w: 1120px;
}

* { box-sizing: border-box; }

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

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

h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.4rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink); }

a { color: inherit; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.75em;
  display: block;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad-y) 0;
}

.section--tight { padding: 56px 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.78); }
.section--alt { background: var(--white); }

@media (max-width: 768px) {
  .section { padding: var(--section-pad-y-mobile) 0; }
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
}

.site-logo img { height: 36px; width: auto; }

.site-nav {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-color: var(--brass-light);
}

.nav-toggle { display: none; }

@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle {
    display: block;
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  /* Post name is real, unbounded-length data, truncate instead of
     wrapping so a long name can't blow out the fixed-height header
     next to the menu toggle. */
  .site-logo { min-width: 0; }
  .site-logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }
}

/* ---- Hero ---- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 120px 0 100px;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,23,41,0.55), rgba(14,23,41,0.75));
}

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

.hero h1 { color: var(--white); }
.hero p.lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 2em;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--btn-transition);
}

/* ONE hover rule for every button on the site (.btn and all its
   variants, plus the calendar's .btn-cal-nav): the button's own color
   gets about 10% darker, from an inset shadow laid over its background
   so it works for any post's brand colors without knowing them, and it
   lifts 1px. No variant sets its own hover colors, so they all match. */
:root {
  --btn-transition: transform 0.15s ease, box-shadow 0.15s ease;
  --btn-hover-shade: inset 0 0 0 100vmax rgba(0, 0, 0, 0.10);
}
.btn:hover:not(:disabled),
.btn-cal-nav:hover:not(:disabled) {
  box-shadow: var(--btn-hover-shade);
  transform: translateY(-1px);
}

.btn-brass {
  background: var(--brass);
  color: var(--navy-deep);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

/* ---- "This Week at the Post" strip (signature element) ---- */
.week-strip {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}

.week-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.week-strip-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.week-card {
  flex: 0 0 auto;
  width: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--cream);
}

.week-card .date-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  min-width: 56px;
}
.week-card .date-block .month {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass-light);
}
.week-card .date-block .day { font-size: 1.15rem; font-weight: 700; }

.week-card h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 4px;
}
.week-card .kind {
  font-size: 0.75rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.week-empty {
  color: var(--slate);
  font-size: 0.9rem;
}

/* ---- Cards / grids ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
}

.img-frame {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--line);
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.card .card-body { padding: 20px; }

.event-card { text-decoration: none; color: inherit; display: block; cursor: pointer; }
.event-card .img-frame { aspect-ratio: 16/10; }
.event-card .date-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.event-card .price {
  font-weight: 600;
  color: var(--navy);
  margin-top: 8px;
}

/* ---- Contact / info list ---- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list .label { color: var(--slate); min-width: 90px; font-weight: 500; }
.gmp-hours { display: inline-grid; grid-template-columns: auto auto; gap: 2px 16px; vertical-align: top; }
.gmp-hours-days { font-weight: 600; }

/* ---- Calendar (availability, read-only) ---- */
.avail-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.avail-dow {
  text-align: center;
  font-size: 0.7rem;
  color: var(--slate);
  text-transform: uppercase;
  padding-bottom: 4px;
}
.avail-cell {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: var(--white);
}
.avail-cell.blocked { background: #F3E4E4; color: #A8504F; text-decoration: line-through; }
.avail-cell.past { background: #F3F4F6; color: #B0B4BC; border-color: #E9EAEE; }
.avail-cell.empty { border-color: transparent; }

/* ---- Form ---- */
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
.form-field select {
  cursor: pointer;
}
/* A solid, high-contrast outline so keyboard users can always see which
   field has focus (the old faint brass glow was hard to see). */
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 2px solid var(--navy, #1b3f7a);
  outline-offset: 2px;
  border-color: var(--brass);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row-3 { grid-template-columns: 1fr; } }

/* Date/time pickers: tint the native calendar/clock icon so it feels
   like part of the design system instead of a generic browser control. */
.form-field input[type="date"],
.form-field input[type="time"] {
  color-scheme: light;
}

/* Flatpickr's visible text field (flatpickr-alt-input, from
   flatpickr-setup.js) is also given the Bootstrap class form-select so
   dashboard pages pick up Bootstrap's styling for free, but the public
   site doesn't load Bootstrap, so without this rule that field renders
   as a bare, unstyled box next to every other .form-field input that
   does match the site's design system. Target the class flatpickr-setup.js
   always adds, not form-select, so this works regardless of Bootstrap. */
.form-field .flatpickr-alt-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  cursor: pointer;
}
.form-field .flatpickr-alt-input:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(184,145,47,0.15);
}
.form-field input[type="date"]::-webkit-calendar-picker-indicator,
.form-field input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  border-radius: 4px;
  padding: 3px;
  transition: background-color 0.15s;
}
.form-field input[type="date"]::-webkit-calendar-picker-indicator:hover,
.form-field input[type="time"]::-webkit-calendar-picker-indicator:hover {
  background-color: rgba(22, 35, 63, 0.08);
}
/* Native constraint-validation UI (e.g. a date before `min`, or a
   required field left blank), :user-invalid only matches after the
   visitor has actually interacted with the field, so a pristine empty
   required field doesn't show as an error before they've touched it. */
.form-field input:user-invalid {
  border-color: #A8504F;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer h4 { color: var(--white); font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--brass-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-content { max-width: 640px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

/* Honeypot bait field (see gmpHoneypotHTML in site.js) -- moved off
   screen rather than display:none, since a bot that fills in every
   input on the page without running CSS at all still finds it either
   way, but display:none would also hide it from a bot that DOES run
   CSS and skips hidden fields. Real visitors never see or tab into it:
   left: -9999px takes it out of the visible viewport, and the input's
   own tabindex="-1" (in the HTML) skips it in keyboard/tab order. */
.gmp-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile-slot { margin: 4px 0 16px; }

.gmp-human-gate { margin: 4px 0 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-cal-nav { transition: none; }
  .btn:hover:not(:disabled), .btn-cal-nav:hover:not(:disabled) { transform: none; }
}

/* ============================================================
   ADDITIONS: real footer, hall CTA banner, featured event card
============================================================ */

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-links a { text-decoration: none; }

.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background 0.15s;
}
.social-icon:hover { background: var(--brass-light); }

/* Hall booking CTA banner */
.hall-cta-banner {
  background: var(--brass);
  color: var(--navy-deep);
  text-align: center;
  padding: 64px 0;
}
.hall-cta-banner h2 { color: var(--navy-deep); }
.hall-cta-banner .btn-brass {
  background: var(--navy);
  color: var(--white);
}

/* Featured event card (larger, first in the upcoming events section) */
.event-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.event-card--featured .img-frame { aspect-ratio: auto; height: 100%; }
.event-card--featured .card-body { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 700px) {
  .event-card--featured { grid-template-columns: 1fr; }
}

.img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #B0AB9C; font-size: 0.85rem;
}

.muted-sm { font-size: 0.85rem; color: var(--slate); margin-bottom: 4px; }

.location-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 2px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content h2 { margin-top: 1.5em; }
.legal-content ul { padding-left: 1.2em; }

/* ============================================================
   MODAL, shared lightweight modal used by the event popup and
   the hall booking request form. No framework dependency.
============================================================ */
.gmp-modal-overlay {
  position: fixed; inset: 0; background: rgba(14,23,41,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; z-index: 1000;
}
.gmp-modal-box {
  background: var(--cream); border-radius: 10px;
  max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto;
  position: relative; padding: 32px;
}
.gmp-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.06); border: none;
  font-size: 1.1rem; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.gmp-modal-close:hover { background: rgba(0,0,0,0.12); }
body.gmp-modal-open { overflow: hidden; }

.avail-cell.clickable {
  cursor: pointer;
  background: #E9F5EC;
  border-color: #B8DCC0;
  color: #1E5631;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.avail-cell.clickable:hover { border-color: var(--brass-light); background: #FBF3E0; color: var(--navy); }

.btn-cal-nav {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 32px; height: 32px; font-size: 1rem; color: var(--navy);
  cursor: pointer;
  transition: var(--btn-transition);
}

/* Modal shrinks its own padding on narrow phones so the ~208px content
   width a 320px viewport would otherwise leave (24px overlay padding +
   32px box padding per side) doesn't cramp form fields and ticket rows. */
@media (max-width: 480px) {
  .gmp-modal-overlay { padding: 12px; }
  .gmp-modal-box { padding: 20px; border-radius: 8px; }
  .gmp-modal-close { top: 10px; right: 10px; width: 28px; height: 28px; }
}

/* Event popup photo gallery (built by openEventModal in site.js, kept
   as classes rather than inline styles specifically so it can collapse
   here). Mirrors the same 2-col → 1-col pattern event.html uses for its
   own full-page gallery at the same breakpoint. */
.event-modal-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}
.event-modal-gallery.single { grid-template-columns: 1fr; }
.event-modal-gallery-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 8px; }
@media (max-width: 700px) {
  .event-modal-gallery:not(.single) { grid-template-columns: 1fr; }
  .event-modal-gallery-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
}

/* Ticket tier row (event popup + event.html's own page), allow the
   name block and the price/button block to drop to their own line
   instead of overflowing when both can't fit on one row. */
.tier-row { flex-wrap: wrap; row-gap: 10px; }