/* Maple Spirit Lounge — shared styles */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("../fonts/cormorant-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("../fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1a1f26;
  --ink-soft: #4a5563;
  --paper: #f4f6f8;
  --surface: #ffffff;
  --line: #d5dce3;
  --navy: #1e2a3a;
  --navy-deep: #141c28;
  --burgundy: #8b2e42;
  --burgundy-deep: #6b2132;
  --slate: #4a6478;
  --mist: #e8eef3;
  --focus: #2c4a6e;
  --radius: 2px;
  --max: 1120px;
  --header-h: 72px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --shadow: 0 12px 40px rgba(20, 28, 40, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(139, 46, 66, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(44, 74, 110, 0.08), transparent 45%),
    linear-gradient(180deg, var(--paper) 0%, #eef1f5 100%);
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--burgundy-deep);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 246, 248, 0.97);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(244, 246, 248, 0.88);
    backdrop-filter: blur(8px);
  }

  @media (max-width: 900px) {
    .site-header {
      background: rgba(244, 246, 248, 0.97);
      backdrop-filter: none;
    }
  }
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}

.brand img,
.brand svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--navy);
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
  transition: transform 0.25s var(--ease);
}

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

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.7rem;
}

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

.site-nav .nav-cta {
  margin-left: 0.35rem;
  background: var(--burgundy);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border: none;
}

.site-nav .nav-cta:hover {
  background: var(--burgundy-deep);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn-primary {
  background: var(--burgundy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--burgundy-deep);
  color: #fff;
}

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

.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--navy);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.section-tight {
  padding: 3rem 0;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 1rem;
}

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

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
}

h3 {
  font-size: 1.45rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 28, 40, 0.35) 0%, rgba(20, 28, 40, 0.72) 55%, rgba(20, 28, 40, 0.92) 100%),
    linear-gradient(90deg, rgba(20, 28, 40, 0.55) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 5rem 0 4rem;
}

.hero h1 {
  color: #fff;
  max-width: 14ch;
  animation: rise 0.9s var(--ease) both;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.88);
  animation: rise 0.9s var(--ease) 0.12s both;
}

.hero .btn-row {
  margin-top: 1.75rem;
  animation: rise 0.9s var(--ease) 0.22s both;
}

.hero .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.85rem;
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from {
    transform: translateY(14px);
  }
  to {
    transform: translateY(0);
  }
}

/* Split / content blocks */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .split-media {
  order: -1;
}

.split-media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.split-media picture {
  display: block;
  height: 100%;
  min-height: 360px;
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.85rem;
}

.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--mist);
}

.gallery figure:first-child {
  grid-row: span 2;
}

.gallery figure > a,
.gallery figure picture {
  display: block;
  height: 100%;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  transition: transform 0.6s var(--ease);
}

.gallery figure:hover img {
  transform: scale(1.03);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(20, 28, 40, 0.75));
}

/* Visit / contact strip */
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.visit-block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.visit-block h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.visit-block p,
.visit-block address {
  margin: 0 0 0.5rem;
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.visit-block a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.visit-block a:hover {
  color: var(--burgundy);
}

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

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hours-list span:last-child {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

/* CTA band */
.cta-band {
  background: var(--navy-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(139, 46, 66, 0.35), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(74, 100, 120, 0.25), transparent 35%);
  pointer-events: none;
}

.cta-band .wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 32rem;
}

/* Accordion */
.accordion {
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.15rem 0;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.accordion-trigger::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--burgundy);
  border-bottom: 2px solid var(--burgundy);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}

.accordion-item.is-open .accordion-trigger::after {
  transform: rotate(-135deg);
}

.accordion-panel {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--ink-soft);
}

.accordion-item.is-open .accordion-panel {
  display: block;
  animation: rise 0.35s var(--ease);
}

/* Legal / prose */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
}

.prose {
  max-width: 46rem;
  padding: 2.5rem 0 4rem;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.prose p,
.prose ul {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Careers / partnership cards — interaction containers only */
.role-list {
  display: grid;
  gap: 0;
}

.role-item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}

.role-item h3 {
  margin-bottom: 0.35rem;
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: var(--mist);
  border-left: 3px solid var(--burgundy);
  margin-top: 1rem;
}

.form-success.is-visible {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .brand-name {
  color: #fff;
}

.site-footer .brand-tag {
  color: rgba(255, 255, 255, 0.55);
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 1rem;
}

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

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

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.88rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #fff;
  vertical-align: middle;
}

/* Modals / popups */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 18, 26, 0.72);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

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

.modal {
  background: var(--surface);
  width: min(440px, 100%);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  transition: transform 0.35s var(--ease);
}

.overlay.is-open .modal {
  transform: translateY(0);
}

.modal h2 {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}

.modal p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.15rem 1.35rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}

.cookie-bar.is-open {
  display: flex;
  animation: rise 0.4s var(--ease);
}

.cookie-bar p {
  margin: 0;
  font-size: 0.92rem;
  flex: 1;
}

.cookie-bar a {
  color: #fff;
}

.cookie-bar .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.cookie-bar .btn-ghost:hover {
  background: #fff;
  color: var(--navy);
}

body.age-locked {
  overflow: hidden;
}

body.age-locked > *:not(#age-gate) {
  pointer-events: none;
  user-select: none;
}

html.age-ok #age-gate {
  display: none !important;
}

html.age-ok body {
  overflow: auto;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(10, 14, 20, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.lightbox img {
  max-width: min(960px, 100%);
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.4rem;
}

/* Reveal on scroll — only when JS is active */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Locations mini map style list */
.locations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.location {
  padding-top: 1.25rem;
  border-top: 2px solid var(--burgundy);
}

.location h3 {
  font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .split.reverse,
  .gallery,
  .visit-grid,
  .footer-grid,
  .locations {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .gallery figure:first-child {
    grid-row: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.15rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav .nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
