/* ============================================================
   FORNO & LENHA — Design Tokens & Global Styles
   ============================================================ */

:root {
  /* --- Palette --- */
  --color-cream:        #FDFAF3;
  --color-warm-white:   #FEFEFB;
  --color-ink:          #1C1C1C;
  --color-charcoal:     #2D2D2D;
  --color-ember:        #C84B31;
  --color-ember-dark:   #A63A24;
  --color-gold:         #D4A853;
  --color-gold-light:   #E8CF8A;
  --color-border:       #EBE7DD;

  /* --- Typography --- */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  /* --- Sizing --- */
  --max-width:   1200px;
  --gutter:      1.5rem;
  --radius:      12px;
  --radius-sm:   6px;

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(28, 28, 28, 0.06);
  --shadow-md: 0 4px 20px rgba(28, 28, 28, 0.08);
  --shadow-lg: 0 12px 40px rgba(28, 28, 28, 0.10);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-ink);
  background-color: var(--color-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Focus visible for keyboard nav */
:focus-visible {
  outline: 2px solid var(--color-ember);
  outline-offset: 3px;
}

/* ============================================================
   UTILITY: Container
   ============================================================ */

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

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 250, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  transition: opacity 0.2s var(--ease-out);
}

.logo:hover {
  opacity: 0.75;
}

.logo-amp {
  color: var(--color-ember);
  font-weight: 400;
}

/* Main nav */
.main-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.925rem;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease-out);
  position: relative;
}

.main-nav a:not(.nav-cta):hover {
  color: var(--color-ember);
}

.nav-cta {
  background: var(--color-ember);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  transition: background 0.2s var(--ease-out);
}

.nav-cta:hover {
  background: var(--color-ember-dark);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 120px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 45%, rgba(212, 168, 83, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 25% 55%, rgba(200, 75, 49, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ember);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--color-charcoal);
  max-width: 460px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-ember);
  color: #fff;
  box-shadow: 0 4px 16px rgba(200, 75, 49, 0.3);
}

.btn-primary:hover {
  background: var(--color-ember-dark);
  box-shadow: 0 6px 24px rgba(200, 75, 49, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-ink);
  background: rgba(28, 28, 28, 0.03);
}

/* Hero visual (pizza image) */
.hero-visual {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 48%;
  max-width: 600px;
  z-index: 1;
}

.hero-pizza {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 30px 80px rgba(28, 28, 28, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  filter: saturate(0.95) contrast(1.04);
}

/* ============================================================
   SECTION HEADERS (reusable)
   ============================================================ */

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ember);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

/* ============================================================
   MENU
   ============================================================ */

.menu {
  padding-block: 100px;
  background: var(--color-warm-white);
}

.menu-category {
  margin-bottom: 4rem;
}

.menu-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--color-ink);
  margin-bottom: 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* Menu card */
.menu-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  position: relative;
}

.menu-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.menu-card--highlight {
  border-color: var(--color-gold);
  background: linear-gradient(135deg, #FFFEF9 0%, #FFFDF5 100%);
}

.menu-card--combo {
  border-left: 4px solid var(--color-ember);
}

.menu-card-body {
  flex: 1;
  min-width: 0;
}

.menu-item-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-ink);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.menu-item-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-charcoal);
  line-height: 1.55;
  opacity: 0.8;
}

.menu-item-price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-ember);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials {
  padding-block: 100px;
  background: var(--color-cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Testimonial card */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  margin: 0;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Quote decoration */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1.25rem;
  right: 1.75rem;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.3;
  pointer-events: none;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1.25rem;
  color: var(--color-gold);
}

.testimonial-text {
  font-size: 0.975rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-charcoal);
  margin-bottom: 1.5rem;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-style: normal;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-ember);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.testimonial-name {
  display: block;
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--color-ink);
  line-height: 1.3;
}

.testimonial-role {
  display: block;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--color-charcoal);
  opacity: 0.6;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about {
  padding-block: 100px;
  background: var(--color-warm-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f0e8d8 0%, #e5d9c4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

/* About content */
.about-content {
  margin-top: 1.5rem;
}

.about-lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--color-charcoal);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.about-content p {
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--color-charcoal);
  margin-bottom: 1rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-signature {
  font-size: 1rem;
  color: var(--color-ember);
  padding-top: 0.5rem;
}

/* About image */
.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease-out);
}

.about-visual:hover .about-image {
  transform: scale(1.02);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.8);
  padding-block: 5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
}

.footer-logo .logo-amp {
  color: var(--color-gold);
}

.footer-tagline {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-info-block address {
  font-style: normal;
  font-size: 0.925rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
}

.footer-phone {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-gold-light);
  transition: color 0.2s var(--ease-out);
}

.footer-phone:hover {
  color: #fff;
}

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-hours dt {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.footer-hours dd {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
}

.footer-hours--closed dt,
.footer-hours--closed dd {
  color: var(--color-ember);
  opacity: 0.7;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s var(--ease-out);
}

.footer-links a:hover {
  color: var(--color-gold-light);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: #fff;
  padding: 0 1.35rem;
  height: 60px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), padding 0.3s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.5);
  padding-right: 1.75rem;
}

.whatsapp-float svg {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Label */
.whatsapp-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  opacity: 0;
  width: 0;
  transition: opacity 0.3s var(--ease-out), width 0.3s var(--ease-out);
  overflow: hidden;
}

.whatsapp-float:hover .whatsapp-label {
  opacity: 1;
  width: auto;
}

/* Pulse ring */
.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #25D366;
  z-index: 0;
  animation: whatsapp-pulse 2.2s ease-out infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 80%;
    max-width: 380px;
    margin-inline: auto;
    margin-top: 2.5rem;
    order: 2;
  }

  .hero-pizza {
    box-shadow: 0 20px 50px rgba(28, 28, 28, 0.15);
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-block: 140px 60px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav.open {
    display: block;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-warm-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem var(--gutter);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open ul {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PAGE-LOAD REVEAL (orquestrado)
   ============================================================ */

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tag,
.hero-title,
.hero-sub,
.hero-actions,
.hero-visual {
  animation: reveal-up 0.8s var(--ease-out) both;
}

.hero-tag     { animation-delay: 0.1s; }
.hero-title   { animation-delay: 0.2s; }
.hero-sub     { animation-delay: 0.35s; }
.hero-actions { animation-delay: 0.5s; }
.hero-visual  { animation-delay: 0.3s; }

/* ============================================================
   ACCESSIBILITY: Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
