/* ============================================================
   REORDENA.MENTE — Stephanny Guilande
   CSS v5 · sem scroll horizontal
   ============================================================ */


:root {
  --bg:          #F7F2EC;
  --bg-alt:      #FDFAF7;
  --bg-dark:     #1C1C1C;
  --white:       #FFFFFF;
  --beige:       #D8CFC4;
  --beige-deep:  #B8AA9C;
  --beige-line:  #E2D9D0;
  --text:        #1A1A1A;
  --text-inv:    #F7F2EC;
  --muted:       rgba(26,26,26,.48);
  --muted-inv:   rgba(247,242,236,.5);
  --border:      rgba(26,26,26,.08);
  --border-inv:  rgba(247,242,236,.12);
  --font-serif:  'Cormorant Garamond', 'Georgia', serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm:   1px;
  --radius:      3px;
  --transition:  .42s cubic-bezier(.4,0,.2,1);
  --transition-fast: .22s cubic-bezier(.4,0,.2,1);
  --shadow-xs:  0 1px 6px rgba(26,26,26,.05);
  --shadow:     0 4px 32px rgba(26,26,26,.07);
  --shadow-lg:  0 12px 56px rgba(26,26,26,.10);
  --shadow-xl:  0 24px 80px rgba(26,26,26,.13);
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* ← trava scroll horizontal na raiz */
}
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* ← trava no body também */
  width: 100%;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--beige); color: var(--text); }


/* ── UTILITIES ─────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section { padding: 140px 0; }
.section__label { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.section__title { font-family: var(--font-serif); font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 300; line-height: 1.08; color: var(--text); margin-bottom: 24px; letter-spacing: -.01em; }
.section__sub { font-size: .93rem; color: var(--muted); max-width: 520px; line-height: 1.85; font-weight: 300; }
.section__header { margin-bottom: 80px; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }


/* ── BOTÕES ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 36px; border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border: none; transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast); white-space: nowrap; position: relative; overflow: hidden; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--text); color: var(--white); box-shadow: 0 2px 12px rgba(26,26,26,.18); }
.btn--primary:hover { background: var(--bg-dark); box-shadow: 0 4px 24px rgba(26,26,26,.28); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid rgba(26,26,26,.35); }
.btn--outline:hover { background: var(--text); color: var(--white); border-color: var(--text); }
.btn--outline-light { background: transparent; color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.28); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }
.btn--ghost { background: transparent; color: var(--muted); padding-left: 0; padding-right: 0; }
.btn--ghost:hover { color: var(--text); }
.btn--ghost-light { background: transparent; color: var(--text); border: 1px solid rgba(26,26,26,.18); }
.btn--ghost-light:hover { border-color: var(--text); }
.btn--lg    { padding: 19px 52px; font-size: .84rem; }
.btn--small { padding: 9px 20px; font-size: .74rem; }


/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
  width: 100%; /* ← garante que não estoura */
}
.navbar.scrolled { background: rgba(255,255,255,.96); box-shadow: var(--shadow-xs); }
.navbar__inner { max-width: 1200px; margin: 0 auto; height: 76px; display: flex; align-items: center; justify-content: space-between; }
.navbar__logo-img { height: 40px; max-height: 40px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; }
.navbar__links { display: flex; align-items: center; gap: 40px; }
.navbar__links a { font-size: .78rem; font-weight: 400; letter-spacing: .05em; color: var(--text); opacity: .75; transition: opacity var(--transition-fast); position: relative; }
.navbar__links a::after { content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform var(--transition-fast); }
.navbar__links a:hover { opacity: 1; }
.navbar__links a:hover::after { transform: scaleX(1); }
.navbar__cta { opacity: 1 !important; padding: 9px 24px !important; border: 1px solid rgba(26,26,26,.3) !important; border-radius: var(--radius-sm) !important; font-size: .74rem !important; font-weight: 500 !important; letter-spacing: .1em !important; text-transform: uppercase !important; transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast) !important; }
.navbar__cta::after { display: none !important; }
.navbar__cta:hover { background: var(--text) !important; color: var(--white) !important; border-color: var(--text) !important; }
.navbar__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.navbar__burger span { display: block; width: 22px; height: 1px; background: var(--text); transition: transform var(--transition-fast), opacity var(--transition-fast); }


