/* =========================================
   OAK & BEAN COFFEE — Main Stylesheet
   ========================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --cream:       #F5F0E8;
  --cream-light: #FAFAF8;
  --cream-dark:  #EDE5D4;
  --tan:         #D4B896;
  --brown-light: #C4956A;
  --brown:       #8B6F47;
  --brown-dark:  #5C3D2E;
  --espresso:    #3D2B1F;
  --black:       #1A1A1A;
  --white:       #FFFFFF;
  --grey-light:  #F0EDE8;
  --grey:        #9A9085;
  --text-main:   #2C2218;
  --text-light:  #6B5F54;

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

  --nav-height:  76px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   24px;
  --shadow-sm:   0 2px 12px rgba(61,43,31,0.08);
  --shadow-md:   0 8px 32px rgba(61,43,31,0.12);
  --shadow-lg:   0 20px 60px rgba(61,43,31,0.18);
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  /* Offset anchor navigation below the fixed navbar + sticky tabs.
     scroll-padding-top is the correct property on the scroll container;
     it is respected by native hash navigation and scrollIntoView(). */
  scroll-padding-top: calc(var(--nav-height) + 60px);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream-light);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-sans);
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--espresso);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 500; }

p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 540px;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 96px 0;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
  background: rgba(255,255,255,0.12);
}

.btn:hover::after { opacity: 1; }

.btn--primary {
  background: var(--espresso);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--brown-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--espresso);
  border: 1.5px solid var(--espresso);
}

.btn--outline:hover {
  background: var(--espresso);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn--light {
  background: var(--cream);
  color: var(--espresso);
}

.btn--light:hover {
  background: var(--cream-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--cream-dark);
  box-shadow: var(--shadow-sm);
  background: rgba(250, 250, 248, 0.97);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar__logo img {
  height: 50px;
  width: auto;
  display: block;
  transform: scale(1.12);
  transform-origin: left center;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.navbar__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--brown);
  transition: width var(--transition);
}

.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--espresso);
}

.navbar__nav a:hover::after,
.navbar__nav a.active::after {
  width: 100%;
}

.navbar__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--espresso);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--cream-light);
  border-bottom: 1px solid var(--cream-dark);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.mobile-menu.open {
  max-height: 400px;
  padding: 24px 0 32px;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
}

.mobile-menu ul li a {
  display: block;
  padding: 12px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  border-bottom: 1px solid var(--cream-dark);
  transition: color var(--transition), padding-left var(--transition);
}

.mobile-menu ul li:last-child a {
  border-bottom: none;
}

.mobile-menu ul li a:hover {
  color: var(--brown);
  padding-left: 8px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1554118811-1e0d58224f24?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero__bg.loaded {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 14, 8, 0.72) 0%,
    rgba(61, 43, 31, 0.45) 60%,
    rgba(139, 111, 71, 0.2) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 24px;
  margin-left: clamp(24px, 8vw, 120px);
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--tan);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--tan);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.6rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s 0.5s forwards;
}

.hero__title em {
  font-style: italic;
  font-weight: 700;
  color: var(--tan);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(245, 240, 232, 0.85);
  max-width: 440px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.7s forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.9s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}

.hero__scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(212,184,150,0.7), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* --- About / Intro Section --- */
.about {
  background: var(--cream-light);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__image-wrap::before {
  content: '';
  position: absolute;
  top: -24px;
  left: -24px;
  right: 24px;
  bottom: 24px;
  border: 1.5px solid var(--tan);
  border-radius: var(--radius-md);
  z-index: 0;
  transition: transform var(--transition);
}

.about__image-wrap:hover::before {
  transform: translate(4px, 4px);
}

.about__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.about__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  z-index: 2;
  background: var(--espresso);
  color: var(--cream);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about__badge strong {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--tan);
}

.about__badge span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dark);
  margin-top: 3px;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__text p {
  font-size: 1.05rem;
}

