:root {
  --bg-deep: #12100c;
  --bg-mid: #1f1a12;
  --paper: #f4ead8;
  --ink: #1d1a14;
  --gold: #c58c2b;
  --amber: #e5aa3a;
  --forest: #224537;
  --cream: #fff8ea;
  --line: rgba(255, 248, 234, 0.2);
  --line-dark: rgba(27, 22, 14, 0.12);
  --maxw: 1120px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--cream);
  background:
    radial-gradient(1200px 700px at -10% -20%, #5d4518 0%, transparent 58%),
    radial-gradient(900px 600px at 115% 30%, #2d4f3f 0%, transparent 52%),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-mid) 60%, #110f0b 100%);
  min-height: 100vh;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("images/shadow-bridge-logo.svg");
  background-repeat: no-repeat;
  background-position: center 34vh;
  background-size: min(58vmin, 520px);
  opacity: 0.018;
}

body > * {
  position: relative;
  z-index: 1;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(92%, var(--maxw));
  margin: 0 auto;
}

.site-header-wrap {
  position: relative;
  z-index: 1000;
  padding: 0.5rem 0 0;
  margin-bottom: 0.9rem;
}

.site-header {
  background: rgba(15, 12, 8, 0.84);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  padding: 5px 0.85rem;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--paper);
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.32rem;
  white-space: nowrap;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
}

.brand-title {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.brand-subtitle {
  margin-top: 0.08rem;
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  opacity: 0.92;
}

.brand-mark {
  width: 68px;
  height: 68px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
  filter: brightness(0) saturate(100%) invert(93%) sepia(14%) saturate(456%) hue-rotate(336deg) brightness(102%) contrast(92%);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-size: 0.91rem;
  color: #f5e6c9;
  border: 1px solid transparent;
  transition: 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--line);
  background: rgba(255, 248, 234, 0.1);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--paper);
  background: rgba(255, 248, 234, 0.05);
  transition: transform 180ms ease, background 180ms ease;
}

.header-social a:hover {
  transform: translateY(-2px);
  background: rgba(229, 170, 58, 0.22);
}

.header-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.header-social img {
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(93%) sepia(14%) saturate(456%) hue-rotate(336deg) brightness(102%) contrast(92%);
}

.mobile-nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 248, 234, 0.06);
  color: var(--paper);
  border-radius: 10px;
  padding: 0.38rem 0.5rem;
}

.hero {
  margin-top: 1.8rem;
  background: rgba(255, 248, 234, 0.07);
  border: 1px solid rgba(255, 248, 234, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  padding: 2.4rem;
}

.kicker {
  display: inline-flex;
  background: rgba(229, 170, 58, 0.16);
  color: #f6dfb0;
  border: 1px solid rgba(229, 170, 58, 0.35);
  border-radius: 999px;
  padding: 0.23rem 0.66rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0.8rem 0;
}

body[data-page="home"] .hero-copy h1 {
  font-size: clamp(1.8rem, 5.2vw, 3.4rem);
}

p {
  margin: 0;
  color: #f3ead7;
}

.hero-copy p {
  max-width: 52ch;
}

.hero-panel {
  background: rgba(255, 248, 234, 0.08);
  border: 1px solid rgba(255, 248, 234, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.hero-panel h2,
.hero-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

body[data-page="contact"] .split .card h2 {
  font-size: 1.26rem;
  margin-bottom: 0.35rem;
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.48rem;
}

.hero-list li {
  padding: 0.58rem 0.66rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 248, 234, 0.14);
  background: rgba(0, 0, 0, 0.15);
}

.btn-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  border-radius: 999px;
  padding: 0.58rem 1rem;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.9rem;
  transition: 170ms ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--amber), var(--gold));
  color: #1d1506;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: rgba(255, 248, 234, 0.35);
  color: var(--paper);
  background: rgba(255, 248, 234, 0.06);
}

.btn-secondary:hover {
  background: rgba(255, 248, 234, 0.14);
}

main {
  padding-bottom: 3rem;
}

.section {
  margin-top: 1.2rem;
  background: rgba(255, 248, 234, 0.07);
  border: 1px solid rgba(255, 248, 234, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}

.section h2 {
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  margin-bottom: 0.75rem;
}

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

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

.card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 248, 234, 0.16);
  border-radius: var(--radius-md);
  padding: 0.95rem;
}

body[data-page="beers"] .grid-3 .card {
  display: flex;
  flex-direction: column;
}

body[data-page="beers"] .grid-3 .card .btn-row {
  margin-top: auto;
  padding-top: 0.8rem;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

body[data-page="beers"] .grid-3 .card .btn-row .btn {
  padding: 0.5rem 0.72rem;
  font-size: 0.82rem;
}

.card h3 {
  font-size: 1.26rem;
  margin-bottom: 0.35rem;
}

.about-flow {
  display: grid;
  gap: 0.95rem;
}

.about-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
  align-items: center;
}

