/* ========================================
   BREW & CO. — Artisan Coffee House
   Warm, cozy, handcrafted aesthetic
   ======================================== */

:root {
  --primary: #5C3D2E;
  --primary-light: #7B5B4C;
  --accent: #D4A574;
  --accent-light: #E8C9A0;
  --cream: #FDF6EC;
  --warm-white: #FAF3E8;
  --dark: #2C1810;
  --dark-soft: #3E2A1E;
  --text: #4A3728;
  --text-muted: #8B7355;
  --text-light: #B09A7E;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(44,24,16,0.08);
  --shadow-md: 0 4px 20px rgba(44,24,16,0.12);
  --shadow-lg: 0 8px 40px rgba(44,24,16,0.16);
  --shadow-warm: 0 4px 20px rgba(212,165,116,0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --max-width: 1140px;
}

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

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.2; color: var(--dark); }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

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

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  background: transparent;
  transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(253,246,236,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(92,61,46,0.1);
  padding: 12px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--dark);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary) !important; color: var(--white) !important;
  padding: 10px 24px; border-radius: 100px; font-size: 0.85rem !important;
  letter-spacing: 0.5px !important; transition: all var(--transition) !important;
}
.nav-cta:hover { background: var(--dark) !important; transform: translateY(-1px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; position: fixed; inset: 0; background: rgba(253,246,236,0.98);
  backdrop-filter: blur(20px); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--dark); font-family: 'Playfair Display', serif; font-size: 1.4rem; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1447933601403-0c6688de566e?w=1600&q=80&auto=format') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(44,24,16,0.75) 0%, rgba(92,61,46,0.55) 100%);
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
  max-width: 700px; margin: 0 auto; padding: 120px 24px 80px;
}
.hero-tagline {
  display: inline-block; padding: 6px 20px; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px; color: var(--accent-light); font-size: 0.85rem;
  font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 {
  font-size: 3.5rem; color: var(--white); margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 em { font-style: italic; color: var(--accent-light); }
.hero p {
  font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 36px; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px; font-size: 0.95rem;
  font-weight: 700; cursor: pointer; transition: all var(--transition);
  border: none; text-decoration: none; letter-spacing: 0.5px;
}
.btn-primary {
  background: var(--accent); color: var(--dark);
  box-shadow: 0 4px 15px rgba(212,165,116,0.4);
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: var(--shadow-warm); }
.btn-outline {
  background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); color: var(--white); }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--dark); transform: translateY(-2px); }

/* ---- SECTIONS ---- */
section { padding: 100px 0; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-warm { background: var(--warm-white); }
.bg-dark { background: var(--dark); color: var(--cream); }
.bg-dark h2, .bg-dark h3 { color: var(--cream); }
.bg-dark p { color: rgba(253,246,236,0.7); }

.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px; color: var(--accent);
  margin-bottom: 12px; font-family: 'Lato', sans-serif;
}
.section-title { font-size: 2.5rem; margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; line-height: 1.7; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-subtitle { margin: 0 auto; }

/* ---- INTRO / STORY ---- */
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.intro-img {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
}
.intro-img img { width: 100%; height: 420px; object-fit: cover; }
.intro-img::after {
  content: ''; position: absolute; bottom: -12px; right: -12px;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--accent); opacity: 0.15; z-index: -1;
}
.intro-text h2 { margin-bottom: 20px; }
.intro-text p { margin-bottom: 16px; }
.intro-highlight {
  display: flex; gap: 32px; margin-top: 28px; padding-top: 28px;
  border-top: 1px solid rgba(92,61,46,0.15);
}
.highlight-item { text-align: center; }
.highlight-number { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.highlight-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ---- FEATURED DRINKS ---- */
.drinks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.drink-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  position: relative;
}
.drink-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.drink-img { width: 100%; height: 260px; object-fit: cover; }
.drink-info { padding: 24px; }
.drink-info h3 { font-size: 1.2rem; margin-bottom: 6px; }
.drink-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }
.drink-price {
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
  color: var(--accent); font-weight: 700;
}
/* Coffee stain decoration */
.drink-card::after {
  content: ''; position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0.15;
}

