/* =========================================================
   Agilità Pilates Clínico — Home
   Paleta e tipografia extraídas do Manual de Marca 2024
   ========================================================= */

:root {
  /* Cores da marca */
  --sage: #8d9283;        /* cor principal (fundos) */
  --sage-deep: #575b47;   /* logo escuro / textos de destaque */
  --olive: #363c1f;       /* texto forte */
  --leaf: #c7cfaa;        /* verde claro */
  --moss: #b7be9d;        /* verde médio */
  --mist: #d8dad6;        /* cinza claro */
  --cream: #f9f7f3;       /* fundo claro */
  --white: #ffffff;

  --text: #3d4130;
  --text-soft: #6b6f60;

  /* Tipografia: All Round Gothic (marca) → Questrial como alternativa web; Montserrat no corpo */
  --font-display: "Questrial", "All Round Gothic", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-lg: 36px;
  --shadow: 0 20px 50px -24px rgba(54, 60, 31, 0.35);
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--olive);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, min(4.4vw, 6.4svh), 3.7rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(72px, 10vw, 128px) 0; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--sage);
  margin-bottom: 1.1em;
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--olive); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  background: var(--sage-deep);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s;
}
.btn:hover { background: var(--olive); transform: translateY(-2px); }
.btn-sm { padding: 0.65em 1.25em; font-size: 0.85rem; }
.btn-ghost { background: transparent; color: var(--sage-deep); border-color: var(--moss); }
.btn-ghost:hover { background: var(--leaf); color: var(--olive); }
.btn-light { background: var(--cream); color: var(--olive); }
.btn-light:hover { background: var(--leaf); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 247, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--mist); box-shadow: 0 8px 30px -20px rgba(54,60,31,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand .logo { width: 124px; height: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) {
  text-decoration: none; font-size: 0.92rem; color: var(--text);
  position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--sage-deep); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 7px; padding: 10px;
}
.nav-toggle span { height: 1.5px; background: var(--olive); transition: transform 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  --header-h: 84px;
  --hero-pad: clamp(24px, 4svh, 56px);
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: var(--hero-pad) 0;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--sage); }
.lead { font-size: clamp(1rem, 2.2svh, 1.1rem); color: var(--text-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(1.2rem, 3.5svh, 2rem) 0 clamp(1.4rem, 4svh, 2.6rem); }

.hero-facts {
  list-style: none; padding: clamp(1rem, 2.6svh, 1.6rem) 0 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  border-top: 1px solid var(--mist);
}
.hero-facts strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--sage-deep); }
.hero-facts span { font-size: 0.85rem; color: var(--text-soft); }

.hero-media { position: relative; justify-self: end; width: 100%; max-width: calc((100svh - var(--header-h) - 2 * var(--hero-pad)) * 0.8); }
.hero-media::before {
  content: ""; position: absolute; inset: 8% -14% -8% 18%;
  background: var(--leaf); border-radius: 50% 50% var(--radius-lg) var(--radius-lg);
  z-index: -1;
}
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---------- Sobre ---------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 7vw, 100px); align-items: center; }
.about-media { margin: 0; }
.about-media img { width: 100%; max-height: calc(100svh - 140px); aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius-lg); }
.about-copy p { color: var(--text-soft); }

.checks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 0.85rem; }
.checks li { display: flex; gap: 0.8rem; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23575b47' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m7 12.5 3.2 3L17 9'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Section head ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p:not(.eyebrow) { color: var(--text-soft); }

/* ---------- Serviços ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service img { width: 100%; aspect-ratio: 4 / 4.2; max-height: 42svh; object-fit: cover; object-position: top; transition: transform 0.8s var(--ease); }
.service:hover img { transform: scale(1.04); }
.service-body { padding: 1.5rem 1.4rem 1.7rem; position: relative; background: var(--white); }
.service-num { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.2em; color: var(--moss); }
.service h3 { margin: 0.35em 0 0.5em; }
.service p { font-size: 0.93rem; color: var(--text-soft); margin: 0; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.78rem; background: var(--cream); border: 1px solid var(--mist); border-radius: 999px; padding: 0.3em 0.8em; color: var(--sage-deep); }

/* ---------- Equipe ---------- */
.team { background: var(--sage); color: var(--white); }
.team h2, .team .eyebrow { color: var(--white); }
.team .eyebrow { opacity: 0.8; }
.team .section-head p:not(.eyebrow) { color: rgba(255, 255, 255, 0.85); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { margin: 0; }
.member-photo { border-radius: var(--radius); overflow: hidden; background: var(--sage-deep); }
.member-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; transition: transform 0.8s var(--ease); }
.member:hover .member-photo img { transform: scale(1.03); }
.member figcaption { padding: 1rem 0.25rem 0; display: flex; flex-direction: column; gap: 0.15rem; }
.member-name { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; color: var(--white); }
.member-role { font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }

/* ---------- Avaliações ---------- */
.reviews { background: var(--cream); }
.reviews-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.reviews-head h2 { margin-bottom: 0; }
.rating {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--white); border: 1px solid var(--mist); border-radius: 999px; padding: 10px 22px 10px 12px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.rating:hover { border-color: var(--moss); transform: translateY(-2px); }
.rating-score {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--sage-deep); color: var(--white);
  font-family: var(--font-display); font-size: 1.35rem;
}
.rating-meta { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--text-soft); line-height: 1.4; }
.review-stars { color: #c9a24a; letter-spacing: 0.12em; font-size: 0.95rem; }

.review-grid { columns: 3; column-gap: 20px; }
.review-grid .review { break-inside: avoid; margin-bottom: 20px; }
.review {
  margin: 0; background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem; position: relative;
}
.review::before {
  content: "“"; position: absolute; top: 4px; right: 22px;
  font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--leaf);
}
.review blockquote { margin: 0; font-size: 0.97rem; color: var(--text); }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 1rem; border-top: 1px solid var(--mist); line-height: 1.35; }
.review-avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--leaf); color: var(--sage-deep); font-family: var(--font-display); font-size: 1.1rem;
}
.review figcaption strong { display: block; font-weight: 500; color: var(--olive); font-size: 0.95rem; }
.review figcaption small { color: var(--text-soft); font-size: 0.78rem; }
.reviews-more { margin: clamp(28px, 4vw, 44px) 0 0; text-align: center; }

