/* =========================================================
   DORU PIZZERIA — visual identity
   ========================================================= */

:root {
  /* paleta */
  --navy-900: #2E3A55;
  --navy-700: #3F4B6B;
  --navy-500: #5C6E91;
  --navy-300: #8a96b5;

  --terracotta: #C8503C;
  --terracotta-dark: #B04532;

  --cream: #F1ECE0;
  --cream-light: #F7F2E6;

  --ink: #1F2333;
  --ink-soft: #4a4f63;
  --muted: #8a8a96;

  --white: #ffffff;

  /* fontes */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-script: 'Pinyon Script', 'Allura', cursive;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* layout */
  --container: 1280px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
  --header-h: 88px;

  /* radius */
  --r-sm: 4px;
  --r-md: 6px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
html:not(.lenis) { scroll-behavior: smooth; }
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;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s ease, color .2s ease; }
a:hover { opacity: .75; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

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

/* ---------- TYPOGRAPHY HELPERS ---------- */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-weight: 500;
}
.eyebrow-light { color: rgba(255,255,255,.7); }

.script-accent {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--terracotta);
  font-weight: 400;
  font-size: 1.15em;
  letter-spacing: 0;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 1.1em 2em;
  border: 1px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { opacity: 1; }

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover { background: var(--terracotta-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-light:hover { background: var(--white); color: var(--navy-900); }

.btn-link {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  gap: .8em;
  align-items: center;
  padding: 1em 0;
}
.btn-link:hover { opacity: 1; color: var(--terracotta); }
.eyebrow-light + .section-title-light ~ .btn-link,
.historia .btn-link { color: var(--white); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-500);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.nav-primary {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  margin-left: auto;
}
.nav-primary a {
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
  position: relative;
}
.nav-primary a.is-active {
  color: var(--terracotta);
}
.nav-primary a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.6em;
  height: 2px;
  background: var(--terracotta);
}
.btn-header { padding: 1em 1.8em; font-size: 12px; }

/* iFood button (padronizado em terracota) */
.btn-ifood {
  display: inline-flex;
  align-items: center;
  gap: .9em;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 1em 1.6em;
  background: var(--terracotta);
  color: var(--white);
  border: 1px solid var(--terracotta);
  transition: background .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease;
  white-space: nowrap;
}
.btn-ifood:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  box-shadow: 0 10px 24px -10px rgba(200,80,60,.5);
}
.ifood-logo {
  display: inline-block;
  width: 58px;
  height: 22px;
  background-color: var(--white);
  -webkit-mask: url('https://upload.wikimedia.org/wikipedia/commons/9/90/IFood_logo.svg') no-repeat center / contain;
          mask: url('https://upload.wikimedia.org/wikipedia/commons/9/90/IFood_logo.svg') no-repeat center / contain;
  flex-shrink: 0;
}

/* botão "Peça em casa pelo [logo iFood]" — logo inline */
.btn-with-ifood {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-with-ifood .ifood-logo {
  width: 54px;
  height: 20px;
  background-color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform .25s ease, opacity .2s ease;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--navy-700);
  color: var(--white);
  height: clamp(300px, 40vh, 460px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  top: -80px;
  bottom: -80px;
  left: 0;
  right: 0;
  background:
    url('../assets/images/textura-hero.svg') center / cover no-repeat,
    var(--navy-700);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  place-items: center;
}
.hero-marca {
  margin: 0 0 .9rem;
  line-height: 0;
  position: relative;
  z-index: 2;
  display: block;
  opacity: 0;
  transform: translateY(14px) scale(.97);
  animation: hero-marca-in 1.2s cubic-bezier(.2,.7,.2,1) 250ms forwards;
}
.hero-marca img {
  display: block;
  width: auto;
  height: clamp(110px, 18vh, 200px);
  max-width: 80vw;
  transform-origin: center center;
  animation: hero-marca-breathe 7s ease-in-out 1600ms infinite alternate;
}
@keyframes hero-marca-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hero-marca-breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.025); }
}

