/* =========================================================
   DOCE AMOR — Folha de estilos
   Cores baseadas na logo oficial
   ========================================================= */
:root {
  --chocolate: #53210f;      /* marrom da logo */
  --chocolate-deep: #3a160a;
  --cacau: #6e4a1f;          /* anel marrom da logo */
  --caramelo: #c9803a;
  --dourado: #f6b833;
  --amarelo: #fcd535;
  --laranja: #f26b2a;
  --bege: #e2c196;           /* círculo da logo */
  --creme: #fbf5ea;
  --creme-2: #f5e9d4;
  --texto: #3b1d0f;
  --texto-suave: #6b4a36;
  --whats: #25d366;

  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow-sm: 0 4px 14px rgba(83, 33, 15, .08);
  --shadow: 0 18px 40px -14px rgba(83, 33, 15, .28);
  --shadow-lg: 0 30px 60px -20px rgba(58, 22, 10, .38);
  --ease: cubic-bezier(.22, .8, .3, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--dourado); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 100;
  background: var(--chocolate); color: var(--creme); padding: .6rem 1rem; border-radius: 10px;
  text-decoration: none; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--caramelo); margin-bottom: .9rem;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; opacity: .55; }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--chocolate);
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  font-family: var(--font-body); font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: #fff; background: var(--btn-bg);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after { /* brilho suave ao passar o mouse */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(-1px); }

.btn--lg { font-size: 1rem; padding: 1.15rem 1.9rem; min-height: 62px; }
.btn--sm { font-size: .78rem; padding: .65rem 1.2rem; box-shadow: var(--shadow-sm); }
.btn__icon { width: 26px; height: 26px; flex: none; }

.btn--ifood { --btn-bg: linear-gradient(135deg, var(--laranja) 0%, #f08a2b 55%, var(--dourado) 130%); }
.btn--ifood .btn__icon { color: #fff; }
.btn--whats { --btn-bg: var(--chocolate); }
.btn--whats .btn__icon {
  width: 34px; height: 34px; padding: 5px; margin-left: -.4rem;
  background: var(--whats); color: #fff; border-radius: 50%;
}
.btn--light.btn--ifood { box-shadow: 0 16px 34px -12px rgba(242, 107, 42, .65); }

.cta-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.cta-group--center { justify-content: center; }

.link-arrow {
  font-weight: 800; color: var(--chocolate); text-decoration: none;
  border-bottom: 2px solid var(--dourado); padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--laranja); border-color: var(--laranja); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.header.is-scrolled {
  background: rgba(251, 245, 234, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(83, 33, 15, .08), 0 10px 30px -18px rgba(83, 33, 15, .3);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.header__brand img { width: 56px; height: 56px; }
.header__brand span { font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; color: var(--chocolate); }
.header__nav { display: flex; align-items: center; gap: 2rem; }
.header__nav > a:not(.btn) {
  text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--texto);
  position: relative; padding: .3rem 0;
}
.header__nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--dourado); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.header__nav > a:not(.btn):hover::after { transform: scaleX(1); }

.header__toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 14px;
  background: var(--creme-2); cursor: pointer; padding: 0 12px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.header__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--chocolate); transition: transform .3s, opacity .3s; }
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 2.5rem) 0 5.5rem;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(246, 184, 51, .22), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(226, 193, 150, .45), transparent 60%),
    var(--creme);
}
.hero__glow {
  position: absolute; width: 520px; height: 520px; right: -140px; top: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 107, 42, .14), transparent 65%); pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; position: relative; }
