/* ---------- Dona Margherita Pizzaria — stylesheet ---------- */

:root{
  --bg: #14100e;
  --bg-elev: #1c1613;
  --bg-elev-2: #241c18;
  --cream: #f6efe4;
  --cream-dim: #cfc3b2;
  --red: #d8402c;
  --red-dark: #ab2f1f;
  --gold: #d8a34c;
  --green: #5c8a54;
  --line: rgba(246,239,228,0.1);
  --shadow: 0 20px 50px rgba(0,0,0,0.35);
  --radius: 18px;
  --font-head: "Fraunces", serif;
  --font-body: "Poppins", sans-serif;
}

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

html{ scroll-behavior: smooth; scroll-padding-top: 90px; }

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

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

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

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

h1,h2,h3,h4{
  font-family: var(--font-head);
  font-weight: 600;
  margin: 0 0 .5em;
  line-height: 1.15;
}

p{ margin: 0 0 1em; color: var(--cream-dim); }

.section{ padding: 96px 0; position: relative; }
@media (max-width: 640px){ .section{ padding: 64px 0; } }

.section-eyebrow{
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .6em;
}

.section-title{
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--cream);
  margin-bottom: .7em;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .9em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn .ico{ width: 1.1em; height: 1.1em; }
.btn-primary{
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 10px 25px rgba(216,64,44,.35);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px rgba(216,64,44,.45); }
.btn-outline{
  background: rgba(246,239,228,.05);
  border-color: rgba(246,239,228,.35);
  color: var(--cream);
  backdrop-filter: blur(4px);
}
.btn-outline:hover{ background: rgba(246,239,228,.15); transform: translateY(-2px); }

.link-arrow{
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: .92rem;
  margin-top: .4em;
  transition: transform .2s ease;
}
.link-arrow:hover{ transform: translateX(4px); }

/* Top strip */
#top-strip{
  background: var(--red-dark);
  color: #fff;
  text-align: center;
  font-size: .82rem;
  padding: 8px 16px;
}
#top-strip p{ margin:0; color: #fff; }
#top-strip a{ text-decoration: underline; font-weight: 600; }

/* Header */
#header{
  position: sticky;
  top: 0;
  z-index: 500;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
/* blur lives on a pseudo-element (not #header itself) so #header never
   becomes a containing block for its position:fixed mobile-nav child */
#header::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20,16,14,.75);
  backdrop-filter: blur(14px);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand{
  display: flex;
  align-items: center;
  gap: .6em;
}
.brand-logo{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.brand-text{
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--cream);
  letter-spacing: .01em;
}
.brand-text em{ color: var(--gold); font-style: italic; }

#main-nav{
  display: flex;
  align-items: center;
  gap: 2em;
}
#main-nav a{
  font-size: .92rem;
  font-weight: 500;
  color: var(--cream-dim);
  transition: color .2s ease;
}
#main-nav a:hover{ color: var(--gold); }
.nav-cta{ color: #fff !important; padding: .65em 1.4em; }

#nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
#nav-toggle span{
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

/* Hero */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg{
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(216,64,44,.28), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(92,138,84,.25), transparent 55%),
    url("../img/loja.jpg");
  background-size: cover;
  background-position: center 70%;
  filter: saturate(1.05);
}
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,14,.55) 0%, rgba(20,16,14,.88) 65%, var(--bg) 100%);
}
.hero-content{ position: relative; z-index: 2; padding: 80px 24px; }
.eyebrow{
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  color: var(--gold);
  font-weight: 600;
}
.hero h1{
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--cream);
  max-width: 14ch;
  margin-top: .3em;
}
.hero-sub{
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--cream-dim);
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin: 1.6em 0 2.4em;
}
.hero-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 1.4em 2.4em;
  padding-top: 1.8em;
  border-top: 1px solid var(--line);
}
.hero-badge{ display: flex; flex-direction: column; }
.hero-badge strong{
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--gold);
}
.hero-badge span{ font-size: .82rem; color: var(--cream-dim); }

/* Destaques */
.destaques{ background: var(--bg-elev); }
.destaques-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 900px){ .destaques-grid{ grid-template-columns: 1fr; } }

.destaque-card{
  background: var(--bg-elev-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease;
}
.destaque-card:hover{ transform: translateY(-6px); }
.destaque-card img{ height: 220px; width: 100%; object-fit: cover; }
.destaque-card--big{ grid-row: span 1; }
.destaque-card--big img{ height: 260px; }
.destaque-body{ padding: 26px; display: flex; flex-direction: column; gap: .3em; }
.tag{
  align-self: flex-start;
  background: rgba(216,163,76,.15);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .35em .9em;
  border-radius: 999px;
  margin-bottom: .6em;
}
.destaque-body h3{ font-size: 1.4rem; margin-bottom: .3em; }
.destaque-body p{ font-size: .92rem; margin-bottom: .6em; }
.price-tag{
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--red);
  margin-top: auto;
}
.price-tag span{ font-size: .9rem; color: var(--cream-dim); font-family: var(--font-body); }

