/* ──────────────────────────────────────────────────────────
   ENHANCEMENTS — 10-iteration design polish layer
   Loaded AFTER styles.css + animations.css to override.
   ────────────────────────────────────────────────────────── */

/* ─── Global icon safety net (fixes huge SVG fallbacks) ─── */
.trust__item > svg,
.contact__channels > li > svg,
.footer__logo > svg {
  flex: 0 0 auto;
}
.about__bullet { width: auto; height: auto; flex: 0 0 auto; }

/* ─── Section transitions: soft wave divider between blocks ─── */
.section-divider {
  position: relative;
  height: 80px;
  margin-top: -80px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--c-cream));
}

/* ─── Hero — extra dynamic accents ─── */
.hero__intro::before {
  content: "";
  position: absolute;
  inset-block-start: -20px;
  inset-inline-end: -30px;
  inline-size: 220px;
  block-size: 220px;
  background: radial-gradient(circle, rgba(181, 113, 91, 0.10), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
  animation: heroPulse 6s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.15); opacity: 1; }
}

/* Hero portrait — additional ring with rotating gradient */
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  background: conic-gradient(from 0deg,
    rgba(181, 113, 91, 0.45),
    rgba(201, 169, 140, 0.18),
    rgba(122, 139, 111, 0.28),
    rgba(232, 201, 176, 0.35),
    rgba(181, 113, 91, 0.45));
  z-index: -1;
  filter: blur(18px);
  opacity: 0.65;
  animation: spinSlow 22s linear infinite;
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