.hero-script {
  display: inline-block;
  font-family: var(--font-script);
  color: var(--terracotta);
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: .01em;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}
.hero .hero-script[data-reveal-letters] .reveal-letter,
.hero .hero-script[data-reveal-letters].is-visible .reveal-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(8%);
  will-change: opacity, transform;
  animation: hero-letter-in .6s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--i, 0) * 55ms + 1100ms);
}
@keyframes hero-letter-in {
  from { opacity: 0; transform: translateY(8%); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-marca,
  .hero-marca img,
  .hero-script,
  .hero-script .reveal-letter {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* ---------- INFO STRIP ---------- */
.info-strip {
  background: var(--navy-500);
  color: var(--white);
  padding: 1.5rem 0;
}
.info-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.info-text {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin: 0;
}
.info-text .dot {
  color: var(--terracotta);
  margin-right: .6em;
  font-size: .8em;
  display: inline-block;
  animation: dot-blink 1.6s ease-in-out infinite;
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
  .info-text .dot { animation: none !important; opacity: 1 !important; }
}
.info-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.info-actions .btn-link { color: var(--white); }

/* ---------- MANIFESTO ---------- */
.manifesto {
  position: relative;
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(241,236,224,.78), rgba(241,236,224,.78)),
    url('https://dorupizzeria.com.br/wp-content/uploads/2025/05/header-site.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: clamp(5rem, 11vw, 9rem) 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(241,236,224,.6) 100%);
  pointer-events: none;
  z-index: 0;
}
.manifesto > .container { position: relative; z-index: 1; }
.manifesto-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.25;
  color: var(--ink);
  max-width: 1100px;
  margin: 0 auto;
  letter-spacing: -.005em;
  text-shadow: 0 1px 0 rgba(241,236,224,.4);
}
@media (max-width: 720px) {
  .manifesto { background-attachment: scroll; }
}

/* ---------- SECTION HELPERS ---------- */
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 1.2em;
  color: var(--ink);
}
.section-title-light { color: var(--white); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.section-head .section-title { margin-bottom: 0; }

/* ---------- CARDÁPIO SELEÇÃO ---------- */
.selecao { background: var(--cream); padding: clamp(3rem, 7vw, 6rem) 0 clamp(5rem, 9vw, 7rem); }
.pizzas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.pizza-card {
  background: var(--cream-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(31,35,51,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.pizza-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(31,35,51,.25);
}
.pizza-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-700);
}
.pizza-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.pizza-card:hover .pizza-image img { transform: scale(1.04); }
.pizza-body { padding: 1.8rem 1.8rem 2rem; }
.pizza-tag {
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .6rem;
}
.pizza-name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin: 0 0 .2rem;
  line-height: 1.1;
}
.pizza-tagline {
  font-family: var(--font-script);
  color: var(--terracotta);
  font-size: 1.4rem;
  margin: 0 0 1rem;
}
.pizza-desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 1.4rem;
}
.pizza-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0;
  font-weight: 500;
}

/* ---------- HISTÓRIA ---------- */
.historia {
  background: var(--navy-700);
  padding: 0;
  overflow: hidden;
}
.historia-inner {
  position: relative;
}
.historia-image {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  background: var(--navy-900);
  overflow: hidden;
  margin: 0;
  min-height: 560px;
}
.historia-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.12) saturate(1.1) contrast(1.04);
}
.historia-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(241,236,224,.05) 0%, transparent 35%, rgba(63,75,107,.18) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(255,220,180,.08), transparent 60%);
  pointer-events: none;
}
.historia-image { position: relative; }
.historia-text {
  position: absolute;
  top: 50%;
  left: clamp(2rem, 5vw, 4rem);
  transform: translateY(-50%);
  max-width: 600px;
  width: calc(100% - clamp(4rem, 10vw, 8rem));
  background: var(--cream);
  padding: clamp(1.8rem, 2.6vw, 2.4rem);
  color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.4);
  animation: historia-card-in 1.6s cubic-bezier(.2,.75,.2,1) 1500ms both;
}
@keyframes historia-card-in {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-70px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    filter: blur(0);
  }
}
.historia-image img {
  animation: historia-image-in 7s cubic-bezier(.2,.7,.2,1) 1300ms both;
}
@keyframes historia-image-in {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .historia-text { animation: none !important; opacity: 1; transform: translateY(-50%); filter: none; }
  .historia-image img { animation: none !important; transform: none; }
}
.historia-text .eyebrow { color: var(--terracotta); margin-bottom: .8rem; }
.historia .section-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 0 0 1rem;
  color: var(--ink);
  line-height: 1.15;
}
.historia-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 .9rem;
}
.historia-body:last-of-type { margin-bottom: 1rem; }
.historia-quote {
  color: var(--terracotta);
  margin: 1.2rem 0 0;
  font-family: var(--font-script);
  font-style: normal;
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  line-height: 1.05;
}

