/* =========================================================
   CECCHIN PIZZAS — Landing Page
   Italian luxury · modern · artisanal
   ========================================================= */

:root {
  /* Brand palette: red dominant + yellow + occasional orange gradient */
  --red: #E11D2E;
  --red-deep: #B0101E;
  --red-soft: #FFE5E8;
  --yellow: #FFC72C;
  --yellow-soft: #FFF1C4;
  --orange: #F97316;
  --gradient-warm: linear-gradient(90deg, var(--red) 0%, var(--orange) 50%, var(--yellow) 100%);

  --charcoal: #1A1614;
  --charcoal-soft: #2A2522;
  --cream: #FFFAF5;
  --gray-soft: #F5F2ED;
  --white: #FFFFFF;
  --text: #1A1614;
  --text-soft: #6B6560;
  --text-light: rgba(255, 250, 245, 0.78);

  --serif: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 14px rgba(26, 22, 20, 0.08);
  --shadow: 0 12px 40px rgba(26, 22, 20, 0.12);
  --shadow-lg: 0 30px 80px rgba(26, 22, 20, 0.18);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

a, button, [role="button"], .btn, .menu-tab, .gallery-arrow, .gallery-dot, .nav-toggle {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--red); color: var(--cream); }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--charcoal);
  font-variation-settings: "opsz" 96;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 600; letter-spacing: -0.04em; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -0.025em; }
h4 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; font-family: var(--sans); }

h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--red);
  font-weight: 700;
}

p { color: var(--text-soft); }
.lead { font-size: 1.15rem; color: var(--charcoal); font-weight: 400; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.2rem;
}
.eyebrow.dark { color: var(--red); }
.eyebrow.light { color: var(--yellow); }

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-dark {
  background: var(--charcoal);
  color: var(--cream);
  position: relative;
}
.section-dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark h2 em { color: var(--yellow); }
.section-dark p { color: var(--text-light); }
.section-cream { background: var(--gray-soft); }

.section-header {
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
}
.section-header p { margin-top: 1rem; font-size: 1.05rem; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: all .35s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn i { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover i { transform: translateX(3px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(225, 29, 46, 0.28);
}
.btn-primary:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(225, 29, 46, 0.4);
}

.btn-gradient {
  background: var(--gradient-warm);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: var(--white);
  box-shadow: 0 10px 28px rgba(225, 29, 46, 0.35);
  transition: background-position .6s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-gradient:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(249, 115, 22, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(255, 250, 245, 0.3);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 250, 245, 0.1);
  border-color: var(--cream);
}

.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: all .4s var(--ease);
}
.navbar.scrolled {
  padding: 0.7rem 0;
  background: rgba(255, 250, 245, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(26, 22, 20, 0.06);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cream);
  transition: color .3s var(--ease);
  line-height: 1;
}
.navbar.scrolled .logo { color: var(--charcoal); }

/* Logo image (real wordmark — replace SVG/PNG in /images) */
.logo-img {
  height: 100px;
  width: auto;
  max-width: 420px;
  object-fit: contain;
  display: block;
  transition: opacity .3s var(--ease), height .3s var(--ease), max-width .3s var(--ease);
}
.logo-light { display: block; }
.logo-dark  { display: none; }
.navbar.scrolled .logo-light { display: none; }
.navbar.scrolled .logo-dark  { display: block; }

/* Hero state: logo maior e deslocada para esquerda + ligeiramente para baixo */
.navbar:not(.scrolled) .logo-img {
  height: 92px;
  max-width: 380px;
}
.navbar:not(.scrolled) .logo {
  transform: translate(-48px, 18px);
}
.logo {
  transition: transform .35s var(--ease), color .3s var(--ease);
}

/* Footer always uses the light variant on the dark footer bg */
.logo-footer .logo-img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 280px;
}
.logo-footer { transform: none !important; }

@media (max-width: 768px) {
  .logo-img {
    height: 56px;
    max-width: 220px;
  }
  .navbar:not(.scrolled) .logo-img {
    height: 56px;
    max-width: 220px;
  }
  .navbar:not(.scrolled) .logo {
    transform: none;
  }
  .logo-footer .logo-img {
    height: 52px;
    max-width: 240px;
  }
}

@media (max-width: 380px) {
  .logo-img,
  .navbar:not(.scrolled) .logo-img {
    height: 46px;
    max-width: 180px;
  }
}

