/* =============================================
   BRI ATELIÊ DE DOCES — Folha de Estilo
   ============================================= */

:root {
  --primary:       #7B3F5E;   /* Rose profundo — títulos e destaques */
  --primary-dark:  #5C2E46;
  --primary-light: #A06080;
  --gold:          #C4A16B;   /* Dourado — acentos */
  --gold-light:    #DFC08E;
  --bg:            #FBF8F4;   /* Creme claro — fundo geral */
  --bg-alt:        #F3EDE6;   /* Creme escuro — seções alternadas */
  --text:          #2A2A2A;   /* Texto principal */
  --text-light:    #6B6B6B;   /* Texto secundário */
  --white:         #FFFFFF;
  --radius:        12px;
  --shadow:        0 4px 24px rgba(123,63,94,.10);
  --shadow-lg:     0 8px 40px rgba(123,63,94,.16);
  --transition:    .3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.mt-1 { margin-top: 1.5rem; }

/* ── TYPOGRAPHY ── */
.script {
  font-family: 'Great Vibes', cursive;
  color: var(--primary);
}

.section { padding: 96px 0; }
.section__eyebrow {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.section__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section__desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .05em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
}
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--light {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}
.btn--light:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn--whatsapp:hover { background: #1eba55; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(37,211,102,.3); }

.btn--instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
}
.btn--instagram:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(220,39,67,.3); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251,248,244,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196,161,107,.2);
  transition: var(--transition);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: .2rem 24px;   /* header ~30% menor */
}
.nav__logo {
  display: flex;
  align-items: center;
  line-height: 1;
}
.nav__logo-img {
  height: 110px;     /* logo reduzida menos que o header (~24%) */
  width: auto;
  object-fit: contain;
  display: block;
}
/* mantidos para compatibilidade caso o texto ainda exista */
.nav__logo-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2.8rem;
  color: var(--primary);
  line-height: 1;
}
.nav__logo-serif {
  font-family: 'Cormorant Garamond', serif;
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.4;
}
.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__links a {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--primary);
  transition: width var(--transition);
}
.nav__links a:hover { color: var(--primary); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav--scrolled { box-shadow: 0 2px 20px rgba(123,63,94,.12); }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(44,20,35,.55) 0%, rgba(44,20,35,.35) 60%, rgba(44,20,35,.65) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 24px;
}
.hero__tagline {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: .4rem;
}
.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero__title .script {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(5rem, 14vw, 10rem);
  color: var(--gold-light);
  line-height: .9;
}
.hero__logo-wrap {
  margin: .3rem auto .4rem;  /* textos mais próximos da logo */
}
.hero__logo-img {
  height: clamp(420px, 70vw, 600px);
  width: auto;
  max-width: 92vw;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.4));
}
.hero__sub {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 2rem;
  letter-spacing: .06em;
}

/* ── SOBRE ── */
.sobre { background: var(--white); }
.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.sobre__img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.sobre__img { object-fit: cover; width: 100%; height: 100%; }
.sobre__img-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(123,63,94,.85);
  color: var(--white);
  font-size: .78rem;
  text-align: center;
  padding: .5rem;
  letter-spacing: .05em;
}
.sobre__text p { color: var(--text-light); margin-bottom: 1rem; }

/* ── VALORES ── */
.valores { background: var(--bg-alt); }
.valores__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.valor__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.valor__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.valor__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--bg-alt);
  -webkit-text-stroke: 1.5px var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}
.valor__card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: .75rem;
}
.valor__card p { font-size: .95rem; color: var(--text-light); }

/* ── SABORES ── */
.sabores { background: var(--white); }
.sabores__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin: 3rem 0 1.5rem;
}
.sabores__grid--main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.sabor__card--featured {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.sabor__card--featured:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sabor__img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
}
.sabor__img-wrap img { transition: transform .4s ease; }
.sabor__card--featured:hover .sabor__img-wrap img { transform: scale(1.06); }
.sabor__info {
  padding: 1.25rem;
}
.sabor__info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: .4rem;
}
.sabor__info p { font-size: .85rem; color: var(--text-light); }

