/* ──────────────────────────────────────────────
   Butchers Coffee — Stylesheet
   Inspired by: Hinterland, Frank, La Fabrique
────────────────────────────────────────────── */

/* ── VARIABLES ── */
:root {
  --cream:      #f5f0e8;
  --brown:      #2a1f14;
  --brown-mid:  #4a3728;
  --terra:      #b85c38;
  --gold:       #d4953a;
  --dark-bg:    #1c1410;
  --text:       #2a1f14;
  --text-light: #6b5a4e;
  --border:     #e0d6ca;

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

  --nav-h: 72px;
  --max-w: 1100px;
  --radius: 4px;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--text-light); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.75rem;
}
.eyebrow-light { color: var(--gold); }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 5rem 0; }
.section-dark { background: var(--dark-bg); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.65); }
.section-dark .eyebrow { color: var(--gold); }
.section-cream { background: var(--cream); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-sub { max-width: 500px; margin: 0 auto; font-size: 1.05rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
}
.split-img img { transition: transform 0.8s var(--ease); }
.split-img:hover img { transform: scale(1.03); }

.split-text h2 { margin-bottom: 1rem; }
.split-text p { margin-bottom: 1rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--terra);
  color: #fff;
}
.btn-primary:hover { background: #a04e30; box-shadow: 0 6px 20px rgba(184,92,56,0.35); }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

.btn-outline {
  background: transparent;
  color: var(--terra);
  border: 1.5px solid var(--terra);
}
.btn-outline:hover { background: var(--terra); color: #fff; }

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(12px);
}
#navbar.scrolled .nav-links a { color: var(--text); }
#navbar.scrolled .nav-logo .logo-text { color: var(--text); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo img { width: auto; height: 44px; object-fit: contain; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s, opacity 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--terra);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #fff; }
#navbar.scrolled .nav-links a:hover { color: var(--terra); }

.nav-instagram svg { transition: opacity 0.2s; }
.nav-instagram:hover svg { opacity: 0.7; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
#navbar.scrolled .hamburger span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ── */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 12s var(--ease) forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,12,5,0.45) 0%,
    rgba(20,12,5,0.2) 40%,
    rgba(20,12,5,0.65) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
  max-width: 780px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
}
.hero-content h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  z-index: 2;
  animation: scrollBob 2s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── MENU GRID ── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px;
  background: rgba(255,255,255,0.06);
}
.menu-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: default;
}
.menu-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.menu-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.menu-card-img img {
  transition: transform 0.6s var(--ease);
}
.menu-card:hover .menu-card-img img { transform: scale(1.05); }
.menu-card-body { padding: 1.5rem; }
.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.menu-card-header h3 { color: #fff; }
.price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold);
}
.tag {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: rgba(100,180,100,0.15);
  color: #7ecb7e;
  border: 1px solid rgba(100,180,100,0.25);
}
.tag-optional {
  background: rgba(212,149,58,0.15);
  color: var(--gold);
  border-color: rgba(212,149,58,0.25);
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 6px;
  margin-top: 2rem;
}
.gallery-item { overflow: hidden; aspect-ratio: 4/3; }
.gallery-item-lg {
  grid-row: 1 / 3;
  aspect-ratio: unset;
}
.gallery-item img {
  transition: transform 0.7s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }

/* ── HOURS / LOCATION ── */
.hours-block { margin: 1.5rem 0; }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.hours-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}
.address-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
}
.address-block svg { flex-shrink: 0; color: var(--terra); }
.address-block a:hover { color: var(--terra); }
.map-placeholder {
  overflow: hidden;
  border-radius: var(--radius);
  height: 400px;
}
.map-placeholder iframe { height: 100%; }

/* ── INSTAGRAM STRIP ── */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-top: 2rem;
}
.insta-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
}
.insta-item img { transition: transform 0.5s var(--ease); }
.insta-item:hover img { transform: scale(1.06); }
.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,12,5,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.insta-item:hover .insta-overlay { opacity: 1; }
.insta-placeholder { background: var(--cream); }
.insta-placeholder::after {
  content: '📷';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 2rem;
  opacity: 0.3;
}

/* ── NEWSLETTER ── */
.newsletter-section {
  background: var(--terra);
  padding: 4rem 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.newsletter-inner h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.newsletter-inner p { color: rgba(255,255,255,0.8); }
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-width: 260px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  outline: none;
  transition: background 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form input:focus { background: rgba(255,255,255,0.28); }
.newsletter-form .btn-primary {
  background: var(--dark-bg);
  color: #fff;
}
.newsletter-form .btn-primary:hover { background: var(--brown-mid); }

/* ── FOOTER ── */
footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,0.75);
  padding-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo-img {
  width: auto;
  height: 52px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.9rem; margin-bottom: 0.25rem; }
.footer-insta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--gold);
  transition: opacity 0.2s;
}
.footer-insta:hover { opacity: 0.7; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-hours p { font-size: 0.9rem; margin-bottom: 0.25rem; }
.footer-hours strong { color: #fff; }
.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(28,20,16,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
  }
  #navbar.scrolled .nav-links { background: rgba(255,255,255,0.98); }
  #navbar.scrolled .nav-links a { color: var(--text); }
  .nav-links a::after { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse { direction: ltr; }
  .split-img { aspect-ratio: 16/9; }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: unset;
  }
  .gallery-item-lg { grid-row: unset; }

  .insta-grid { grid-template-columns: repeat(3, 1fr); }

  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { justify-content: center; }
  .newsletter-form input { min-width: 100%; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item-lg { aspect-ratio: 4/3; }
}
