/* ================================
   Brew Haven — Starbucks-inspired
   ================================ */
:root {
  --brown: #6F4E37;
  --brown-dark: #4b2e20;
  --cream: #F5F5DC;
  --dark: #1E1E1E;
  --green: #00754A;
  --green-dark: #005c3a;
  --white: #ffffff;
  --muted: #8a8a8a;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.18);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background: #fafaf7;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width:100%; display:block; }
a { text-decoration:none; color:inherit; }
h1,h2,h3,h4,h5 { font-family:'Playfair Display', serif; font-weight:700; line-height:1.2; }

/* Buttons */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 22px; border-radius:50px; font-weight:500; font-size:14px;
  cursor:pointer; border:none; transition: var(--transition);
  font-family: inherit; white-space:nowrap;
}
.btn-primary { background:var(--green); color:white; }
.btn-primary:hover { background:var(--green-dark); transform:translateY(-2px); box-shadow: 0 10px 25px rgba(0,117,74,0.3); }
.btn-outline { background:transparent; border:1.5px solid currentColor; color:var(--dark); }
.btn-outline:hover { background:var(--dark); color:white; border-color:var(--dark); }
.btn-ghost { background:rgba(255,255,255,0.1); color:var(--cream); border:1.5px solid var(--cream); }
.btn-ghost:hover { background:var(--cream); color:var(--brown-dark); }
.btn-lg { padding:14px 32px; font-size:16px; }
.btn-sm { padding:7px 14px; font-size:13px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  padding: 18px 0;
  transition: var(--transition);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 12px 0;
}
.nav-container {
  max-width: 1280px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding: 0 32px;
}
.logo {
  display:flex; align-items:center; gap:10px;
  font-family:'Playfair Display', serif;
  font-weight:700; font-size:22px; color: var(--cream);
}
.navbar.scrolled .logo { color:var(--brown-dark); }
.logo-icon { font-size:26px; }
.nav-links { display:flex; gap:36px; align-items:center; }
.nav-links > a {
  font-size:15px; font-weight:500; color: var(--cream);
  position:relative; transition: var(--transition);
}
.navbar.scrolled .nav-links > a { color:var(--dark); }
.nav-links > a::after {
  content:''; position:absolute; left:0; bottom:-6px;
  width:0; height:2px; background:var(--green); transition: var(--transition);
}
.nav-links > a:hover::after { width:100%; }
.nav-links > a.active::after { width:100%; }
.nav-links > a:hover { color: var(--green); }
.nav-cta { display:flex; gap:12px; }
.navbar.scrolled .btn-outline { color:var(--dark); }
.nav-cta-mobile { display:none; }
.hamburger { display:none; background:none; border:none; cursor:pointer; flex-direction:column; gap:5px; padding:8px; }
.hamburger span { display:block; width:24px; height:2px; background: var(--cream); transition: var(--transition); }
.navbar.scrolled .hamburger span { background: var(--dark); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display:flex; align-items:center;
  background:
    linear-gradient(135deg, rgba(30,30,30,0.85) 0%, rgba(75,46,32,0.75) 100%),
    url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?w=1600&q=80') center/cover;
  color: var(--cream);
  padding: 120px 32px 80px;
  position:relative; overflow:hidden;
}
.hero-grid {
  max-width:1280px; margin:0 auto; width:100%;
  display:grid; grid-template-columns: 1.1fr 1fr; gap:60px; align-items:center;
}
.eyebrow {
  display:inline-block; font-size:13px; letter-spacing:2px;
  color:var(--green); font-weight:600; text-transform:uppercase;
  margin-bottom:18px;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); margin-bottom: 24px; font-weight:900; }
.hero h1 .accent { color: var(--green); font-style: italic; }
.hero-text > p { font-size: 18px; opacity:0.85; margin-bottom: 36px; max-width:520px; }
.hero-buttons { display:flex; gap:16px; flex-wrap:wrap; }

