/* ==============================================
   ESPHIRRA'S — Landing Page
   ============================================== */

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

:root {
  --yellow:      #FFD700;
  --yellow-dim:  rgba(255,215,0,0.12);
  --black:       #0D0D0D;
  --dark:        #111111;
  --dark-card:   #1A1A1A;
  --cream:       #FAF6EE;
  --cream-mid:   #EEE8D8;
  --text-light:  #F0EBE0;
  --text-muted:  rgba(240,235,224,0.45);
  --text-dark:   #1A1A1A;
  --text-mid:    #444444;
  --r:           12px;
  --r-lg:        20px;
  --ease:        cubic-bezier(0.4,0,0.2,1);
  --t:           0.35s var(--ease);
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--dark); color: var(--text-light); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; }
em   { font-style: italic; color: var(--yellow); }
mark { background: none; color: var(--yellow); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 50px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em; cursor: pointer; transition: var(--t); border: none;
}
.btn--primary { background: var(--yellow); color: var(--black); }
.btn--primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255,215,0,.22); }
.btn--hero {
  padding: 20px 52px; font-size: 1.2rem; font-weight: 700;
  box-shadow: 0 0 0 0 rgba(255,215,0,.55);
  animation: heroPulse 2.2s ease-in-out infinite;
}
.btn--hero:hover { animation-play-state: paused; box-shadow: 0 16px 48px rgba(255,215,0,.4); }
@keyframes heroPulse {
  0%   { box-shadow: 0 0 0 0   rgba(255,215,0,.55); transform: scale(1); }
  50%  { box-shadow: 0 0 0 18px rgba(255,215,0,0);  transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0   rgba(255,215,0,0);   transform: scale(1); }
}
.btn--sm { padding: 10px 22px; font-size: 0.875rem; background: var(--yellow); color: var(--black); }
.btn--sm:hover { background: #fff; }

/* EYEBROW */
.eyebrow { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.eyebrow--light { color: #FFB347; }

/* SECTION HEADER */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(2rem,4vw,3rem); font-weight: 900; margin-bottom: 14px; }
.section-header p  { color: var(--text-muted); font-size: 1.05rem; line-height: 1.75; max-width: 520px; margin: 0 auto; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: .08s; }
.reveal--delay-2 { transition-delay: .16s; }
.reveal--delay-3 { transition-delay: .24s; }
.reveal--delay-4 { transition-delay: .32s; }

/* HERO ANIM */
.hero-anim { opacity: 0; transform: translateY(20px); }
.hero-anim--1 { animation: heroIn .9s var(--ease) .1s  forwards; }
.hero-anim--2 { animation: heroIn .9s var(--ease) .35s forwards; }
.hero-anim--3 { animation: heroIn .9s var(--ease) .5s  forwards; }
.hero-anim--4 { animation: heroIn .9s var(--ease) .65s forwards; }
.hero-anim--5 { animation: heroIn .9s var(--ease) .8s  forwards; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* ==============================================
   NAV
   ============================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 28px; transition: var(--t);
}
.nav.scrolled {
  background: rgba(11,11,11,.93); backdrop-filter: blur(16px);
  padding: 12px 28px; border-bottom: 1px solid rgba(255,215,0,.1);
}
.nav__inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav__logo  { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; }

/* ==============================================
   HERO
   ============================================== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background-color: var(--black); background-size: cover; background-position: center;
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(13,13,13,.85) 0%, rgba(13,13,13,.75) 60%, rgba(13,13,13,.92) 100%),
              radial-gradient(ellipse 70% 55% at 50% 35%, rgba(255,215,0,.06) 0%, transparent 65%);
}
.hero__content { position: relative; z-index: 1; text-align: center; padding: 100px 28px 40px; max-width: 680px; width: 100%; }
.hero__logo    { width: clamp(110px,18vw,170px); margin: 0 auto 36px; border-radius: 50%; filter: drop-shadow(0 0 48px rgba(255,215,0,.18)); }
.hero__eyebrow { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 22px; }
.hero__title   { font-size: clamp(3.2rem,9vw,5.8rem); font-weight: 900; line-height: 1.04; margin-bottom: 22px; }
.hero__sub     { font-size: 1.1rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 44px; max-width: 420px; margin-left: auto; margin-right: auto; }
.hero__scroll  { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); }
.hero__scroll-line { display: block; width: 1px; height: 52px; background: linear-gradient(to bottom, rgba(255,215,0,.7), transparent); animation: scrollPulse 2.2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity:.25; } 50% { opacity:1; } }

/* ==============================================
   MANIFESTO
   ============================================== */
.manifesto { background: #000; overflow: hidden; }
.manifesto__img { width: 100%; max-height: 55vw; min-height: 260px; object-fit: cover; object-position: center; display: block; transition: transform 8s ease; }
.manifesto:hover .manifesto__img { transform: scale(1.015); }

/* ==============================================
   GALERIA (salgadas + doces)
   ============================================== */
.galeria { padding: 64px 0 0; background: var(--black); }

.galeria__header { text-align: center; margin-bottom: 36px; }
.galeria__header h2 { font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 900; margin-bottom: 10px; }
.galeria__header p  { color: var(--text-muted); font-size: 1rem; line-height: 1.7; max-width: 480px; margin: 0 auto; }

/* MAGAZINE GRID */
.magazine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 6px 6px;
}
.magazine--doces { background: #0e0e0e; }

.gcard {
  position: relative; overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.gcard--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}
.gcard img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease);
  display: block;
}
.gcard:hover img { transform: scale(1.06); }

/* Hover label */
.gcard__label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  transform: translateY(100%);
  transition: transform .35s var(--ease);
}
.gcard:hover .gcard__label { transform: translateY(0); }

