/* ---------------------------------------------------------------
   Bramwell Hall — design tokens
--------------------------------------------------------------- */
:root {
  --paper: #f4ecd8;
  --paper-raised: #fbf6ea;
  --paper-dark: #e8dcbf;
  --ink: #2a2318;
  --ink-soft: #5c5040;
  --ink-faint: #8a7d68;
  --terracotta: #c1552c;
  --terracotta-dark: #9c4322;
  --terracotta-tint: #f0d8c8;
  --moss: #46592f;
  --moss-dark: #33421f;
  --moss-tint: #dbe4cd;
  --gold: #c99a3f;
  --line: rgba(42, 35, 24, 0.15);
  --line-strong: rgba(42, 35, 24, 0.3);
  --shadow: 0 18px 40px -22px rgba(42, 35, 24, 0.45);
  --radius: 14px;
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Archivo", "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  margin: 0 0 0.9em;
}

.muted { color: var(--ink-faint); font-size: 0.92rem; }

/* Paper grain texture, fixed overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.16  0 0 0 0 0.14  0 0 0 0 0.1  0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  font-family: var(--font-body);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--paper-raised);
  box-shadow: 0 10px 24px -12px rgba(156, 67, 34, 0.65);
}
.btn-primary:hover { background: var(--terracotta-dark); box-shadow: 0 14px 28px -12px rgba(156, 67, 34, 0.75); }
.btn-primary:disabled { background: var(--ink-faint); box-shadow: none; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-dark); }

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 34px; height: 34px; color: var(--terracotta); flex-shrink: 0; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--terracotta-dark); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--terracotta);
  transition: right 0.22s ease;
}
.main-nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero {
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -160px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--terracotta-tint) 0%, transparent 70%);
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  animation: rise 0.7s ease both;
}
.hero-highlight { color: var(--terracotta); font-style: italic; }

.hero-lede {
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
  animation: rise 0.7s ease 0.1s both;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: rise 0.7s ease 0.2s both; }

.hero-art { animation: rise 0.8s ease 0.15s both; transform: rotate(1.5deg); }
.hero-illustration { width: 100%; height: auto; }

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

/* ---------------------------------------------------------------
   Facts strip
--------------------------------------------------------------- */
.facts {
  background: var(--moss);
  color: var(--paper-raised);
  padding: 30px 0;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.fact { display: flex; align-items: center; gap: 14px; }
.fact-icon { width: 30px; height: 30px; flex-shrink: 0; fill: var(--gold); }
.fact strong { display: block; font-size: 0.98rem; }
.fact span { display: block; font-size: 0.82rem; opacity: 0.82; }

/* ---------------------------------------------------------------
   Section shared
--------------------------------------------------------------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-lede { color: var(--ink-soft); font-size: 1.02rem; }

#gallery, #safety { background: var(--paper-dark); }

/* ---------------------------------------------------------------
   Booking
--------------------------------------------------------------- */
.booking-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.calendar-card, .booking-form-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.calendar-head h3 { margin: 0; font-size: 1.1rem; }
.cal-nav {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease;
}
.cal-nav:hover { background: var(--paper-dark); }
.cal-nav:disabled { opacity: 0.35; cursor: not-allowed; }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  min-height: 220px;
}

.cal-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.cal-cell.is-empty { visibility: hidden; cursor: default; }
.cal-cell.is-past { color: var(--ink-faint); cursor: not-allowed; opacity: 0.45; }
.cal-cell.is-full { color: var(--ink-faint); cursor: not-allowed; text-decoration: line-through; opacity: 0.7; }
.cal-cell:not(.is-past):not(.is-full):not(.is-empty):hover { background: var(--terracotta-tint); border-color: var(--terracotta); }
.cal-cell.is-selected { background: var(--terracotta); color: var(--paper-raised); border-color: var(--terracotta-dark); }
.cal-cell.is-today { font-weight: 700; }

.cal-dot-row { display: flex; gap: 2px; height: 5px; }
.cal-cell .dot { width: 5px; height: 5px; border-radius: 50%; }

.dot-open { background: var(--moss); }
.dot-partial { background: var(--gold); }
.dot-full { background: var(--terracotta-dark); }

