/* =========================================
   ZOE'S COFFEE HOUSE — styles.css
   Warm espresso palette · Mobile-first
   ========================================= */

/* ===== TOKENS ===== */
:root {
  --cream:       #fdf6ec;
  --cream-dark:  #f5e9d3;
  --espresso:    #2c1810;
  --espresso-mid:#4a2c1a;
  --brown:       #7b4a2d;
  --caramel:     #c07d3e;
  --gold:        #e8a838;
  --gold-light:  #f2c46d;
  --white:       #ffffff;
  --text-main:   #2c1810;
  --text-muted:  #6b4c35;
  --text-light:  #9a7a65;
  --border:      rgba(122, 74, 45, 0.15);

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

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   40px;

  --shadow-sm:   0 2px 12px rgba(44,24,16,0.08);
  --shadow-md:   0 8px 32px rgba(44,24,16,0.12);
  --shadow-lg:   0 20px 60px rgba(44,24,16,0.18);

  --transition:  0.3s ease;
  --nav-height:  72px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
blockquote { font-style: normal; }

/* ===== UTILITY ===== */
.section-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-center { text-align: center; }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 12px;
}
.section-center h2,
.about-text h2,
.contact-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--espresso);
  line-height: 1.2;
  margin-bottom: 16px;
}
h2 em { font-style: italic; color: var(--caramel); }
.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--caramel), var(--gold));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(192,125,62,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(192,125,62,0.45); }

.btn-secondary {
  background: var(--espresso);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(44,24,16,0.25);
}
.btn-secondary:hover { background: var(--espresso-mid); }

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

.btn-nav {
  background: linear-gradient(135deg, var(--caramel), var(--gold));
  color: var(--white);
  padding: 10px 20px;
  font-size: 0.88rem;
  box-shadow: 0 2px 12px rgba(192,125,62,0.3);
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(192,125,62,0.4); }

.btn-instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--white);
  margin-top: 12px;
  box-shadow: 0 4px 20px rgba(220,39,67,0.3);
}
.btn-instagram:hover { box-shadow: 0 8px 30px rgba(220,39,67,0.4); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(253,246,236,0.96);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.nav-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.4rem; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--espresso);
}
.navbar:not(.scrolled) .logo-text { color: var(--white); }
.navbar:not(.scrolled) .logo-icon { filter: brightness(2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--espresso);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: var(--cream-dark); }
.navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,0.9); }
.navbar:not(.scrolled) .nav-link:hover { background: rgba(255,255,255,0.15); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--espresso);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.navbar:not(.scrolled) .bar { background: var(--white); }
.hamburger.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; }
.hamburger.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(44,24,16,0.82) 0%, rgba(74,44,26,0.7) 60%, rgba(192,125,62,0.55) 100%),
    url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?w=1600&q=80') center/cover no-repeat;
  padding: calc(var(--nav-height) + 60px) 24px 80px;
  text-align: center;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(232,168,56,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-title em { color: var(--gold-light); font-style: italic; }
.hero-bio {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.75;
}
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
}
.divider { opacity: 0.4; }
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255,255,255,0.45);
  border-bottom: 2px solid rgba(255,255,255,0.45);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

/* ===== PROOF BAR ===== */
.proof-bar {
  background: var(--espresso);
  padding: 28px 24px;
}
.proof-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
  gap: 4px;
}
.proof-item strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
}
.proof-item span { font-size: 0.78rem; color: rgba(255,255,255,0.6); letter-spacing: 0.06em; }
.proof-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.12);
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: var(--cream);
}
.about .section-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual { position: relative; }
.about-img-frame {
  width: 100%;
  aspect-ratio: 4/5;
  max-width: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,24,16,0.82) 0%, rgba(44,24,16,0.15) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.about-tagline { color: var(--white); font-size: 1.05rem; font-style: italic; line-height: 1.55; }
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--espresso);
  line-height: 1.3;
}
.floating-badge span { font-size: 1.5rem; }
.badge-latte { bottom: 24px; right: -20px; animation: float 4s ease-in-out infinite; }
.badge-sugar { top: 32px;  right: -20px; animation: float 4s ease-in-out infinite 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.about-text { }
.about-text p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.feature-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-features li strong { display: block; font-weight: 600; color: var(--espresso); margin-bottom: 2px; }
.about-features li p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ===== MENU ===== */
.menu-highlight {
  padding: 100px 0;
  background: var(--cream-dark);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  text-align: left;
}

/* Card shell */
.menu-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  padding: 0;              /* photo fills top; body has its own padding */
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* Photo strip */
.menu-card-photo {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.menu-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.menu-card:hover .menu-card-photo img { transform: scale(1.05); }

/* Dark scrim only on featured card photo */
.menu-card-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.28) 100%);
}