/* ── HERO — desktop ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden; /* ← contém o scale da imagem */
  background: var(--bg);
  width: 100%;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero.loaded .hero__img { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(247,242,236,.97) 0%,
    rgba(247,242,236,.85) 40%,
    rgba(247,242,236,.30) 65%,
    rgba(247,242,236,.00) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 160px 40px 100px;
  margin-left: max(40px, calc((100vw - 1200px) / 2));
}
.hero__eyebrow { font-size: .68rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.hero__eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--beige-deep); flex-shrink: 0; }
.hero__title { font-family: var(--font-serif); font-size: clamp(3.2rem, 7vw, 5.6rem); font-weight: 300; line-height: 1.04; color: var(--text); margin-bottom: 32px; letter-spacing: -.02em; }
.hero__title em { font-style: italic; font-weight: 300; color: var(--beige-deep); }
.hero__subtitle { font-size: .98rem; font-weight: 300; color: var(--muted); max-width: 480px; margin-bottom: 56px; line-height: 1.88; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); color: var(--beige-deep); opacity: .7; transition: opacity var(--transition-fast); animation: bounce 2.4s ease-in-out infinite; }
.hero__scroll:hover { opacity: 1; }
@keyframes bounce { 0%,100%{ transform:translateX(-50%) translateY(0); } 50%{ transform:translateX(-50%) translateY(8px); } }


/* ── AJUDA ──────────────────────────────────────────────── */
.ajuda { background: var(--white); }
.ajuda__grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--border); }
.ajuda__card { padding: 56px 40px; border-right: 1px solid var(--border); position: relative; overflow: hidden; transition: background var(--transition); cursor: default; }
.ajuda__card:last-child { border-right: none; }
.ajuda__card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--beige-deep); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--transition); }
.ajuda__card:hover { background: var(--bg); }
.ajuda__card:hover::before { transform: scaleX(1); }
.ajuda__icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--beige-line); border-radius: 50%; margin-bottom: 32px; color: var(--beige-deep); transition: border-color var(--transition-fast), color var(--transition-fast); }
.ajuda__card:hover .ajuda__icon { border-color: var(--text); color: var(--text); }
.ajuda__card h3 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 400; line-height: 1.32; margin-bottom: 16px; letter-spacing: -.01em; }
.ajuda__card p { font-size: .86rem; color: var(--muted); line-height: 1.82; font-weight: 300; }


/* ── ESPECIALIDADES ─────────────────────────────────────── */
.especialidades { background: var(--bg); }
.especialidades__list { display: flex; flex-direction: column; }
.espec__item { display: flex; align-items: flex-start; gap: 48px; padding: 38px 0; border-bottom: 1px solid var(--beige-line); transition: padding-left var(--transition); cursor: default; }
.espec__item:first-child { border-top: 1px solid var(--beige-line); }
.espec__item:hover { padding-left: 16px; }
.espec__num { font-family: var(--font-serif); font-size: .88rem; color: var(--beige-deep); min-width: 28px; padding-top: 6px; letter-spacing: .05em; font-weight: 400; flex-shrink: 0; }
.espec__item div { flex: 1; min-width: 0; } /* ← min-width: 0 evita overflow em flex */
.espec__item h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 8px; letter-spacing: -.01em; transition: color var(--transition-fast); }
.espec__item:hover h3 { color: var(--bg-dark); }
.espec__item p { font-size: .85rem; color: var(--muted); line-height: 1.75; font-weight: 300; }
.espec__item::after { content: '→'; font-size: .75rem; color: var(--beige-deep); align-self: center; opacity: 0; transform: translateX(-8px); transition: opacity var(--transition-fast), transform var(--transition-fast); flex-shrink: 0; }
.espec__item:hover::after { opacity: 1; transform: translateX(0); }


