/*
Theme Name: Trattoria Modern
Theme URI: https://aoo.lu/
Author: AOo Digital
Author URI: https://aoo.lu/
Description: Thème moderne sur mesure pour La Trattoria dei Quattro et l'Albergo Gaglioti.
Version: 1.1.0
Requires at least: 7.1
Requires PHP: 8.1
Text Domain: trattoria-modern
*/

:root {
  --ink: #182018;
  --paper: #f6f2e9;
  --cream: #fffdf8;
  --olive: #516044;
  --olive-dark: #34402e;
  --terracotta: #b55535;
  --gold: #c39a57;
  --muted: #6d7168;
  --line: rgba(24,32,24,.14);
  --shadow: 0 20px 60px rgba(24,32,24,.12);
  --radius: 22px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { clip: auto; width: auto; height: auto; margin: 8px; padding: 10px 14px; z-index: 9999; background: #fff; }

.site-header { position: sticky; top: 0; z-index: 80; background: rgba(255,253,248,.91); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { width: min(calc(100% - 36px), var(--content)); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--terracotta); font: 700 22px/1 Georgia, serif; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font: 700 19px/1.2 Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; font-weight: 650; font-size: 14px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--terracotta); }
.primary-nav .menu-item-reserver a { padding: 11px 17px; color: #fff; background: var(--terracotta); border-radius: 999px; }
.nav-toggle { display: none; border: 0; background: transparent; font: inherit; font-weight: 700; padding: 10px; }

.site-main { min-height: 60vh; }
.content-shell { width: min(calc(100% - 36px), 900px); margin: 72px auto 90px; }
.content-shell h1, .page-title { font: 700 clamp(42px, 7vw, 76px)/.98 Georgia, serif; letter-spacing: -.035em; }
.content-shell h2 { font: 700 clamp(30px, 5vw, 48px)/1.05 Georgia, serif; }
.content-shell p { font-size: 18px; }

.hero { min-height: min(800px, 82vh); display: grid; align-items: end; position: relative; isolation: isolate; color: #fff; background: #1e281d center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,27,19,.82) 0%, rgba(20,27,19,.48) 56%, rgba(20,27,19,.22) 100%), linear-gradient(0deg, rgba(20,27,19,.65), transparent 55%); }
.hero-inner { width: min(calc(100% - 36px), var(--content)); margin: auto; padding: clamp(100px, 14vw, 170px) 0 80px; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; color: #f4dfb9; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero h1 { max-width: 850px; margin: 22px 0 26px; font: 700 clamp(54px, 9vw, 112px)/.88 Georgia, serif; letter-spacing: -.055em; }
.hero p { max-width: 660px; margin: 0 0 34px; font-size: clamp(18px, 2vw, 23px); color: rgba(255,255,255,.88); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn, .wp-block-button__link, button.trattoria-submit { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 13px 22px; border: 0; border-radius: 999px; background: var(--terracotta); color: #fff; font: 750 15px/1 inherit; text-decoration: none; cursor: pointer; transition: .2s ease; }
.btn:hover, .wp-block-button__link:hover, button.trattoria-submit:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn.secondary { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(8px); }

.home-section { padding: clamp(72px, 9vw, 120px) 0; }
.home-section.alt { background: var(--paper); }
.section-inner { width: min(calc(100% - 36px), var(--content)); margin: auto; }
.section-heading { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; align-items: end; margin-bottom: 46px; }
.section-heading h2 { margin: 0; font: 700 clamp(38px, 6vw, 70px)/.98 Georgia, serif; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.feature-media { min-height: 520px; border-radius: var(--radius); background: #ddd center/cover no-repeat; box-shadow: var(--shadow); }
.feature-copy h2 { margin: 0 0 22px; font: 700 clamp(38px, 5vw, 64px)/1 Georgia, serif; letter-spacing: -.035em; }
.feature-copy p { color: var(--muted); font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 30px; }
.fact { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.55); }
.fact strong { display: block; font: 700 22px/1 Georgia, serif; color: var(--terracotta); }
.fact span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card { min-height: 420px; padding: 28px; display: flex; align-items: end; position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); color: #fff; background: #34402e center/cover no-repeat; box-shadow: var(--shadow); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(17,23,16,.82), rgba(17,23,16,.05) 75%); }
.card h3 { margin: 0; font: 700 34px/1 Georgia, serif; }
.card p { margin: 10px 0 0; color: rgba(255,255,255,.82); }
.gallery-strip { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 14px; }
.gallery-strip img { width: 100%; height: 430px; object-fit: cover; border-radius: 18px; }
.gallery-strip img:nth-child(n+2) { height: 330px; align-self: end; }
.auberge-gallery { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin: 34px 0 54px; }
.auberge-gallery figure { margin: 0; }
.auberge-gallery img { width: 100%; height: 440px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.auberge-gallery figure:last-child img { height: 360px; margin-top: 80px; }
.auberge-gallery figcaption { padding: 9px 4px 0; color: var(--muted); font-size: 14px; }
.contact-map { width: 100%; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper); }
.contact-map iframe { display: block; width: 100%; height: 460px; border: 0; }
.cta-band { padding: 46px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border-radius: var(--radius); color: #fff; background: var(--olive-dark); }
.cta-band h2 { margin: 0; font: 700 clamp(34px, 5vw, 56px)/1 Georgia, serif; }
.cta-band p { margin: 12px 0 0; color: rgba(255,255,255,.72); }

.trattoria-form { max-width: 850px; display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; padding: clamp(24px, 5vw, 48px); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.trattoria-form .full { grid-column: 1 / -1; }
.trattoria-form .trattoria-conditional { display: contents; }
.trattoria-form .trattoria-conditional[hidden] { display: none; }
.trattoria-form .check-row { display: flex; align-items: center; gap: 10px; min-height: 50px; }
.trattoria-form .check-row input { width: 20px; min-height: 20px; margin: 0; }
.trattoria-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 750; }
.trattoria-form input, .trattoria-form select, .trattoria-form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(24,32,24,.24); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.trattoria-form textarea { min-height: 130px; resize: vertical; }
.trattoria-form input:focus, .trattoria-form select:focus, .trattoria-form textarea:focus { outline: 3px solid rgba(181,85,53,.18); border-color: var(--terracotta); }
.form-notice { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; background: #e9f2e7; }
.form-notice.error { background: #f8e6e2; }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer { color: rgba(255,255,255,.78); background: #172017; }
.footer-inner { width: min(calc(100% - 36px), var(--content)); margin: auto; padding: 68px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 54px; padding-bottom: 54px; }
.footer-grid h2 { color: #fff; font: 700 30px/1.1 Georgia, serif; }
.footer-grid h3 { color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a { color: inherit; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.13); font-size: 13px; }
.footer-bottom a { color: #fff; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .primary-nav { display: none; position: absolute; left: 18px; right: 18px; top: calc(100% + 8px); padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 15px; }
  .section-heading, .split, .footer-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: initial; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .auberge-gallery { grid-template-columns: 1fr; }
  .auberge-gallery figure:last-child img { margin-top: 0; }
  .gallery-strip img:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body.admin-bar .site-header { top: 46px; }
  .brand-copy small { display: none; }
  .hero { min-height: 720px; }
  .hero h1 { font-size: 58px; }
  .feature-media { min-height: 380px; }
  .facts, .card-grid, .gallery-strip, .trattoria-form { grid-template-columns: 1fr; }
  .trattoria-form .trattoria-conditional { display: contents; }
  .gallery-strip img:first-child { grid-column: auto; }
  .gallery-strip img, .gallery-strip img:nth-child(n+2) { height: 300px; }
  .auberge-gallery img, .auberge-gallery figure:last-child img { height: 300px; }
  .contact-map iframe { height: 360px; }
  .cta-band, .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
