/* ============================================
   Le Patio — Beaugency
   ============================================ */

:root {
  --navy: #262b63;
  --navy-dark: #171a42;
  --navy-soft: #3b4189;
  --cream: #f6f0e4;
  --cream-soft: #efe6d4;
  --charcoal: #14120f;
  --charcoal-soft: #1e1b16;
  --gold: #c9a15a;
  --gold-light: #e0c17f;
  --wine: #7c2b3a;
  --ink: #201e1a;

  --font-display: 'Cormorant Garamond', serif;
  --font-script: 'Marck Script', cursive;
  --font-body: 'Jost', sans-serif;

  --container-w: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 10px;
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}

.script-heading {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 3rem;
  color: var(--navy);
  line-height: 1;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--gold);
  color: var(--cream);
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-radius: 2px;
  transition: background 0.35s ease, color 0.35s ease;
}
.btn:hover { background: var(--gold); color: var(--charcoal); }

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(20, 18, 15, 0.94);
  padding: 12px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.03em;
}
.main-nav {
  display: flex;
  gap: 38px;
}
.main-nav a {
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  background-size: cover;
  background-position: center 65%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,13,10,0.55) 0%, rgba(15,13,10,0.45) 45%, rgba(15,13,10,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 0 20px;
}
.hero-content .eyebrow { text-align: center; }
.hero-content h1 {
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  color: var(--cream);
  letter-spacing: 0.02em;
}
.hero-address {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--cream-soft);
  margin: 6px 0 32px;
}
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid var(--cream);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 24px; }
  100% { opacity: 0; top: 24px; }
}

/* ============ INTRO ============ */
.intro {
  background: var(--cream);
  padding: 110px 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}
.intro-text h2 {
  font-size: clamp(2.1rem, 3.4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 22px;
}
.intro-text p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #3b3730;
  margin: 0 0 18px;
}

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  margin: 8px 0 30px;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--navy);
}
.amenity svg {
  width: 21px;
  height: 21px;
  color: var(--gold);
  flex-shrink: 0;
}

.payment-methods { margin-bottom: 4px; }
.payment-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  opacity: 0.65;
  margin-bottom: 12px;
}
.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.payment-badge {
  font-size: 0.74rem;
  padding: 6px 14px;
  border: 1px solid rgba(38,43,99,0.25);
  border-radius: 20px;
  color: var(--navy);
  background: rgba(38,43,99,0.05);
}

.intro-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(20,18,15,0.5);
}
.intro-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201,161,90,0.5);
  outline: 10px solid var(--cream);
  outline-offset: -10px;
  pointer-events: none;
}
.intro-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

/* ============ PHOTO BAND ============ */
.photo-band {
  position: relative;
  height: 46vh;
  min-height: 280px;
  background: var(--charcoal);
  overflow: hidden;
}
.photo-band-track {
  display: flex;
  width: 100%;
  height: 100%;
}
.photo-band-item {
  flex: 1;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) brightness(0.72);
  transition: flex 0.6s ease, filter 0.6s ease;
}
.photo-band-item:hover {
  flex: 4;
  filter: saturate(1.05) brightness(0.9);
}
.photo-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,13,10,0.28);
  pointer-events: none;
  z-index: 1;
}
.photo-band-caption {
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--cream);
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
  pointer-events: none;
  letter-spacing: 0.02em;
}

/* ============ MENU ============ */
.menu-section {
  background: var(--charcoal);
  background-image: radial-gradient(circle at 20% 10%, rgba(38,43,99,0.35), transparent 45%);
  padding: 110px 0 100px;
  color: var(--cream);
}
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.section-heading .eyebrow { text-align: center; }
.menu-section .script-heading { color: var(--gold-light); font-size: 3.4rem; }

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 54px;
}
.menu-tab {
  font-family: var(--font-body);
  background: transparent;
  border: 1px solid rgba(246,240,228,0.25);
  color: var(--cream-soft);
  padding: 10px 20px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.menu-tab:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}
.menu-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
  font-weight: 500;
}

.menu-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0 70px;
  animation: fadeIn 0.5s ease;
}
.menu-panel.active { display: grid; }
@media (max-width: 780px) {
  .menu-panel { grid-template-columns: 1fr; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-category {
  margin-bottom: 44px;
  break-inside: avoid;
}
.menu-category h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(201,161,90,0.35);
  padding-bottom: 10px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.menu-category h3 .unit {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--cream-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 8px;
  vertical-align: middle;
}
.category-note {
  font-size: 0.84rem;
  color: var(--cream-soft);
  line-height: 1.7;
  margin: -6px 0 18px;
  font-style: italic;
}
.category-note--highlight {
  font-style: normal;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--gold-light);
  background: rgba(201,161,90,0.1);
  border: 1px solid rgba(201,161,90,0.35);
  border-radius: 4px;
  padding: 12px 18px;
  margin: -2px 0 26px;
  display: inline-block;
}

/* Grouped categories sharing one grid column */
.menu-col { min-width: 0; }

/* Panels with a single category (e.g. Pizzas): let it span the full width */
.menu-category--full { grid-column: 1 / -1; }

.menu-photo {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201,161,90,0.35);
  margin-bottom: 44px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
}
.menu-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) brightness(0.92);
}

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(246,240,228,0.14);
}
.menu-list li:last-child { border-bottom: none; }

