/* Browns Corner Restaurant. Colors and fonts come from DESIGN.md.
   Each color below has a job (background, headings, buttons...).
   A color scheme is just a different set of values for these jobs. */
:root {
  /* Base brand colors */
  --cream: #F6EFE6;
  --paper: #FFFBF5;
  --brown: #6B4A35;
  --brown-dk: #4A3123;
  --rust: #B5603F;
  --rust-dk: #97492B;
  --ink-dark: #2B1D14;
  --latte: #D9C5A8;     /* darker cream for the MENU side, less bright than the old cream */

  /* Colors: black, brown and orange (chosen by Johnny, Nov 2026) */
  --bg: #15100D;
  --surface: #1E1714;
  --heading: #F6EFE6;
  --text: #ECE2D6;
  --muted: #B8A592;
  --line: #3B2D24;
  --accent: #D9744A;
  --hero-left: #15100D;
  --hero-left-ink: #D9744A;
  --hero-right: var(--brown);
  --hero-right-ink: var(--cream);
  --btn: #D9744A;
  --btn-ink: #15100D;
  --btn-hover: #E88A60;
  --plain-border: #D9744A;
  --plain-hover: #D9744A;
  --plain-hover-ink: #15100D;
  --story-bg: #2A1E17;
  --story-ink: var(--cream);
  --foot-bg: #0D0A08;
  --foot-ink: var(--cream);
  --input-bg: #15100D;
  --input-border: #5A4636;

  --radius: 16px;
  --radius-sm: 10px;
  --display: 'Abril Fatface', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--brown) var(--bg);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--brown); border: 2px solid var(--bg); border-radius: 6px; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  padding-bottom: 76px; /* room for the phone bar */
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--heading); line-height: 1.1; }
h1 { font-size: clamp(36px, 6vw, 58px); }
h2 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 14px; }
h3 { font-size: 27px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: 700 17px/1.2 var(--body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-order { background: var(--btn); color: var(--btn-ink); }
.btn-order:hover { background: var(--btn-hover); }
.btn-plain { background: transparent; border-color: var(--plain-border); color: var(--heading); }
.btn-plain:hover { background: var(--plain-hover); color: var(--plain-hover-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
}
.wordmark {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--heading);
}
.top-links { display: flex; align-items: center; gap: 22px; color: var(--heading); }
.top-links a { text-decoration: none; font-weight: 500; white-space: nowrap; }
.top-links a:hover { text-decoration: underline; }
.top-links a:not(.top-call) { display: none; }
.top-call-label { display: none; }
.top-call { font-weight: 700; }

/* Hero: the split MENU / ORDER layout */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  background: linear-gradient(90deg, var(--hero-left) 50%, var(--hero-right) 50%);
  min-height: 390px;
  padding-inline: 6px;
}
.hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.hero-menu { color: var(--hero-left-ink); }
.hero-order { color: var(--hero-right-ink); }
.hero-word {
  font-family: var(--display);
  font-size: 62px;
  line-height: 1;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-small {
  font-family: var(--display);
  font-size: 15px;
  text-transform: uppercase;
}
.hero-order .hero-word { border-left: 5px solid var(--accent); padding-left: 8px; }
.hero-side:hover .hero-word { opacity: .85; }
.hero-logo { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 12px 0; }

/* Welcome, hours, address */
.welcome {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
  padding-block: 48px;
  display: grid;
  gap: 32px;
}
.welcome-text p { max-width: 34em; margin: 14px 0 20px; }
.facts { display: grid; gap: 18px; }
.facts dt { font-family: var(--display); font-size: 21px; color: var(--heading); }
.facts a { font-weight: 500; }

/* Menu */
.menu { background: var(--surface); padding-block: 48px; }
.menu-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 18px;
}
.menu-nav a {
  flex: none;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--heading);
}
.menu-nav a:hover { background: var(--bg); }
.menu-grid { display: grid; gap: 34px; }
.menu-group h3 { padding-bottom: 8px; border-bottom: 3px solid var(--accent); margin-bottom: 4px; }
.menu-group ul { list-style: none; padding: 0; }
.menu-group li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.menu-group li b { font-weight: 700; color: var(--heading); }
.menu-group li span { font-weight: 700; color: var(--heading); }
.menu-group li p { grid-column: 1 / -1; color: var(--muted); font-size: 15.5px; margin-top: 2px; max-width: 46em; }
.menu-group .compact li { padding: 8px 0; }
.menu-group .compact b { font-weight: 500; }
.menu-group .compact span { font-weight: 500; }
.menu-order {
  margin-top: 36px;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.menu-order p { max-width: 36em; font-weight: 500; }
.card-note { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.welcome-text .card-note { margin-bottom: 0; }
.menu-order .card-note { font-weight: 400; margin-top: 6px; }

/* Story */
.story { background: var(--story-bg); color: var(--story-ink); padding-block: 48px; }
.story h2 { color: var(--story-ink); }
.story-grid { display: grid; gap: 28px; align-items: center; }
.story-text p { max-width: 36em; margin-bottom: 14px; }
.story blockquote {
  font-family: var(--display);
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.2;
  margin: 24px 0;
  padding-left: 18px;
  border-left: 5px solid var(--accent);
  max-width: 19em;
}
.story-sign { font-weight: 700; }
.story-photo { aspect-ratio: 4 / 5; width: 100%; max-width: 420px; object-fit: cover; border-radius: var(--radius); }
.story .slot { color: var(--story-ink); border-color: currentColor; opacity: .7; }

/* Empty photo spots. Remove these once real photos are in. */
.slot {
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-weight: 500;
  color: var(--muted);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}

/* Gallery */
.gallery { display: grid; gap: 12px; padding-block: 48px 0; }
.gallery > * { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius); }

/* Visit */
.visit { display: grid; gap: 36px; padding-block: 48px; }
.visit p { max-width: 32em; }

/* Catering */
.catering { background: var(--surface); padding-block: 48px; }
.catering-grid { display: grid; gap: 24px; }
.catering a { font-weight: 700; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-weight: 500; }
.form input, .form textarea {
  width: 100%;
  padding: 12px;
  font: 400 17px/1.4 var(--body);
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
}
.form-note { font-size: 15px; color: var(--muted); }

/* Footer */
.foot { background: var(--foot-bg); color: var(--foot-ink); padding-block: 36px; }
.foot-grid { display: grid; gap: 18px; align-items: center; }
.foot img { width: 130px; }
.foot-name { font-family: var(--display); font-size: 23px; }
.foot-social { margin-top: 10px; }
.foot-social a { font-weight: 500; }

/* Bottom bar on phones */
.phone-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.phone-bar .btn { padding-inline: 8px; }

/* Tablets and computers */
@media (min-width: 800px) {
  body { padding-bottom: 0; }
  .phone-bar { display: none; }

  .top { padding: 18px 28px; }
  .top-links a:not(.top-call) { display: inline; }

  .hero { min-height: min(680px, calc(100vh - 66px)); padding-inline: 20px; }
  .hero-word { font-size: clamp(100px, min(22vh, 12vw), 176px); }
  .hero-small { font-size: 24px; }
  .hero-order .hero-word { border-left-width: 8px; padding-left: 12px; }
  .hero-logo img { max-height: min(620px, calc(100vh - 100px)); width: auto; }

  .welcome { grid-template-columns: 1.2fr 1fr; padding-block: 72px; align-items: center; }
  .menu, .story, .catering { padding-block: 72px; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 44px 56px; align-items: start; }
  .menu-order { grid-template-columns: 1fr auto; align-items: center; }
  .story-grid { grid-template-columns: minmax(280px, 420px) 1fr; gap: 56px; }
  .gallery { grid-template-columns: repeat(2, 1fr); padding-block: 72px 0; }
  .visit { grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 72px; }
  .catering-grid { grid-template-columns: 1fr 1.4fr; gap: 56px; }
  .form { grid-template-columns: 1fr 1fr; }
  .form-wide { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: auto 1fr auto; gap: 32px; }

}

@media (min-width: 1100px) {
  .top-call-label { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .phone-bar, .hero, .top { display: none; }
}
