/* ═══════════════════════════════════════════════════════════
   THE BOUGH & BEAN — stylesheet
   Palette:
     --espresso    #1C1208
     --oat         #F5EDD8
     --caramel     #C4873A
     --sage        #3D5A3E
     --warm-brown  #8C6A4E
═══════════════════════════════════════════════════════════ */

/* ─── Reset & tokens ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --espresso:   #1C1208;
  --oat:        #F5EDD8;
  --caramel:    #C4873A;
  --sage:       #3D5A3E;
  --warm-brown: #8C6A4E;
  --cream:      #FBF7EE;
  --text:       #2A1F10;
  --text-muted: #7A6248;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --section-pad: clamp(4rem, 8vw, 7rem);
  --radius: 4px;
  --transition: 0.28s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: var(--caramel); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--espresso); }
address { font-style: normal; }

.container {
  width: min(72rem, 92vw);
  margin-inline: auto;
}

/* ─── Section shared ──────────────────────────────────────── */
.section { padding-block: var(--section-pad); }

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--espresso);
  line-height: 1.15;
  margin-bottom: 0.55rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ─── Reveal animation ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ─── Button ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition), transform 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--caramel);
  color: #fff;
  border-color: var(--caramel);
}
.btn-primary:hover {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 5vw, 3.5rem);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.nav.scrolled {
  background: var(--espresso);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
  padding-block: 0.85rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.nav-logo:hover { color: var(--caramel); }

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--caramel); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--espresso);
    transform: translateX(100%);
    transition: transform var(--transition);
    pointer-events: none;
  }
  .nav-links.open {
    transform: none;
    pointer-events: all;
  }
  .nav-links a { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero:hover .hero-img { transform: scale(1.0); }

/* Dark gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 12, 4, 0.45) 0%,
    rgba(20, 12, 4, 0.62) 55%,
    rgba(20, 12, 4, 0.75) 100%
  );
}

/* Noise/grain texture */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-inline: 1.5rem;
}
.hero-eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.3);
}
.hero-headline em {
  font-style: italic;
  color: var(--caramel);
  font-weight: 400;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.2rem;
  letter-spacing: 0.02em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.45);
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════════
   MENU
═══════════════════════════════════════════════════════════ */
.menu-section { background: var(--cream); }

/* Tabs */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}
.tab {
  padding: 0.55rem 1.6rem;
  background: transparent;
  border: 1.5px solid var(--warm-brown);
  color: var(--warm-brown);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 40px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.tab.active, .tab:hover {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #fff;
}

/* Panels */
.menu-panel { display: none; }
.menu-panel.active { display: block; }

/* Card grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
@media (max-width: 760px) {
  .menu-grid { grid-template-columns: 1fr; }
}

.menu-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(28,18,8,0.07);
  transition: box-shadow var(--transition), transform var(--transition);
}
.menu-card:hover {
  box-shadow: 0 8px 32px rgba(28,18,8,0.14);
  transform: translateY(-4px);
}
.menu-card-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}
.menu-card-body {
  padding: 1.3rem 1.4rem 1.5rem;
}
.menu-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}
.menu-card-top h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--espresso);
}
.price {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--caramel);
  white-space: nowrap;
}
.menu-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Drinks list */
.menu-list {
  max-width: 48rem;
  margin-inline: auto;
}
.menu-list-item {
  display: flex;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid rgba(140,106,78,0.18);
  gap: 0.5rem;
}
.menu-list-item:last-child { border-bottom: none; }
.menu-list-name {
  font-size: 1rem;
  color: var(--espresso);
  font-weight: 400;
  white-space: nowrap;
}
.menu-list-dots {
  flex: 1;
  border-bottom: 1.5px dotted rgba(140,106,78,0.3);
  margin-bottom: 3px;
}

/* ═══════════════════════════════════════════════════════════
   CHALK DIVIDER (signature element)
═══════════════════════════════════════════════════════════ */
.chalk-divider {
  position: relative;
  height: 56px;
  background: var(--espresso);
  overflow: hidden;
}
.chalk-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}
.chalk-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 6px,
    rgba(255,255,255,0.06) 6px,
    rgba(255,255,255,0.06) 7px
  );
}

/* ═══════════════════════════════════════════════════════════
   HOURS
═══════════════════════════════════════════════════════════ */
.hours-section {
  background: var(--espresso);
  color: var(--oat);
}
.hours-section .section-title { color: var(--oat); }
.hours-section .section-sub { color: rgba(245,237,216,0.6); }

.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.hours-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 2rem 1.8rem;
  text-align: center;
  transition: background var(--transition);
}
.hours-card:hover { background: rgba(255,255,255,0.09); }
.hours-card--highlight {
  background: var(--caramel);
  border-color: var(--caramel);
}
.hours-card--highlight:hover { background: #b87830; }

.hours-icon {
  font-size: 1.8rem;
  margin-bottom: 0.9rem;
  line-height: 1;
}
.hours-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}
.hours-time {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--oat);
  margin-bottom: 0.3rem;
}
.hours-note {
  font-size: 0.82rem;
  color: rgba(245,237,216,0.6);
  letter-spacing: 0.03em;
}
.hours-card--highlight .hours-note { color: rgba(255,255,255,0.75); }

.hours-notice {
  text-align: center;
  font-size: 0.88rem;
  color: rgba(245,237,216,0.55);
  max-width: 38rem;
  margin-inline: auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.contact-section { background: var(--oat); padding: 0; }

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}
.contact-map {
  overflow: hidden;
  min-height: 300px;
}
.contact-map img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.contact-info {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-brown);
  font-weight: 600;
}
.contact-item address,
.contact-item a,
.contact-item p {
  font-size: 1rem;
  color: var(--espresso);
  line-height: 1.6;
}
.contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-left: 3px solid var(--caramel);
  padding-left: 1rem;
  line-height: 1.7;
  font-style: italic;
}

@media (max-width: 720px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-map { min-height: 260px; }
}

/* ═══════════════════════════════════════════════════════════
   REVIEWS
═══════════════════════════════════════════════════════════ */
.reviews-section { background: var(--cream); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1.8rem;
}
.review {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.8rem 1.8rem;
  box-shadow: 0 2px 14px rgba(28,18,8,0.06);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.review-stars {
  color: var(--caramel);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}
.review > p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--espresso);
  line-height: 1.65;
  flex: 1;
}
.review footer {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
}
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--oat);
}
.review footer div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.review footer cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--espresso);
}
.review footer span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--espresso);
  color: rgba(245,237,216,0.55);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--oat);
  margin-bottom: 0.3rem;
}
.footer-copy {
  font-size: 0.8rem;
  line-height: 1.6;
}
.footer-love {
  color: rgba(245,237,216,0.28);
  font-style: italic;
}

/* ─── Responsive tweaks ─────────────────────────────────── */
@media (max-width: 480px) {
  .menu-tabs { gap: 0.4rem; }
  .tab { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
  .hero-headline { font-size: clamp(2.4rem, 10vw, 3.5rem); }
}