.hero__logo img { width: clamp(170px, 19vw, 230px); height: auto; margin: 0 0 1.2rem -12px; filter: drop-shadow(0 14px 22px rgba(83, 33, 15, .18)); }
.hero__title { font-size: clamp(2.4rem, 4.6vw, 3.9rem); color: var(--chocolate); }
.hero__title em {
  display: block; font-style: italic; font-weight: 500;
  background: linear-gradient(90deg, var(--laranja), var(--caramelo) 60%, #b8742f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}
.hero__lead { margin-top: 1.3rem; max-width: 34rem; font-size: 1.15rem; color: var(--texto-suave); }

.hero__media { position: relative; justify-self: center; width: min(100%, 470px); }
.hero__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bege);
}
.hero__frame picture { height: 100%; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.02); animation: heroZoom 14s var(--ease) both; }
.hero__media::before { /* moldura decorativa */
  content: ""; position: absolute; inset: -16px 16px 16px -16px; z-index: -1;
  border: 2px solid var(--caramelo); opacity: .55;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
}
.hero__badge {
  position: absolute; left: -38px; bottom: 54px;
  width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 0;
  background: var(--dourado); color: var(--chocolate);
  font-family: var(--font-title); font-style: italic; font-weight: 600; font-size: 1rem; line-height: 1.1;
  box-shadow: 0 16px 30px -10px rgba(201, 128, 58, .7);
  border: 4px solid var(--creme);
  animation: float 6s ease-in-out infinite;
}
.hero__badge-heart { font-style: normal; color: var(--laranja); font-size: 1.4rem; line-height: 1; }

@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }

/* ---------- Seções ---------- */
.section { padding: 6.5rem 0; position: relative; }
.section__head { text-align: center; max-width: 44rem; margin: 0 auto 3.2rem; }
.section__title { font-size: clamp(2rem, 3.8vw, 3rem); color: var(--chocolate); }

