/*
Theme Name: Le Vieux Puits
Theme URI: https://www.levieuxpuits.be/
Author: Le Vieux Puits
Description: Thème WordPress sur mesure pour le restaurant Le Vieux Puits à Mons.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: vieux-puits
*/

:root {
  --ink: #171713;
  --coal: #2e2e2e;
  --paper: #f3f3f3;
  --cream: #ffffff;
  --gold: #ec62a0;
  --gold-light: #ffb0d3;
  --sage: #2e2e2e;
  --line: rgba(23, 23, 19, .14);
  --shadow: 0 22px 55px rgba(23, 23, 19, .15);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 1000;
  padding: .7rem 1rem;
  background: var(--cream);
  color: var(--ink);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(0,0,0,.22);
  color: #171713;
  background: rgba(236, 98, 160, .97);
}
.site-header.is-scrolled {
  position: fixed;
  background: rgba(236, 98, 160, .99);
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.header-inner {
  width: min(1240px, calc(100% - 40px));
  min-height: 92px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand img { width: 74px; max-height: 70px; object-fit: contain; }
.brand-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.primary-nav { display: flex; align-items: center; gap: 22px; }
.primary-nav a {
  position: relative;
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
}
.primary-nav .button { color: #fff; border-color: var(--coal); background: var(--coal); }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}
.social-link img { width: 30px; height: 30px; object-fit: contain; }
.primary-nav .social-link::after { display: none; }
.primary-nav a:not(.button)::after {
  position: absolute;
  content: "";
  height: 1px;
  left: 0;
  right: 100%;
  bottom: -7px;
  background: var(--gold-light);
  transition: right .2s ease;
}
.primary-nav a:hover::after,
.primary-nav a:focus::after,
.primary-nav a[aria-current="page"]::after { right: 0; }
.menu-toggle {
  display: none;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .72rem 1.35rem;
  border: 1px solid var(--gold);
  border-radius: 0;
  color: var(--ink);
  background: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.button:hover, .button:focus { transform: translateY(-2px); background: var(--gold-light); }
.button-outline { color: #fff; background: transparent; border-color: rgba(255,255,255,.7); }
.button-outline:hover, .button-outline:focus { color: var(--ink); background: #fff; }

.hero {
  position: relative;
  min-height: min(92vh, 980px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #1b1b17 url("assets/images/hero-original.jpg") center/cover no-repeat;
}
.hero::before {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, rgba(17,17,14,.82) 0%, rgba(17,17,14,.55) 55%, rgba(17,17,14,.3) 100%);
}
.hero::after {
  position: absolute;
  content: "";
  inset: 105px 7% auto auto;
  width: clamp(250px, 33vw, 470px);
  height: clamp(300px, 48vw, 550px);
  background: url("assets/images/logo-white.png") center/contain no-repeat;
  opacity: .32;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  padding: 160px 0 100px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 1rem;
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero h1, .page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.04em;
}
.hero-lead { max-width: 650px; margin: 2rem 0 2.2rem; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-info {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(470px, 45vw);
  padding: 24px 34px;
  color: #fff;
  color: var(--ink);
  background: var(--gold);
}
.hero-info strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }

.page-hero {
  position: relative;
  min-height: 54vh;
  display: flex;
  align-items: end;
  color: #fff;
  background: #202019 url("assets/images/background-2.png") center/cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(18,18,15,.62); }
.page-hero::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: -65px;
  width: 270px;
  height: 300px;
  background: url("assets/images/logo-white.png") center/contain no-repeat;
  opacity: .14;
}
.page-hero .wrap { position: relative; z-index: 1; padding-top: 180px; padding-bottom: 70px; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); }

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-cream { background: var(--cream); }
.section-dark { color: #fff; background: var(--coal) url("assets/images/background-2.png") center/cover no-repeat; }
.section-sage {
  position: relative;
  isolation: isolate;
  color: var(--ink);
  background: var(--gold);
}
.section-apero {
  position: relative;
  isolation: isolate;
  color: var(--ink);
  background: var(--gold);
}
.section-sage::before,
.section-apero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .6;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.section-sage::before { background-image: url("assets/images/background-1.png"); }
.section-apero::before { background-image: url("assets/images/background-3.png"); }
.section-apero .eyebrow,
.section-sage .eyebrow { color: var(--ink); }
.section-apero .button,
.section-sage .button { color: #fff; border-color: var(--coal); background: var(--coal); }
.section-title {
  max-width: 820px;
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.lead { font-size: 1.2rem; }
.narrow { max-width: 790px; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }

.split {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(42px, 8vw, 110px);
  align-items: center;
}
.split-media {
  position: relative;
  min-height: 590px;
}
.split-media img { width: 88%; height: 540px; object-fit: cover; box-shadow: var(--shadow); }
.split-media img:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 240px;
  border: 10px solid var(--paper);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 60px;
  background: var(--line);
}
.feature {
  min-height: 290px;
  padding: 42px;
  background: var(--cream);
}
.feature-number { color: var(--gold); font-family: var(--serif); font-size: 2.5rem; }
.feature h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }

.image-band {
  min-height: 540px;
  display: grid;
  align-items: center;
  color: #fff;
  background: linear-gradient(90deg, rgba(20,20,17,.65), rgba(20,20,17,.12)), url("assets/images/background-2.png") center/cover fixed;
}
.image-band .narrow { padding: 90px 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.gallery figure { margin: 0; overflow: hidden; background: var(--coal); }
.gallery figure:nth-child(1),
.gallery figure:nth-child(4) { grid-column: span 7; }
.gallery figure:nth-child(2),
.gallery figure:nth-child(3) { grid-column: span 5; }
.gallery figure:nth-child(n+5) { grid-column: span 4; }
.gallery img { width: 100%; height: 320px; object-fit: cover; transition: transform .5s ease; }
.gallery figure:nth-child(1) img, .gallery figure:nth-child(4) img { height: 450px; }
.gallery figure:hover img { transform: scale(1.035); }

.menu-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 45px;
  padding-bottom: 8px;
}
.menu-tab {
  flex: 0 0 auto;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}
.menu-tab.is-active { color: var(--ink); border-color: var(--gold); background: var(--gold); }
.menu-panel[hidden] { display: none; }
.menu-category { margin: 0 0 58px; }
.menu-category h2 {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 400;
}
.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 24px;
  padding: 17px 0;
  border-bottom: 1px dotted rgba(23,23,19,.22);
}
.dish strong { font-weight: 750; }
.dish span { grid-column: 1; color: #68685e; font-size: .94rem; }
.dish b { grid-column: 2; grid-row: 1 / span 2; color: #bd3874; white-space: nowrap; }
.notice {
  padding: 22px 25px;
  border-left: 3px solid var(--gold);
  background: rgba(199,149,69,.09);
}

.menu-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 48px 0 72px;
}
.menu-image-grid a {
  display: block;
  padding: 12px;
  background: var(--coal);
  box-shadow: var(--shadow);
}
.menu-image-grid img {
  width: 100%;
  height: auto;
}
.menu-image-grid a:hover img,
.menu-image-grid a:focus img { opacity: .92; }
.menu-set-table {
  display: block;
  margin: -28px 0 72px;
  padding: 12px;
  background: var(--coal);
  box-shadow: var(--shadow);
}
.menu-set-table img { width: 100%; height: auto; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { padding: 32px; border: 1px solid var(--line); background: var(--cream); }
.info-card h3 { margin-top: 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; }
.contact-list li { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-list a { color: var(--gold-light); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 0;
  color: #fff;
  background: rgba(255,255,255,.06);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .consent-row { display: block; }
.contact-form .consent-row span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
  letter-spacing: .03em;
  text-transform: none;
}
.contact-form .consent-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--gold);
}
.form-status { grid-column: 1 / -1; padding: 12px; background: rgba(255,255,255,.1); }

.legal h2, .legal h3 { font-family: var(--serif); font-weight: 400; }
.legal h3 { margin-top: 2.4rem; font-size: 1.65rem; }

.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,.82);
  background: #151512;
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -150px;
  width: 360px;
  height: 400px;
  background: url("assets/images/logo-white.png") center/contain no-repeat;
  opacity: .06;
  pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }
.footer-main { padding: 70px 0 38px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 50px; }
.footer-brand { color: #fff; font-family: var(--serif); font-size: 2rem; }
.footer-main h2 { color: var(--gold-light); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-main p { margin: .35rem 0; }
.footer-main a { color: #fff; }
.footer-facebook {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 700;
  text-decoration: none;
}
.footer-facebook img { width: 30px; height: 30px; }
.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .82rem;
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    padding: 120px 30px 40px;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background: var(--coal);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .primary-nav.is-open { z-index: 20; opacity: 1; pointer-events: auto; }
  .primary-nav a { font-size: 1.1rem; }
  .menu-toggle { position: relative; z-index: 21; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .feature-grid, .card-grid { grid-template-columns: 1fr; }
  .feature { min-height: auto; }
  .hero-info { width: 100%; max-width: none; }
  .hero::after { opacity: .18; right: -70px; top: 120px; }
  .gallery figure, .gallery figure:nth-child(n) { grid-column: span 6; }
  .gallery figure:nth-child(n) img { height: 300px; }
  .menu-image-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .header-inner { width: min(100% - 28px, 1180px); min-height: 78px; }
  .brand img { width: 88px; }
  .hero { min-height: 820px; align-items: start; }
  .hero-content { width: min(100% - 30px, 1180px); padding-top: 145px; }
  .hero-info { padding: 18px 20px; }
  .page-hero .wrap { padding-top: 140px; }
  .wrap { width: min(100% - 30px, 1180px); }
  .section { padding: 70px 0; }
  .split-media { min-height: 430px; }
  .split-media img { height: 390px; }
  .split-media img:last-child { display: none; }
  .gallery figure, .gallery figure:nth-child(n) { grid-column: span 12; }
  .gallery figure:nth-child(n) img { height: 280px; }
  .dish { gap: 5px 14px; }
  .menu-image-grid { margin-bottom: 52px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .image-band { background-attachment: scroll; }
}