/* ─── Buttons — extra polish ─── */
.btn--primary {
  transform: translateZ(0);
  position: relative;
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

/* ─── Section title — gradient sweep on em ─── */
.section-title em,
.hero__title-em {
  background-size: 200% 100%;
  animation: gradientSweep 8s ease-in-out infinite;
}
@keyframes gradientSweep {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ─── Marquee (between hero and why) ─── */
.marquee {
  margin-block: 0;
}

/* ─── Why cards — deeper hover + corner accent ─── */
.why__card {
  transform-style: preserve-3d;
}
.why__card::before {
  inset-block-end: -30%;
  inset-inline-start: -15%;
  inline-size: 70%;
  block-size: 70%;
}
.why__card .why__num {
  position: relative;
  z-index: 1;
}
.why__card .why__num::after {
  content: "";
  position: absolute;
  inset-block-end: -6px;
  inset-inline-start: 0;
  inline-size: 0;
  block-size: 3px;
  background: linear-gradient(90deg, var(--c-terra), var(--c-clay));
  border-radius: 999px;
  transition: inline-size 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.why__card.is-in .why__num::after { inline-size: 64px; }
.why__card:hover .why__num::after { inline-size: 100%; }

/* ─── Voices — refined hover lift + quote glow ─── */
.voice {
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s var(--ease);
}
.voice:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-card);
}
.voice__quote {
  position: relative;
  display: inline-block;
  transform: translateY(0);
  transition: transform 0.6s var(--ease), color 0.6s var(--ease);
}
.voice:hover .voice__quote {
  transform: translateY(-6px) scale(1.05);
}

/* ─── Voice stats — animated number panel ─── */
.voice--stats {
  position: relative;
  overflow: hidden;
}
.voice--stats::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(201, 169, 140, 0.25), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.voice--stats > * { position: relative; z-index: 1; }

/* ─── Journey — node markers on each step ─── */
.journey__step {
  position: relative;
}
.journey__step::before {
  content: "";
  position: absolute;
  inline-size: 14px;
  block-size: 14px;
  border-radius: 999px;
  background: var(--c-cream);
  border: 2px solid var(--c-terra);
  inset-inline-start: 73px;
  inset-block-start: 12px;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--c-cream);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.journey__step.is-in::before {
  background: var(--c-terra);
  transform: scale(1.15);
}
@media (max-width: 720px) {
  .journey__step::before { display: none; }
}

/* ─── Bento icons — sized & accent shape ─── */
.bento {
  position: relative;
  isolation: isolate;
}
.bento__icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201, 169, 140, 0.18), rgba(122, 139, 111, 0.08));
  padding: 10px;
}
.bento__icon svg { width: 100% !important; height: 100% !important; }
.bento--accent .bento__icon {
  background: linear-gradient(135deg, rgba(232, 201, 176, 0.18), rgba(232, 201, 176, 0.06));
}
.bento--accent {
  position: relative;
  overflow: hidden;
}
.bento--accent::before {
  content: "";
  position: absolute;
  inset-block-start: -50%;
  inset-inline-end: -30%;
  inline-size: 70%;
  block-size: 140%;
  background: radial-gradient(circle, rgba(201, 169, 140, 0.2), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.bento--accent > * { position: relative; z-index: 1; }

/* ─── FAQ — refined motion ─── */
.faq__item {
  transform-origin: top center;
}
.faq__item summary {
  position: relative;
}
.faq__item summary::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 1.8rem;
  inset-inline-end: 1.8rem;
  block-size: 1px;
  background: linear-gradient(90deg, transparent, var(--c-clay-soft), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.faq__item[open] summary::after { opacity: 1; }

/* ─── Contact — input focus glow ─── */
.field input:focus,
.field textarea:focus {
  background: var(--c-cream);
  border-color: var(--c-terra);
  box-shadow: 0 0 0 4px rgba(181, 113, 91, 0.20), 0 8px 22px -10px rgba(181, 113, 91, 0.35);
}

.contact__form {
  position: relative;
  isolation: isolate;
}
.contact__form::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(232, 201, 176, 0.6), rgba(201, 169, 140, 0) 50%, rgba(122, 139, 111, 0.4));
  z-index: -1;
  opacity: 0.6;
  filter: blur(10px);
}

/* ─── Contact decorative orbits — slow rotate ─── */
.contact__deco {
  animation: spinSlow 60s linear infinite;
}

/* ─── Footer — refined hierarchy + hover underlines ─── */
.footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(181, 113, 91, 0.10), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(122, 139, 111, 0.08), transparent 50%),
    var(--c-dark);
}
.footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 140, 0.35), transparent);
}
.footer__nav a,
.footer__contact a {
  position: relative;
  display: inline-block;
  width: max-content;
  max-width: 100%;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer__nav a::after,
.footer__contact a::after {
  content: "";
  position: absolute;
  inset-block-end: -2px;
  inset-inline-start: 0;
  inline-size: 100%;
  block-size: 1px;
  background: var(--c-clay);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.footer__nav a:hover::after,
.footer__contact a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--c-cream);
  transform: translateX(-3px);
}

.footer__logo {
  transition: transform 0.5s var(--ease);
}
.footer__logo:hover {
  transform: translateY(-2px);
}

/* Footer brand block — better breathing */
.footer__brand p {
  max-width: 32ch;
}