/* ---------- VISITE ---------- */
.visite {
  background: var(--cream);
  padding: clamp(5rem, 10vw, 8rem) 0;
}
.visite-grid {
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.visite-title {
  margin: 0 0 1.5rem;
  max-width: 16ch;
}
.visite-body {
  max-width: 50ch;
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}
.loc-logo {
  margin: 0 0 2.5rem;
  line-height: 0;
}
.loc-logo img {
  height: clamp(80px, 11vw, 130px);
  width: auto;
  display: block;
}
.loc-place {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--terracotta);
  margin: 0 0 1.4rem;
  line-height: 1.1;
}
.loc-features {
  list-style: none;
  margin: 1.6rem 0 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(31,35,51,.12);
  border-bottom: 1px solid rgba(31,35,51,.12);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .8rem;
}
.loc-features li {
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  padding: .5em .9em;
  border: 1px solid rgba(31,35,51,.18);
  background: var(--cream-light);
}

.visite-info {
  list-style: none;
  margin: 0 0 2.2rem;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}
.visite-info li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(31,35,51,.12);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.visite-info-label {
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  padding-top: 2px;
}
.visite-actions {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.visite-actions-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 520px;
}
.visite-actions-equal .btn {
  width: 100%;
  padding: 1.15em 1.4em;
  text-align: center;
  justify-content: center;
}
@media (max-width: 720px) {
  .visite-actions-equal { grid-template-columns: 1fr; }
}

/* ---------- SOCIALS ---------- */
.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .8rem;
  align-items: center;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  color: var(--ink);
  border-radius: 50%;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .35s cubic-bezier(.2,.7,.2,1);
}
.socials a:hover {
  opacity: 1;
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
  transform: translateY(-2px);
}
.socials svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* socials sob botões da Localização */
.socials-localizacao {
  margin-top: 1.5rem;
}
.socials-localizacao-label {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .8rem;
  font-weight: 500;
}