/* Sobre */
.sobre-grid{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px){ .sobre-grid{ grid-template-columns: 1fr; gap: 32px; } }
.sobre-img img{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.sobre-list{
  list-style: none;
  padding: 0;
  margin: 1.4em 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8em 1.2em;
}
.sobre-list li{
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .8em 1em;
  font-size: .92rem;
}
@media (max-width: 480px){ .sobre-list{ grid-template-columns: 1fr; } }

/* Cardapio */
.cardapio{ background: var(--bg-elev); }
.tabs{
  display: flex;
  flex-wrap: wrap;
  gap: .6em;
  margin: 32px 0 8px;
}
.tab-btn{
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  color: var(--cream-dim);
  padding: .7em 1.3em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}
.tab-btn:hover{ color: var(--cream); border-color: var(--gold); }
.tab-btn.active{
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 600;
}
.cardapio-note{ font-size: .82rem; color: var(--cream-dim); margin: 12px 0 0; font-style: italic; }

.tab-panel{ display: none; margin-top: 24px; animation: fadeIn .4s ease; }
.tab-panel.active{ display: block; }
@keyframes fadeIn{ from{ opacity:0; transform: translateY(8px);} to{opacity:1; transform:none;} }

.menu-subgroup{ margin-bottom: 28px; }
.menu-subtitle{
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: .3em;
}
.menu-subnote{ font-size: .85rem; color: var(--cream-dim); margin-bottom: 1em; font-style: italic; }
.menu-subnote-inline{ font-family: var(--font-body); font-size: .7rem; color: var(--cream-dim); font-weight: 400; }

.menu-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
.menu-list--compact{ grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 760px){ .menu-list, .menu-list--compact{ grid-template-columns: 1fr; } }

.menu-list li{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.menu-item h4{
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--cream);
  margin: 0;
}
.menu-item p{ font-size: .8rem; margin: .2em 0 0; color: var(--cream-dim); }
.menu-price{
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  font-size: .95rem;
}

.cardapio-cta{
  margin-top: 48px;
  padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(216,64,44,.18), rgba(92,138,84,.14));
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}
.cardapio-cta p{ font-family: var(--font-head); font-size: 1.3rem; color: var(--cream); margin: 0; }

/* Galeria */
.galeria-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.galeria-grid img{
  border-radius: 14px;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
  filter: saturate(1.02);
}
.galeria-grid img:hover{ transform: scale(1.04); }
@media (max-width: 760px){ .galeria-grid{ grid-template-columns: 1fr 1fr; } }
.galeria-follow{ margin-top: 24px; text-align: center; font-size: .92rem; }
.galeria-follow a{ color: var(--gold); font-weight: 600; }

/* Local */
.local-grid{
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: stretch;
}
@media (max-width: 860px){ .local-grid{ grid-template-columns: 1fr; } }
.info-block{ margin-bottom: 1.4em; }
.info-block h3{ font-size: 1.05rem; color: var(--cream); margin-bottom: .2em; }
.info-block p{ margin: 0; font-size: .95rem; }
.info-block a{ color: var(--gold); font-weight: 600; }
.local-map{
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.local-map iframe{ width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(.15) contrast(1.05); }

/* Footer */
.footer{ background: var(--bg-elev-2); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px){ .footer-inner{ grid-template-columns: 1fr; } }
.footer-brand{ display: flex; flex-direction: column; gap: .8em; max-width: 320px; }
.footer-brand img{ width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.footer-brand p{ font-size: .88rem; margin: 0; }
.footer-links{ display: flex; flex-direction: column; gap: .7em; font-size: .92rem; }
.footer-links a:hover{ color: var(--gold); }
.footer-contact{ display: flex; flex-direction: column; gap: .7em; font-size: .92rem; }
.footer-contact a{ color: var(--gold); font-weight: 600; }
.footer-bottom{ padding: 22px 24px; text-align: center; font-size: .78rem; color: var(--cream-dim); }
.footer-bottom p{ margin: 0; }

/* WhatsApp Floating Button */
.whatsapp-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #25d366, #1ebe5b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37,211,102,.45);
  z-index: 900;
  transition: transform .25s ease;
}
.whatsapp-float .ico{ width: 30px; height: 30px; position: relative; z-index: 2; }
.whatsapp-float:hover{ transform: scale(1.08); }
.whatsapp-pulse{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: .55;
  animation: pulse 2.2s ease-out infinite;
  z-index: 1;
}
@keyframes pulse{
  0%{ transform: scale(1); opacity: .55; }
  100%{ transform: scale(1.9); opacity: 0; }
}
@media (max-width: 600px){
  .whatsapp-float{ width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .whatsapp-float .ico{ width: 26px; height: 26px; }
}

/* Reveal on scroll */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity: 1; transform: none; }

/* Mobile nav */
@media (max-width: 900px){
  #main-nav{
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 1.6em;
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow-y: auto;
  }
  #main-nav.open{ transform: translateX(0); }
  #main-nav a{ font-size: 1.1rem; }
  .nav-cta{ margin-top: .6em; }
  #nav-toggle{ display: flex; }
  #nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  #nav-toggle.open span:nth-child(2){ opacity: 0; }
  #nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}
