/* ============================================================
   EMBER & OAK COFFEE — styles.css
   Palette: cream / terracotta / espresso / sage
   ============================================================ */

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

:root {
  --cream:       #FDF8F1;
  --cream-dark:  #F0E6D3;
  --espresso:    #2C1810;
  --terracotta:  #C4622D;
  --sage:        #5C7A5C;
  --warm-brown:  #8B5E3C;
  --text:        #3D2314;
  --muted:       rgba(61,35,20,0.55);
  --border:      rgba(61,35,20,0.1);
  --font-display: 'Playfair Display', serif;
  --font-body:   'Lato', sans-serif;
  --radius:      6px;
  --transition:  0.3s ease;
  --max-width:   1140px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--espresso); }
h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-brown);
  margin-bottom: 16px;
  font-family: var(--font-body);
}
p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-family: var(--font-body);
  margin-bottom: 14px;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}
.btn-primary:hover {
  background: #ae5427;
  border-color: #ae5427;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,98,45,0.3);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ---------- Scroll fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2) { transition-delay: 0.15s; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(253,248,241,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  transition: color var(--transition);
  flex-shrink: 0;
  z-index: 1001;
  position: relative;
}
.nav-logo span { color: var(--terracotta); }
.navbar.scrolled .nav-logo { color: var(--espresso); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--terracotta);
  transition: width var(--transition);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
.navbar.scrolled .nav-link { color: var(--muted); }
.navbar.scrolled .nav-link:hover { color: var(--espresso); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
  z-index: 1001;
  position: relative;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--espresso); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--cream) !important; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--cream) !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(28,12,5,0.25) 0%,
    rgba(28,12,5,0.6) 60%,
    rgba(28,12,5,0.78) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 820px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  margin-bottom: 20px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: rgba(255,255,255,0.4);
}
.hero h1 {
  color: #fff;
  margin-bottom: 18px;
  font-style: italic;
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--terracotta); font-style: inherit; }
.hero-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.02em;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-hint span {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  margin: 0 auto;
  animation: scrollDrop 2.2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 100px 0; background: var(--cream); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 { margin-bottom: 24px; }
.about-text p { margin-bottom: 18px; font-size: 1.05rem; }
.about-text p:last-child { margin-bottom: 0; }

.about-image { position: relative; }
.about-image::after {
  content: '';
  position: absolute;
  bottom: -16px; right: -16px;
  width: 60%; height: 60%;
  border: 2px solid var(--cream-dark);
  z-index: 0;
  pointer-events: none;
}
.about-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ============================================================
   MENU
   ============================================================ */
.menu-section { padding: 100px 0; background: var(--cream-dark); }

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 26px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--warm-brown);
  background: transparent;
  border: 1.5px solid rgba(139,94,60,0.25);
  transition: all var(--transition);
  font-family: var(--font-body);
}
.tab-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.tab-btn.active {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

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

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.menu-item {
  background: var(--cream);
  padding: 26px 22px;
  transition: background var(--transition);
}
.menu-item:hover { background: #fff; }
.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.menu-item h4 { flex: 1; line-height: 1.3; }
.price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--terracotta);
  white-space: nowrap;
  flex-shrink: 0;
}
.menu-item p { font-size: 0.85rem; line-height: 1.6; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section { padding: 100px 0; background: var(--cream); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 8px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius);
}
.gallery-item.tall  { grid-row: span 2; }
.gallery-item.wide  { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,24,16,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.gallery-overlay span {
  font-size: 2.2rem;
  color: rgba(255,255,255,0);
  font-weight: 300;
  line-height: 1;
  transition: color 0.2s ease;
}
.gallery-item:hover .gallery-overlay { background: rgba(44,24,16,0.42); }
.gallery-item:hover .gallery-overlay span { color: #fff; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,8,3,0.96);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-inner {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition);
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.18); }
.lightbox-close { top: 24px; right: 24px; font-size: 1.5rem; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   HOURS
   ============================================================ */
.hours-section { padding: 100px 0; background: var(--espresso); }
.hours-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hours-section .eyebrow { color: var(--terracotta); }
.hours-section h2 { color: var(--cream); margin-bottom: 36px; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td {
  padding: 14px 0;
  font-size: 0.94rem;
  color: rgba(253,248,241,0.6);
  border-bottom: 1px solid rgba(253,248,241,0.07);
}
.hours-table td:first-child { font-weight: 700; color: var(--cream); width: 50%; }
.hours-table td:last-child { text-align: right; }
.hours-table tr.dimmed td { opacity: 0.45; }
.hours-table tr:last-child td { border-bottom: none; }

.hours-note {
  margin-top: 22px;
  font-size: 0.8rem;
  color: rgba(253,248,241,0.3);
  font-style: italic;
}

.hours-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ============================================================
   FIND US
   ============================================================ */
.find-us-section { padding: 100px 0; background: var(--cream); }
.find-us-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.find-us-details h2 { margin-bottom: 36px; }
.detail-block { margin-bottom: 28px; }
.detail-block h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 6px;
  font-family: var(--font-body);
  line-height: 1;
}
.detail-block p { font-size: 0.94rem; line-height: 1.7; }
.detail-block a {
  color: var(--warm-brown);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.detail-block a:hover { color: var(--terracotta); }

.map-wrap {
  height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 48px rgba(61,35,20,0.1);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--espresso); padding: 72px 0 0; }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(253,248,241,0.07);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--cream);
  display: block;
  margin-bottom: 10px;
}
.footer-logo span { color: var(--terracotta); }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(253,248,241,0.35);
  margin-bottom: 24px;
  line-height: 1.7;
}

.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(253,248,241,0.05);
  border: 1px solid rgba(253,248,241,0.1);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(253,248,241,0.4);
  transition: all var(--transition);
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

.footer-nav ul li { margin-bottom: 10px; }
.footer-nav ul li a {
  font-size: 0.88rem;
  color: rgba(253,248,241,0.4);
  transition: color var(--transition);
}
.footer-nav ul li a:hover { color: var(--cream); }

.footer-contact p {
  font-size: 0.85rem;
  color: rgba(253,248,241,0.35);
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-bottom { padding: 20px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(253,248,241,0.2); }
.footer-bottom a { color: var(--terracotta); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--cream); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-image img { height: 380px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .hours-inner { grid-template-columns: 1fr; gap: 48px; }
  .hours-image { display: none; }
  .find-us-inner { grid-template-columns: 1fr; }
  .map-wrap { height: 360px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 16px 0; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--espresso);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links.open .nav-link { font-size: 1.4rem; color: rgba(253,248,241,0.8); }
  .nav-links.open .nav-link:hover { color: var(--cream); }
  .hamburger { display: flex; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .menu-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item.wide { grid-column: span 1; }
  .about-image::after { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-auto-rows: 150px; }
  .gallery-item.tall { grid-row: span 1; }
  .tab-btn { padding: 8px 18px; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { transition: none; }
  .hero-bg { transition: none; }
  .scroll-hint { display: none; }
}
