/* ==========================================================================
   Estética Humanizada Karla Andrade
   Identidade baseada na fachada e no logo: violeta da placa, dourado do
   anel do logo, nome em letra cursiva e serifa clássica no slogan.
   ========================================================================== */

:root {
  --violet: #4B3589;
  --violet-bg: #3D2A78;
  --violet-deep: #2B1E5A;
  --ink: #261B47;
  --ink-soft: #5A5175;
  --gold: #D99A2B;
  --gold-dark: #C2851A;
  --gold-light: #EBC16E;
  --lavender: #F4F1F8;
  --paper: #FCFBFD;
  --line: rgba(38, 27, 71, 0.13);
  --light: #F3EFFA;
  --light-soft: #CFC6E4;
  --line-light: rgba(243, 239, 250, 0.2);

  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-script: "Pinyon Script", "Brush Script MT", cursive;

  /* largura e margens fluidas: acompanham o viewport (em rem, crescem com a escala abaixo) */
  --max-width: 110rem;
  --gutter: clamp(1.25rem, 4.5vw, 7rem);
  --section-space: clamp(4.5rem, 10vw, 8.5rem);
  --header-height: 4.75rem;
  --radius: 3px;
}

/* ---------- Base ---------- */

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

html {
  /* escala proporcional em telas grandes: 16px até ~1600px, chegando a 20px em ~2700px */
  font-size: clamp(100%, 0.625rem + 0.375vw, 125%);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--lavender);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img, svg, iframe { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, figure, address { margin: 0; }

ul, ol { padding: 0; list-style: none; }

address { font-style: normal; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

/* seções recebem foco via script ao navegar pelo menu; sem contorno nesse caso */
section[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Botões ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--gold);
  color: var(--ink);
}
.button--primary:hover { background: var(--gold-light); }

/* reflexo que atravessa o botão ao passar o mouse, como luz sobre metal */
.button--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.75s cubic-bezier(0.3, 0.6, 0.2, 1);
  pointer-events: none;
}
.button--primary:hover::after,
.button--primary:focus-visible::after { transform: translateX(110%); }
.button--primary:not(:hover):not(:focus-visible)::after { transition: none; }

.button--link {
  padding-inline: 0.25rem;
  font-weight: 500;
  color: var(--violet);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45em;
}
.button--link:hover { text-decoration-thickness: 2px; }

/* ---------- Topo ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--violet-bg);
  color: var(--light);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.header.is-scrolled { border-bottom-color: rgba(217, 154, 43, 0.45); }

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max-width);
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand__logo { flex: none; width: 2.75rem; height: 2.75rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-script);
  font-size: 1.65rem;
  line-height: 1.1;
  color: #fff;
}
.brand__sub {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-light);
}

.header :focus-visible { outline-color: var(--gold-light); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: none;
  color: var(--light);
  font: 500 0.95rem var(--font-body);
  cursor: pointer;
}
.menu-toggle__lines,
.menu-toggle__lines::before {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.menu-toggle__lines { position: relative; transform: translateY(-3px); }
.menu-toggle__lines::before { content: ""; position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { transform: translateY(-6px) rotate(-90deg); }

/* menu mobile */
.menu {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem var(--gutter) 3rem;
  background: var(--violet-bg);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.menu.is-open { visibility: visible; opacity: 1; }

.menu__list a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  text-decoration: none;
}
.menu__cta { align-self: flex-start; }

@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2.25rem;
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
  }
  .menu__list { display: flex; gap: 1.75rem; }
  .menu__list a {
    padding: 0.4rem 0;
    border: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--light-soft);
    background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
    transition: color 0.2s ease, background-size 0.3s ease;
  }
  .menu__list a:hover { color: #fff; background-size: 100% 1px; }
  .menu__cta { min-height: 2.75rem; padding: 0.6rem 1.25rem; font-size: 0.95rem; }
}

/* ---------- Seções (base) ---------- */

.section {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--section-space) var(--gutter);
}

.section-title {
  font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.75rem);
  color: var(--violet-deep);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--violet-bg);
  color: var(--light);
}

/* brilho suave atrás do selo, como luz sobre a placa;
   acompanha de leve o mouse e a rolagem (variáveis definidas em main.js) */
.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(55% 65% at 76% 46%, rgba(110, 82, 180, 0.45), transparent 70%);
  transform: translate3d(var(--glow-x, 0px), calc(var(--glow-y, 0px) + var(--glow-scroll, 0px)), 0);
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(4rem, 9vw, 6rem);
}

