/* ========================================================================
   GRANELLO SORVETES — Landing Page
   ======================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --burgundy:    #7A3B3B;
  --burgundy-dk: #5C2A2A;
  --cream:       #F0DCC8;
  --cream-soft:  #E8D2BC;
  --dark:        #1A1210;
  --dark-soft:   #2A1F1C;
  --warm-white:  #FAF5EF;
  --warm-white-2:#F2EAE0;
  --text-dark:   #2C1A1A;
  --text-muted:  #6B5651;

  --shadow-sm: 0 2px 8px rgba(26, 18, 16, 0.08);
  --shadow-md: 0 8px 32px rgba(26, 18, 16, 0.12);
  --shadow-lg: 0 24px 60px rgba(26, 18, 16, 0.25);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul { list-style: none; }
iframe { border: none; }

/* ---------- UTILITIES ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow--light { color: var(--cream); }

.dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--burgundy);
  border-radius: 50%;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
h2 em {
  font-style: italic;
  color: var(--burgundy);
}

h3 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease),
              background 0.25s var(--ease),
              color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn--small { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.btn--primary {
  background: var(--burgundy);
  color: var(--cream);
  box-shadow: 0 4px 16px rgba(122, 59, 59, 0.25);
}
.btn--primary:hover {
  background: var(--burgundy-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(122, 59, 59, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(240, 220, 200, 0.4);
}
.btn--ghost:hover {
  background: var(--cream);
  color: var(--burgundy);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--cream);
}
.btn--ghost-light:hover {
  background: var(--cream);
  color: var(--burgundy);
  transform: translateY(-2px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s var(--ease),
              padding 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(26, 18, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.6rem 0;
  box-shadow: 0 1px 0 rgba(240, 220, 200, 0.08);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo img {
  height: 46px; width: 46px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.nav__logo:hover img { transform: rotate(-6deg); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease);
}
.nav__links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.2s;
  transform-origin: center;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--dark);
  color: var(--cream);
  overflow: hidden;
  padding: 8rem 0 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(122, 59, 59, 0.4), transparent 60%),
    radial-gradient(ellipse at 20% 100%, rgba(122, 59, 59, 0.15), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(122, 59, 59, 0.15), transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__mark {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin-bottom: 2.25rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-soft);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}
.hero__eyebrow .rule {
  width: 36px;
  height: 1px;
  background: var(--cream-soft);
  opacity: 0.55;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
  color: var(--cream);
}
.hero__title span { display: block; }
.hero__title--italic {
  font-style: italic;
  color: var(--cream-soft);
}

.hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--cream-soft);
  max-width: 560px;
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ----- scroll indicator ----- */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1.5px solid rgba(240, 220, 200, 0.4);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  transition: border-color 0.2s;
}
.hero__scroll:hover { border-color: var(--cream); }
.hero__scroll span {
  display: block;
  width: 3px; height: 8px;
  background: var(--cream);
  border-radius: 999px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ============================================================
   SOBRE
   ============================================================ */
.sobre {
  background: var(--warm-white);
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
  text-align: center;
}

.sobre__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sobre h2 { margin-bottom: 2.5rem; }

.sobre__text {
  max-width: 600px;
  margin: 0 auto;
}
.sobre__text p {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.sobre__stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(122, 59, 59, 0.15);
  border-bottom: 1px solid rgba(122, 59, 59, 0.15);
  padding: 2.5rem 0;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--burgundy);
  font-style: italic;
  line-height: 1;
}
.stat__label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   CARDÁPIO
   ============================================================ */
.cardapio {
  background: var(--dark);
  color: var(--cream);
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
  overflow: hidden;
}
.cardapio::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(122, 59, 59, 0.25), transparent 70%);
  pointer-events: none;
}

