/* ===================================================================
   Bonna Pizza Jerusalém — sistema visual
   Ver DESIGN.md na raiz do cliente para a documentação completa.
=================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:root {
  /* cor — brasa de forno, papel-manteiga, crosta dourada */
  --char: #1B140F;
  --char-2: #241A13;
  --char-3: #2E211744;
  --ember: #E2481B;
  --ember-deep: #B23213;
  --crust: #D9A441;
  --crust-soft: #F0CC86;
  --cream: #F7EFE2;
  --cream-2: #FBF6EC;
  --ink: #241A13;
  --smoke: #7C6A58;
  --paper: #F5ECDD;
  --paper-dim: #D8C8B2;
  --line-dark: #3B2C1F;
  --line-light: #E4D6C1;
  --ink-soft: #4A3A2B;
  --ink-muted: #6B5847;
  --ink-faint: #A6907A;
  --smoke-light: #B79E82;
  --on-ember: #FFF8F2;
  --on-ember-soft: #FFF2E6;
  --scrim: rgba(20, 14, 9, 0.85);
  --shadow-strong: rgba(0, 0, 0, 0.65);
  --shadow-soft: rgba(0, 0, 0, 0.5);
  --whatsapp-green: #23A559;

  /* tipografia */
  --font-display: "Petrona", "Iowan Old Style", serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-label: "Archivo Expanded", "Archivo", sans-serif;

  --wrap: 1240px;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--char);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ember);
  color: var(--on-ember);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--crust);
  outline-offset: 3px;
}

/* ===== canvas de fagulhas ===== */
#embers {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ===== eyebrow / labels ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crust-soft);
  margin: 0 0 18px;
}
.eyebrow-dark { color: var(--ember-deep); }
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px rgba(226, 72, 27, 0.18);
}

/* ===== botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-lg { padding: 16px 30px; font-size: 15.5px; }
.btn-ember {
  background: var(--ember);
  color: var(--on-ember);
}
.btn-ember:hover { background: var(--ember-deep); transform: translateY(-1px); }
.btn-ghost {
  border-color: rgba(245, 236, 221, 0.35);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--crust); color: var(--crust-soft); }
.btn-ghost-dark {
  border-color: var(--line-dark);
  color: var(--ink);
}
.btn-ghost-dark:hover { border-color: var(--ember); color: var(--ember-deep); }

.link-underline {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ember-deep);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.link-underline-light { color: var(--crust-soft); }

/* ===== header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 20, 15, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 236, 221, 0.08);
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: contain;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--paper);
}
.brand-text em {
  font-family: var(--font-label);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crust);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--font-label);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper-dim);
}
.nav-links a:hover { color: var(--crust-soft); }
.nav-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ember);
  color: var(--on-ember);
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-icon svg { width: 22px; height: 22px; }
.nav-icon:hover {
  background: var(--ember-deep);
  transform: translateY(-1px);
}
.nav-cta { flex: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid rgba(245, 236, 221, 0.25);
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--paper);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 28px 22px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 15px;
}
.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 236, 221, 0.1);
  color: var(--paper-dim);
}
.mobile-nav .btn { margin-top: 14px; }
.site-header.is-open .mobile-nav { display: flex; }

/* ===== hero ===== */
.hero {
  position: relative;
  z-index: 1;
  padding-top: 76px;
  overflow: hidden;
}
.hero-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 70px;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--paper);
}
.hero-copy h1 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--crust-soft), var(--ember) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: 17.5px;
  color: var(--paper-dim);
  max-width: 46ch;
  margin: 0 0 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 46px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(245, 236, 221, 0.14);
}
.hero-stats dt {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke-light);
  margin-bottom: 6px;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--crust-soft);
}

.hero-photo { position: relative; }
.hero-photo-frame {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 40px 80px -30px var(--shadow-strong);
  transform: rotate(2.2deg);
  border: 1px solid rgba(245, 236, 221, 0.12);
}
.hero-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-photo-tag {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 14px 30px -12px var(--shadow-soft);
  transform: rotate(-3deg);
}

/* faixa de brasa (ticker) */
.ember-strip {
  position: relative;
  z-index: 1;
  background: var(--ember);
  overflow: hidden;
  padding: 13px 0;
}
.ember-strip-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 26s linear infinite;
  width: max-content;
}
.ember-strip-track span {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ember-soft);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ember-strip-track { animation: none; }
}