/* socials no footer (escuro) */
.socials-footer a {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.3);
}
.socials-footer a:hover {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.visite-map {
  width: 540px;
  height: 450px;
  max-width: 100%;
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: 0 30px 60px -30px rgba(31,35,51,.35);
  border: 1px solid rgba(31,35,51,.06);
}
.visite-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(.95);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-700);
  color: rgba(255,255,255,.85);
  padding: clamp(2rem, 4vw, 3rem) 0 1.2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 1.8rem;
  align-items: center;
}
.footer-brand .footer-logo {
  margin: 0;
  line-height: 0;
}
.footer-brand .footer-logo img {
  height: 88px;
  width: auto;
  display: block;
}
.footer-head {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0 0 1.2rem;
  font-weight: 500;
}
.footer-col p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255,255,255,.85);
}
.footer-col a { color: rgba(255,255,255,.85); }
.footer-col a:hover { color: var(--terracotta); opacity: 1; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.footer-bottom p { margin: 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .pizzas-grid { grid-template-columns: 1fr; }
  .historia-image { aspect-ratio: 4 / 3; }
  .historia-text {
    position: relative;
    bottom: auto;
    left: auto;
    width: calc(100% - 2rem);
    max-width: none;
    margin: -4rem auto 2rem;
  }
  .visite-grid { grid-template-columns: 1fr; }
  .visite-map { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .nav-primary, .btn-header { display: none; }
  .nav-toggle { display: flex; }

  .hero { height: clamp(260px, 44vh, 380px); }
  .hero-mark { display: none; }
  .info-strip { padding: 1rem 0; }
  .info-strip-inner { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .info-actions { width: 100%; justify-content: space-between; }

  .section-head { flex-direction: column; align-items: flex-start; }

  .footer-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: .8rem; align-items: flex-start; }
}

/* =========================================================
   SCROLL & REVEAL ANIMATIONS
   ========================================================= */

/* progress bar (top of page) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--terracotta);
  z-index: 100;
  transition: width .12s ease-out;
  pointer-events: none;
}

/* fade up — generic */
[data-fade-up] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-fade-up].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* word-by-word reveal */
[data-reveal-words] .reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.3;
  padding-bottom: .18em;
  margin-bottom: -.18em;
}
[data-reveal-words] .reveal-word > span {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
[data-reveal-words].is-visible .reveal-word > span {
  animation: word-reveal .9s cubic-bezier(.2,.75,.2,1) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes word-reveal {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

/* letter-by-letter (used in hero logo) */
[data-reveal-letters] {
  display: inline-block;
}
[data-reveal-letters] .reveal-letter {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity;
}
[data-reveal-letters].is-visible .reveal-letter {
  animation: letter-reveal .9s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--i, 0) * 90ms + 200ms);
}
@keyframes letter-reveal {
  from { opacity: 0; transform: translateY(40%) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* stagger group (cards) */
[data-stagger] [data-stagger-item] {
  opacity: 0;
  transform: translateY(36px);
  will-change: opacity, transform;
}
[data-stagger].is-visible [data-stagger-item] {
  animation: stagger-reveal 1s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--i, 0) * 140ms);
}
@keyframes stagger-reveal {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}

/* parallax (translated by JS via data-parallax-y) */
[data-parallax] {
  will-change: transform;
}

/* hero — gentle entrance + subtle background drift */
.hero-bg {
  transform: translate3d(0, 0, 0) scale(1.04);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}

/* sticky header subtle shadow when scrolled */
.site-header.is-scrolled {
  background: rgba(92,110,145,.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 6px 20px -16px rgba(0,0,0,.35);
}

/* image hover zoom slowed for smoother feeling */
.pizza-card .pizza-image img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.pizza-card:hover .pizza-image img { transform: scale(1.06); }

/* underline animation on btn-link */
.btn-link {
  position: relative;
}
.btn-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .5em;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.btn-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* button hover lift */
.btn { transition: background .25s ease, color .25s ease, border-color .25s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.btn:hover { transform: translateY(-2px); }

/* respect users with reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-fade-up],
  [data-reveal-words] .reveal-word > span,
  [data-reveal-letters] .reveal-letter,
  [data-stagger] [data-stagger-item] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-bg { transform: none !important; transition: none !important; }
  html:not(.lenis) { scroll-behavior: auto; }
}

/* mobile menu open state */
.site-header.open {
  position: relative;
}
.site-header.open::after {
  content: "";
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,.08);
}
.site-header.open .nav-primary,
.site-header.open .btn-header {
  display: flex;
}
.site-header.open .nav-primary {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--navy-500);
  padding: 1.5rem var(--gutter) .5rem;
  gap: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-left: 0;
}
.site-header.open .btn-ifood,
.site-header.open .btn-primary.btn-header {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  background: var(--white);
  justify-content: center;
}
.site-header.open .btn-ifood {
  top: calc(var(--header-h) + 200px);
}
.site-header.open .btn-primary.btn-header {
  top: calc(var(--header-h) + 252px);
  background: var(--terracotta);
  color: var(--white);
}