/* ── LUTO PET ───────────────────────────────────────────── */
.luto { background: var(--white); }
.luto__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.luto__text .section__title { margin-bottom: 20px; }
.luto__destaque { font-family: var(--font-serif); font-size: 1.22rem; font-weight: 300; color: var(--text); line-height: 1.72; margin-bottom: 24px; padding-left: 20px; border-left: 2px solid var(--beige-deep); }
.luto__text p { font-size: .88rem; color: var(--muted); margin-bottom: 40px; line-height: 1.88; font-weight: 300; }
.luto__text p strong { color: var(--text); font-weight: 500; }
.luto__img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xl); background: var(--bg); min-height: 360px; display: flex; align-items: center; justify-content: center; }
.luto__img-wrap::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(26,26,26,.06); pointer-events: none; }
.luto__img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; object-position: center; padding: 12px; }


/* ── SOBRE ──────────────────────────────────────────────── */
.sobre { background: var(--bg); }
.sobre__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.sobre__img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xl); background: var(--bg-alt); min-height: 480px; display: flex; align-items: flex-start; justify-content: center; }
.sobre__img-wrap::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(26,26,26,.06); pointer-events: none; }
.sobre__img { width: 100%; height: auto; min-height: 480px; object-fit: contain; object-position: top center; background: var(--bg-alt); }
.sobre__text p { font-size: .9rem; color: var(--muted); line-height: 1.88; margin-bottom: 20px; font-weight: 300; }
.sobre__text p strong { color: var(--text); font-weight: 500; }
.sobre__crp { display: inline-block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--beige-deep); margin-bottom: 32px !important; padding: 6px 14px; border: 1px solid var(--beige-line); border-radius: 100px; }
.sobre__projeto { margin-top: 48px; padding: 32px; background: var(--white); border: 1px solid var(--beige-line); border-radius: var(--radius); box-shadow: var(--shadow-xs); transition: box-shadow var(--transition), border-color var(--transition); }
.sobre__projeto:hover { box-shadow: var(--shadow); border-color: var(--beige-deep); }
.sobre__projeto-label { display: block; font-size: .65rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.sobre__projeto-img-wrap { border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); min-height: 140px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.sobre__projeto-img { width: 100%; height: auto; max-height: 220px; object-fit: contain; object-position: center; padding: 8px; }
.sobre__projeto-desc { font-size: .83rem; color: var(--muted); line-height: 1.76; margin-bottom: 18px; font-weight: 300; }


/* ── CONTATO ────────────────────────────────────────────── */
.contato { background: var(--bg-dark); }
.contato__inner { text-align: center; padding: 0 20px; }
.contato .section__label { color: rgba(247,242,236,.35); }
.contato .section__title { color: var(--text-inv); margin-bottom: 20px; }
.contato p { color: var(--muted-inv); margin-bottom: 56px; font-size: .93rem; font-weight: 300; max-width: 400px; margin-left: auto; margin-right: auto; }
.contato__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contato .btn--primary { background: var(--text-inv); color: var(--bg-dark); box-shadow: 0 4px 24px rgba(247,242,236,.12); }
.contato .btn--primary:hover { background: var(--bg); box-shadow: 0 6px 32px rgba(247,242,236,.18); }


/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--white); border-top: 1px solid var(--border); padding: 52px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__logo-img { height: 34px; max-height: 34px; width: auto; max-width: 160px; object-fit: contain; object-position: left center; opacity: .85; transition: opacity var(--transition-fast); }
.footer__logo-img:hover { opacity: 1; }
.footer__links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer__links a { font-size: .75rem; color: var(--muted); letter-spacing: .05em; transition: color var(--transition-fast); }
.footer__links a:hover { color: var(--text); }
.footer__info { text-align: right; }
.footer__info p { font-size: .74rem; color: var(--muted); line-height: 1.9; }
.footer__insta { display: block; font-size: .75rem; color: var(--muted); margin: 3px 0; transition: color var(--transition-fast); letter-spacing: .02em; }
.footer__insta:hover { color: var(--text); }