.about__stats {
  display: flex;
  gap: 32px;
  padding-top: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat__number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--espresso);
  line-height: 1;
}

.stat__label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
}

/* --- Featured Section --- */
.featured {
  background: var(--cream);
}

.featured__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 24px;
}

.featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__image-wrap img {
  transform: scale(1.06);
}

.product-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--espresso);
  color: var(--cream);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

.product-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--espresso);
}

.product-card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 24px 20px;
}

.product-card__price {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown);
}

.product-card__btn {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--espresso);
  border-bottom: 1px solid var(--espresso);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}

.product-card__btn:hover {
  color: var(--brown);
  border-color: var(--brown);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--espresso);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(139, 111, 71, 0.15);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(212, 184, 150, 0.08);
  pointer-events: none;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-banner__text h2 {
  color: var(--cream);
  margin-bottom: 10px;
}

.cta-banner__text p {
  color: var(--tan);
  max-width: 420px;
  font-size: 1.05rem;
}

/* --- Testimonials --- */
.testimonials {
  background: var(--cream-light);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--cream-dark);
  position: absolute;
  top: 12px;
  left: 28px;
  line-height: 1;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-top: 28px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-dark);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cream-dark);
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--espresso);
}

.testimonial-card__role {
  font-size: 0.78rem;
  color: var(--brown);
  letter-spacing: 0.05em;
}

.stars {
  color: var(--brown-light);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

/* --- Footer --- */
.footer {
  background: var(--espresso);
  color: var(--cream);
  padding: 72px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(212, 184, 150, 0.15);
}

.footer__logo img {
  height: 46px;
  filter: brightness(0) invert(1) opacity(0.9);
  margin-bottom: 20px;
}

.footer__about {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.75;
  margin-bottom: 24px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(212, 184, 150, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tan);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer__social a:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--cream);
  transform: translateY(-3px);
}

.footer__heading {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer__links a::before {
  content: '→';
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: var(--transition);
  display: inline-block;
}

.footer__links a:hover {
  color: var(--tan);
}

.footer__links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.65);
}

.footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--tan);
}

.footer__bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.4);
}

/* =========================================
   MENU PAGE
   ========================================= */
.page-hero {
  background: var(--espresso);
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1442512595331-e89e73853f31?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--cream);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--tan);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Category Tabs */
.menu-tabs {
  background: var(--cream-light);
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  border-bottom: 1px solid var(--cream-dark);
  box-shadow: 0 2px 12px rgba(61,43,31,0.06);
}

.menu-tabs__inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.menu-tabs__inner::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: 18px 28px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--espresso);
}

.tab-btn.active {
  color: var(--espresso);
  border-bottom-color: var(--brown);
}

/* Menu Section */
.menu-section {
  padding: 48px 0;
}

.menu-section + .menu-section {
  border-top: 1px solid var(--cream-dark);
  padding-top: 36px;
}

.menu-category-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.menu-category-header h2 {
  font-size: 1.8rem;
}

.menu-category-line {
  flex: 1;
  height: 1px;
  background: var(--cream-dark);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Menu Item Card */
.menu-item {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.menu-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--tan);
}

.menu-item__image-wrap {
  overflow: hidden;
  aspect-ratio: 16/9;
}

.menu-item__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.menu-item:hover .menu-item__image-wrap img {
  transform: scale(1.07);
}

.menu-item__body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-item__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.menu-item__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--espresso);
}

.menu-item__price {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--brown);
  font-weight: 600;
  white-space: nowrap;
}

.menu-item__desc {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
}

.menu-item__badges {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid;
}