.cardapio__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.cardapio h2 {
  color: var(--cream);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cardapio__intro {
  color: var(--cream-soft);
  opacity: 0.75;
  max-width: 540px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.75rem;
  margin-bottom: 3.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(240, 220, 200, 0.12);
}
.tab {
  padding: 0.5rem 0;
  color: var(--cream-soft);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.55;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
  position: relative;
}
.tab::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--cream);
  transition: width 0.35s var(--ease);
}
.tab:hover { opacity: 0.95; }
.tab.is-active {
  opacity: 1;
  color: var(--cream);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.tab.is-active::after { width: 100%; }

.flavors {
  columns: 4;
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 0 auto 3.5rem;
  max-width: 920px;
  text-align: left;
  min-height: 220px;
}
.flavor {
  display: block;
  padding: 0.7rem 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--cream);
  border-bottom: 1px solid rgba(240, 220, 200, 0.12);
  transition: color 0.25s var(--ease), padding-left 0.3s var(--ease), border-color 0.25s var(--ease);
  break-inside: avoid;
  cursor: default;
  animation: flavor-in 0.45s var(--ease) backwards;
}
.flavor:hover {
  color: var(--cream);
  padding-left: 0.65rem;
  border-bottom-color: var(--cream);
}
.flavor:hover::before {
  opacity: 1;
  transform: translateX(0);
}
.flavor::before {
  content: '✦ ';
  color: var(--cream);
  opacity: 0;
  font-size: 0.75em;
  display: inline-block;
  transform: translateX(-8px);
  transition: opacity 0.25s, transform 0.3s var(--ease);
  margin-right: 0.25rem;
}
@keyframes flavor-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cardapio__cta { margin-top: 2rem; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews {
  background: var(--warm-white-2);
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.reviews__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.reviews .eyebrow { color: var(--burgundy); }
.stars {
  color: #C99B3F;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-right: 0.4rem;
}
.reviews h2 { max-width: 600px; margin-bottom: 3rem; }

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

.review {
  position: relative;
  padding: 2.25rem 2rem 2rem;
  background: var(--warm-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(122, 59, 59, 0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.review:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review__quote {
  position: absolute;
  top: -8px; left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--burgundy);
  opacity: 0.25;
}
.review__text {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.review__author {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--burgundy);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ============================================================
   LOCALIZAÇÃO
   ============================================================ */
.local {
  background: var(--dark);
  color: var(--cream);
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.local__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: stretch;
}

.local h2 {
  color: var(--cream);
  margin-bottom: 2.5rem;
}

.local__item {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(240, 220, 200, 0.1);
}
.local__item:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
}
.local__item p {
  color: var(--cream-soft);
  opacity: 0.9;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

.local__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.local__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 460px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(240, 220, 200, 0.08);
}
.local__map iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  filter: saturate(0.85);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--burgundy);
  color: var(--cream);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5rem) var(--gutter) 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}
.footer__brand img {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.footer__brand p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 280px;
}
.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--cream);
}
.footer__col p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__col a {
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s, padding-left 0.3s var(--ease);
  display: inline-block;
}
.footer__col a:hover {
  opacity: 1;
  padding-left: 0.5rem;
}
.footer__col a::before {
  content: '→ ';
  opacity: 0;
  transition: opacity 0.3s;
  margin-left: -1rem;
}
.footer__col a:hover::before { opacity: 1; }

.footer__bottom {
  border-top: 1px solid rgba(240, 220, 200, 0.15);
  padding: 1.5rem var(--gutter);
  text-align: center;
}
.footer__bottom p {
  font-size: 0.82rem;
  opacity: 0.7;
  letter-spacing: 0.04em;
  margin: 0;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* hero stagger */
.hero .hero__eyebrow            { transition-delay: 0s; }
.hero__title .reveal:nth-child(1) { transition-delay: 0.15s; }
.hero__title .reveal:nth-child(2) { transition-delay: 0.30s; }
.hero__title .reveal:nth-child(3) { transition-delay: 0.45s; }
.hero .hero__subtitle           { transition-delay: 0.60s; }
.hero .hero__ctas               { transition-delay: 0.75s; }
.hero .hero__visual             { transition-delay: 0.30s; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero { padding: 7rem 0 4rem; min-height: auto; }
  .hero__scroll { display: none; }

  .flavors { columns: 3; }

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

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

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(86%, 340px);
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open .nav__links { transform: translateX(0); }
  .nav__links a { font-size: 1.15rem; }
  .nav__links li:last-child { margin-top: 1rem; }
}

@media (max-width: 720px) {
  .flavors { columns: 2; }
  .sobre__stats { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }

  .hero { padding: 6rem 0 3rem; }
  .hero__mark { width: 72px; height: 72px; margin-bottom: 1.75rem; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero__subtitle { font-size: 1rem; }
  .hero__eyebrow { font-size: 0.7rem; gap: 0.6rem; }
  .hero__eyebrow .rule { width: 22px; }
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__ctas .btn { width: 100%; }

  .tabs { gap: 0.25rem 1rem; }
  .tab { font-size: 0.88rem; }
  .tab.is-active { font-size: 0.98rem; }
  .flavor { font-size: 0.98rem; padding: 0.55rem 0.2rem; }

  .review { padding: 2rem 1.5rem 1.5rem; }
  .review__text { font-size: 1rem; }

  .local__ctas { flex-direction: column; }
  .local__ctas .btn { width: 100%; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: 1; }
}