.calendar-legend {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.calendar-legend span { display: flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }

.booking-form-card h3 { margin-bottom: 6px; }

.slot-list { display: grid; gap: 10px; margin-top: 18px; }
.slot-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.slot-btn span { color: var(--ink-faint); font-size: 0.85rem; }
.slot-btn:hover:not(:disabled) { border-color: var(--terracotta); background: var(--terracotta-tint); }
.slot-btn:disabled { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; }

.form-selected-summary {
  background: var(--moss-tint);
  border: 1px solid var(--moss);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  color: var(--moss-dark);
  font-weight: 600;
}

.form-row { margin-bottom: 16px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row label { display: block; font-size: 0.84rem; font-weight: 700; margin-bottom: 6px; color: var(--ink-soft); }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper-raised);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-tint);
}

.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-message { margin-top: 14px; font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form-message.success { color: var(--moss-dark); }
.form-message.error { color: var(--terracotta-dark); }

/* ---------------------------------------------------------------
   Gallery
--------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 14px;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.gallery-item svg { width: 100%; height: 100%; }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px 8px;
  background: linear-gradient(0deg, rgba(42,35,24,0.78), transparent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.gallery-item:hover figcaption { transform: translateY(0); opacity: 1; }
.gallery-item:hover { transform: translateY(-3px); transition: transform 0.2s ease; }

.gallery-item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.gallery-item:nth-child(3) { grid-column: span 3; grid-row: span 1; }
.gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.gallery-item:nth-child(5) { grid-column: span 2; grid-row: span 1; }
.gallery-item:nth-child(6) { grid-column: span 2; grid-row: span 1; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 10, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 32px;
}
.lightbox[hidden] { display: none; }
.lightbox-inner {
  background: var(--paper-raised);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  overflow: hidden;
}
.lightbox-inner svg { width: 100%; aspect-ratio: 4/3; }
.lightbox-caption { padding: 16px 20px; }
.lightbox-caption strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  background: var(--paper-raised);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------------------------------------------------------------
   Catering / menu
--------------------------------------------------------------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.menu-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.menu-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.menu-card-head h3 { margin: 0; }
.menu-price { font-family: var(--font-display); font-weight: 600; color: var(--terracotta-dark); font-size: 1.1rem; white-space: nowrap; }
.menu-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 8px; }
.menu-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.menu-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--moss-tint);
  color: var(--moss-dark);
}

/* ---------------------------------------------------------------
   News
--------------------------------------------------------------- */
.news-list { display: grid; gap: 2px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.news-item {
  background: var(--paper-raised);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
}
.news-date {
  font-family: var(--font-display);
  color: var(--terracotta-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.news-item h3 { margin-bottom: 6px; }
.news-item p { color: var(--ink-soft); margin-bottom: 0; }
.news-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--moss-dark);
  margin-bottom: 6px;
}

/* ---------------------------------------------------------------
   Safety
--------------------------------------------------------------- */
.safety-alert {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--terracotta);
  color: var(--paper-raised);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 36px;
}
.safety-alert-icon { width: 30px; height: 30px; flex-shrink: 0; fill: var(--paper-raised); }
.safety-alert strong { display: block; font-size: 1.05rem; margin-bottom: 3px; }
.safety-alert span { font-size: 0.92rem; opacity: 0.95; }

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.safety-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.safety-card svg { width: 26px; height: 26px; fill: var(--moss); margin-bottom: 12px; }
.safety-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.safety-card p { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0; }

.safety-details {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.safety-details summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.safety-details p { margin: 12px 0 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper-dark);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(244, 236, 216, 0.14);
}
.site-footer .brand { color: var(--paper-raised); }
.site-footer .brand-mark { color: var(--gold); }
.footer-tagline { color: rgba(244, 236, 216, 0.65); font-size: 0.88rem; margin-top: 12px; max-width: 30ch; }
.site-footer h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 12px; }
.site-footer address, .site-footer p { font-style: normal; font-size: 0.9rem; color: rgba(244, 236, 216, 0.8); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  padding: 20px 28px;
  font-size: 0.8rem;
  color: rgba(244, 236, 216, 0.5);
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-panel { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(n) { grid-column: span 1 !important; grid-row: span 1 !important; }
  .menu-grid { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 16px 28px 24px; border-bottom: 1px solid var(--line); display: none; gap: 16px; }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