.hero-visual { position:relative; display:flex; justify-content:center; align-items:center; }
.hero-cup {
  width:100%; max-width:480px; aspect-ratio:1; border-radius:50%;
  overflow:hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  border:3px solid rgba(245,245,220,0.2);
  animation: float 6s ease-in-out infinite;
}
.hero-cup img { width:100%; height:100%; object-fit:cover; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.floating-bean {
  position:absolute; color:var(--brown); font-size:60px; opacity:0.3;
  animation: float 4s ease-in-out infinite;
}
.bean1 { top:10%; left:5%; }
.bean2 { bottom:15%; right:8%; animation-delay: 2s; }

/* ===== SECTIONS ===== */
.section { padding: 100px 32px; max-width:1280px; margin:0 auto; }
.section-head { text-align:center; margin-bottom:60px; }
.section-head h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom:14px; color:var(--brown-dark); }
.section-head > p { color: var(--muted); font-size:17px; max-width:580px; margin:0 auto; }

/* ===== MENU CARDS ===== */
.menu-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:28px;
}
.card {
  background:white; border-radius: var(--radius-lg);
  overflow:hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); cursor:pointer;
}
.card:hover { transform:translateY(-10px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 4/3; overflow:hidden; }
.card-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.6s; }
.card:hover .card-img img { transform: scale(1.1); }
.card-body { padding: 22px; }
.card-body h3 { font-size:22px; margin-bottom:6px; color:var(--brown-dark); }
.card-body > p { color:var(--muted); font-size:14px; margin-bottom:18px; }
.card-foot { display:flex; justify-content:space-between; align-items:center; }
.price { font-size:20px; font-weight:700; color: var(--green); font-family:'Playfair Display',serif; }

/* ===== WHY ===== */
.why { background: linear-gradient(180deg, #fafaf7 0%, #f0ebe3 100%); max-width:none; }
.why-grid {
  max-width:1280px; margin:0 auto;
  display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:32px;
}
.why-item {
  background:white; padding:36px 24px; border-radius:var(--radius-lg);
  text-align:center; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.why-item:hover { transform:translateY(-6px); box-shadow: var(--shadow-md); }
.why-icon { font-size:48px; margin-bottom:16px; }
.why-item h4 { font-size:20px; margin-bottom:8px; color:var(--brown-dark); }
.why-item p { color:var(--muted); font-size:14px; }

/* ===== GALLERY ===== */
.gallery-grid {
  display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:18px;
}
.gallery-item {
  position:relative; aspect-ratio:1; border-radius:var(--radius);
  overflow:hidden; cursor:pointer;
}
.gallery-item img { width:100%; height:100%; object-fit:cover; transition: transform 0.6s; }
.gallery-item:hover img { transform: scale(1.15); }
.overlay {
  position:absolute; inset:0; background: rgba(30,30,30,0.6);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition: var(--transition); color:var(--cream);
  font-weight:600; letter-spacing:2px; text-transform:uppercase; font-size:14px;
}
.gallery-item:hover .overlay { opacity:1; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--brown-dark); color: var(--cream); max-width:none; }
.testimonials .section-head h2 { color: var(--cream); }
.testi-grid {
  max-width:1280px; margin:0 auto;
  display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:28px;
}
.testi-card {
  background: rgba(255,255,255,0.06); padding:32px;
  border-radius:var(--radius-lg); backdrop-filter: blur(10px);
  border:1px solid rgba(255,255,255,0.1); transition: var(--transition);
}
.testi-card:hover { transform:translateY(-6px); background: rgba(255,255,255,0.1); }
.stars { color:#FFD700; font-size:18px; margin-bottom:14px; letter-spacing:2px; }
.testi-card > p { font-style:italic; margin-bottom:24px; opacity:0.9; }
.testi-user { display:flex; align-items:center; gap:14px; }
.testi-user img { width:50px; height:50px; border-radius:50%; object-fit:cover; }
.testi-user strong { display:block; font-size:15px; }
.testi-user span { font-size:13px; opacity:0.6; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background:
    linear-gradient(135deg, rgba(0,117,74,0.92), rgba(30,30,30,0.92)),
    url('https://images.unsplash.com/photo-1442550528053-c431ecb55509?w=1600&q=80') center/cover;
  padding: 100px 32px; text-align:center; color:var(--cream);
}
.cta-inner { max-width:720px; margin:0 auto; }
.cta-banner h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom:16px; }
.cta-banner > .cta-inner > p { margin-bottom:32px; opacity:0.9; font-size:17px; }

/* ===== CONTACT ===== */
.contact-grid {
  display:grid; grid-template-columns: 1fr 1.2fr; gap:48px; align-items:start;
}
.contact-info { display:flex; flex-direction:column; gap:24px; }
.info-item {
  background:white; padding:22px; border-radius:var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green);
}
.info-item strong { display:block; margin-bottom:6px; color:var(--brown-dark); font-size:15px; }
.info-item p { color:var(--muted); font-size:14px; }
.map { aspect-ratio: 4/3; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-md); }
.map iframe { width:100%; height:100%; border:0; }

