/* Cassette Cafe & Dive Bar: site styles */

:root {
  --red: #b45b42;
  --charcoal: #242121;
  --paper: #f5f0ea;
  --mist: #e0d9cf;
  --muted: #4a4443;
  --stone: #cfc6b9;
  --display: 'Dosis', 'Arial Narrow', sans-serif;
  --body: 'DM Sans', Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--charcoal); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3, .display { font-family: var(--display); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--charcoal); color: #fff; padding: 10px 16px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header + drop-down menu ---------- */

.site-header {
  position: relative; z-index: 20;
  background: var(--red); color: #fff;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 48px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.header-reserve {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; text-decoration: none;
  padding: 12px 18px; border: 2px solid #fff;
}
.header-reserve:hover { background: #fff; color: var(--red); }

.menu-toggle {
  width: 48px; height: 48px; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 2px solid #fff; color: #fff;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: relative; z-index: 19;
  background: var(--red);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding: 40px 24px 56px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.site-nav[hidden] { display: none; }
.site-nav a { color: #fff; text-decoration: none; padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Buttons ---------- */

.btn, .btn-outline {
  display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 16px 28px; border: 2px solid var(--red);
}
.btn { background: var(--red); color: #fff; }
.btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.btn-outline { background: transparent; color: var(--red); padding: 12px 20px; font-size: 14px; }
.btn-outline:hover { background: var(--red); color: #fff; }

/* ---------- Photo heroes ---------- */

.hero {
  position: relative; background: var(--charcoal);
  min-height: 640px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 72px);
  color: #fff;
}
.hero--short { min-height: 560px; }
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(36, 33, 33, 0.8), rgba(36, 33, 33, 0.12) 65%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-kicker {
  margin: 0 0 14px;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.hero-title {
  margin: 0; max-width: 11em; overflow-wrap: break-word;
  font-weight: 700; font-size: clamp(34px, 5vw, 64px); line-height: 1.15;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-text { margin: 14px 0 0; font-size: 19px; max-width: 44ch; }
.hero-actions { margin-top: 28px; }
.hero-note { margin: 12px 0 0; font-size: 16px; }
.hero-note a { color: #fff; }

/* Home hero framing */
.hero--home > img { object-position: center 78%; }

@media (max-width: 700px) {
  .hero { min-height: 540px; }
  .hero--home > img { object-position: 27% 62%; }
  .hero-title { font-size: 30px; letter-spacing: 0.06em; }
}

/* ---------- Photo + text blocks ---------- */

.split { display: flex; flex-wrap: wrap; }
.split--reverse { flex-direction: row-reverse; }
.split-media {
  flex: 1 1 480px; min-width: 0; min-height: 560px;
  position: relative; background: var(--stone);
}
.split-media--square { min-height: 0; aspect-ratio: 1 / 1; background: var(--charcoal); }
.split-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.split-body {
  flex: 1 1 480px; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 6vw, 96px);
}
.split-body p { margin: 20px 0 0; max-width: 46ch; }
.split-body .actions { margin-top: 32px; }

.section-title {
  margin: 0; color: var(--red);
  font-weight: 800; font-size: clamp(26px, 3vw, 36px); line-height: 1.25;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Centred text sections ---------- */

.checker {
  width: 160px; height: 16px; margin: 0 auto 36px;
  background: repeating-conic-gradient(var(--red) 0% 25%, transparent 0% 50%) 0 0 / 16px 16px;
}
.center-section { padding: clamp(64px, 8vw, 104px) 24px; text-align: center; }
.center-section + .center-section { border-top: 1px solid var(--charcoal); }
.center-section .inner { max-width: 640px; margin: 0 auto; }
.center-section p { margin: 18px auto 0; max-width: 50ch; }
.center-section .actions { margin-top: 32px; }
.center-section .small { font-size: 16px; margin-top: 14px; }
.page-title {
  margin: 0; color: var(--red);
  font-weight: 800; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.2;
  letter-spacing: 0.12em; text-transform: uppercase;
}

.photo-band { display: grid; gap: 12px; background: var(--paper); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--red); color: #fff;
  padding: 72px 24px; text-align: center;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.7;
}
.site-footer img { width: 220px; height: auto; margin: 0 auto 36px; }
.site-footer p { margin: 24px 0 0; }
.site-footer p:first-of-type { margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer .email { text-transform: none; letter-spacing: 0.04em; }
.site-footer .phone { text-decoration: none; }

/* ---------- Menus page ---------- */

.menus-page { max-width: 1100px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--gutter) 112px; }
.menus-head { text-align: center; }
.menu-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px;
}
.menu-tab {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 12px 20px; cursor: pointer;
  background: transparent; color: var(--red); border: 2px solid var(--red);
}
.menu-tab[aria-pressed="true"] { background: var(--red); color: #fff; }
.menus-head .btn-outline { margin-top: 20px; }

.carousel { max-width: 640px; margin: 40px auto 0; }
.carousel-frame { position: relative; }
.carousel-frame img {
  width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; background: var(--stone);
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: none; padding: 0;
  background: rgba(245, 240, 234, 0.92); color: var(--charcoal); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }
.carousel-dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.carousel-dot {
  width: 28px; height: 28px; border: none; background: transparent; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.carousel-dot span {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--red); display: block;
}
.carousel-dot[aria-current="true"] span { background: var(--red); }

.menu-cue {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 24px auto 0; padding: 8px 12px; cursor: pointer;
  background: none; border: none; color: var(--red);
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
}

.menu-section { margin-top: 72px; }
.menu-section h2 {
  margin: 0 0 28px; text-align: center; color: var(--red);
  font-weight: 800; font-size: 26px; line-height: 1.3;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.menu-grid {
  display: grid; gap: 28px 64px;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}
.menu-item-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--charcoal); padding-bottom: 6px;
}
.menu-item h3 {
  margin: 0; font-weight: 700; font-size: 17px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.menu-item .price { font-weight: 700; font-size: 18px; white-space: nowrap; }
.menu-item p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }

.menu-list { max-width: 560px; margin: 0 auto; text-align: center; }
.menu-list + .menu-list { margin-top: 72px; }
.menu-list h2 {
  margin: 0; color: var(--red);
  font-weight: 800; font-size: 26px; line-height: 1.3;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.menu-list .note { margin: 10px 0 0; }
.menu-list ul { list-style: none; margin: 24px 0 0; padding: 0; text-align: left; border-bottom: 1px solid var(--charcoal); }
.menu-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-top: 1px solid var(--charcoal);
}
.menu-list .strong { font-weight: 700; }