/* ---------- Galeria ---------- */
.delicias { background: #fff9f0; }
.delicias::before { /* onda de transição */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 56px;
  background: var(--creme);
  -webkit-mask: radial-gradient(60px 40px at 50% 0, #000 98%, transparent) 0 0 / 120px 56px repeat-x;
          mask: radial-gradient(60px 40px at 50% 0, #000 98%, transparent) 0 0 / 120px 56px repeat-x;
}
.gallery {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 300px;
  max-width: 980px; margin-inline: auto;
  grid-auto-flow: dense;
}
.gallery__item {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--bege); box-shadow: var(--shadow);
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item picture, .gallery__item img { width: 100%; height: 100%; }
.gallery__item img { object-fit: cover; transition: transform .9s var(--ease); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3rem 1.3rem 1.1rem;
  font-family: var(--font-title); font-weight: 600; font-size: 1.2rem; line-height: 1.25; color: #fff;
  background: linear-gradient(to top, rgba(43, 16, 6, .82), rgba(43, 16, 6, 0));
  transition: padding .45s var(--ease);
}
.gallery__item figcaption::before {
  content: ""; display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--dourado);
  margin-bottom: .55rem; transition: width .45s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover figcaption { padding-bottom: 1.5rem; }
.gallery__item:hover figcaption::before { width: 48px; }

.delicias__more { margin-top: 2.8rem; text-align: center; display: grid; gap: .5rem; justify-items: center; color: var(--texto-suave); }

/* ---------- Sobre ---------- */
.sobre { background: var(--creme); }
.sobre__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: center; }
.sobre__media { position: relative; }
.sobre__media::before {
  content: ""; position: absolute; inset: 28px -24px -24px 28px; z-index: 0;
  border-radius: var(--radius-lg); background: var(--bege);
}
.sobre__media::after {
  content: ""; position: absolute; width: 90px; height: 90px; right: -40px; top: -28px; z-index: 0;
  background: radial-gradient(circle, var(--caramelo) 2.5px, transparent 3px) 0 0 / 15px 15px; opacity: .5;
}
.sobre__media picture { position: relative; z-index: 1; }
.sobre__media img { border-radius: var(--radius-lg); aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow-lg); }
.sobre__text .section__title { margin-bottom: 1.4rem; }
.sobre__text p:not(.eyebrow):not(.sobre__sign) { font-size: 1.15rem; color: var(--texto-suave); max-width: 34rem; }
.sobre__sign { margin-top: 1.8rem; font-family: var(--font-title); font-style: italic; font-size: 1.25rem; color: var(--chocolate); }
.sobre__sign span { color: var(--laranja); }

/* ---------- Chamada para pedidos ---------- */
.pedidos { padding-top: 2rem; }
.pedidos__card {
  position: relative; overflow: hidden; text-align: center;
  padding: 5.5rem 2rem 4.5rem; border-radius: var(--radius-lg);
  color: var(--creme);
  background:
    radial-gradient(700px 300px at 100% 100%, rgba(242, 107, 42, .35), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(246, 184, 51, .2), transparent 60%),
    linear-gradient(160deg, var(--chocolate) 0%, var(--chocolate-deep) 100%);
  box-shadow: var(--shadow-lg);
}
.pedidos__drip { /* chocolate escorrendo, inspirado na logo */
  position: absolute; left: 0; right: 0; top: 0; height: 70px; pointer-events: none;
  background:
    radial-gradient(16px 46px at 8% 0, var(--caramelo) 96%, transparent),
    radial-gradient(11px 34px at 21% 0, var(--caramelo) 96%, transparent),
    radial-gradient(18px 58px at 37% 0, var(--caramelo) 96%, transparent),
    radial-gradient(10px 30px at 52% 0, var(--caramelo) 96%, transparent),
    radial-gradient(16px 52px at 66% 0, var(--caramelo) 96%, transparent),
    radial-gradient(11px 36px at 80% 0, var(--caramelo) 96%, transparent),
    radial-gradient(14px 48px at 93% 0, var(--caramelo) 96%, transparent);
  background-repeat: no-repeat;
}
.pedidos__drip::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: var(--caramelo);
}
.pedidos__title { font-size: clamp(2rem, 4.2vw, 3.2rem); color: #fff; }
.pedidos__lead { margin: 1.2rem auto 0; max-width: 36rem; font-size: 1.15rem; color: rgba(251, 245, 234, .85); }
.pedidos .btn--whats { --btn-bg: var(--creme); color: var(--chocolate); }

/* ---------- Rodapé ---------- */
.footer { margin-top: 6rem; background: var(--chocolate-deep); color: rgba(251, 245, 234, .85); padding: 4rem 0 0; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand { display: flex; align-items: center; gap: 1.2rem; }
.footer__brand img { width: 110px; height: 110px; }
.footer__name { font-family: var(--font-title); font-size: 1.8rem; font-weight: 700; color: #fff; }
.footer__tagline { font-family: var(--font-title); font-style: italic; color: var(--dourado); }
.footer__links { display: grid; gap: .9rem; }
.footer__links a { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 700; transition: color .25s, transform .3s var(--ease); }
.footer__links a svg { width: 22px; height: 22px; color: var(--dourado); flex: none; }
.footer__links a[href]:hover { color: #fff; transform: translateX(4px); }
.footer__links a.is-soon { opacity: .6; cursor: default; }
.footer__links address { font-style: normal; line-height: 1.5; }
.footer__address { align-items: flex-start !important; }
.footer__address svg { margin-top: 2px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgba(251, 245, 234, .12); padding: 1.4rem 0 1.6rem; font-size: .9rem;
}
.footer__top { text-decoration: none; font-weight: 700; color: var(--dourado); }

/* ---------- Botão flutuante e barra móvel ---------- */
.whats-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--whats);
  box-shadow: 0 12px 26px -8px rgba(37, 211, 102, .65), 0 0 0 4px rgba(255, 255, 255, .8);
  transition: transform .35s var(--ease), opacity .35s, visibility .35s;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
}
.whats-float svg { width: 32px; height: 32px; }
.whats-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.whats-float.is-visible:hover { transform: scale(1.08); }

.mobile-bar { display: none; }

/* ---------- Animações ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .gallery .reveal:nth-child(2) { transition-delay: .08s; }
.js .gallery .reveal:nth-child(3) { transition-delay: .16s; }

.hero__text > * { animation: rise .9s var(--ease) both; }
.hero__text > :nth-child(2) { animation-delay: .1s; }
.hero__text > :nth-child(3) { animation-delay: .2s; }
.hero__text > :nth-child(4) { animation-delay: .3s; }
.hero__media { animation: rise 1.1s .15s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 980px) {
  .hero__grid { gap: 2.5rem; }
  .sobre__grid { gap: 3.5rem; }
  .header__nav { gap: 1.4rem; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .header { background: rgba(251, 245, 234, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .header__brand img { width: 46px; height: 46px; }
  .header__toggle { display: flex; }
  .header__nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--creme); padding: .5rem 1.25rem 1.4rem;
    box-shadow: 0 20px 30px -20px rgba(83, 33, 15, .35);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease), opacity .3s, visibility .3s;
  }
  .header__nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .header__nav > a:not(.btn) { padding: 1rem .25rem; border-bottom: 1px solid rgba(83, 33, 15, .08); font-size: 1.05rem; }
  .header__nav > a:not(.btn)::after { display: none; }
  .header__nav .btn { margin-top: 1rem; padding: 1rem; font-size: .9rem; }

  .hero { padding-bottom: 4rem; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__logo img { margin: 0 auto 1rem; }
  .hero__lead { margin-inline: auto; }
  .hero__media { order: 2; width: min(100%, 400px); }
  .cta-group { justify-content: center; }

  .sobre__grid { grid-template-columns: 1fr; }
  .sobre__media { max-width: 460px; margin: 0 auto; width: calc(100% - 24px); }
  .sobre__text { text-align: center; }
  .sobre__text p:not(.eyebrow):not(.sobre__sign) { margin-inline: auto; }

  .gallery { grid-auto-rows: 240px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { width: min(1160px, 100% - 2rem); }
  .section { padding: 4.5rem 0; }
  .hero { padding-top: calc(var(--header-h) + 1.5rem); }
  .hero__title { font-size: 2.3rem; }
  .hero__lead { font-size: 1.05rem; }
  .hero__badge { width: 96px; height: 96px; left: -8px; bottom: 28px; font-size: .88rem; }
  .hero__media::before { inset: -10px 10px 10px -10px; }

  .cta-group { flex-direction: column; gap: .85rem; margin-top: 1.8rem; }
  .cta-group .btn { width: 100%; }
  .btn--lg { font-size: .95rem; padding: 1.05rem 1.2rem; min-height: 64px; }

  .gallery { gap: .9rem; grid-auto-rows: 200px; }
  .gallery__item figcaption { font-size: 1rem; padding: 2.4rem .9rem .8rem; }

  .pedidos__card { padding: 4.5rem 1.25rem 3rem; border-radius: var(--radius); }

  .footer { padding-top: 3rem; margin-top: 4rem; }
  .footer__grid { flex-direction: column; text-align: center; }
  .footer__brand { flex-direction: column; }
  .footer__links { justify-items: center; }
  .footer__address { flex-direction: column; align-items: center !important; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; padding-bottom: calc(1.6rem + 84px); }

  /* No celular: barra fixa com iFood + WhatsApp no lugar do botão flutuante */
  .whats-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(251, 245, 234, .94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 -10px 30px -16px rgba(83, 33, 15, .4);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar__btn {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 50px; border-radius: 999px; text-decoration: none;
    font-weight: 800; font-size: .88rem; letter-spacing: .02em; color: #fff;
  }
  .mobile-bar__btn svg { width: 22px; height: 22px; flex: none; }
  .mobile-bar__btn--ifood { background: linear-gradient(135deg, var(--laranja), #f08a2b); }
  .mobile-bar__btn--whats { background: var(--chocolate); }
  .mobile-bar__btn--whats svg { color: var(--whats); }
}

@media (max-width: 380px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery__item--tall { grid-row: span 2; }
  .hero__title { font-size: 2.05rem; }
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