/* ─── Float WhatsApp — refined motion + label clip ─── */
.float-wa {
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* ─── Mobile responsiveness — comprehensive ─── */
@media (max-width: 960px) {
  .nav__inner { padding-block: 0.75rem; }
  .nav__mark { width: 36px; height: 36px; }
  .nav__first { font-size: 1.2rem; }
  .nav__sub { font-size: 0.62rem; }

  .hero__title { font-size: clamp(2.4rem, 8vw, 3.6rem); }
  .hero__title-line { font-size: 0.72em; }
  .hero__sub { font-size: 1.05rem; }

  .why__cta { flex-direction: column; align-items: stretch; text-align: center; }
  .why__cta p { text-align: center; min-width: 0; }
  .why__cta .btn { align-self: center; }
}

@media (max-width: 720px) {
  .section-title { font-size: clamp(2rem, 7.5vw, 2.8rem); }
  .section-title__sub { font-size: 1rem; }

  .hero { padding-block: 3rem 4rem; }
  .hero__portrait { max-width: 320px; }
  .hero__intro::before { display: none; }

  .why { padding-block: 4rem; }
  .why__card { padding: 1.6rem 1.4rem; }
  .why__num { font-size: 2.4rem; margin-bottom: 1rem; }

  .journey { padding-block: 4rem; }
  .journey__included-title { font-size: 1.8rem; }

  .voices { padding-block: 4rem; }
  .voice { padding: 1.8rem 1.5rem; }
  .voice__quote { font-size: 4rem; }

  .about { padding-block: 4rem; }
  .about__quote { font-size: 1.1rem; padding-inline: 1.2rem; }
  .about__badge { width: 92px; height: 92px; inset-inline-end: -0.6rem; inset-block-end: -0.6rem; }
  .about__badge-line--big { font-size: 0.9rem; }
  .about__signature { font-size: 1rem; inset-block-start: -1rem; }

  .faq { padding-block: 4rem; }

  .contact { padding-block: 4rem; }
  .contact__form { padding: 1.5rem 1.3rem; }
  .contact__form-title { font-size: 1.6rem; }

  .footer { padding-block: 3rem 1.2rem; font-size: 0.92rem; }
  .footer__grid { gap: 1.6rem; }
  .footer h4 { margin-bottom: 0.7rem; }
  .footer__logo svg { width: 38px; height: 38px; }
  .footer__name { font-size: 1.3rem; }
  .footer__small { font-size: 0.8rem; }

  .marquee { padding-block: 1rem; }
  .marquee__item { font-size: 1.1rem; gap: 2rem; }
  .marquee__track { gap: 2rem; }
}

@media (max-width: 480px) {
  :root { --gutter: 1rem; }
  .nav__sub { display: none; }

  .hero__chip--top,
  .hero__chip--bot {
    padding: 0.55rem 0.8rem;
  }
  .hero__chip--top .hero__chip-num { font-size: 1.3rem; }
  .hero__chip--top .hero__chip-label,
  .hero__chip--bot span { font-size: 0.68rem; }

  .voice__stat-num { font-size: 2.4rem; }

  .footer__bottom { font-size: 0.78rem; }
}

/* ─── Scroll-driven reveal staggering (per-section children) ─── */
.why__grid > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.why__grid > [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.why__grid > [data-reveal]:nth-child(3) { transition-delay: 160ms; }
.why__grid > [data-reveal]:nth-child(4) { transition-delay: 240ms; }

.journey__bento > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.journey__bento > [data-reveal]:nth-child(2) { transition-delay: 70ms; }
.journey__bento > [data-reveal]:nth-child(3) { transition-delay: 140ms; }
.journey__bento > [data-reveal]:nth-child(4) { transition-delay: 210ms; }
.journey__bento > [data-reveal]:nth-child(5) { transition-delay: 280ms; }
.journey__bento > [data-reveal]:nth-child(6) { transition-delay: 350ms; }

.voices__grid > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.voices__grid > [data-reveal]:nth-child(2) { transition-delay: 100ms; }
.voices__grid > [data-reveal]:nth-child(3) { transition-delay: 200ms; }
.voices__grid > [data-reveal]:nth-child(4) { transition-delay: 300ms; }

/* ─── Subtle scroll-linked gradient on body for atmosphere ─── */
@supports (animation-timeline: scroll()) {
  @keyframes bodyAtmosphere {
    from { background-color: var(--c-cream); }
    to   { background-color: var(--c-warm-mist); }
  }
}

/* ─── Page progress — refined ─── */
.page-progress { block-size: 2px; }
.page-progress__bar {
  background: linear-gradient(90deg, var(--c-terra) 0%, var(--c-clay) 50%, var(--c-sage) 100%);
}

/* ─── Reduce motion guards ─── */
@media (prefers-reduced-motion: reduce) {
  .hero__intro::before,
  .hero__portrait::before,
  .section-title em,
  .hero__title-em,
  .contact__deco { animation: none !important; }
}