/* ===== NEWSLETTER ===== */
.newsletter {
  padding: 80px 32px; background: var(--cream); text-align:center;
}
.news-inner { max-width:560px; margin:0 auto; }
.newsletter h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom:24px; color:var(--brown-dark);
}
.newsletter form {
  display:flex; gap:10px; background:white; padding:8px;
  border-radius:50px; box-shadow:var(--shadow-sm);
}
.newsletter input {
  flex:1; border:none; outline:none; padding: 0 18px;
  font-size:15px; font-family:inherit; background:transparent;
}

/* ===== FOOTER ===== */
.footer {
background: #1E1E1E;
color: #F5F5DC;
text-align: center;
padding: 40px 20px;
}

.footer h3 {
margin-bottom: 10px;
}

.footer p {
margin: 5px 0;
font-size: 14px;
opacity: 0.8;
}

.footer-links {
margin: 15px 0;
}

.footer-links a {
margin: 0 10px;
color: #F5F5DC;
text-decoration: none;
font-size: 14px;
}

.footer-links a:hover {
color: #00754A;
}

.footer-copy {
margin-top: 15px;
font-size: 13px;
opacity: 0.6;
}

/* ===== STICKY ORDER ===== */
.sticky-order {
  position:fixed; bottom:24px; right:24px; z-index:999;
  background: var(--green); color:white;
  padding:14px 22px; border-radius:50px;
  font-weight:600; box-shadow: 0 10px 30px rgba(0,117,74,0.4);
  transition: var(--transition);
  opacity:0; transform: translateY(20px); pointer-events:none;
}
.sticky-order.show { opacity:1; transform:translateY(0); pointer-events:auto; }
.sticky-order:hover { transform:translateY(-4px); background:var(--green-dark); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity:0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity:1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; text-align:center; }
  .hero-text > p { margin-left:auto; margin-right:auto; }
  .hero-buttons { justify-content:center; }
  .hero-cup { max-width:340px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display:flex; }
  .nav-cta { display:none; }
  .nav-links {
    position:fixed; top:0; right:-100%; width:80%; max-width:340px; height:100vh;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    flex-direction:column; padding:100px 32px 32px; gap:24px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    align-items:flex-start;
  }
  .nav-links.open { right:0; }
  .nav-links > a { color: var(--dark) !important; font-size:18px; }
  .nav-cta-mobile { display:flex; flex-direction:column; gap:12px; width:100%; margin-top:20px; }
  .nav-cta-mobile .btn { width:100%; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .hamburger.active span:nth-child(2) { opacity:0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }
  .section { padding: 70px 20px; }
  .hero { padding: 110px 20px 60px; }
  .footer-grid { grid-template-columns: 1fr; text-align:center; }
  .muted { margin: 0 auto; }
  .socials { justify-content:center; }
  .newsletter form { flex-direction:column; border-radius:var(--radius); padding:14px; }
  .newsletter .btn { width:100%; }
  .newsletter input { padding:12px; text-align:center; }
}