/* Badge inside photo */
.menu-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--espresso);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  z-index: 2;
}

/* Text body — always on white/cream background */
.menu-card-body {
  padding: 22px 24px 24px;
  background: var(--white);
}
.menu-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--espresso);
  margin-bottom: 8px;
}
.menu-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.menu-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--caramel);
}

/* Featured card: gold accent on left border only — body stays readable on white */
.featured-card {
  border: 2px solid var(--gold);
  box-shadow: 0 8px 36px rgba(192,125,62,0.22);
}
.featured-card .menu-card-body {
  background: linear-gradient(160deg, #fffbf4 0%, var(--white) 100%);
}

/* ===== REVIEWS ===== */
.reviews {
  padding: 100px 0;
  background: var(--espresso);
  position: relative;
  overflow: hidden;
}
.reviews::before {
  content: '☕';
  position: absolute;
  font-size: 20rem;
  opacity: 0.03;
  top: -40px; right: -40px;
  pointer-events: none;
}
.reviews .section-label { color: var(--gold-light); }
.reviews h2 { color: var(--white); }
.rating-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 28px 0 56px;
  flex-wrap: wrap;
}
.rating-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.rating-stars-large { font-size: 1.8rem; color: var(--gold); letter-spacing: 4px; }
.rating-source { color: rgba(255,255,255,0.55); font-size: 0.9rem; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.review-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), background var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.review-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, background var(--transition);
}
.review-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.review-card.visible:hover { transform: translateY(-4px); }
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.reviewer-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--caramel), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}
.reviewer-name { display: block; font-weight: 600; color: var(--white); font-size: 0.95rem; }
.review-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; }
.google-badge {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #4285F4;
  flex-shrink: 0;
}
.review-text {
  color: rgba(255,255,255,0.82);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 18px;
}
.review-highlight {
  display: inline-block;
  background: rgba(232,168,56,0.15);
  border: 1px solid rgba(232,168,56,0.3);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--cream);
}
.contact .section-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-text p {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1.02rem;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 3px;
}
.contact-link {
  color: var(--espresso);
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition);
}
.contact-link:hover { color: var(--caramel); }
.contact-cta-group { display: flex; flex-wrap: wrap; gap: 14px; }

.map-container {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--cream-dark);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--espresso);
  padding: 56px 24px 36px;
}
.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; font-style: italic; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.footer-designed-by {
  color: rgba(255,255,255,0.22);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin-top: -8px;
}
.footer-designed-by strong { color: rgba(255,255,255,0.38); font-weight: 600; }
.footer-designed-by a { color: inherit; text-decoration: none; transition: color 0.2s; }
.footer-designed-by a:hover { color: var(--gold); text-decoration: underline; }


/* ===== PHOTO STRIP / MARQUEE GALLERY ===== */
.photo-strip {
  padding: 80px 0 0;
  background: var(--cream);
  overflow: hidden;
}
.photo-strip-header {
  text-align: center;
  padding: 0 24px 48px;
}
.photo-strip-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--espresso);
  line-height: 1.2;
  margin-top: 10px;
}

/* Outer wrapper clips the scrolling content and adds fade edges */
.marquee-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Fade mask on left and right edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* The scrolling track — animated via CSS */
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
  padding-bottom: 24px; /* slight visual breathing room */
}
.marquee-outer:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* JS duplicates slides so 50% = one full set */
}

.marquee-slide {
  flex-shrink: 0;
  width: 260px;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.marquee-slide:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}
.marquee-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== MOBILE MENU OVERLAY ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .btn-nav { display: none; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--espresso);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links .nav-link {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 600;
    padding: 14px 28px;
  }
  .nav-links .nav-link:hover { background: rgba(255,255,255,0.1); }
  .hamburger { z-index: 1001; }

  .about .section-container { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 360px; margin: 0 auto; }
  .badge-latte, .badge-sugar { display: none; }

  .contact .section-container { grid-template-columns: 1fr; gap: 48px; }
  .map-container { height: 300px; }

  .proof-item { padding: 0 20px; }
  .proof-divider { display: none; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; align-items: center; }
  .hero-cta-group .btn { width: 100%; max-width: 280px; justify-content: center; }
  .contact-cta-group { flex-direction: column; }
  .contact-cta-group .btn { justify-content: center; }
  .proof-container { gap: 16px; }
}