.about-feature-copy p {
  margin: 0;
}

.about-feature.reverse .about-photo {
  order: 2;
}

.about-feature.reverse .about-feature-copy {
  order: 1;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid rgba(255, 248, 234, 0.2);
  object-fit: cover;
}

.about-photo-portrait {
  aspect-ratio: 3 / 4;
  max-height: 420px;
  width: min(100%, 340px);
  justify-self: center;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(34, 69, 55, 0.65);
  border: 1px solid rgba(151, 205, 179, 0.25);
  color: #d9f4e8;
  font-size: 0.74rem;
  padding: 0.18rem 0.52rem;
  margin-bottom: 0.45rem;
}

.events-meta {
  font-size: 0.9rem;
  color: #f0dcb5;
  margin-bottom: 0.8rem;
}

body[data-page="events"] #events-grid .card {
  display: flex;
  flex-direction: column;
}

body[data-page="events"] #events-upcoming-section {
  min-height: 520px;
}

body[data-page="events"] #events-facebook-section {
  min-height: 220px;
}

body[data-page="events"] .events-grid {
  min-height: 300px;
}

body[data-page="events"] #events-grid .card .btn-row {
  margin-top: auto;
  padding-top: 0.8rem;
}

body[data-page="home"] .quick-links-section .grid-3 .card {
  display: flex;
  flex-direction: column;
}

body[data-page="home"] .quick-links-section .grid-3 .card .btn-row {
  margin-top: auto;
  padding-top: 0.8rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.85rem;
  align-items: start;
}

.contact-hours-list {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.35rem;
}

.map-frame,
.fb-events {
  border: 1px solid rgba(255, 248, 234, 0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 280px;
  background: rgba(0, 0, 0, 0.24);
}

.fb-events {
  width: 100%;
}

.fb-fallback {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

.notice {
  border-left: 3px solid var(--amber);
  padding: 0.6rem 0.75rem;
  background: rgba(229, 170, 58, 0.1);
  border-radius: 0.35rem;
  color: #f8e9c8;
  font-size: 0.93rem;
}

footer {
  border-top: 1px solid rgba(255, 248, 234, 0.2);
  margin-top: 1.1rem;
  padding: 1rem 0 2rem;
  color: #f0dcb5;
}

footer p {
  color: #f0dcb5;
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-row p {
  margin: 0;
}

.footer-credit {
  margin-left: auto;
  text-align: right;
  font-size: 0.92rem;
  color: #f0dcb5;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s ease forwards;
}

.reveal.delay-1 {
  animation-delay: 0.12s;
}

.reveal.delay-2 {
  animation-delay: 0.22s;
}

.reveal.delay-3 {
  animation-delay: 0.32s;
}

body[data-page="beers"] .site-header {
  backdrop-filter: none;
}

body[data-page="beers"] .reveal,
body[data-page="beers"] .reveal.delay-1,
body[data-page="beers"] .reveal.delay-2,
body[data-page="beers"] .reveal.delay-3 {
  opacity: 1;
  transform: none;
  animation: none;
}

body[data-page="events"] .site-header {
  backdrop-filter: none;
}

body[data-page="events"] .reveal,
body[data-page="events"] .reveal.delay-1,
body[data-page="events"] .reveal.delay-2,
body[data-page="events"] .reveal.delay-3 {
  opacity: 1;
  transform: none;
  animation: none;
}

body[data-page="contact"] .site-header {
  backdrop-filter: none;
}

body[data-page="contact"] .reveal,
body[data-page="contact"] .reveal.delay-1,
body[data-page="contact"] .reveal.delay-2,
body[data-page="contact"] .reveal.delay-3 {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .site-header {
    border-radius: 18px;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 5px 0.7rem;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.76rem;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    width: 100%;
    display: none;
    justify-content: flex-start;
    padding-top: 0.25rem;
  }

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

  .header-social {
    margin-left: 0.2rem;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .about-feature {
    grid-template-columns: 1fr;
  }

  .about-feature.reverse .about-photo,
  .about-feature.reverse .about-feature-copy {
    order: initial;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-credit {
    margin-left: 0;
    text-align: left;
  }

  .hero-grid {
    padding: 1.4rem;
  }

  body[data-page="events"] #events-upcoming-section {
    min-height: 420px;
  }

  body[data-page="beers"] .grid-3 .card .btn-row {
    flex-wrap: wrap;
  }

  body[data-page="events"] .events-grid {
    min-height: 220px;
  }
}