/* ---------- Espaço ---------- */
.carousel { --gap: 16px; --per-view: 3; }
.carousel-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none;
  border-radius: var(--radius);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 4px; }
.carousel-slide {
  flex: 0 0 calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--sage-deep); border: 1.5px solid var(--moss);
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease), opacity 0.25s;
}
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn:hover:not(:disabled) { background: var(--leaf); color: var(--olive); transform: translateY(-2px); }
.carousel-btn:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-dots { display: flex; align-items: center; gap: 4px; }
.carousel-dot {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.carousel-dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--moss);
  transition: width 0.35s var(--ease), background 0.25s;
}
.carousel-dot[aria-current="true"]::before { width: 26px; background: var(--sage-deep); }
.carousel-dot:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 1px; border-radius: 999px; }

/* ---------- Orientações ---------- */
.tips { background: var(--white); }
.tips-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.tips-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tips-list li { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--mist); }
.tips-list li:last-child { border-bottom: 1px solid var(--mist); }
.tips-list span { font-family: var(--font-display); font-size: 1.6rem; color: var(--moss); line-height: 1.2; }
.tips-list p { margin: 0; font-size: 1.05rem; }

/* ---------- Perguntas frequentes ---------- */
.faq { background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid header p:not(.eyebrow) { color: var(--text-soft); }
.faq-grid header a { color: var(--sage-deep); }
.faq-list { border-top: 1px solid var(--mist); }
.faq-item { border-bottom: 1px solid var(--mist); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 1.2rem 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.1rem; line-height: 1.4; }
.faq-item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23575b47' stroke-width='2' stroke-linecap='round' d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 1.3rem; color: var(--text-soft); max-width: 46em; }

/* ---------- Contato ---------- */
.contact { background: var(--sage-deep); color: var(--white); }
.contact h2, .contact .eyebrow { color: var(--white); }
.contact .eyebrow { color: var(--leaf); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact-copy > p { color: rgba(255,255,255,.85); font-size: 1.05rem; }
.contact-logo { width: clamp(150px, 16vw, 200px); height: auto; margin-bottom: clamp(24px, 4vw, 36px); }
.contact-list { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; font-size: 0.95rem; color: rgba(255,255,255,.9); }
.contact-list svg { flex: none; width: 22px; height: 22px; color: var(--leaf); margin-top: 1px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.contact-list a:hover { border-color: var(--leaf); }
.contact-media { margin: 0; position: relative; }
.contact-media img { width: 100%; max-height: calc(100svh - 160px); aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }
.map-frame { aspect-ratio: 4 / 3; max-height: calc(100svh - 160px); border-radius: var(--radius-lg); overflow: hidden; background: var(--mist); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.75); }
.map-link {
  display: inline-block; margin-top: 14px;
  background: var(--cream); color: var(--olive); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; padding: 0.6em 1.1em; border-radius: 999px;
}
.map-link:hover { background: var(--leaf); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage); color: var(--white); padding: 56px 0 40px; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.logo-footer { width: 200px; margin-bottom: 1rem; }
.site-footer p { margin: 0; font-size: 0.9rem; }
.site-footer .small { font-size: 0.78rem; opacity: 0.75; }

/* ---------- WhatsApp flutuante ---------- */
/* Dinâmico: muda de cor conforme o fundo da seção atrás dele (main.js
   adiciona .on-dark) e pulsa em anéis com as cores da paleta. */
.whats-float {
  --wf-bg: var(--sage-deep);
  --wf-fg: var(--white);
  --wf-hover: var(--olive);
  --wf-ring-a: var(--moss);
  --wf-ring-b: var(--leaf);
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wf-bg); color: var(--wf-fg);
  box-shadow: 0 12px 30px -10px rgba(54,60,31,.6);
  transition: transform 0.3s var(--ease), opacity 0.3s, background 0.5s, color 0.5s, box-shadow 0.5s;
}
.whats-float.on-dark {
  --wf-bg: var(--leaf);
  --wf-fg: var(--olive);
  --wf-hover: var(--cream);
  --wf-ring-a: var(--leaf);
  --wf-ring-b: var(--cream);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.55);
}
.whats-float::before,
.whats-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wf-ring-a);
  animation: wf-pulse 2.8s var(--ease) infinite;
  pointer-events: none;
}
.whats-float::after { border-color: var(--wf-ring-b); animation-delay: 1.4s; }
.whats-float:hover { transform: scale(1.08); background: var(--wf-hover); }
.whats-float:hover::before,
.whats-float:hover::after { animation-play-state: paused; opacity: 0; }
.whats-float svg { width: 28px; height: 28px; position: relative; animation: wf-nudge 5.6s ease-in-out infinite; }

