/* =========================================================
   FORNO AZUL (demo): DESIGN FILE
   Change the colors here and the whole site updates.
   ========================================================= */

:root {
  --sea: #0f2a44;        /* deep harbour blue: dark sections, logo */
  --sea-2: #1b4a73;      /* lighter blue */
  --cream: #fbf6ee;      /* page background */
  --sand: #f2e8d8;       /* alternating sections */
  --tomato: #d9381e;     /* main action color (buttons) */
  --tomato-dark: #b82c15;
  --gold: #e8a33d;       /* small warm details */
  --basil: #2f6b3a;
  --ink: #1b1b1b;
  --muted: #5b5b5b;
  --line: #e4d8c4;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --shadow: 0 12px 30px rgba(15, 42, 68, 0.10);
}

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--gold); }
h2 em { color: var(--tomato); }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tomato); margin-bottom: .8em;
}
.eyebrow-light { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px;
  font: 600 1rem var(--font-body); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-tomato { background: var(--tomato); color: #fff; }
.btn-tomato:hover { background: var(--tomato-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sea { background: var(--sea); color: #fff; }
.btn-outline { border-color: var(--sea); color: var(--sea); }
.link-arrow { color: var(--tomato); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
  background: var(--ink); color: #ddd; text-align: center;
  font-size: .8rem; padding: 6px 16px;
}
.demo-ribbon a { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
  text-decoration: none; color: var(--sea); display: inline-flex; align-items: center; gap: 10px;
}
.logo em { color: var(--tomato); font-weight: 500; }
.logo-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold) 0 45%, var(--tomato) 46% 60%, var(--sea) 61%);
}
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links > a:hover { color: var(--tomato); }
.lang-switch { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.lang-switch a[aria-current] { background: var(--sea); color: #fff; }
.menu-toggle { display: none; }

/* ---------- Placeholders (swapped for Higgsfield photos/video later) ---------- */
.placeholder {
  position: relative; overflow: hidden;
  isolation: isolate; /* keeps the photo inside its own box, never on top of text */
  background:
    radial-gradient(circle at 30% 30%, rgba(232,163,61,.55), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(217,56,30,.45), transparent 55%),
    linear-gradient(135deg, #3a2417, #1b1310);
}
.placeholder::after { /* subtle grain so it doesn't look flat */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 6px 6px;
}
/* Real photos fill their box; the gradient + grain only show while a photo is missing */
.placeholder img, .placeholder video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.placeholder:has(img)::after { display: none; }
.hero-media img, .hero-media video { object-position: 70% center; } /* keep the oven in view on phones */
.ph-label {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  font-size: .75rem; font-weight: 600; color: #fff;
  background: rgba(0,0,0,.45); padding: 4px 10px; border-radius: 999px;
}
.ph-alt1 { background: radial-gradient(circle at 60% 40%, rgba(232,163,61,.5), transparent 55%), linear-gradient(135deg, #2d3f2a, #15140f); }
.ph-alt2 { background: radial-gradient(circle at 40% 60%, rgba(217,56,30,.65), transparent 55%), linear-gradient(135deg, #3b1a12, #160d0b); }
.ph-hero { background: radial-gradient(ellipse at 70% 60%, rgba(232,163,61,.55), transparent 50%), radial-gradient(ellipse at 20% 30%, rgba(27,74,115,.9), transparent 60%), linear-gradient(160deg, #0f2a44, #2a160d); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media .ph-label { left: auto; right: 16px; bottom: 16px; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,20,32,.78) 0%, rgba(10,20,32,.45) 45%, rgba(10,20,32,0) 70%),
    linear-gradient(to top, rgba(10,20,32,.85), rgba(10,20,32,0) 55%);
}
.hero h1, .hero-sub { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-content { position: relative; padding-block: 120px 64px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { max-width: 14ch; }
.hero-sub { font-size: 1.15rem; max-width: 46ch; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-facts {
  list-style: none; padding: 20px 0 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 12px 36px;
  border-top: 1px solid rgba(255,255,255,.2); font-size: .92rem; color: rgba(255,255,255,.8);
}
.hero-facts strong { color: #fff; margin-right: 4px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 120px); }
.section-sand { background: var(--sand); }
.section-sea { background: var(--sea); color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

/* ---------- Signature pizzas ---------- */
.pizza-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 36px; }
.pizza-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ph-pizza { aspect-ratio: 4 / 3; }
.pizza-body { padding: 20px 22px 24px; }
.pizza-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pizza-top h3 { margin: 0 0 .4em; }
.price { font-family: var(--font-head); font-size: 1.3rem; color: var(--tomato); font-weight: 700; }
.pizza-body p { color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #fdecd0; color: #8a5a10; }
.tag-green { background: #e1efe2; color: var(--basil); }
.tag-red { background: #fbe1dc; color: var(--tomato-dark); }

/* ---------- Menu tabs ---------- */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.tabs button {
  font: 600 .95rem var(--font-body); padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--sea); color: #fff; border-color: var(--sea); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li {
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px dashed var(--line);
}
.menu-list h4 { font-size: 1.15rem; margin: 0 0 2px; }
.menu-list p { margin: 0; color: var(--muted); font-size: .92rem; }
.menu-list span { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; white-space: nowrap; color: var(--sea); }

/* ---------- Story ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ph-story { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.stats { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.stats strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--sea); line-height: 1; }
.stats span { font-size: .85rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; padding: 0 8px; }
.gallery .placeholder:first-child { grid-row: span 2; }
.gallery .placeholder:last-child { grid-column: span 2; }
.ph-g2 { background: radial-gradient(circle at 50% 70%, rgba(255,140,40,.8), transparent 60%), linear-gradient(#1b0f0a, #2b140b); }
.ph-g3 { background: radial-gradient(circle at 40% 40%, rgba(255,120,50,.6), transparent 50%), linear-gradient(135deg, #1b4a73, #0f2a44); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.review blockquote { margin: 0 0 16px; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.4; }
.review figcaption { font-size: .85rem; color: var(--muted); }

/* ---------- Booking ---------- */
.split-book { align-items: start; }
.light-muted { color: rgba(255,255,255,.75); }
.book-perks { list-style: none; padding: 0; margin: 24px 0; }
.book-perks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.book-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.call-line { color: #fff; text-decoration: none; opacity: .85; }
.call-line:hover { opacity: 1; }
.book-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 32px); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.book-form input, .book-form select {
  font: 400 1rem var(--font-body); padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--cream); color: var(--ink); width: 100%;
}
.book-form input:focus, .book-form select:focus { outline: 2px solid var(--sea-2); outline-offset: 1px; }
.form-note { font-size: .85rem; color: var(--muted); text-align: center; margin: 0; }
.form-note.ok { color: var(--basil); font-weight: 600; }
.form-note.err { color: var(--tomato-dark); font-weight: 600; }

/* ---------- Visit ---------- */
.address { font-size: 1.1rem; }
.hours { border-collapse: collapse; margin: 20px 0 28px; min-width: 280px; }
.hours caption { text-align: left; font-weight: 600; margin-bottom: 6px; }
.hours th, .hours td { text-align: left; padding: 8px 24px 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ph-map { aspect-ratio: 1 / 1; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #dfe8ef, #dfe8ef 14px, #e9f0f5 14px, #e9f0f5 28px); }
.ph-map .ph-label { background: var(--sea); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #bbb; padding: 56px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.logo-light { color: #fff; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: #eee; }
.credit { font-size: .8rem; margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; }
.credit a { color: var(--gold); }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar { display: none; }

/* ---------- Fade-in on scroll (gentle, no scroll-jacking) ---------- */
.has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.has-js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .has-js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   TABLET + PHONE
   ========================================================= */
@media (max-width: 900px) {
  .pizza-grid, .review-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; }
  .ph-story { aspect-ratio: 4 / 3; }
  .ph-map { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 140px 140px; }
  .gallery .placeholder:first-child { grid-row: auto; grid-column: span 2; }
}

@media (max-width: 760px) {
  body { padding-bottom: 64px; } /* room for the sticky bar */
  .nav { height: 64px; }
  .nav-book { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; margin-left: auto; background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; width: 24px; margin: 0 auto; background: var(--sea); transition: transform .3s ease; }
  .menu-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 0; width: 100%; font-size: 1.1rem; }
  .lang-switch { margin-top: 10px; }

  .hero { min-height: 82vh; }
  .hero-content { padding-block: 100px 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { gap: 8px 20px; }
  .field-row { grid-template-columns: 1fr; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .mobile-bar a {
    text-align: center; text-decoration: none; font-weight: 600; font-size: .9rem;
    padding: 11px 6px; border-radius: 999px; color: var(--sea); border: 1px solid var(--line);
  }
  .mobile-bar .mobile-bar-main { background: var(--tomato); color: #fff; border-color: var(--tomato); }
}

/* Hero video sits on top of the photo and fades in once it can play */
.hero-video { opacity: 0; transition: opacity 1.2s ease; z-index: 2 !important; }
.hero-video.ready { opacity: 1; }
