/* ============================================
   Dú Papis — Pastifício Artesanal
   ============================================ */

:root {
  --gold: #f7b434;
  --gold-dark: #d9911e;
  --gold-light: #fde6b3;
  --charcoal: #424142;
  --charcoal-deep: #2b2a2b;
  --cream: #fbf8f2;
  --panel: #f2f1f1;
  --white: #ffffff;
  --line: #e7e2d6;

  --font-script: 'Alex Brush', cursive;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  --container: 1140px;
  --radius: 18px;
  --shadow: 0 20px 45px -20px rgba(43, 42, 43, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.icon { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.125em; }

/* -------------------- Typography helpers -------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  margin: 10px 0 14px;
  color: var(--charcoal-deep);
}
.section-head p { margin: 0; color: #6b6767; font-size: 17px; }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1;
}

section { padding: 96px 0; }
.section-alt { background: var(--panel); }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--charcoal-deep);
  box-shadow: 0 14px 30px -12px rgba(247, 180, 52, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(247, 180, 52, 0.85); }
.btn-outline {
  background: transparent;
  border-color: rgba(66, 65, 66, 0.25);
  color: var(--charcoal);
}
.btn-outline:hover { border-color: var(--charcoal); transform: translateY(-2px); }
.btn-outline.on-dark { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline.on-dark:hover { border-color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* -------------------- Header -------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(251, 248, 242, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 248, 242, 0.97);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand-name { font-family: var(--font-script); font-size: 34px; color: var(--charcoal-deep); }
.brand-tag { display: none; }

.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta { display: none; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: none; background: transparent;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block;
  width: 22px; height: 2px; background: var(--charcoal-deep);
  position: relative; transition: all 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; width: 22px; }
.nav-toggle span::after { position: absolute; top: 7px; width: 22px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(247, 180, 52, 0.22), transparent 60%),
    var(--cream);
}
.hero-border-top, .hero-border-bottom {
  position: absolute; left: 0; right: 0; height: 34px;
  display: flex; align-items: center;
  overflow: hidden;
  opacity: 0.55;
}
.hero-border-top { top: 78px; }
.hero-border-bottom { bottom: 0; }
.pasta-strip { display: flex; gap: 34px; animation: scrollx 34s linear infinite; }
.hero-border-bottom .pasta-strip { animation-direction: reverse; }
.pasta-strip .icon { width: 22px; height: 22px; color: var(--gold); flex: none; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-script);
  font-size: clamp(64px, 9vw, 108px);
  margin: 14px 0 0;
  color: var(--charcoal-deep);
  line-height: 0.95;
}
.hero-copy .hero-cucina {
  font-family: var(--font-display);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--charcoal);
  margin: 10px 0 26px;
  display: block;
}
.hero-copy .lede {
  font-size: 19px;
  max-width: 480px;
  color: #55514f;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badge {
  position: relative;
  width: min(100%, 380px);
  margin-left: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--charcoal-deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.hero-badge::before {
  content: "";
  position: absolute; inset: 16px;
  border-radius: 50%;
  border: 1.5px dashed rgba(247, 180, 52, 0.55);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-badge-inner { text-align: center; color: var(--white); padding: 20px; }
.hero-badge-inner .script { font-size: 42px; color: var(--gold); }
.hero-badge-inner p {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 10px 0 0;
  color: rgba(255,255,255,0.75);
}
.hero-badge-inner .divider { width: 40px; height: 2px; background: var(--gold); margin: 14px auto; }

.trust-row {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 34px 48px;
}
.trust-item { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--charcoal); }
.trust-item .icon { width: 26px; height: 26px; color: var(--gold-dark); }

/* -------------------- Sobre -------------------- */
.sobre-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.sobre-visual {
  position: relative;
  background: var(--charcoal-deep);
  border-radius: var(--radius);
  padding: 52px 40px;
  color: var(--white);
  overflow: hidden;
}
.sobre-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 260px at 90% 110%, rgba(247, 180, 52, 0.35), transparent 70%);
}
.sobre-visual blockquote {
  position: relative;
  margin: 0;
  font-family: var(--font-script);
  font-size: 30px;
  line-height: 1.35;
  color: var(--gold-light);
}
.sobre-visual cite {
  position: relative;
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
}
.sobre-text p { color: #55514f; font-size: 16.5px; margin: 0 0 20px; }
.sobre-text p:last-child { margin-bottom: 0; }
.sobre-text strong { color: var(--charcoal-deep); }

/* -------------------- Diferenciais -------------------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.diff-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 26px;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.diff-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.diff-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.diff-icon .icon { width: 26px; height: 26px; color: var(--gold-dark); }
.diff-card h3 { font-family: var(--font-display); font-size: 17px; margin: 0 0 10px; }
.diff-card p { margin: 0; font-size: 14.5px; color: #6b6767; }

/* -------------------- Massas / cards -------------------- */
.tabs { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
  border: 1.5px solid var(--line);
  background: var(--white);
  padding: 11px 22px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--charcoal);
  transition: all 0.2s ease;
}
.tab-btn.active, .tab-btn:hover { background: var(--charcoal-deep); border-color: var(--charcoal-deep); color: var(--white); }

