/* =========================================================
   Irene Tortas — identidade visual
   Paleta: crosta assada, papel kraft, ervas e queijo
   Tipografia: Fraunces (display, com personalidade) + Work Sans (corpo)
   Assinatura: cartões com borda "rasgada" + divisor em crimpado de torta
   ========================================================= */

:root {
  --crust-dark: #3f2314;
  --crust: #7a3b1e;
  --terracotta: #c1552c;
  --terracotta-dark: #9c4220;
  --herb: #5b6b3f;
  --mustard: #d9a441;
  --cream: #fbf3e7;
  --paper: #f3e4cb;
  --paper-dark: #e9d4ac;
  --ink: #2b1d12;
  --ink-soft: #5a4632;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(63, 35, 20, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

/* ---------- Faixa superior ---------- */
.topbar {
  background: var(--crust-dark);
  color: var(--paper);
  font-size: 0.82rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.topbar a {
  text-decoration: none;
  color: var(--paper);
}

.topbar a:hover {
  color: var(--mustard);
}

/* ---------- Cabeçalho ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--paper-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  font-weight: 600;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover {
  border-bottom-color: var(--terracotta);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
}

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

.btn-ghost {
  background: transparent;
  border-color: var(--crust);
  color: var(--crust);
}

.btn-ghost:hover {
  background: var(--crust);
  color: var(--cream);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 0 6rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  background: var(--paper);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.06;
  margin: 0 0 1.1rem;
  color: var(--crust-dark);
}

.hero h1 em {
  font-style: normal;
  color: var(--terracotta);
}

.hero p.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 2rem;
}

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

.hero-trust {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.hero-trust svg {
  width: 18px;
  height: 18px;
  stroke: var(--herb);
  flex-shrink: 0;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art svg {
  width: min(380px, 100%);
  filter: drop-shadow(0 18px 30px rgba(63, 35, 20, 0.22));
}

/* Moldura circular para fotos reais — mesmo motivo visual da "torteira" usado nas ilustrações */
.photo-frame {
  border-radius: 50%;
  background: var(--crust);
  padding: 10px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1;
  overflow: hidden;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hero-art .photo-frame {
  width: min(380px, 100%);
  filter: drop-shadow(0 18px 30px rgba(63, 35, 20, 0.22));
}

/* Moldura retangular para fotos de detalhe (mostra altura/textura da massa) */
.photo-detail {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--paper);
}

.photo-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Divisor em crimpado (assinatura visual) ---------- */
.crimp-divider {
  display: block;
  width: 100%;
  height: 34px;
  line-height: 0;
}

.crimp-divider svg {
  width: 100%;
  height: 100%;
}

/* ---------- Faixa de confiança ---------- */
.trust-strip {
  background: var(--crust-dark);
  color: var(--paper);
  padding: 2.6rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.trust-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.trust-item svg {
  width: 30px;
  height: 30px;
  stroke: var(--mustard);
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
}

.trust-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--paper-dark);
}

/* ---------- Seções gerais ---------- */
section {
  padding: 5rem 0;
}

.section-head {
  max-width: 60ch;
  margin: 0 0 3rem;
}

.section-head .eyebrow {
  margin-bottom: 0.8rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin: 0 0 0.8rem;
  color: var(--crust-dark);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Cardápio ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.menu-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem 1.6rem;
  position: relative;
  clip-path: polygon(
    0% 2%, 3% 0%, 97% 0%, 100% 3%,
    100% 97%, 97% 100%, 3% 100%, 0% 98%
  );
  box-shadow: var(--shadow-soft);
}

.menu-card .cat-icon {
  width: 46px;
  height: 46px;
  stroke: var(--crust);
  margin-bottom: 1rem;
}

.menu-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.9rem;
  color: var(--crust-dark);
}

.menu-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.menu-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.94rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--paper-dark);
  color: var(--ink);
}

.menu-card li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-link {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--herb);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.order-link:hover {
  background: var(--terracotta-dark);
  transform: scale(1.1);
}

.order-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--cream);
}

.tag-veg {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--herb);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.menu-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ---------- Galeria (ilustrações) ---------- */
.gallery-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: -1.8rem;
  margin-bottom: 2.6rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.2rem;
}

.gallery-item {
  background: var(--paper);
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-6px) rotate(-2deg);
}

.gallery-item svg {
  width: 100%;
  height: 100%;
}

.gallery-caption {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* ---------- Tamanhos e preços ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.price-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.3rem;
  color: var(--crust-dark);
}

.price-serves {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0 0 1.2rem;
}

.price-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--terracotta);
  margin: 0 0 1.4rem;
}

.price-featured {
  background: var(--crust-dark);
  color: var(--cream);
  transform: scale(1.04);
}

.price-featured h3,
.price-featured .price-value {
  color: var(--cream);
}

.price-featured .price-serves {
  color: var(--paper-dark);
}

.price-featured .btn-primary {
  background: var(--mustard);
  color: var(--crust-dark);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mustard);
  color: var(--crust-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

/* ---------- Depoimentos ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.testimonial-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}

.testimonial-card .stars {
  color: var(--mustard);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.testimonial-card p.quote {
  font-style: italic;
  color: var(--ink);
  margin: 0 0 1.1rem;
  font-size: 0.96rem;
}

.testimonial-card .author {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--crust-dark);
}


.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.about-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}

.about-card svg {
  width: 32px;
  height: 32px;
  stroke: var(--terracotta);
  margin-bottom: 0.9rem;
}

.about-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--crust-dark);
}

.about-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- Chamada final ---------- */
.cta-final {
  text-align: center;
  background: linear-gradient(180deg, var(--cream), var(--paper));
}

.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.8rem;
  color: var(--crust-dark);
}

.cta-final p {
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

/* ---------- Rodapé ---------- */
footer {
  background: var(--crust-dark);
  color: var(--paper);
  padding: 3rem 0 2rem;
}

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

.footer-brand .logo-text,
.footer-brand .logo-text small {
  color: var(--paper);
}

.footer-brand p {
  color: var(--paper-dark);
  font-size: 0.9rem;
  max-width: 32ch;
  margin-top: 0.8rem;
}

footer h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
  color: var(--mustard);
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

footer a {
  text-decoration: none;
  color: var(--paper-dark);
  font-size: 0.92rem;
}

footer a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(251, 243, 231, 0.15);
  padding-top: 1.4rem;
  font-size: 0.8rem;
  color: var(--paper-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  background: var(--herb);
  color: var(--cream);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  z-index: 60;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  stroke: var(--cream);
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-art {
    order: -1;
  }

  .hero-art svg {
    width: min(260px, 70%);
  }

  .trust-grid,
  .about-grid,
  .price-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .price-featured {
    transform: none;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  nav.main-nav {
    display: none;
  }

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

  .nav-cta .btn-ghost {
    display: none;
  }
}