.sabores__grid--secondary {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: .5rem;
}
.sabor__pill {
  background: var(--bg-alt);
  border: 1.5px solid var(--gold-light);
  color: var(--primary);
  padding: .5rem 1.5rem;
  border-radius: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.sabores__note {
  text-align: center;
  font-size: .85rem;
  color: var(--text-light);
  margin-top: 1.5rem;
}
.sabores__note a { color: var(--primary); font-weight: 600; }

/* ── EVENTOS ── */
.eventos { background: var(--bg-alt); }
.eventos__tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.eventos__tab {
  background: var(--white);
  border: 1.5px solid rgba(196,161,107,.4);
  color: var(--text-light);
  padding: .65rem 1.75rem;
  border-radius: 50px;
  font-family: 'Raleway', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  transition: var(--transition);
}
.eventos__tab.active,
.eventos__tab:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.eventos__panel { display: none; }
.eventos__panel.active { display: block; }
.evento__desc {
  text-align: center;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}
.evento__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.evento__gallery .gal-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  position: relative;
}
.evento__gallery .gal-item::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  background: rgba(123,63,94,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.evento__gallery .gal-item:hover::after { opacity: 1; }
.evento__gallery .gal-item img { transition: transform .4s ease; }
.evento__gallery .gal-item:hover img { transform: scale(1.08); }

/* ── GALERIA ── */
.galeria { background: var(--white); }
.galeria__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.galeria__grid .gal-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  position: relative;
}
.galeria__grid .gal-item::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  background: rgba(123,63,94,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.galeria__grid .gal-item:hover::after { opacity: 1; }
.galeria__grid .gal-item img { transition: transform .4s ease; }
.galeria__grid .gal-item:hover img { transform: scale(1.08); }

/* ── ENCOMENDAS ── */
.encomendas { background: var(--bg-alt); }
.encomendas__cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--white);
  border-radius: calc(var(--radius) * 2);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}
.encomendas__cta-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.encomendas__cta-text p { color: var(--text-light); margin-bottom: 1.75rem; }
.encomendas__btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.encomendas__cta-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
}

.pagamento {
  background: var(--white);
  border-radius: calc(var(--radius) * 2);
  padding: 3rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.pagamento__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
}
.pagamento__grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.pagamento__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
}
.pagamento__item svg { color: var(--gold); }
.pagamento__note { font-size: .88rem; color: var(--text-light); }

/* ── FOOTER ── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 1.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.5rem;
}
.footer__logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: .5rem;
}
.footer__brand .nav__logo-script { color: var(--gold-light); }
.footer__brand-serif { color: rgba(255,255,255,.6); }
.footer__brand p { font-size: .9rem; margin-top: .75rem; opacity: .7; }
.footer__links, .footer__contact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer__links h4, .footer__contact h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: .5rem;
}
.footer__links a, .footer__contact a {
  font-size: .9rem;
  opacity: .75;
  transition: opacity var(--transition);
}
.footer__links a:hover, .footer__contact a:hover { opacity: 1; }
.footer__copy {
  text-align: center;
  font-size: .8rem;
  opacity: .5;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.9);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(0,0,0,.5);
  width: auto;
  height: auto;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox__close { top: 1.5rem; right: 1.5rem; font-size: 1.8rem; }
.lightbox__prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,.25); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(196,161,107,.2);
    box-shadow: var(--shadow);
  }
  .nav__links.open { display: flex; }
  .nav__links li a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(196,161,107,.1);
  }
  .sobre__grid { grid-template-columns: 1fr; }
  .valores__grid { grid-template-columns: 1fr; }
  .sabores__grid--main { grid-template-columns: repeat(2, 1fr); }
  .evento__gallery { grid-template-columns: repeat(2, 1fr); }
  .galeria__grid { grid-template-columns: repeat(2, 1fr); }
  .encomendas__cta { grid-template-columns: 1fr; }
  .encomendas__cta-img { display: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 540px) {
  .sabores__grid--main { grid-template-columns: 1fr; }
  .evento__gallery { grid-template-columns: repeat(2, 1fr); }
  .galeria__grid { grid-template-columns: 1fr; }
  .pagamento__grid { gap: 1.5rem; }
}