/* Text fallback shown only if all logo images fail to load */
.logo-fallback {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 1.5rem;
  color: inherit;
  display: inline-block;
}
.logo:has(.logo-img:not([style*="display: none"])) .logo-fallback {
  display: none;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cream);
  position: relative;
  padding: 0.4rem 0;
}
.navbar.scrolled .nav-links a { color: var(--charcoal); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  padding: 0.7rem 1.3rem;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  position: relative;
  z-index: 101;
}
.navbar.scrolled .nav-toggle { color: var(--charcoal); }
.navbar:has(.nav-links.is-open) .nav-toggle,
.navbar.scrolled:has(.nav-links.is-open) .nav-toggle { color: var(--cream); }
.nav-toggle i { width: 24px; height: 24px; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 20s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,22,20,0.45) 0%, rgba(26,22,20,0.35) 45%, rgba(26,22,20,0.85) 100%),
    radial-gradient(ellipse at 70% 60%, transparent 0%, rgba(176, 16, 30, 0.28) 100%);
}

.hero-content {
  text-align: center;
  max-width: 920px;
  padding: 0 1.5rem;
  color: var(--cream);
}
.hero-content .eyebrow { color: var(--yellow-soft); }
.hero-content h1 {
  color: var(--cream);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.hero-content h1 em { color: var(--yellow); }
.hero-content p {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(255, 250, 245, 0.9);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Hero mascot (pug com chef hat) ---- */
.hero-mascote {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 4rem);
  right: clamp(1rem, 4vw, 4rem);
  width: clamp(120px, 18vw, 220px);
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  animation: mascotePulse 2s ease-in-out infinite;
}
.hero-mascote img {
  width: 100%;
  height: auto;
  display: block;
}
@keyframes mascotePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@media (max-width: 640px) {
  .hero-mascote { display: none; }
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 250, 245, 0.65);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  transition: border-color .3s var(--ease);
}
.scroll-indicator:hover { border-color: var(--cream); }
.scroll-indicator span {
  width: 3px;
  height: 8px;
  background: var(--cream);
  border-radius: 2px;
}

/* ========== STATS ========== */
.stats {
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
}
.stats-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat {
  text-align: center;
  position: relative;
}
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem; top: 20%;
  width: 1px; height: 60%;
  background: rgba(255, 199, 44, 0.2);
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--yellow);
  display: inline-block;
  line-height: 1;
}
.stat-suffix {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--yellow);
  margin-left: 2px;
}
.stat-label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 600px;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.about-image:hover img { transform: scale(1.04); }
.about-image-tag {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
}
.about-image-tag i { width: 16px; height: 16px; }

.about-text h2 { margin-bottom: 1.2rem; }
.about-text p { margin-bottom: 1rem; }
.about-features {
  margin-top: 2rem;
  display: grid;
  gap: 0.8rem;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  color: var(--charcoal);
}
.about-features i {
  width: 20px; height: 20px;
  color: var(--red);
  flex-shrink: 0;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
.service-card {
  background: rgba(255, 250, 245, 0.04);
  border: 1px solid rgba(255, 199, 44, 0.15);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  transition: all .5s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.service-card-highlight {
  background: linear-gradient(140deg, rgba(255, 199, 44, 0.12), rgba(199, 93, 61, 0.08));
  border-color: rgba(255, 199, 44, 0.4);
}
.service-card-highlight::after {
  content: 'Opcional';
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(255, 199, 44, 0.4);
  border-radius: 100px;
  background: rgba(0,0,0,0.2);
}
.service-card-highlight .service-icon {
  background: linear-gradient(135deg, var(--orange), var(--red));
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 199, 44, 0.08), transparent);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 199, 44, 0.4);
  background: rgba(255, 250, 245, 0.06);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  margin-bottom: 1.5rem;
  position: relative;
}
.service-icon i { width: 26px; height: 26px; }
.service-card h3 { color: var(--cream); margin-bottom: 0.7rem; position: relative; }
.service-card p { font-size: 0.95rem; line-height: 1.65; position: relative; }

