/* ─── Core variables ─────────────────────────── */
:root {
  --yellow-500: #f5be00;
  --yellow-600: #d9a700;
  --grey-900: #1a1a1a;
  --grey-100: #f5f5f5;
  --font-head: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

/* ─── Reset & base ───────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--grey-900);
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  margin: 0 0 .4em;
}

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

.container {
  width: min(90%, 1200px);
  margin: 0 auto;
}

/* ─── Header / Nav ───────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
  border-bottom: 1px solid #e5e5e5;
  transition: height .3s ease, box-shadow .3s ease;
}

.nav-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  height: 60px;
  gap: 1rem;
  padding-inline: .75rem;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Right-justify the language switch */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: flex-end;
}

.nav-links .lang-switch {
  margin-left: auto;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 2px;
  background: var(--yellow-500);
  transform: scaleX(0);
  transition: transform .25s ease;
  transform-origin: left;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: .6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: .875rem;
  cursor: pointer;
}

.btn.primary {
  background: var(--yellow-500);
  color: #000;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn.primary:hover {
  background: var(--yellow-600);
}

.btn.primary:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.15);
}

.btn.outline {
  border: none;
  color: var(--yellow-500);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ─── Language switch ───────────────────────── */
.lang-switch {
  position: relative;
  width: 60px;
  height: 24px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #eaeaea;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-size: .65rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .3s ease;
}

.lang-switch .thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .25s ease;
}

.lang-switch.is-fr .thumb {
  transform: translateX(36px);
}

.lang-switch.is-fr {
  background: var(--yellow-500);
}

/* ─── Hero ───────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  min-height: 80vh;
  background: url('../assets/img/hero.jpg') center/cover no-repeat, var(--grey-100);
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 3rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ─── About ──────────────────────────────────── */
.about {
  padding: 4rem 1rem;
  background: #fff;
  text-align: center;
}

.about p {
  max-width: 650px;
  margin-inline: auto;
}

/* ─── Food Cards ─────────────────────────────── */
.food {
  padding: 4rem 1rem;
  background: var(--grey-100);
  text-align: center;
}

.cards {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
  color: inherit;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.card-image {
  height: 140px;
  background: #ddd center/cover no-repeat;
}

.card-image.burgers {
  background-image: url('../assets/img/burgers.jpg');
}

.card-image.soups {
  background-image: url('../assets/img/soups.jpg');
}

.card-image.salads {
  background-image: url('../assets/img/salads.jpg');
}

.card h3 {
  margin: 1rem 0 .5rem;
}

.card p {
  padding: 0 1rem 1.25rem;
  font-size: .9rem;
}

/* ─── FAQ ───────────────────────────────────── */
.faq {
  padding: 4rem 1rem;
}

.faq details {
  max-width: 650px;
  margin: .75rem auto;
  padding: 1rem 1.25rem;
  background: var(--grey-100);
  border-radius: 4px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: .75rem 0 0;
}

/* ─── CTA Banner ─────────────────────────────── */
.cta-banner {
  padding: 3rem 1rem;
  background: var(--yellow-500);
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

/* ─── Footer ─────────────────────────────────── */
.site-footer {
  background: #141414;
  color: #e0e0e0;
  padding: 2.5rem 1rem;
  font-size: .875rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
}

.site-footer a {
  color: var(--yellow-500);
}

/* ─── Hide mobile close button ───────────────── */
#overlay-close {
  display: none;
}

/* ─── Responsive & Slide-In Nav ───────────────── */
@media (max-width: 768px) {
  .nav-wrapper {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 280px;
    height: 100%;
    background: #fff;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    align-items: flex-end;
  }

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

  .nav-links .lang-switch {
    margin-bottom: 2rem;
    align-self: center;
  }

  .nav-links a {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--grey-900);
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    position: relative;
    z-index: 1100;
    justify-self: end;
  }

  .nav-cta {
    display: none;
  }
}
