/* =========================================================
   St. Paul Event Center — design tokens
   ========================================================= */
:root {
  --ivory: #faf5ec;
  --ivory-dark: #f1e7d6;
  --burgundy: #6e1e2e;
  --burgundy-dark: #4f1420;
  --navy: #1b2a41;
  --navy-dark: #121d2e;
  --gold: #b8923a;
  --gold-light: #d4b76a;
  --ink: #2a2521;
  --ink-soft: #55504a;
  --white: #ffffff;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1180px;
  --radius: 6px;
  --shadow-soft: 0 10px 30px rgba(27, 42, 65, 0.12);
  --shadow-lift: 0 18px 45px rgba(27, 42, 65, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

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

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

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

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

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.75em 1.4em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
}
.btn-primary:hover { background: var(--burgundy-dark); box-shadow: var(--shadow-soft); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-gold:hover { background: var(--gold-light); box-shadow: var(--shadow-lift); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn-lg { padding: 0.95em 1.9em; font-size: 1.05rem; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 245, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(27, 42, 65, 0.08);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.7em 1.25em;
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand-name small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.main-nav {
  display: flex;
  gap: 1.6em;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding: 0.3em 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,29,46,0.35) 0%, rgba(18,29,46,0.55) 55%, rgba(18,29,46,0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3em 1.25em 3.5em;
  color: var(--white);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.6em;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  max-width: 14ch;
  margin-bottom: 0.35em;
}

.hero-sub {
  max-width: 46ch;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin: 1.4em 0 2.2em;
}

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 2em;
  margin: 0;
  padding: 1.4em 0 0;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.hero-facts li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}
.hero-facts strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--gold-light);
}

/* =========================================================
   About strip
   ========================================================= */
.about-strip {
  max-width: 780px;
  margin: 0 auto;
  padding: 3.5em 1.25em;
  text-align: center;
}
.about-strip p {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.55;
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 4.5em 1.25em;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-alt {
  max-width: none;
  background: var(--ivory-dark);
}
.section-alt > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5em;
}
.section-sub {
  font-size: 1.02rem;
}

/* =========================================================
   Gallery
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.9em;
}
.gallery-item {
  position: relative;
  grid-column: span 2;
  grid-row: span 1;
  border: none;
  padding: 0;
  margin: 0;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item.span-2 {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
  pointer-events: none;
}

/* =========================================================
   Event type cards
   ========================================================= */
.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2em;
}
.event-card {
  background: var(--white);
  border: 1px solid rgba(27,42,65,0.08);
  border-radius: var(--radius);
  padding: 1.8em 1.2em;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.event-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
  border-color: var(--gold);
}
.event-card svg {
  color: var(--gold);
  margin-bottom: 0.6em;
}
.event-card h3 {
  font-size: 1rem;
  margin: 0;
}

/* =========================================================
   What's included
   ========================================================= */
.included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4em;
}
.included-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8em;
  border-left: 4px solid var(--gold);
}
.included-card svg { margin-bottom: 0.5em; }
.included-card h3 { font-size: 1.08rem; margin-bottom: 0.3em; }
.included-card p { margin: 0; font-size: 0.95rem; }