.massa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.massa-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.massa-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.massa-media {
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-light), var(--panel));
}
.massa-media .icon { width: 64px; height: 64px; color: var(--gold-dark); }
.massa-card .body { padding: 26px; }
.massa-card h3 { font-family: var(--font-display); font-size: 18px; margin: 0 0 10px; }
.massa-card p { margin: 0; font-size: 14.5px; color: #6b6767; }

.recheadas-panel { display: none; }
.recheadas-panel.active { display: grid; }

/* -------------------- Cardápio -------------------- */
.menu-frame {
  position: relative;
  background: var(--white);
  box-shadow: var(--shadow);
  border-style: solid;
  border-width: clamp(28px, 6vw, 64px);
  border-image-source: url("../assets/borda-menu.png");
  border-image-slice: 84 fill;
  border-image-repeat: round;
}
.menu-inner {
  padding: 30px clamp(12px, 4vw, 48px) 48px;
}
.menu-inner .section-head { margin-left: auto; margin-right: auto; }

.menu-block { margin-bottom: 52px; }
.menu-block:last-child { margin-bottom: 0; }
.menu-block-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--gold-dark);
  text-align: center;
  margin: 0 0 6px;
}
.menu-block-sub {
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #918d8a;
  margin: 0 0 26px;
}

.menu-list { max-width: 620px; margin: 0 auto; }
.menu-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px dotted var(--line);
}
.menu-row:last-child { border-bottom: none; }
.menu-row .name { font-family: var(--font-display); font-weight: 500; font-size: 15.5px; }
.menu-row .name small { display: block; font-family: var(--font-body); font-weight: 400; color: #918d8a; font-size: 12.5px; margin-top: 2px; }
.menu-row .fill { flex: 1; border-bottom: 1px dotted #d8d2c4; transform: translateY(-4px); }
.menu-row .price { font-family: var(--font-display); font-weight: 700; color: var(--charcoal-deep); white-space: nowrap; }
.menu-row .price::before { content: "R$ "; font-weight: 500; font-size: 12px; color: #918d8a; }

.menu-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.menu-cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 620px; margin: 0 auto; }
.menu-col h4 { font-family: var(--font-display); font-size: 15px; text-align: center; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--gold-light); }

/* -------------------- Monte seu prato -------------------- */
.builder {
  background: var(--charcoal-deep);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  color: var(--white);
  margin-top: 64px;
}
.builder-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.builder-head .eyebrow { color: var(--gold); }
.builder-head .eyebrow::before { background: var(--gold); }
.builder-head h3 { font-family: var(--font-display); font-size: 26px; margin: 12px 0 10px; }
.builder-head p { color: rgba(255,255,255,0.65); margin: 0; font-size: 15px; }

.builder-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 30px; }
.builder-step { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 22px; }
.builder-step .step-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  margin-bottom: 16px; color: var(--gold);
}
.step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--charcoal-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.option-list { display: flex; flex-direction: column; gap: 8px; }
.option-list label {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.option-list label:hover { background: rgba(255,255,255,0.09); }
.option-list input { accent-color: var(--gold); }
.option-list .opt-price { color: rgba(255,255,255,0.5); font-size: 12px; }
.option-list label.checked { background: rgba(247,180,52,0.16); outline: 1px solid var(--gold); }

.grams-control { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.grams-control button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25); background: transparent; color: var(--white);
  font-size: 18px; line-height: 1;
}
.grams-control input {
  width: 90px; text-align: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px; color: var(--white);
  padding: 9px 6px; font-family: var(--font-display); font-weight: 600;
}
.grams-hint { color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 10px; }