/* ===== seções genéricas ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}
.section-dark { background: var(--char); }
.section-light { background: var(--cream); color: var(--ink); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 36px;
  max-width: 18ch;
  color: var(--paper);
}
.section-title-dark { color: var(--ink); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head .section-title { margin-bottom: 0; }

/* ===== história ===== */
.story-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.story-text h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 22px;
  color: var(--ink);
}
.story-text p {
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 52ch;
  margin: 0 0 16px;
}
.story-facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.story-facts li {
  font-size: 14.5px;
  color: var(--ink-muted);
}
.story-facts li span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ember-deep);
  margin-right: 10px;
}
.story-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(36, 26, 19, 0.35);
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ===== galeria ===== */
.gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 22px;
  margin-top: 8px;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  transition: transform 0.35s ease;
}
.gallery-item:hover { transform: translateY(-6px); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 18px 16px;
  background: linear-gradient(0deg, var(--scrim), transparent);
  font-family: var(--font-label);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.gallery-note {
  margin: 26px 0 0;
  font-size: 13.5px;
  color: var(--smoke-light);
}

/* ===== cardápio ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.menu-card {
  background: var(--cream-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu-card-feature {
  background: var(--char);
  border-color: var(--char);
  color: var(--paper);
}
.menu-tag {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crust);
  margin-bottom: 4px;
}
.menu-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 0;
}
.menu-card-feature h3 { color: var(--paper); }
.menu-card p {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0;
  flex: 1;
}
.menu-card-feature p { color: var(--paper-dim); }
.menu-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
}
.menu-price-old {
  font-size: 13px;
  color: var(--ink-faint);
  text-decoration: line-through;
}
.menu-price-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--ember-deep);
}
.menu-card-feature .menu-price-value { color: var(--crust-soft); }
.menu-price-value small { font-size: 15px; }

.menu-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.menu-cta span {
  font-size: 13.5px;
  color: #7C6A58;
}

/* ===== comunidade ===== */
.comunidade-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.comunidade-lede {
  font-size: 17px;
  color: var(--paper-dim);
  max-width: 42ch;
  margin: 0 0 22px;
}
.comunidade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ig-card {
  border: 1px dashed rgba(245, 236, 221, 0.25);
  border-radius: 18px;
  padding: 26px 20px;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  background: rgba(245, 236, 221, 0.03);
}
.ig-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(226, 72, 27, 0.14);
  color: var(--crust);
}
.ig-card p {
  margin: 0;
  font-size: 13px;
  color: var(--paper-dim);
  line-height: 1.5;
}
.ig-card-media {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-style: solid;
  display: block;
  transition: border-color 0.2s ease;
}
.ig-card-media:hover,
.ig-card-media:focus-visible {
  border-color: rgba(245, 236, 221, 0.35);
}
.ig-card-media picture,
.ig-card-media img,
.ig-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ig-icon-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--scrim);
  color: var(--paper);
  backdrop-filter: blur(2px);
}

/* ===== localização ===== */
.local-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.local-text address {
  font-style: normal;
  font-size: 16.5px;
  color: var(--ink-soft);
  margin: 0 0 30px;
  line-height: 1.6;
}
.local-info {
  display: grid;
  gap: 18px;
  margin: 0 0 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
}
.local-info dt {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.local-info dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}
.local-info a { border-bottom: 1.5px solid var(--ember); }
.local-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.local-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  box-shadow: 0 30px 60px -24px rgba(36, 26, 19, 0.35);
}
.local-map iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(0.15) sepia(0.08);
}

/* ===== footer ===== */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--char-2);
  padding: 50px 0;
  border-top: 1px solid rgba(245, 236, 221, 0.08);
}
.footer-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  color: var(--paper-dim);
}
.footer-links a:hover { color: var(--crust-soft); }
.footer-note {
  width: 100%;
  margin: 0;
  font-size: 12.5px;
  color: #7C6A58;
}

/* ===== whatsapp fab ===== */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  color: var(--on-ember);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px -10px var(--shadow-soft);
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); }

/* ===== reveal on scroll ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-init {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-in {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================================
   Responsivo
=================================================================== */
@media (max-width: 980px) {
  .hero-shell { grid-template-columns: 1fr; gap: 44px; padding-top: 34px; }
  .hero-photo { order: -1; max-width: 420px; margin: 0 auto; }
  .story-shell,
  .comunidade-shell,
  .local-shell { grid-template-columns: 1fr; gap: 36px; }
  .story-photo { order: -1; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-item-lg { grid-column: span 2; aspect-ratio: 16 / 10; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .comunidade-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .menu-grid { grid-template-columns: 1fr; }
  .comunidade-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item-lg { grid-column: span 1; }
  .section { padding: 68px 0; }
  .local-map { aspect-ratio: 4 / 3.6; }
}