/* ========== MENU ========== */
.menu {
  padding-bottom: clamp(4rem, 9vw, 8rem);
  background: var(--cream);
}
.menu-banner {
  position: relative;
  height: clamp(260px, 38vh, 420px);
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.menu-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-out);
}
.menu-banner:hover img { transform: scale(1.04); }
.menu-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,22,20,0.35) 0%, transparent 35%, var(--cream) 100%);
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.menu-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 100px;
  border: 1.5px solid rgba(255, 199, 44, 0.3);
  background: transparent;
  transition: all .35s var(--ease);
  cursor: pointer;
}
.menu-tab:hover { color: var(--red); border-color: var(--yellow); }
.menu-tab:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.menu-tab.is-active {
  color: var(--cream);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(225, 29, 46, 0.22);
}
.menu-tab-count {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 199, 44, 0.18);
  color: var(--yellow);
  border-radius: 100px;
  transition: all .3s var(--ease);
}
.menu-tab.is-active .menu-tab-count {
  background: rgba(255, 250, 245, 0.18);
  color: var(--yellow-soft);
}

.menu-panel[hidden] { display: none; }

.flavors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.flavor {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.3rem;
  background: var(--white);
  border: 1px solid rgba(255, 199, 44, 0.2);
  border-radius: var(--radius-sm);
  transition: all .35s var(--ease);
  position: relative;
}
.flavor::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 60%;
  background: var(--red);
  border-radius: 0 2px 2px 0;
  transition: width .35s var(--ease);
}
.flavor:hover {
  border-color: var(--yellow);
  background: var(--gray-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.flavor:hover::before { width: 3px; }

.flavor-num {
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--yellow);
  font-style: italic;
  flex-shrink: 0;
  min-width: 22px;
  letter-spacing: 0.02em;
}
.flavor h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.005em;
  margin: 0;
}

.menu-cta {
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* ========== HOW IT WORKS ========== */
.howto-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.howto-timeline::before {
  content: '';
  position: absolute;
  top: 28px; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow) 20%, var(--yellow) 80%, transparent);
  opacity: 0.4;
}
.howto-step { text-align: center; position: relative; }
.howto-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--yellow);
  color: var(--red);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
  position: relative;
  z-index: 1;
  transition: all .4s var(--ease);
}
.howto-step:hover .howto-num {
  background: var(--red);
  color: var(--yellow);
  transform: scale(1.05);
}
.howto-step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.howto-step p { font-size: 0.92rem; }

/* ========== GALLERY ========== */
.gallery-carousel { position: relative; }

.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.25rem 0 0.5rem;
}
.gallery-track::-webkit-scrollbar { display: none; }

.gallery-track .g-item {
  flex: 0 0 calc((100% - 2rem) / 3);
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}
.gallery-track .g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.gallery-track .g-item:hover img { transform: scale(1.05); }

@media (max-width: 1024px) {
  .gallery-track .g-item { flex: 0 0 calc((100% - 1rem) / 2); }
}
@media (max-width: 640px) {
  .gallery-track .g-item { flex: 0 0 100%; aspect-ratio: 1 / 1; }
}

/* Arrows */
.gallery-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(225, 29, 46, 0.15);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: var(--charcoal);
  transition: all .25s var(--ease);
}
.gallery-arrow:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: translateY(-50%) scale(1.05);
}
.gallery-arrow i { width: 22px; height: 22px; }
.gallery-prev { left: -22px; }
.gallery-next { right: -22px; }

@media (max-width: 768px) {
  .gallery-arrow { display: none; }
}

/* Dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
}
.gallery-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(225, 29, 46, 0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.gallery-dot.is-active {
  background: var(--red);
  transform: scale(1.4);
}
.gallery-dot:hover { background: rgba(225, 29, 46, 0.5); }

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: var(--white);
  padding: 2rem 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  border-top: 3px solid var(--yellow);
  transition: transform .4s var(--ease);
}
.testimonial:hover { transform: translateY(-4px); }
.stars {
  display: flex;
  gap: 2px;
  color: var(--yellow);
  margin-bottom: 1rem;
}
.stars i,
.stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
}
.stars svg polygon,
.stars svg path { fill: currentColor; }
.testimonial p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}
.testimonial footer { display: flex; flex-direction: column; gap: 0.15rem; }
.testimonial footer strong { color: var(--red); font-weight: 600; }
.testimonial footer span { font-size: 0.85rem; color: var(--text-soft); }

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  padding: 0.65rem 1.2rem;
  background: var(--white);
  border: 1px solid rgba(255, 199, 44, 0.3);
  border-radius: 100px;
  font-size: 0.92rem;
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease);
}
.google-badge:hover {
  transform: translateY(-2px);
  border-color: var(--yellow);
  box-shadow: var(--shadow);
}
.google-badge svg { flex-shrink: 0; }
.google-badge strong {
  color: var(--red);
  font-weight: 800;
  font-family: var(--sans);
  font-size: 1.05rem;
  margin-right: 2px;
}
.google-badge i {
  width: 14px; height: 14px;
  color: var(--text-soft);
  opacity: 0.6;
}

/* ---- Checkbox field ---- */
.check-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.2rem 0 1.6rem;
  cursor: pointer;
  user-select: none;
}
.check-field input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check-box {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 199, 44, 0.4);
  background: rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease);
  flex-shrink: 0;
}
.check-box i {
  width: 14px; height: 14px;
  color: var(--charcoal);
  opacity: 0;
  transform: scale(0.5);
  transition: all .25s var(--ease);
}
.check-field input:checked + .check-box {
  background: var(--yellow);
  border-color: var(--yellow);
}
.check-field input:checked + .check-box i {
  opacity: 1;
  transform: scale(1);
}
.check-field input:focus-visible + .check-box {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
.check-text {
  font-size: 0.95rem;
  color: var(--cream);
  font-weight: 500;
}

/* ========== CONTACT ========== */
.contact { overflow-x: clip; }
.contact .container { max-width: min(var(--container), 100%); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-grid > * { min-width: 0; }
.contact-info, .contact-form { max-width: 100%; }
.contact-info h2 { margin-bottom: 1.2rem; }
.contact-list {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.4rem;
}
.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-list i {
  width: 22px; height: 22px;
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 4px;
}
.contact-list span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.contact-list a {
  color: var(--cream);
  font-weight: 500;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-list li > div { min-width: 0; flex: 1; }
.contact-list a:hover { color: var(--yellow); }

.contact-form {
  background: rgba(255, 250, 245, 0.04);
  border: 1px solid rgba(255, 199, 44, 0.18);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.contact-form h3 {
  color: var(--cream);
  margin-bottom: 1.8rem;
  font-size: 1.6rem;
}

.field { margin-bottom: 1.2rem; min-width: 0; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field-row > * { min-width: 0; }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.9rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 199, 44, 0.2);
  border-radius: var(--radius-sm);
  color: var(--cream);
  transition: all .25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
  box-sizing: border-box;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 250, 245, 0.4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(0,0,0,0.3);
}
.field textarea { resize: vertical; min-height: 90px; }
.field select option { background: var(--charcoal); color: var(--cream); }

.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 250, 245, 0.6);
  margin-top: 1rem;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--charcoal);
  color: var(--text-light);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  border-top: 1px solid rgba(255, 199, 44, 0.1);
  overflow-x: clip;
}
.footer .container { max-width: min(var(--container), 100%); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-grid > * { min-width: 0; }
.footer-brand p {
  color: rgba(255, 250, 245, 0.6);
  font-style: italic;
  font-family: var(--serif);
  margin-top: 1rem;
}
.logo-footer { color: var(--cream); }
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-col h4 {
  color: var(--yellow);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.footer-col a, .footer-col span {
  color: rgba(255, 250, 245, 0.7);
  font-size: 0.92rem;
  transition: color .25s var(--ease);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 199, 44, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 250, 245, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ========== FLOATING WHATSAPP ========== */
.float-wa {
  position: fixed;
  bottom: calc(1.8rem + env(safe-area-inset-bottom));
  right: calc(1.8rem + env(safe-area-inset-right));
  width: 58px; height: 58px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: all .35s var(--ease);
}
.float-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.55);
}
.float-wa i { width: 28px; height: 28px; }

/* ========== SCROLL REVEAL ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1180px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .flavors-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .stat:nth-child(2)::after { display: none; }
  .gallery-mosaic { grid-template-columns: repeat(3, 1fr); }
  .howto-timeline { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
  .howto-timeline::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(82vw, 340px);
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: max(4rem, env(safe-area-inset-top)) 2rem max(2rem, env(safe-area-inset-bottom));
    gap: 1.8rem;
    transform: translateX(100%);
    transition: transform .45s var(--ease-out);
    box-shadow: -20px 0 60px rgba(0,0,0,0.3);
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { color: var(--cream); font-size: 1.3rem; font-family: var(--serif); }
  .navbar.scrolled .nav-links a { color: var(--cream); }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-image img { aspect-ratio: 4 / 3; max-height: 460px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .flavors-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-tab { padding: 0.75rem 1.4rem; font-size: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat::after { display: none !important; }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g-wide { grid-column: span 2; }
  .howto-timeline { grid-template-columns: 1fr; }

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

  .field-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .float-wa { width: 52px; height: 52px; bottom: 1.2rem; right: 1.2rem; }
  .float-wa i { width: 24px; height: 24px; }

  .hero-ctas { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
  .hero-ctas .btn { width: 100%; }
}

@media (max-width: 480px) {
  .gallery-mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-wide, .g-tall { grid-column: auto; grid-row: auto; }
  .flavors-grid { grid-template-columns: 1fr; }
  .flavor { padding: 1rem 1.2rem; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ========== MOBILE FIXES (Android + iOS) ========== */

/* Touch target mínimo (44x44 Apple / 48x48 Android) */
.gallery-dot {
  position: relative;
}
.gallery-dot::before {
  content: '';
  position: absolute;
  inset: -16px;
}
.gallery-dots { gap: 0.6rem; padding: 0.5rem 0; }

.menu-tab { min-height: 44px; }
.nav-toggle { min-width: 44px; min-height: 44px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.contact-list a { display: inline-block; padding: 4px 0; max-width: 100%; }
.footer-col a { padding: 0.2rem 0; max-width: 100%; }

/* iOS: zoom automático dispara abaixo de 16px — força mínimo só em viewport mobile */
@media (max-width: 768px) {
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  /* Hero: reduz padding lateral em telas pequenas e dá espaço pro mascote sumir */
  .hero-content { padding: 0 1.25rem; }
  .hero-content p { font-size: 1.02rem; margin-bottom: 1.8rem; }

  /* Stats: gap menor + suffix e número não estourarem */
  .stats-grid { gap: 1.5rem 1rem; }
  .stat-num { font-size: clamp(2rem, 9vw, 3rem); }
  .stat-suffix { font-size: clamp(1.4rem, 6vw, 2rem); }
  .stat-label { font-size: 0.78rem; }

  /* Cardápio: tabs sempre visíveis, sem espremer */
  .menu-tab { padding: 0.7rem 1.2rem; font-size: 0.95rem; }

  /* About tag não vazar */
  .about-image-tag {
    bottom: 1rem; left: 1rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
  }

  /* Banner do menu mais alto em mobile (38vh ficava chapado) */
  .menu-banner { height: clamp(220px, 50vw, 360px); }

  /* Section header abaixo de 4rem é demais */
  .section-header { margin-bottom: 2.5rem; }

  /* Sticky scroll-indicator atrás do mascote em telas que ainda mostram mascote */
  .scroll-indicator { bottom: max(1.5rem, env(safe-area-inset-bottom)); }

  /* Footer alinhamento */
  .footer-bottom { padding-bottom: env(safe-area-inset-bottom); }
}

/* Mobile pequeno (iPhone SE, Galaxy A compactos) */
@media (max-width: 380px) {
  .container { padding: 0 1rem; }

  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }

  .btn-lg { padding: 0.95rem 1.4rem; font-size: 0.95rem; }

  .stats-grid { gap: 1.2rem 0.8rem; }
  .stat-num { font-size: 2.1rem; }

  .service-card { padding: 1.5rem 1.2rem; }

  .flavors-grid { gap: 0.6rem; }
  .flavor { padding: 0.85rem 1rem; gap: 0.7rem; }
  .flavor h3 { font-size: 1rem; }

  .testimonial { padding: 1.5rem 1.3rem; }
  .testimonial p { font-size: 1rem; }

  .contact-form { padding: 1.4rem; }
  .contact-form h3 { font-size: 1.35rem; margin-bottom: 1.4rem; }

  .float-wa { width: 52px; height: 52px; }
  .float-wa i { width: 24px; height: 24px; }

  .nav-cta { display: none; }
}

/* iOS Safari: input[type=date] alinhamento + select chevron */
@supports (-webkit-touch-callout: none) {
  .field input[type="date"] {
    min-height: 48px;
    line-height: 1.2;
  }
  .field select {
    background-image: linear-gradient(45deg, transparent 50%, var(--yellow) 50%),
                      linear-gradient(135deg, var(--yellow) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.2rem;
  }
}

/* Landscape baixo (celular deitado): hero não pode ser 100dvh inteiro */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: 560px; padding: 5rem 0 2rem; }
  .scroll-indicator { display: none; }
}