.builder-result {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
}
.builder-summary p { margin: 0 0 6px; color: rgba(255,255,255,0.6); font-size: 13.5px; }
.builder-summary .total { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--gold); }
.builder-summary .total span { font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.6); }

/* -------------------- Pedido / Contato -------------------- */
.pedido-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.pedido-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: flex; align-items: flex-start; gap: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pedido-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pedido-card .diff-icon { flex: none; }
.pedido-card h3 { font-family: var(--font-display); font-size: 17px; margin: 0 0 8px; }
.pedido-card p { margin: 0 0 14px; font-size: 14.5px; color: #6b6767; }
.pedido-card a.link { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--gold-dark); display: inline-flex; align-items: center; gap: 6px; }

.steps-row { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; counter-reset: step; }
.step-item { flex: 1; text-align: center; position: relative; }
.step-item::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--charcoal-deep); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  margin: 0 auto 14px;
}
.step-item h4 { font-family: var(--font-display); font-size: 15px; margin: 0 0 6px; }
.step-item p { font-size: 13.5px; color: #6b6767; margin: 0; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--charcoal-deep); color: rgba(255,255,255,0.72); padding: 70px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { max-width: 320px; margin: 16px 0 22px; font-size: 14.5px; color: rgba(255,255,255,0.55); }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.social-row a:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal-deep); }
.social-row .icon { width: 18px; height: 18px; }

.footer-col h5 { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin: 0 0 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { font-size: 14.5px; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: var(--gold); }
.footer-col li { display: flex; align-items: center; gap: 10px; }
.footer-col .icon { width: 16px; height: 16px; color: var(--gold); flex: none; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 10px; }

/* -------------------- WhatsApp floating button -------------------- */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 400;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.7);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .icon { width: 30px; height: 30px; }

/* -------------------- Reveal animation -------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* -------------------- Responsive -------------------- */
@media (max-width: 980px) {
  .hero-grid, .sobre-grid { grid-template-columns: 1fr; }
  .hero-badge { margin: 0 auto; }
  .sobre-visual { order: 2; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .massa-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-cols { grid-template-columns: 1fr; gap: 40px; }
  .builder-steps { grid-template-columns: 1fr; }
  .pedido-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .steps-row { flex-direction: column; gap: 30px; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-open .main-nav {
    display: block;
    position: fixed;
    top: 82px; right: 0; bottom: 0; left: 0;
    background: var(--cream);
    padding: 30px 24px;
    z-index: 600;
    overflow-y: auto;
  }
  .nav-open .main-nav ul { flex-direction: column; gap: 6px; }
  .nav-open .main-nav a { display: block; padding: 14px 6px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-open .nav-cta { display: block; margin-top: 18px; }
  .nav-open .nav-cta a { border-bottom: none; }
  /* backdrop-filter on the header creates a containing block for its
     fixed-position descendants, trapping the flyout inside the 82px
     header box — drop it while the menu is open so .main-nav sizes
     against the viewport instead. */
  .nav-open .site-header { backdrop-filter: none; background: var(--cream); }
  section { padding: 70px 0; }
  .diff-grid, .massa-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 150px; }
  .hero-border-top { top: 62px; }
}