.hero__seal {
  position: relative;
  justify-self: start;
  width: min(48vw, 13rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero__emblem { width: 82%; }

.rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--gold);
  transform: rotate(-90deg);
}
.rings__outer { stroke-width: 1.2; opacity: 0.9; }
.rings__inner { stroke-width: 0.8; opacity: 0.55; }

@media (prefers-reduced-motion: no-preference) {
  .rings circle {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.8s cubic-bezier(0.6, 0.05, 0.25, 1) 0.2s forwards;
  }
  .rings__inner { animation-delay: 0.45s !important; }
  .hero__emblem { animation: fade-in 1.2s ease 0.1s both; }

  /* reflexo no dourado logo após os anéis se fecharem, repetindo com calma */
  .hero__emblem::after { animation: gleam-loop 10s ease-in-out 2s infinite; }

  /* abertura em sequência: nome, subtítulo, slogan, texto e ações */
  .hero__title-name,
  .hero__title-sub,
  .hero__slogan,
  .hero__support,
  .hero__actions { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__title-name { animation-delay: 0.3s; }
  .hero__title-sub { animation-delay: 0.45s; }
  .hero__slogan { animation-delay: 0.6s; }
  .hero__support { animation-delay: 0.75s; }
  .hero__actions { animation-delay: 0.9s; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; transform: scale(0.96); } }
@keyframes rise { from { opacity: 0; transform: translateY(0.8rem); } }

.hero__text { max-width: 38rem; }

.hero__title { display: flex; flex-direction: column; gap: 0.25rem; }
.hero__title-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}
.hero__title-name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.9rem, 1.7rem + 5.6vw, 5.9rem);
  line-height: 1.3;
  white-space: nowrap;
  color: #fff;
}

.hero__slogan {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.25rem);
  line-height: 1.2;
  color: #fff;
}

.hero__support {
  margin-top: 1.25rem;
  max-width: 31rem;
  color: var(--light-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}
.hero .button--link { color: var(--light); text-decoration-color: var(--gold); }
.hero :focus-visible { outline-color: var(--gold-light); }

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 4rem;
    min-height: min(calc(88vh - var(--header-height)), 48rem);
    min-height: min(calc(88svh - var(--header-height)), 48rem);
  }
  .hero__seal { order: 2; justify-self: center; width: min(100%, 26rem); }
}

/* ---------- Apresentação ---------- */

.about__grid { display: grid; gap: 1.5rem; }

.about__text { display: grid; gap: 1.1rem; max-width: 38rem; color: var(--ink-soft); }
.about__text p:first-child { font-size: 1.15rem; color: var(--ink); }

.values {
  display: grid;
  gap: 2rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.values__item { padding-top: 1.25rem; border-top: 2px solid var(--gold); }
.values__item h3 { font-size: 1.6rem; color: var(--violet-deep); }
.values__item p { margin-top: 0.4rem; color: var(--ink-soft); max-width: 22rem; }

@media (min-width: 760px) {
  .values { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

@media (min-width: 960px) {
  .about__grid { grid-template-columns: 5fr 6fr; gap: 4rem; align-items: start; }
}

/* ---------- Tratamentos ---------- */

.treatments {
  max-width: none;
  background: var(--paper);
}
.treatments > * { max-width: calc(var(--max-width) - 2 * var(--gutter)); margin-inline: auto; }

.treatments__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.treatments__head p { max-width: 30rem; color: var(--ink-soft); }

@media (min-width: 760px) {
  .treatments__head { grid-template-columns: 1fr auto; align-items: end; }
  .treatments__head p { text-align: right; max-width: 24rem; }
}

.treatment-list { border-top: 1px solid var(--line); }

.treatment {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1.25rem;
  row-gap: 0.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.treatment__icon {
  grid-row: span 2;
  width: 3rem;
  height: 3rem;
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s ease, stroke 0.3s ease;
}

/* partes preenchidas dos ícones (ex.: bulbos do ícone capilar) */
.treatment__icon .filled { fill: var(--violet); stroke: none; transition: fill 0.3s ease; }

.treatment__name { font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.25rem); color: var(--violet-deep); }
.treatment__desc { color: var(--ink-soft); max-width: 40rem; }

/* procedimentos de cada categoria */
.treatment__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 0.75rem;
  font-size: 0.93rem;
  color: var(--ink);
}
.treatment__items li { display: inline-flex; align-items: center; gap: 0.45rem; }
.treatment__items li::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--gold);
  border-radius: 50%;
}
.treatment__items a {
  color: var(--violet);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.3em;
}