/* ── FAB ────────────────────────────────────────────────── */
.fab-whatsapp { position: fixed; bottom: 32px; right: 32px; z-index: 200; width: 54px; height: 54px; border-radius: 50%; background: #22C55E; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(34,197,94,.3), 0 2px 6px rgba(34,197,94,.2); transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.fab-whatsapp:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 8px 28px rgba(34,197,94,.4), 0 4px 10px rgba(34,197,94,.25); }


/* ── PWA BANNER ─────────────────────────────────────────── */
.pwa-banner {
  display: var(--pwa-banner-display, flex);
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 40px;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -6px 32px rgba(26,26,26,.07);
  width: 100%; /* ← não estoura */
}
.pwa-banner[hidden] { display: none !important; }
.pwa-banner p { font-size: .83rem; color: var(--text); font-weight: 300; flex: 1; min-width: 0; }


/* ── RESPONSIVE 1040px ──────────────────────────────────── */
@media (max-width: 1040px) {
  .container { padding: 0 28px; }
  .navbar { padding: 0 28px; }
  .pwa-banner { padding: 16px 28px; }
}


/* ── RESPONSIVE 960px ───────────────────────────────────── */
@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .ajuda__grid { grid-template-columns: 1fr; }
  .ajuda__card { border-right: none; border-bottom: 1px solid var(--border); }
  .ajuda__card:last-child { border-bottom: none; }
  .luto__inner, .sobre__inner { grid-template-columns: 1fr; gap: 52px; }
  .luto__visual { order: -1; }
  .luto__img-wrap { min-height: 280px; }
  .sobre__img-wrap { min-height: 320px; }
  .sobre__img { min-height: 320px; }
  .navbar__links {
    display: none; flex-direction: column; align-items: flex-start;
    position: fixed; top: 76px; left: 0; right: 0;
    background: rgba(255,255,255,.99);
    border-bottom: 1px solid var(--border);
    padding: 36px 28px; gap: 20px;
    box-shadow: var(--shadow);
    width: 100%; /* ← não estoura */
  }
  .navbar__links.open { display: flex; }
  .navbar__links a { font-size: .9rem; letter-spacing: .03em; opacity: .9; }
  .navbar__links a::after { display: none; }
  .navbar__cta { width: 100%; justify-content: center; margin-top: 8px; }
  .navbar__burger { display: flex; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__info { text-align: left; }
  .contato__actions { flex-direction: column; align-items: center; }
  .contato__actions .btn { width: 100%; max-width: 360px; }
}


/* ── HERO MOBILE ────────────────────────────────────────── */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }

  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 100svh;
    padding-top: 76px;
    overflow: hidden; /* ← contém qualquer estouro interno */
  }

  .hero__bg {
    position: relative;
    width: 100%;
    height: 52vw;
    min-height: 220px;
    max-height: 360px;
    flex-shrink: 0;
    overflow: hidden;
  }

  .hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: none;
  }

  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(247,242,236,.00)   0%,
      rgba(247,242,236,.00)  55%,
      rgba(247,242,236,.80)  80%,
      rgba(247,242,236,1.00) 100%
    );
  }

  .hero__content {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 28px 20px 80px;
    margin-left: 0;
    max-width: 100%;
    width: 100%;
    background: var(--bg);
  }

  .hero__eyebrow { margin-bottom: 16px; }

  .hero__title {
    font-size: clamp(2.2rem, 9vw, 3rem);
    margin-bottom: 16px;
  }

  .hero__subtitle {
    font-size: .88rem;
    margin-bottom: 32px;
    max-width: 100%;
  }

  .hero__actions { flex-direction: column; gap: 10px; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .hero__scroll { bottom: 24px; }

  .espec__item { gap: 20px; }
  .espec__item::after { display: none; }
  .sobre__projeto { padding: 20px; }
  .sobre__crp { display: block; text-align: left; }
  .luto__destaque { padding-left: 14px; }
  .footer__links { gap: 20px; }
  .luto__img { max-height: 360px; }
  .sobre__img { min-height: 260px; }
  .pwa-banner { padding: 14px 20px; flex-wrap: wrap; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero__img { transform: none !important; }
}