@keyframes wf-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.75); opacity: 0; }
}
/* Pequeno "balanço" do ícone a cada ciclo, para chamar o olhar sem incomodar */
@keyframes wf-nudge {
  0%, 86%, 100% { transform: rotate(0); }
  89% { transform: rotate(-14deg); }
  92% { transform: rotate(12deg); }
  95% { transform: rotate(-6deg); }
}

/* ---------- Animações ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .whats-float::before, .whats-float::after, .whats-float svg { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .service-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { columns: 2; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 84px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 8px 16px 24px;
    border-bottom: 1px solid var(--mist);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--mist); }
  .nav .btn { margin-top: 16px; }

  .hero-grid, .about-grid, .tips-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .about-media img { max-height: 70svh; }

  .carousel { --per-view: 2; }
}

@media (max-width: 560px) {
  .brand .logo { width: 110px; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .review-grid { columns: 1; }
  .rating { width: 100%; }
  .map-frame { aspect-ratio: 1 / 1; }
  /* Card em coluna única: foto mais alta e enquadrada no rosto (--focus no HTML) */
  .service img { aspect-ratio: 4 / 4.6; max-height: 64svh; object-position: center var(--focus, 35%); }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-grid { row-gap: 28px; }
  .member figcaption { padding-top: 0.7rem; }
  .member-name { font-size: 1.05rem; }
  .member-role { font-size: 0.8rem; }
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; }
  .hero-facts strong { font-size: 1.05rem; }
  .hero-facts span { font-size: 0.75rem; }
  .tips-list li { grid-template-columns: 48px 1fr; }
  .carousel { --per-view: 1; --gap: 12px; }
  .carousel-slide { flex-basis: 82%; aspect-ratio: 4 / 5; }
}

/* ---------- Hero mobile: texto sobre a foto ----------
   A foto ocupa a primeira dobra. Título no topo (sobre o teto claro do
   estúdio, com um leve esmaecimento creme) e botões na base.
   Texto de apoio e destaques ficam logo abaixo da foto. */
@media (max-width: 860px) {
  .hero { min-height: 0; padding: 4px 0 56px; }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto auto auto;
    gap: 0;
  }
  .hero-copy { display: contents; }

  .hero-media {
    grid-row: 1 / 5; grid-column: 1;
    max-width: none; width: 100%; justify-self: stretch;
    border-radius: 28px; overflow: hidden;
  }
  .hero-media::before { display: none; }
  .hero-media::after {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 58%;
    background: linear-gradient(to bottom,
      rgba(249, 247, 243, 0.94) 0%,
      rgba(249, 247, 243, 0.8) 50%,
      rgba(249, 247, 243, 0) 100%);
    pointer-events: none;
  }
  .hero-media img {
    height: calc(100svh - 84px - 20px);
    min-height: 520px; max-height: 860px;
    aspect-ratio: auto; border-radius: 0; box-shadow: none;
    object-position: center top;
  }

  .hero .eyebrow,
  .hero h1,
  .hero-actions { grid-column: 1; position: relative; z-index: 1; padding-inline: 22px; }
  .hero .eyebrow { grid-row: 1; margin: 26px 0 0.8em; color: var(--sage-deep); letter-spacing: 0.18em; font-size: 0.72rem; }
  .hero h1 { grid-row: 2; margin: 0; max-width: 13em; }
  .hero h1 em { color: var(--sage-deep); opacity: 0.75; }
  .hero-actions { grid-row: 4; margin: 0; padding-bottom: 20px; gap: 8px; flex-wrap: nowrap; padding-inline: 16px; }
  /* Mobile: um único CTA, largo, na base da foto */
  .hero-actions .btn { flex: 1 1 auto; padding: 1.05em 1.4em; font-size: 0.95rem; }
  .hero-actions .btn-ghost { display: none; }

  /* Na primeira dobra o CTA já leva ao WhatsApp: o flutuante entra depois */
  .whats-float.is-hidden { opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none; }

  .hero .lead { grid-row: 5; margin: 28px 0 0; }
  .hero-facts { grid-row: 6; margin-top: 24px; }
}