/* ---- PHOTO GRID ---- */
.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.photo-grid img {
  width: 100%; height: 240px; object-fit: cover;
  border-radius: var(--radius); transition: all 0.5s ease; cursor: pointer;
}
.photo-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

/* ---- INFO BAR (Hours/Location) ---- */
.info-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  text-align: center; padding: 60px 0;
}
.info-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.info-item p { font-size: 0.95rem; color: var(--text-muted); }
.info-divider {
  width: 40px; height: 2px; background: var(--accent);
  margin: 0 auto 16px; border-radius: 1px;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  text-align: center; padding: 80px 24px;
  background: url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1600&q=80&auto=format') center/cover no-repeat;
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(44,24,16,0.8), rgba(92,61,46,0.7));
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ---- MENU PAGE ---- */
.menu-section { margin-bottom: 48px; }
.menu-section h2 {
  font-size: 1.8rem; margin-bottom: 8px;
  padding-bottom: 12px; border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.menu-category-desc { color: var(--text-muted); font-style: italic; margin-bottom: 24px; }

.menu-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px dashed rgba(92,61,46,0.15);
}
.menu-item:last-child { border-bottom: none; }
.menu-item-name { font-weight: 700; font-size: 1rem; }
.menu-item-desc { font-size: 0.88rem; color: var(--text-muted); margin-top: 2px; }
.menu-item-price { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--accent); font-size: 1.05rem; white-space: nowrap; margin-left: 20px; }

.menu-filter-bar {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 40px; flex-wrap: wrap;
}
.menu-filter {
  padding: 8px 24px; border-radius: 100px;
  border: 2px solid var(--primary); background: transparent;
  color: var(--primary); font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
  font-family: 'Lato', sans-serif;
}
.menu-filter:hover, .menu-filter.active {
  background: var(--primary); color: var(--white);
}

/* ---- ABOUT PAGE ---- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card {
  text-align: center; padding: 36px 24px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(212,165,116,0.15); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px; font-size: 1.6rem;
}
.value-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: var(--text-muted); }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.team-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.team-img img { width: 100%; height: 380px; object-fit: cover; }

/* ---- CONTACT PAGE ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-form {
  background: var(--white); padding: 40px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 700;
  color: var(--primary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 16px; border: 2px solid rgba(92,61,46,0.15);
  border-radius: var(--radius); font-size: 0.95rem; font-family: 'Lato', sans-serif;
  color: var(--text); transition: border-color var(--transition); background: var(--cream);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info-card {
  background: var(--primary); color: var(--white); padding: 40px;
  border-radius: var(--radius-lg); height: fit-content;
}
.contact-info-card h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 24px; }
.contact-detail { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.contact-detail-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.contact-detail h4 { font-family: 'Lato', sans-serif; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-light); margin-bottom: 2px; }
.contact-detail p { font-size: 0.95rem; color: rgba(255,255,255,0.8); }

.map-placeholder {
  width: 100%; height: 200px; border-radius: var(--radius);
  background: rgba(255,255,255,0.1); margin-top: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: rgba(255,255,255,0.5);
}

/* ---- PAGE HERO (interior pages) ---- */
.page-hero {
  padding: 140px 0 60px; text-align: center;
  background: var(--dark); position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: var(--cream);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}
.page-hero h1 { color: var(--cream); font-size: 2.8rem; margin-bottom: 12px; }
.page-hero p { color: var(--accent-light); font-size: 1.1rem; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark); padding: 60px 0 30px; color: rgba(253,246,236,0.6);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 40px;
}
.footer h3 { font-family: 'Playfair Display', serif; color: var(--cream); font-size: 1.3rem; margin-bottom: 12px; }
.footer h3 span { color: var(--accent); font-style: italic; }
.footer p { font-size: 0.9rem; line-height: 1.6; }
.footer h4 {
  font-family: 'Lato', sans-serif; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-light); margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(253,246,236,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center; padding-top: 30px;
  border-top: 1px solid rgba(253,246,236,0.1); font-size: 0.85rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2.2rem; }
  .hero-content { padding: 100px 24px 60px; }
  section { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }
  .intro-grid, .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .drinks-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .info-bar { grid-template-columns: 1fr; gap: 24px; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .intro-highlight { flex-direction: column; gap: 20px; }
}
