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

:root {
  --green: #1B3D2F;
  --green-soft: #234d3b;
  --cream: #F5F0E6;
  --white: #FFFFFF;
  --dark: #1a1a1a;
  --danger: #c0392b;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Lato', sans-serif; color: var(--dark); background: var(--cream); line-height: 1.6; }
h1, h2 { font-family: 'Playfair Display', serif; letter-spacing: 0.2px; }
h3, .menu-item h3 { font-family: 'Cormorant Garamond', serif; }
.container { width: min(1200px, 92%); margin: 0 auto; }
.center { text-align: center; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--green); color: var(--cream); border-bottom: 1px solid rgba(245, 240, 230, 0.25);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.transparent { background: rgba(27, 61, 47, 0.4); }
.site-header.scrolled { background: rgba(27, 61, 47, 0.98); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand img { height: 52px; width: auto; display: block; }
.main-nav a { color: var(--cream); text-decoration: none; margin-left: 1rem; font-weight: 600; }
.main-nav a.active, .main-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.social-links { display: flex; gap: 0.7rem; align-items: center; }
.social-links a { color: inherit; display: inline-flex; }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6rem 0 2rem; }
.hero-home { background: url('../images/hero.jpg') center/cover no-repeat; color: var(--cream); }
.hero-overlay { position: absolute; inset: 0; background: rgba(27, 61, 47, 0.62); }
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero-logo { width: min(420px, 70vw); margin-bottom: 1rem; }
.hero-subtitle { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; margin: 0.25rem 0; }
.hero-tagline { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.2rem; max-width: 760px; margin: 0 auto 1.8rem; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block; background: var(--green); color: var(--cream); text-decoration: none;
  border: 1px solid var(--green); border-radius: var(--radius); padding: 0.8rem 1.3rem; transition: 0.3s ease;
}
.btn:hover { background: var(--cream); color: var(--green); }
.btn-outline { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--green); }

.section { padding: 5rem 0; }
.section.light { background: var(--cream); color: var(--green); }
.section.dark { background: var(--green); color: var(--cream); }
.with-divider { border-top: 1px solid rgba(27, 61, 47, 0.25); }
.section.dark.with-divider { border-top-color: rgba(245, 240, 230, 0.35); }
.section-intro { margin-top: -0.4rem; margin-bottom: 2rem; }

.story-grid { display: grid; gap: 2rem; grid-template-columns: 1.3fr 1fr; align-items: start; }
.story-image img { width: 100%; border-radius: var(--radius); object-fit: cover; min-height: 520px; }
.quote { font-style: italic; opacity: 0.85; margin-top: 1.2rem; }
.hours-box { margin-top: 1.4rem; border: 1px solid rgba(27, 61, 47, 0.3); border-radius: var(--radius); padding: 1rem; background: rgba(255, 255, 255, 0.45); }
.hours-box ul { list-style: none; padding: 0; margin: 0; }
.hours-box li { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(27, 61, 47, 0.2); padding: 0.35rem 0; gap: 0.8rem; }
.hours-box li:last-child { border-bottom: 0; }
.closed-day { color: var(--danger); font-weight: 700; }

