/* ============================================
   GAMBRINUS — Design System
   Microbrasserie Trois-Rivières depuis 1996
   ============================================ */

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

/* --- Variables --- */
:root {
  --amber:       #C8872C;
  --amber-light: #E0A84A;
  --amber-dark:  #9A6318;
  --bg-dark:     #130E06;
  --bg-mid:      #1E1508;
  --bg-card:     #261B0A;
  --cream:       #F0E6D0;
  --cream-muted: #C4AE88;
  --text:        #EBE0C8;
  --text-muted:  #9A8A6A;
  --border:      rgba(200, 135, 44, 0.18);
  --radius:      6px;
  --nav-h:       72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-muted); }
.lead { font-size: 1.15rem; color: var(--cream-muted); line-height: 1.8; }

/* --- Layout --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* --- Divider --- */
.divider {
  width: 60px; height: 3px;
  background: var(--amber);
  margin: 16px 0 28px;
}
.divider-center { margin: 16px auto 28px; }

/* --- Amber text --- */
.amber { color: var(--amber); }
.amber-light { color: var(--amber-light); }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(19, 14, 6, 0.92);
  backdrop-filter: blur(12px);
  z-index: -1;
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--amber); }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cream-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--amber-light); }
.nav-cta {
  background: var(--amber);
  color: var(--bg-dark) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--amber-light) !important; }
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--cream);
  transition: 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('images/cheers.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.38) saturate(0.9);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(19,14,6,0.85) 40%, rgba(19,14,6,0.3));
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  padding-top: var(--nav-h);
}
.hero-badge {
  display: inline-block;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-title {
  color: var(--cream);
  max-width: 680px;
  margin-bottom: 8px;
}
.hero-title em {
  font-style: italic;
  color: var(--amber-light);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--cream-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--amber);
  color: var(--bg-dark);
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(240, 230, 208, 0.35);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber-light); transform: translateY(-1px); }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--amber), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
.hero-stats {
  display: flex; gap: 48px; margin-top: 60px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--amber-light);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   INTRO STRIP
   ============================================ */
.strip {
  background: var(--amber);
  padding: 18px 0;
  overflow: hidden;
}
.strip-inner {
  display: flex; gap: 64px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}
.strip span {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg-dark);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.section-title { color: var(--cream); }
.text-center { text-align: center; }

/* ============================================
   FEATURED BEERS
   ============================================ */
.beers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.beer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.beer-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--amber), var(--amber-light));
  opacity: 0;
  transition: opacity 0.3s;
}
.beer-card:hover { border-color: rgba(200, 135, 44, 0.4); transform: translateY(-3px); }
.beer-card:hover::before { opacity: 1; }
.beer-meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px;
}
.beer-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(200, 135, 44, 0.15);
  color: var(--amber);
  border: 1px solid rgba(200, 135, 44, 0.3);
}
.beer-badge.seasonal {
  background: rgba(91, 140, 80, 0.15);
  color: #7EBF6A;
  border-color: rgba(126, 191, 106, 0.3);
}
.beer-abv {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.beer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 6px;
}
.beer-style {
  font-size: 0.8rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 12px;
}
.beer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.beer-ibu {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.beer-ibu strong { color: var(--cream-muted); }

/* ============================================
   SPLIT SECTIONS
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-img {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.split-img img {
  width: 100%; height: 480px;
  object-fit: cover;
}
.split-img::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  pointer-events: none;
}
.split-content { padding: 16px 0; }

/* ============================================
   FOOD / MENU PREVIEW
   ============================================ */
.menu-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.menu-cat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.menu-cat h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.menu-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(200, 135, 44, 0.07);
}
.menu-item:last-child { border-bottom: none; }
.menu-item-name { font-size: 0.9rem; color: var(--cream-muted); }
.menu-item-price { font-size: 0.85rem; font-weight: 600; color: var(--amber); white-space: nowrap; margin-left: 8px; }

/* ============================================
   CRUCHONS SECTION
   ============================================ */
.cruchon-section {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================
   HISTORY SECTION
   ============================================ */
.history-bg {
  background: var(--bg-mid);
}
.timeline {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 48px;
  border-left: 2px solid var(--amber-dark);
  padding-left: 32px;
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item::before {
  content: '';
  position: absolute; left: -40px; top: 6px;
  width: 14px; height: 14px;
  background: var(--amber);
  border-radius: 50%;
  border: 3px solid var(--bg-mid);
}
.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 4px;
}
.timeline-desc { font-size: 0.95rem; color: var(--text-muted); }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}
.contact-value {
  font-size: 1.05rem;
  color: var(--cream);
  font-weight: 500;
  line-height: 1.6;
}
.contact-detail { margin-bottom: 24px; }
.contact-detail:last-child { margin-bottom: 0; }
.hours-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; }
.hours-day { font-size: 0.9rem; color: var(--cream-muted); }
.hours-time { font-size: 0.9rem; color: var(--text-muted); }
.map-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: none; filter: grayscale(0.5) contrast(0.9) brightness(0.8); }
.social-links { display: flex; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--cream-muted);
  transition: all 0.2s;
}
.social-link:hover { border-color: var(--amber); color: var(--amber-light); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero .section-label { justify-content: center; }

/* ============================================
   BEER CARD WITH IMAGE
   ============================================ */
.beer-card.has-img {
  padding: 0;
  overflow: hidden;
}
.beer-card-img {
  width: 100%; height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.beer-card:hover .beer-card-img { transform: scale(1.04); }
.beer-card-body { padding: 24px 28px 28px; }
.beer-card.has-img .beer-meta { margin-top: 0; }

/* ============================================
   BEERS PAGE
   ============================================ */
.beers-filter {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--cream-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--bg-dark);
}

/* ============================================
   MENU PAGE
   ============================================ */
.menu-section { margin-bottom: 64px; }
.menu-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--amber);
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.menu-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.menu-full-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(200, 135, 44, 0.08);
}
.menu-full-item-info { flex: 1; }
.menu-full-name { font-size: 0.95rem; color: var(--cream); font-weight: 500; }
.menu-full-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.menu-full-price { font-size: 0.95rem; font-weight: 600; color: var(--amber); white-space: nowrap; margin-left: 16px; }

/* ============================================
   COCKTAILS PAGE
   ============================================ */
.cocktail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s;
}
.cocktail-card:hover { border-color: rgba(200, 135, 44, 0.4); }
.cocktail-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 6px;
}
.cocktail-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 10px;
}
.cocktail-recipe { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--cream); margin-bottom: 12px; }
.footer-tagline { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--amber-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }
.footer-address { font-size: 0.82rem; color: var(--text-muted); text-align: right; }

/* ============================================
   UTILITY / SCHEMA
   ============================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse { direction: ltr; }
  .split-img img { height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    height: calc(100vh - var(--nav-h));
    background: #130E06;
    padding: 32px 24px;
    gap: 24px;
    z-index: 1001;
    overflow-y: auto;
  }
  .nav-links.open a { font-size: 1.2rem; }
  .hero-content { text-align: center; }
  .hero-badge { display: block; text-align: center; }
  .hero-title { max-width: 100%; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; flex-direction: column; align-items: center; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .divider { margin-left: auto; margin-right: auto; }
  .section-label { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-address { text-align: left; }
  .btn { justify-content: center; width: 100%; max-width: 280px; }
  .hero-scroll { display: none; }
}