.menu-list--cols {
  column-count: 2;
  column-gap: 60px;
}
.menu-list--cols li {
  break-inside: avoid;
}
@media (max-width: 700px) {
  .menu-list--cols { column-count: 1; }
}

.item-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.item-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--cream);
  flex: 1;
}
.item-name .unit {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 6px;
}
.item-name em {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--cream-soft);
}
.item-row::after {
  content: '';
  flex: 0 0 0;
}
.item-price {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--gold-light);
  font-size: 0.92rem;
  white-space: nowrap;
}
.item-desc {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--cream-soft);
  line-height: 1.6;
  max-width: 46em;
}

/* ============ GALLERY ============ */
.gallery {
  background: var(--charcoal);
  padding: 110px 0;
}
.gallery .script-heading { color: var(--gold-light); text-align: center; }
.gallery .section-heading { margin-bottom: 50px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(201,161,90,0.3);
  padding: 0;
  background: none;
  cursor: pointer;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) brightness(0.86);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1);
}
.gallery-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,9,7,0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(246,240,228,0.35);
  background: none;
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 700px) {
  .gallery { padding: 80px 0; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.3rem; }
  .lightbox-close { width: 38px; height: 38px; top: 14px; right: 14px; font-size: 1.3rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ============ CONTACT ============ */
.contact {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 130px 0;
}
.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,26,66,0.92), rgba(20,18,15,0.94));
}
.contact-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.contact .script-heading { color: var(--gold-light); margin-bottom: 50px; }
.contact .eyebrow { text-align: center; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
  max-width: 980px;
  margin: 0 auto;
}
.contact-block { margin-bottom: 28px; }
.contact-block h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 8px;
}
.contact-block p {
  font-size: 1.2rem;
  color: var(--cream);
  line-height: 1.6;
  margin: 0;
}
.contact-block a:hover { color: var(--gold-light); }

.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}
.social-links a {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(246,240,228,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.social-links svg { width: 20px; height: 20px; }
.social-links a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
  transform: translateY(-3px);
}

.social-links a.google-rating {
  width: auto;
  border-radius: 30px;
  padding: 0 18px;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
}
.google-rating svg { width: 16px; height: 16px; color: var(--gold-light); }
.google-rating-count {
  color: var(--cream-soft);
  font-weight: 400;
}
.social-links a.google-rating:hover .google-rating-count {
  color: var(--charcoal);
}

.contact-map {
  border-radius: 4px;
  overflow: hidden;
  outline: 1px solid rgba(201,161,90,0.35);
  outline-offset: 8px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.contact-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-dark);
  color: var(--cream-soft);
  text-align: center;
  padding: 44px 0;
}
.footer-logo {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--gold-light);
  margin: 0 0 10px;
}
.site-footer p {
  margin: 4px 0;
  font-size: 0.85rem;
}
.footer-copy {
  margin-top: 14px;
  color: rgba(246,240,228,0.5);
  font-size: 0.75rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-image img { height: 380px; }
  .contact-grid { grid-template-columns: 1fr; text-align: center; }
  .contact-info { display: flex; flex-direction: column; align-items: center; }
  .social-links { justify-content: center; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 74%;
    max-width: 320px;
    background: rgba(20,18,15,0.98);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }

  .hero-content h1 { font-size: 3.4rem; }
  .intro, .menu-section, .contact { padding: 80px 0; }

  /* Photo band: equal side-by-side strips don't read well at this width,
     so mobile gets a full-bleed crossfade slideshow instead. Desktop keeps
     the hover-zoom strips untouched. */
  .photo-band { height: 42vh; }
  .photo-band-track { position: relative; }
  .photo-band-item {
    position: absolute;
    inset: 0;
    flex: none;
    width: 100%;
    opacity: 0;
    animation: photoBandFade 35s linear infinite;
    animation-delay: calc(var(--i, 0) * -3.5s);
  }
  .photo-band-item:hover {
    flex: none;
    filter: saturate(0.9) brightness(0.72);
  }
}

@keyframes photoBandFade {
  0%, 100% { opacity: 0; }
  1.7% { opacity: 1; }
  8.3% { opacity: 1; }
  10% { opacity: 0; }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .photo-band-item { animation: none; opacity: 0; }
  .photo-band-item:first-child { opacity: 1; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .menu-tabs { gap: 8px; }
  .menu-tab { padding: 9px 14px; font-size: 0.72rem; }
  .contact-map iframe { height: 280px; }
}