@media (hover: hover) {
  .treatment:hover .treatment__icon { transform: rotate(-8deg) scale(1.06); stroke: var(--gold-dark); }
  .treatment:hover .treatment__icon .filled { fill: var(--gold-dark); }
}

@media (min-width: 900px) {
  .treatment {
    grid-template-columns: 4rem minmax(0, 0.9fr) minmax(0, 1.4fr);
    align-items: center;
    column-gap: 2.5rem;
    padding: 2.25rem 0;
  }
  .treatment__icon { grid-row: auto; width: 3.5rem; height: 3.5rem; }
}

/* chamada única para dúvidas, no fim da lista */
.treatments__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
}
.treatments__cta p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  font-weight: 500;
  color: var(--violet-deep);
}

/* ---------- Proposta ---------- */

.approach { display: grid; gap: clamp(3rem, 7vw, 5rem); }

.approach__quote { display: grid; gap: 1.5rem; }
.approach__title {
  max-width: 18ch;
  font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.75rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.04;
  color: var(--violet-deep);
}
.approach__quote p { max-width: 36rem; color: var(--ink-soft); font-size: 1.1rem; }

/* telas largas: parágrafo ao lado do título, sem deixar a metade direita vazia */
@media (min-width: 1200px) {
  .approach__quote { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 4rem; }
}

.principles { display: grid; gap: 2.25rem; }
.principles__item {
  position: relative;
  padding-left: 1.5rem;
}
/* ponto dourado preenchido — marcador de lista, sem numeração (não é uma sequência) */
.principles__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  border-radius: 50%;
}
.principles__item h3 { font-size: 1.7rem; color: var(--violet-deep); }
.principles__item p { margin-top: 0.3rem; color: var(--ink-soft); }

@media (min-width: 760px) {
  .principles { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* ---------- Ambiente ---------- */

.space { border-top: 1px solid var(--line); }

.space__head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.space__head p { max-width: 32rem; color: var(--ink-soft); }

.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper);
}
.gallery__item--tall { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.gallery__item--empty {
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  border: 1px solid var(--line);
}
/* anéis concêntricos do logo enquanto as fotos não chegam */
.gallery__item--empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 70% 35%, transparent 0 22px, rgba(217, 154, 43, 0.28) 22px 23px);
}
.gallery__item--empty figcaption {
  position: relative;
  padding: 0.35rem 0.7rem;
  background: var(--paper);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.space__note { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); }

@media (min-width: 760px) {
  .gallery { grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .gallery__item { aspect-ratio: auto; min-height: 15rem; }
  .gallery__item--tall { grid-column: 1; grid-row: 1 / 3; min-height: 32rem; }
}

/* ---------- Instagram ---------- */

.instagram {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.instagram p { color: var(--ink-soft); }

.instagram__profile {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.5rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem);
  color: var(--violet);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.instagram__profile:hover { text-decoration-thickness: 2px; }
.instagram__profile svg {
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 1.5;
}
.instagram__profile svg .filled { fill: var(--gold-dark); stroke: none; }

/* ---------- Localização ---------- */

/* última seção: ocupa a altura da tela abaixo do topo, para que a navegação
   pelo menu a mostre inteira sem deixar o rodapé aparecer */
.location {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.address {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.8rem);
  line-height: 1.35;
}

.location__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}

.location__map {
  flex: 1 1 18rem;
  min-height: 18rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.location__map iframe {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  border: 0;
}

@media (min-width: 900px) {
  .location { display: grid; grid-template-columns: 5fr 7fr; align-items: stretch; gap: 4rem; }
  .location__info { align-self: center; }
}

/* ---------- Rodapé ---------- */

.footer {
  background: var(--violet-bg);
  color: var(--light-soft);
  /* espaço extra embaixo para o botão flutuante do WhatsApp não cobrir o texto */
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--gutter) 6rem;
  border-top: 3px solid var(--gold);
}

/* faixa de cima: marca + chamada; faixa de baixo: endereço, Instagram e direitos */
.footer__top,
.footer__bottom {
  max-width: calc(var(--max-width) - 2 * var(--gutter));
  margin-inline: auto;
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line-light);
}