/* CTA entre galeria e lojas */
.galeria__cta {
  text-align: center;
  padding: 60px 28px;
  background: var(--black);
}
.galeria--doces + .lojas .galeria__cta { display: none; }

/* ==============================================
   LOJAS
   ============================================== */
.lojas { padding: 64px 0; background: var(--dark); }
.lojas__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px,1fr)); gap: 14px; }

.scroll-hook { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 0 8px; }
.scroll-hook__text { font-family: var(--serif); font-size: 1rem; color: var(--text-muted); letter-spacing: 0.04em; }
.scroll-hook__arrow { color: var(--yellow); display: flex; animation: bounceDown 1.8s ease-in-out infinite; }
.scroll-hook__arrow:hover { color: var(--text-light); }
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.55; }
}

.loja-card {
  display: flex; align-items: center; gap: 22px;
  padding: 26px 30px;
  background: var(--dark-card);
  border: 1px solid rgba(255,215,0,.07);
  border-radius: var(--r-lg);
  transition: var(--t);
  position: relative; overflow: hidden;
}
.loja-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.loja-card:hover { border-color: rgba(255,215,0,.2); transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,.5); }
.loja-card:hover::after { transform: scaleX(1); }
.loja-card__num  { font-family: var(--serif); font-size: 1.8rem; font-weight: 900; color: var(--yellow); opacity: .3; min-width: 48px; transition: var(--t); }
.loja-card:hover .loja-card__num { opacity: .9; }
.loja-card__info { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.loja-card__city { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.loja-card__ig   { font-size: .78rem; color: var(--yellow); opacity: .6; }
.loja-card__cta  { font-size: .82rem; font-weight: 600; color: var(--yellow); opacity: 0; transform: translateX(-10px); transition: var(--t); white-space: nowrap; }
.loja-card:hover .loja-card__cta { opacity: 1; transform: translateX(0); }

/* ==============================================
   HISTÓRIA
   ============================================== */
.historia { padding: 72px 0; background: var(--cream); color: var(--text-dark); content-visibility: auto; contain-intrinsic-size: 0 600px; }
.historia__inner { display: grid; grid-template-columns: 180px 1fr; gap: 72px; align-items: start; }
.historia__aside { position: sticky; top: 100px; display: flex; flex-direction: column; }
.historia__aside .eyebrow { color: #9A7800; }
.historia__year { font-family: var(--serif); font-size: 3.8rem; font-weight: 900; color: var(--black); line-height: 1; margin-bottom: 8px; }
.historia__year--now { font-size: 2.4rem; color: #9A7800; margin-top: 8px; font-style: italic; }
.historia__line { width: 2px; height: 60px; background: linear-gradient(to bottom, var(--black), rgba(0,0,0,.1)); margin: 0 4px; }
.historia__content h2 { font-size: clamp(2.2rem,3.5vw,2.9rem); font-weight: 900; margin-bottom: 28px; }
.historia__content em { color: #9A7800; }
.historia__lead   { font-size: 1.2rem; font-weight: 500; line-height: 1.65; margin-bottom: 26px; color: #2a2a2a; }
.historia__content p { font-size: 1.02rem; line-height: 1.9; color: var(--text-mid); margin-bottom: 22px; }
.historia__content strong { color: var(--text-dark); font-weight: 600; }
.historia__founders { display: flex; align-items: center; gap: 24px; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--cream-mid); }
.founder { display: flex; align-items: center; gap: 16px; }
.founder__avatar { width: 52px; height: 52px; background: var(--black); color: var(--yellow); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.founder__text { display: flex; flex-direction: column; gap: 3px; }
.founder__text strong { font-size: .95rem; font-weight: 700; }
.founder__text small  { font-size: .78rem; color: #888; }
.historia__founders-sep { font-size: 1.8rem; color: var(--cream-mid); font-weight: 300; padding: 0 4px; }

/* ==============================================
   NÚMEROS
   ============================================== */
.numeros { padding: 48px 0; background: var(--black); border-top: 1px solid rgba(255,215,0,.06); border-bottom: 1px solid rgba(255,215,0,.06); }
.numeros__grid { display: grid; grid-template-columns: repeat(4,1fr); }
.numero { padding: 20px 16px; text-align: center; border-right: 1px solid rgba(255,215,0,.06); }
.numero:last-child { border-right: none; }
.numero__val   { display: block; font-family: var(--serif); font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 900; color: var(--yellow); line-height: 1; }
.numero__unit  { display: inline-block; font-size: .9rem; font-weight: 600; margin-top: 6px; }
.numero__label { display: block; font-size: .75rem; color: var(--text-muted); margin-top: 6px; letter-spacing: .06em; text-transform: uppercase; }

/* ==============================================
   SOCIAL
   ============================================== */
.social { padding: 56px 0; background: var(--dark); }
.social__grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.social-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 20px 12px 18px;
  background: var(--dark-card); border: 1px solid rgba(255,215,0,.07);
  border-radius: var(--r-lg); transition: var(--t);
}
.social-card:hover { background: var(--yellow); border-color: var(--yellow); transform: translateY(-5px); box-shadow: 0 20px 48px rgba(255,215,0,.18); }
.social-card:hover .social-card__at,
.social-card:hover .social-card__city,
.social-card:hover .social-card__icon { color: var(--black); }
.social-card__icon { color: var(--yellow); transition: color var(--t); }
.social-card__at   { font-weight: 700; font-size: .88rem; color: var(--yellow); transition: color var(--t); word-break: break-all; }
.social-card__city { font-size: .75rem; color: var(--text-muted); transition: color var(--t); }

/* ==============================================
   FOOTER
   ============================================== */
.footer { padding: 44px 28px 32px; background: var(--black); border-top: 1px solid rgba(255,215,0,.08); text-align: center; }
.footer__logo    { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; margin: 0 auto 24px; opacity: .9; }
.footer__tagline { font-family: var(--serif); font-style: italic; color: var(--text-muted); font-size: 1.05rem; margin-bottom: 28px; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff; font-weight: 600; font-size: .95rem; padding: 14px 28px; border-radius: 50px; margin-bottom: 32px; transition: background var(--t), transform var(--t); }
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); }
.footer__links   { display: flex; justify-content: center; gap: 32px; margin-bottom: 36px; flex-wrap: wrap; }
.footer__links a { font-size: .85rem; color: var(--text-muted); font-weight: 500; transition: color var(--t); }
.footer__links a:hover { color: var(--yellow); }
.footer__copy    { font-size: .78rem; color: rgba(240,235,224,.2); }

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .social__grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 768px) {
  .magazine { grid-template-columns: repeat(2,1fr); gap: 4px; padding: 0 4px 4px; }
  .gcard--wide { grid-column: span 2; aspect-ratio: 2/1; }
  .historia__inner { grid-template-columns: 1fr; gap: 36px; }
  .historia__aside { position: static; flex-direction: row; align-items: center; gap: 16px; }
  .historia__line  { display: none; }
  .historia__year--now { margin-top: 0; }
  .numeros__grid { grid-template-columns: repeat(2,1fr); }
  .numero:nth-child(2) { border-right: none; }
  .numero:nth-child(3) { border-right: 1px solid rgba(255,215,0,.06); border-top: 1px solid rgba(255,215,0,.06); }
  .numero:nth-child(4) { border-right: none; border-top: 1px solid rgba(255,215,0,.06); }
  .lojas__grid { grid-template-columns: 1fr; }
  .social__grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 480px) {
  .magazine { grid-template-columns: 1fr; }
  .gcard--wide { grid-column: span 1; aspect-ratio: 4/3; }
  .gcard { aspect-ratio: 4/3; }
  .gcard__label { transform: translateY(0); }
  .historia__founders { flex-direction: column; align-items: flex-start; }
  .historia__founders-sep { display: none; }
  .footer__links { gap: 20px; }
  .social__grid { grid-template-columns: 1fr 1fr; }
}