.specialties-grid, .preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.specialty-card { background: var(--green-soft); border-radius: var(--radius); padding: 1.4rem; }
.specialty-card svg { width: 46px; height: 46px; fill: var(--cream); }
.specialty-card h3 { margin: 0.4rem 0; font-size: 1.6rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid figure { margin: 0; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-grid figcaption {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: rgba(27, 61, 47, 0.74); color: var(--cream); font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-style: italic;
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; }

.preview-card { background: var(--cream); color: var(--green); border-radius: var(--radius); padding: 1.2rem; }
.preview-card ul { margin: 0.6rem 0 0; padding-left: 1.1rem; font-family: 'Cormorant Garamond', serif; font-style: italic; }
.preview-card li { border-bottom: 1px solid rgba(27, 61, 47, 0.2); padding: 0.2rem 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.contact-list svg { width: 20px; height: 20px; fill: var(--green); flex-shrink: 0; }
.contact-list a { color: inherit; text-decoration: underline; }
iframe { width: 100%; height: 350px; border: 0; border-radius: var(--radius); }

.site-footer { background: var(--green); color: var(--cream); border-top: 1px solid rgba(245,240,230,0.35); }
.footer-content { padding: 2rem 0; text-align: center; }
.footer-content img { width: 84px; }
.footer-content a { color: var(--cream); text-decoration: none; }
.footer-content .social-links { justify-content: center; }
.footer-social-text { margin: 0.4rem 0 0.2rem; font-weight: 600; }
.footer-social-text { display: flex; justify-content: center; align-items: center; gap: 0.5rem; }
.footer-social-text a { text-decoration: underline; text-underline-offset: 3px; }

.hero-menu { min-height: 42vh; background: var(--green); color: var(--cream); }
.hero-menu-content { text-align: center; padding-top: 6rem; }
.hero-menu h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 0.3rem; }
.hero-menu p { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; margin: 0.2rem 0; }

.tabbar-wrap { position: sticky; top: 76px; z-index: 900; background: var(--green); border-top: 1px solid rgba(245, 240, 230, 0.2); border-bottom: 1px solid rgba(245, 240, 230, 0.2); }
.tabbar { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.7rem 0; }
.tab-link { white-space: nowrap; text-decoration: none; color: var(--cream); border: 1px solid var(--cream); border-radius: 999px; padding: 0.5rem 0.95rem; }
.tab-link.active, .tab-link:hover { background: var(--cream); color: var(--green); }
.mobile-home-shortcut { display: none; }

.icon-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; position: sticky; top: 134px; padding: 0.6rem; background: rgba(245, 240, 230, 0.96); border: 1px solid rgba(27, 61, 47, 0.2); border-radius: var(--radius); z-index: 100; }
.icon { width: 16px; height: 16px; fill: currentColor; vertical-align: middle; }
.icon-leaf { color: #2e7d32; }
.icon-hop { color: #8c6a15; }
.inline-icon { margin-left: 0.25rem; width: 13px; height: 13px; }
.menu-note { font-style: italic; border-left: 2px solid var(--green); padding-left: 0.8rem; }

.menu-grid { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.8rem; }
.menu-item {
  border-bottom: 1px solid rgba(27, 61, 47, 0.2);
  padding-bottom: 0.55rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.35rem 0.8rem;
}
.section.dark .menu-item { border-bottom-color: rgba(245, 240, 230, 0.25); }
.menu-item h3 { font-size: 1.45rem; margin: 0; display: block; line-height: 1.2; }
.menu-item .price { margin: 0; font-weight: 700; white-space: nowrap; }
.menu-item .desc { grid-column: 1 / -1; margin: 0.05rem 0 0; font-style: italic; opacity: 0.9; }
.card-dark { background: var(--green-soft); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.card-light { background: rgba(255, 255, 255, 0.48); border: 1px solid rgba(27, 61, 47, 0.25); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.children-menu { background: var(--cream); color: var(--green); border-radius: var(--radius); padding: 1rem; }
.service-banner, .allergen-banner { background: var(--green); color: var(--cream); text-align: center; padding: 0.85rem; margin-bottom: 1.2rem; }

.accordion-item { border: 1px solid rgba(245,240,230,0.3); border-radius: var(--radius); margin-bottom: 0.7rem; overflow: hidden; }
.accordion-trigger { width: 100%; background: var(--green-soft); color: var(--cream); border: 0; display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1rem; font: inherit; cursor: pointer; }
.accordion-trigger svg { width: 18px; height: 18px; fill: currentColor; transition: transform 0.3s ease; }
.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: rgba(255,255,255,0.04); }
.accordion-content > * { padding: 0.9rem 1rem; margin: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 420px; }
th, td { border: 1px solid rgba(245,240,230,0.3); padding: 0.5rem; text-align: left; }

.drinks-section .menu-note { border-left-color: currentColor; }
.drinks-quick-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.2rem;
}
.drinks-quick-nav a {
  text-decoration: none;
  color: var(--green);
  border: 1px solid rgba(27, 61, 47, 0.5);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.92rem;
}
.drinks-quick-nav a:hover { background: var(--green); color: var(--cream); }
.drinks-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.drink-card {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(27, 61, 47, 0.2);
  border-radius: var(--radius);
  padding: 1rem;
}
.drink-card.full { grid-column: 1 / -1; }
.drink-card h3 { margin: 0 0 0.7rem; font-size: 1.5rem; }
.drink-list { list-style: none; margin: 0; padding: 0; }
.drink-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  border-bottom: 1px dashed rgba(27, 61, 47, 0.25);
  padding: 0.45rem 0;
}
.drink-list li:last-child { border-bottom: 0; }
.drink-list strong { white-space: nowrap; }

.section.dark.drinks-section .drinks-quick-nav a {
  color: var(--cream);
  border-color: rgba(245, 240, 230, 0.6);
}
.section.dark.drinks-section .drinks-quick-nav a:hover { background: var(--cream); color: var(--green); }
.section.dark.drinks-section .drink-card {
  background: var(--green-soft);
  border-color: rgba(245, 240, 230, 0.2);
}
.section.dark.drinks-section .drink-list li { border-bottom-color: rgba(245, 240, 230, 0.25); }

.ice-header { margin-bottom: 1rem; }
.ice-header p { margin: 0.2rem 0 0; font-style: italic; opacity: 0.9; }
.ice-card {
  background: var(--green-soft);
  color: var(--cream);
  border: 1px solid rgba(245,240,230,0.25);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.9rem 0;
}
.ice-card h3 { margin: 0 0 0.65rem; font-size: 1.55rem; }
.ice-card h4 {
  margin: 0 0 0.45rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
}
.ice-card .menu-note {
  border-left-color: var(--cream);
  margin: 0 0 0.8rem;
}
.ice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ice-grid > div { border: 1px solid rgba(245,240,230,0.28); border-radius: var(--radius); padding: 0.85rem; }
.ice-flavors {
  margin: 0;
  padding-left: 1rem;
  columns: 1;
}
.ice-flavors li { margin: 0.18rem 0; }
.ice-card .drink-list li { border-bottom-color: rgba(245,240,230,0.25); }
.supplements {
  border: 1px solid rgba(245,240,230,0.35);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255,255,255,0.06);
}

@media (max-width: 1199px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-grid .preview-card:last-child { grid-column: 1 / -1; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 767px) {
  .site-header { display: none; }
  .hero { padding-top: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .story-grid, .contact-grid, .specialties-grid, .gallery-grid, .preview-grid, .menu-grid, .ice-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.6rem;
  }
  .gallery-grid figure {
    width: 68vw;
    min-width: 220px;
    max-width: 280px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .story-image { order: -1; }
  .tabbar-wrap { top: 0; }
  .tabbar-wrap .container {
    width: 100%;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
  .tabbar {
    padding: 0.55rem 0;
    scroll-padding-inline: 0.7rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .tabbar::after {
    content: "";
    flex: 0 0 0.7rem;
  }
  .tab-link { padding: 0.42rem 0.72rem; font-size: 0.9rem; }
  .icon-legend {
    position: static;
    margin-top: 0.2rem;
  }
  .menu-item { gap: 0.3rem 0.5rem; }
  .menu-item h3 { font-size: 1.3rem; }
  .menu-item .price { font-size: 0.95rem; }
  .drinks-cards { grid-template-columns: 1fr; }
  .drinks-quick-nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.2rem; }
  .drinks-quick-nav a { white-space: nowrap; }
  .drinks-section .menu-note { margin-top: 0.5rem; }
  .drink-list li { gap: 0.6rem; }
  .drink-list strong { font-size: 0.9rem; }
  .drinks-section .table-wrap {
    overflow-x: visible;
    border: 1px solid rgba(245,240,230,0.3);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.05);
  }
  .drinks-section table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 0.82rem;
  }
  .drinks-section th,
  .drinks-section td {
    padding: 0.35rem 0.3rem;
    word-break: break-word;
  }
  .drinks-section table th:first-child,
  .drinks-section table td:first-child {
    width: 42%;
    text-align: left;
  }
  .drinks-section table th:not(:first-child),
  .drinks-section table td:not(:first-child) {
    width: 14.5%;
    text-align: center;
  }
  .drinks-section .drink-card.full {
    padding: 0.8rem;
  }
  .drinks-section .drink-card h3 {
    font-size: 1.3rem;
  }
  .ice-card { padding: 0.85rem; }
  .ice-card h3 { font-size: 1.4rem; }
  .ice-grid > div { padding: 0.75rem; }
  .ice-flavors { padding-left: 0.9rem; }
  main { padding-bottom: 4.5rem; }
  .mobile-home-shortcut {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: var(--green);
    color: var(--cream);
    text-decoration: none;
    border: 1px solid rgba(245, 240, 230, 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    font-weight: 700;
  }
  .mobile-home-shortcut svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
  }
}