.included-yes { border-left-color: #3f7d4f; }
.included-yes svg { color: #3f7d4f; }
.included-no { border-left-color: var(--burgundy); }
.included-no svg { color: var(--burgundy); }
.included-tbd { border-left-color: var(--gold); }
.included-tbd svg { color: var(--gold); }
.included-tbd em { color: var(--ink); font-style: italic; }

/* =========================================================
   Pricing
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6em;
  max-width: 900px;
  margin: 0 auto;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2em 2em;
  border: 1px solid rgba(27,42,65,0.08);
  position: relative;
}
.price-card-featured {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-lift);
}
.price-card-featured h3 { color: var(--white); }
.price-card-featured .price-list li { border-color: rgba(255,255,255,0.15); }
.price-card-featured .price-list span { color: rgba(255,255,255,0.75); }
.price-card-featured .price-list strong { color: var(--gold-light); }

.price-tag {
  position: absolute;
  top: -12px;
  right: 1.5em;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35em 0.9em;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8em;
}
.price-card h3 span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.3em;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  padding: 0.65em 0;
  border-bottom: 1px dashed rgba(27,42,65,0.15);
  font-size: 0.95rem;
}
.price-list li:last-child { border-bottom: none; }
.price-list span { color: var(--ink-soft); }
.price-list strong {
  font-family: var(--font-head);
  color: var(--navy);
  white-space: nowrap;
}

.pricing-note {
  text-align: center;
  max-width: 620px;
  margin: 2em auto 0;
  font-size: 0.92rem;
  font-style: italic;
}

/* =========================================================
   Location / map
   ========================================================= */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(27,42,65,0.1);
}
.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta {
  background: var(--navy);
  background-image: radial-gradient(circle at 20% 20%, rgba(184,146,58,0.15), transparent 45%);
  color: var(--white);
  padding: 5em 1.25em;
  text-align: center;
}
.final-cta-inner { max-width: 600px; margin: 0 auto; }
.final-cta h2 { color: var(--white); }
.final-cta p { color: rgba(255,255,255,0.8); }
.final-cta-alt {
  margin-top: 1.4em;
  font-size: 0.9rem;
}
.final-cta-alt a { color: var(--gold-light); text-decoration: underline; }
.final-cta-alt em { color: rgba(255,255,255,0.55); font-style: italic; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5em 1.25em 1.5em;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2em;
  padding-bottom: 2.5em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-name small { color: rgba(255,255,255,0.55); }

.footer-col h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8em;
}
.footer-col p { margin: 0 0 0.5em; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5em;
  padding-top: 1.5em;
  font-size: 0.8rem;
}
.footer-bottom .credit { color: rgba(255,255,255,0.4); }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(18,29,46,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.2em;
  right: 1.2em;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* =========================================================
   Hero entrance (fixed-duration CSS animation — content is
   never gated on JS or scroll position, so it can't get stuck hidden)
   ========================================================= */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
  animation: heroIn 0.7s ease both;
}
.hero-content .eyebrow { animation-delay: 0.05s; }
.hero-content h1 { animation-delay: 0.12s; }
.hero-content .hero-sub { animation-delay: 0.2s; }
.hero-content .hero-actions { animation-delay: 0.28s; }
.hero-content .hero-facts { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content > * { animation: none; }
  .gallery-item img, .btn, .event-card { transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .header-cta .btn {
    padding: 0.7em;
    border-radius: 50%;
    line-height: 0;
  }
  .header-cta .btn span { display: none; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    padding: 1.2em 1.25em;
    gap: 1em;
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid rgba(27,42,65,0.08);
  }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .gallery-item.span-2 { grid-column: span 2; grid-row: span 1; }

  .included-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .header-inner { gap: 0.6em; padding: 0.6em 1em; }
  .brand-name { font-size: 0.92rem; white-space: nowrap; }
  .brand-name small { font-size: 0.62rem; }
  .hero { min-height: 100vh; }
  .hero-content { padding: 2.5em 1.1em 2.5em; }
  .event-grid { grid-template-columns: 1fr 1fr; }
  .about-strip p { font-size: 1.1rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Dark mode: photography-led site with a fixed brand palette by design.
   Deepen surfaces slightly so the ivory sections don't glare on OLED/dark OS themes. */
@media (prefers-color-scheme: dark) {
  body { background: #14100c; }
  .section-alt { background: #1b1712; }
  .about-strip p { color: var(--gold-light); }
  .event-card, .included-card, .price-card { background: #211c16; color: rgba(255,255,255,0.85); }
  .event-card h3, .price-card h3 { color: var(--gold-light); }
  .included-card p, .price-list span { color: rgba(255,255,255,0.65); }
  .price-list strong { color: var(--gold-light); }
  .site-header { background: rgba(20,16,12,0.94); }
  .main-nav a, .brand-name { color: var(--ivory); }
  .site-header.nav-open .main-nav { background: #1b1712; }
  .nav-toggle span { background: var(--ivory); }
}
