/* ===========================
   Taverne Le Galion — Design System
   =========================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Open+Sans:wght@300;400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #f5f1e8;
  --color-bg-alt: #ebe5d8;
  --color-text: #2c2417;
  --color-text-light: #6b5f4e;
  --color-accent: #d35400;
  --color-accent-dark: #b04600;
  --color-accent-light: #e67e22;
  --color-cream: #faf8f3;
  --color-border: #d4cab7;
  --color-border-light: #e5dfd3;

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Open Sans', 'Helvetica Neue', sans-serif;

  --container-max: 1140px;
  --container-narrow: 800px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
  --transition-slow: 0.5s ease;

  --shadow-sm: 0 2px 8px rgba(44, 36, 23, 0.06);
  --shadow-md: 0 4px 20px rgba(44, 36, 23, 0.1);
  --shadow-lg: 0 8px 40px rgba(44, 36, 23, 0.14);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* subtle grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-dark);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 48px;
  font-weight: 300;
}

.separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px auto;
  width: 200px;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.separator-icon {
  color: var(--color-accent);
  font-size: 0.85rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 84, 0, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-cream);
  border-color: var(--color-cream);
}

.btn--outline-light:hover {
  background: var(--color-cream);
  color: var(--color-text);
  transform: translateY(-2px);
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(245, 241, 232, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.navbar-brand:hover {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-color: var(--color-bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(245, 241, 232, 0.4) 70%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
}

.hero-ornament {
  color: var(--color-accent);
  font-size: 2rem;
  margin-bottom: 24px;
  opacity: 0.8;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero-address {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2s infinite;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text-light);
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===========================
   ABOUT
   =========================== */
.about {
  background: var(--color-cream);
}

.about-text {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text-light);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.about-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.about-feature:hover {
  background: rgba(211, 84, 0, 0.04);
  transform: translateY(-4px);
}

.about-feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(211, 84, 0, 0.08);
  color: var(--color-accent);
  font-size: 1.3rem;
  transition: all var(--transition-base);
}

.about-feature:hover .about-feature-icon {
  background: var(--color-accent);
  color: #fff;
}

.about-feature-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

/* ===========================
   SPECIALS / MENU HIGHLIGHTS
   =========================== */
.specials {
  background: var(--color-bg);
}

.specials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.special-card {
  background: var(--color-cream);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
  overflow: hidden;
}

.special-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 0 0 4px 4px;
  transition: width var(--transition-base);
}

.special-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.special-card:hover::before {
  width: 100px;
}

.special-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.special-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.special-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.special-card .card-separator {
  width: 40px;
  height: 1px;
  background: var(--color-border);
  margin: 16px auto;
}

/* ===========================
   AMBIANCE / GALLERY
   =========================== */
.ambiance {
  background: var(--color-bg-alt);
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 36, 23, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-base);
}

.gallery-item:hover .gallery-item-label {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   INFO
   =========================== */
.info {
  background: var(--color-cream);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.info-block {
  padding: 32px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.info-block h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-block h3 svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--color-border-light);
  font-size: 0.92rem;
}

.hours-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hours-day {
  font-weight: 500;
}

.hours-time {
  color: var(--color-text-light);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}

.contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--color-text);
}

.contact-item a:hover {
  color: var(--color-accent);
}

/* ===========================
   CTA
   =========================== */
.cta-section {
  background: var(--color-text);
  padding: 72px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-cream);
  font-size: 2rem;
  margin-bottom: 8px;
}

.cta-section p {
  color: rgba(250, 248, 243, 0.6);
  margin-bottom: 32px;
  font-size: 1rem;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: #1a150e;
  color: rgba(250, 248, 243, 0.5);
  padding: 40px 0;
  text-align: center;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-cream);
  letter-spacing: 0.04em;
}

.footer-address {
  font-size: 0.82rem;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(250, 248, 243, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 248, 243, 0.5);
  transition: all var(--transition-base);
}

.footer-socials a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-copy {
  font-size: 0.78rem;
  margin-top: 8px;
}

/* ===========================
   MENU PAGE
   =========================== */
.menu-page {
  padding-top: 100px;
  min-height: 100vh;
}

.menu-page .section-title {
  margin-bottom: 8px;
}

/* Menu category filter nav */
.menu-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  padding: 0 8px;
}

.menu-nav-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: transparent;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.menu-nav-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.menu-nav-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Menu sections */
.menu-section {
  margin-bottom: 48px;
  padding: 32px;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-section.hidden {
  display: none;
}

.menu-section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.menu-section-separator {
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto 24px;
  border-radius: 2px;
}

/* Menu items */
.menu-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-border-light);
}

.menu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.menu-item:first-child {
  padding-top: 0;
}

.menu-item-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.menu-item-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  flex-shrink: 0;
}

.menu-item-dots {
  flex: 1;
  border-bottom: 1px dotted var(--color-border);
  min-width: 20px;
  margin-bottom: 4px;
}

.menu-item-price {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
  white-space: nowrap;
}

.menu-item-desc {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: 4px;
  line-height: 1.6;
  font-style: italic;
}

/* Responsive menu */
@media (max-width: 600px) {
  .menu-section {
    padding: 20px 16px;
    margin-bottom: 24px;
  }

  .menu-section-title {
    font-size: 1.2rem;
  }

  .menu-item-name {
    font-size: 0.9rem;
  }

  .menu-item-price {
    font-size: 0.9rem;
  }

  .menu-nav {
    gap: 6px;
    margin-bottom: 32px;
  }

  .menu-nav-btn {
    font-size: 0.72rem;
    padding: 6px 12px;
  }
}

/* ===========================
   MOBILE STICKY CTA
   =========================== */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 12px 24px;
  background: rgba(245, 241, 232, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 16px rgba(44, 36, 23, 0.1);
}

.mobile-cta .btn {
  width: 100%;
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 960px) {
  .specials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 480px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-cream);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-base);
    z-index: 1001;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1002;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .about-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 72px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .hero-buttons .btn {
    padding: 12px 24px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .special-card {
    padding: 28px 20px;
  }

  .info-block {
    padding: 24px 20px;
  }
}

/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 23, 0.4);
  z-index: 1000;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-overlay.visible {
  display: block;
  opacity: 1;
}