.footer__brand { display: flex; align-items: center; gap: 1.25rem; }

.footer__logo { flex: none; width: 4.5rem; height: 4.5rem; }

.footer__name { display: flex; flex-direction: column; }
.footer__name-sub {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-light);
}
.footer__name-script {
  font-family: var(--font-script);
  font-size: 2.6rem;
  line-height: 1.2;
  color: #fff;
}
.footer__tagline {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--light);
}

.footer__bottom {
  display: grid;
  gap: 1.75rem;
  padding-top: clamp(2rem, 5vw, 2.75rem);
  font-size: 0.95rem;
}

.footer__title {
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}

.footer__instagram {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  text-decoration: none;
}
.footer__instagram:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.3em; }

.footer :focus-visible { outline-color: var(--gold-light); }

/* no celular, a margem direita evita os botões flutuantes */
.footer__copyright { font-size: 0.85rem; padding-right: 4rem; }

@media (min-width: 760px) {
  .footer__top { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer__bottom { grid-template-columns: auto auto; justify-content: start; align-items: start; column-gap: clamp(3rem, 8vw, 7rem); }
  /* linha própria, à esquerda: fora da área dos botões flutuantes */
  .footer__copyright { grid-column: 1 / -1; padding-right: 0; }
}

/* ---------- WhatsApp flutuante ---------- */

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(38, 27, 71, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.whatsapp-float svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }
.whatsapp-float:hover { background: #1EBE5A; transform: scale(1.06); }
.whatsapp-float:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ---------- Voltar ao topo ---------- */

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1rem + 3.5rem + 0.75rem);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--violet-bg);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top svg { width: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.back-to-top:hover { background: var(--violet); }

/* ---------- Movimento: o traço e o brilho dourado ----------
   Mesma linguagem dos anéis do hero: o dourado se desenha e reflete a luz.
   Os estados iniciais só valem com a classe .motion, que main.js adiciona
   quando o sistema não pede movimento reduzido; sem ela, tudo fica estático. */

/* emblema com reflexo: uma cópia mais clara da própria imagem, revelada por
   uma faixa que atravessa da esquerda para a direita (só o dourado brilha) */
.gleam { position: relative; display: block; }
.gleam > img { width: 100%; height: auto; }
.gleam::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/emblema-integrado.webp") center / contain no-repeat;
  filter: brightness(1.6) saturate(1.15);
  -webkit-mask-image: linear-gradient(110deg, transparent 40%, #000 50%, transparent 60%);
  mask-image: linear-gradient(110deg, transparent 40%, #000 50%, transparent 60%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  opacity: 0;
  pointer-events: none;
}

@keyframes gleam {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; opacity: 1; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; opacity: 1; }
}
@keyframes gleam-loop {
  0% { -webkit-mask-position: 100% 0; mask-position: 100% 0; opacity: 1; }
  15% { -webkit-mask-position: 0 0; mask-position: 0 0; opacity: 1; }
  15.01%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .footer__brand.is-in .gleam::after { animation: gleam 1.5s ease-in-out 0.3s both; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand:hover .gleam::after { animation: gleam 1.2s ease-in-out both; }
}

/* linha dourada dos valores: se desenha da esquerda para a direita */
.values__item { position: relative; }
.motion .values__item { border-top-color: transparent; }
.motion .values__item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.6, 0.05, 0.25, 1) calc(var(--i, 0) * 0.18s);
}
.motion .values__item.is-in::before { transform: none; }

/* ícones dos tratamentos: o traço se desenha quando a linha entra na tela */
.motion .treatment__icon .stroke-draw {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.6s cubic-bezier(0.6, 0.05, 0.25, 1) 0.1s;
}
.motion .treatment.is-in .treatment__icon .stroke-draw { stroke-dashoffset: 0; }
.motion .treatment__icon [stroke-dasharray],
.motion .treatment__icon .filled { opacity: 0; transition: opacity 0.8s ease 0.9s, fill 0.3s ease; }
.motion .treatment.is-in .treatment__icon [stroke-dasharray],
.motion .treatment.is-in .treatment__icon .filled { opacity: 1; }

/* pontos dourados dos princípios: surgem um após o outro */
.motion .principles__item::before {
  transform: scale(0);
  transition: transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) calc(0.15s + var(--i, 0) * 0.15s);
}
.motion .principles__item.is-in::before { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