.badge--vegan { color: #4A7C59; border-color: #4A7C59; background: rgba(74,124,89,0.08); }
.badge--popular { color: var(--brown-dark); border-color: var(--tan); background: rgba(212,184,150,0.2); }
.badge--new { color: #5B6DB0; border-color: #5B6DB0; background: rgba(91,109,176,0.08); }
.badge--seasonal { color: var(--brown); border-color: var(--tan); background: rgba(139,111,71,0.08); }
.badge--gluten-free { color: #8B7355; border-color: #D4B896; background: rgba(212,184,150,0.15); }

/* Specials Banner */
.specials-banner {
  background: linear-gradient(135deg, var(--espresso) 0%, var(--brown-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  position: relative;
  margin: 0 0 32px;
}

.specials-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.specials-banner h3 {
  color: var(--cream);
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.specials-banner p {
  color: var(--tan);
  font-size: 0.95rem;
}

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form__group {
  margin-bottom: 20px;
}

.contact-form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--espresso);
  margin-bottom: 8px;
}

.contact-form__input,
.contact-form__textarea,
.contact-form__select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.contact-form__input:focus,
.contact-form__textarea:focus,
.contact-form__select:focus {
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.12);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--grey);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-success {
  display: none;
  background: rgba(74, 124, 89, 0.1);
  border: 1px solid rgba(74, 124, 89, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: #3A6B47;
  margin-top: 12px;
  align-items: center;
  gap: 10px;
}

.form-success.show {
  display: flex;
}

/* Contact Info Side */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-detail {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-detail__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brown);
}

.contact-detail__text h4 {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 4px;
}

.contact-detail__text p,
.contact-detail__text a {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.65;
}

.contact-detail__text a:hover {
  color: var(--brown);
}

/* Opening Hours */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--cream-dark);
}

.hours-table td {
  padding: 10px 0;
  font-size: 0.9rem;
}

.hours-table td:first-child {
  color: var(--text-light);
  font-weight: 500;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text-main);
  font-weight: 500;
}

.hours-table tr.today td {
  color: var(--brown);
  font-weight: 600;
}

/* Map */
.contact-map {
  background: var(--cream);
  padding-bottom: 0;
  overflow: hidden;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 56px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50% { transform: scaleY(0.6); opacity: 0.3; }
}

/* Scroll-triggered animations */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* Staggered children — all items start hidden */
.stagger-children > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ALL children become visible when the parent gets .visible —
   nth-child rules below only add per-item stagger delays.
   Without this catch-all, any item beyond nth-child(6) stays
   permanently invisible (e.g. items 7-9 in the coffee grid). */
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays — items 1-6 fan out, 7+ reuse a shorter cycle */
.stagger-children.visible > *:nth-child(1)  { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2)  { transition-delay: 0.13s; }
.stagger-children.visible > *:nth-child(3)  { transition-delay: 0.21s; }
.stagger-children.visible > *:nth-child(4)  { transition-delay: 0.29s; }
.stagger-children.visible > *:nth-child(5)  { transition-delay: 0.37s; }
.stagger-children.visible > *:nth-child(6)  { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(7)  { transition-delay: 0.13s; }
.stagger-children.visible > *:nth-child(8)  { transition-delay: 0.21s; }
.stagger-children.visible > *:nth-child(9)  { transition-delay: 0.29s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(11) { transition-delay: 0.13s; }
.stagger-children.visible > *:nth-child(12) { transition-delay: 0.21s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about__image {
    height: 380px;
  }

  .featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section-pad {
    padding: 64px 0;
  }

  .navbar__nav,
  .navbar__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero__content {
    margin-left: 0;
    padding: 0 24px;
  }

  .about__image-wrap::before {
    display: none;
  }

  .about__badge {
    right: 0;
    bottom: -16px;
  }

  .about__stats {
    gap: 24px;
  }

  .featured__header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 36px;
  }

  .featured__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner__text p {
    margin: 0 auto;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .specials-banner {
    flex-direction: column;
    padding: 36px 28px;
    text-align: center;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .btn {
    padding: 13px 24px;
  }

  .about__stats {
    flex-wrap: wrap;
  }
}
