/* ==========================================================================
   Coelho Odontologia — Estilos globais
   Identidade: identidade-visual-bege-dourado.md
   ========================================================================== */

/* ---------- 1. Variáveis da identidade visual ---------- */
:root {
  /* Paleta oficial */
  --gold: #B08D57;
  --beige: #D8C3A5;
  --beige-light: #F3EDE3;
  --cream: #F5F1E8;
  --white: #FFFFFF;
  --text: #1F1F1F;
  --text-2: #6B6258;

  /* Derivações (transparências das cores oficiais) */
  --dark: var(--text);
  --on-dark: var(--white);
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --line: rgba(31, 31, 31, 0.1);
  --line-dark: rgba(255, 255, 255, 0.14);
  --gold-soft: rgba(176, 141, 87, 0.14);

  /* Tipografia */
  --font-title: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 10px;
  --radius-lg: 16px;
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 18px 40px -24px rgba(31, 31, 31, 0.35);
}

/* ---------- 2. Reset e base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body.menu-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: var(--text);
  font-weight: 600;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section--beige { background: var(--beige-light); }
.section--dark { background: var(--dark); color: var(--on-dark); }

/* ---------- 3. Tipografia de seção ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
}
.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow { color: var(--gold); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
}
.section-head h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4.2vw, 3rem);
}
.section-head p {
  margin-top: 1rem;
  color: var(--text-2);
  font-size: 1.0625rem;
}
.section--dark .section-head p { color: var(--on-dark-2); }

.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-head--split > div { max-width: 620px; }

.lead { font-size: 1.125rem; color: var(--text-2); }

/* ---------- 4. Botões ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--text);
  --btn-border: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }

.btn--gold:hover { --btn-bg: var(--beige); --btn-border: var(--beige); }

.btn--dark { --btn-bg: var(--text); --btn-fg: var(--white); --btn-border: var(--text); }
.btn--dark:hover { --btn-bg: var(--gold); --btn-fg: var(--text); --btn-border: var(--gold); }

.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-border: rgba(255, 255, 255, 0.55); }
.btn--outline-light:hover { --btn-bg: var(--white); --btn-fg: var(--text); --btn-border: var(--white); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--text); --btn-border: rgba(31, 31, 31, 0.3); }
.btn--outline:hover { --btn-bg: var(--text); --btn-fg: var(--white); --btn-border: var(--text); }

.btn--sm { min-height: 44px; padding: 0.6rem 1.2rem; font-size: 0.75rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 5. Cabeçalho (components/header.html) ---------- */
#site-header { position: relative; z-index: 100; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    height 0.4s var(--ease), backdrop-filter 0.4s;
}
.site-header.is-scrolled {
  --header-h: 72px;
  background: rgba(31, 31, 31, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: var(--line-dark);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; position: relative; z-index: 2; }
.brand img { height: 40px; width: auto; transition: height 0.4s var(--ease); }
.is-scrolled .brand img { height: 34px; }

.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.main-nav a.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.3s;
}
.main-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.main-nav a.nav-link:hover,
.main-nav a.nav-link[aria-current="page"] { color: var(--white); }
.main-nav a.nav-link:hover::after,
.main-nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-extra { display: none; }

.header-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 46px; height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .site-header.is-scrolled { --header-h: 64px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .brand img { height: 34px; }
  .is-scrolled .brand img { height: 30px; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2.5rem;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2.5rem;
    background: var(--dark);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .main-nav li { width: 100%; border-bottom: 1px solid var(--line-dark); }
  .main-nav a.nav-link {
    display: block;
    padding-block: 1rem;
    font-family: var(--font-title);
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    transform: translateY(12px);
    opacity: 0;
    transition: color 0.3s, transform 0.5s var(--ease), opacity 0.5s var(--ease);
  }
  .main-nav a.nav-link::after { display: none; }
  .main-nav a.nav-link[aria-current="page"] { color: var(--gold); }
  .main-nav.is-open a.nav-link { transform: none; opacity: 1; }
  .main-nav.is-open li:nth-child(2) a { transition-delay: 0.05s; }
  .main-nav.is-open li:nth-child(3) a { transition-delay: 0.1s; }
  .main-nav.is-open li:nth-child(4) a { transition-delay: 0.15s; }
  .main-nav.is-open li:nth-child(5) a { transition-delay: 0.2s; }
  .nav-extra { display: grid; gap: 1rem; color: var(--on-dark-2); font-size: 0.9375rem; }
  .nav-extra .btn { width: 100%; }
  body.menu-open .site-header { background: var(--dark); }
}

/* ---------- 6. Ícones ---------- */
.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- 7. Hero (página inicial) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--dark);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg,
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img,
.page-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: hero-zoom 2.6s var(--ease) forwards;
}
/* hero.jpg: cadeira à direita — no celular o corte mantém a cadeira visível */
.hero__bg img { object-position: 68% center; }
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(31, 31, 31, 0.92) 0%, rgba(31, 31, 31, 0.72) 38%, rgba(31, 31, 31, 0.2) 75%, rgba(31, 31, 31, 0.1) 100%),
    linear-gradient(180deg, rgba(31, 31, 31, 0.55) 0%, rgba(31, 31, 31, 0) 28%, rgba(31, 31, 31, 0) 70%, rgba(31, 31, 31, 0.6) 100%);
}

.hero__content {
  position: relative;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 8rem;
  max-width: 680px;
}
.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero h1 span { display: block; color: var(--beige); font-weight: 500; }
.hero__text {
  margin-top: 1.75rem;
  max-width: 480px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--on-dark-2);
}
.hero .btn-group { margin-top: 2.5rem; }

.hero__info {
  position: absolute;
  right: var(--gutter);
  bottom: 2.5rem;
  display: flex;
  gap: 2rem;
  padding: 1.25rem 1.75rem;
  background: rgba(31, 31, 31, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--on-dark-2);
}
.hero__info strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__info div + div { padding-left: 2rem; border-left: 1px solid var(--line-dark); }

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.scroll-cue__circle {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}
.scroll-cue__circle svg { width: 16px; height: 16px; animation: cue 2s ease-in-out infinite; }
.scroll-cue:hover { color: var(--white); }

.hero .container { position: static; }

/* Animação de entrada do hero */
[data-anim] {
  opacity: 0;
  transform: translateY(26px);
  animation: fade-up 1s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 0.14s + 0.2s);
}

@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes hero-zoom { to { transform: scale(1); } }
@keyframes cue { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

@media (max-width: 900px) {
  .hero__info { display: none; }
}
@media (max-width: 600px) {
  .hero::before,
  .page-hero::before {
    background:
      linear-gradient(180deg, rgba(31, 31, 31, 0.7) 0%, rgba(31, 31, 31, 0.6) 45%, rgba(31, 31, 31, 0.9) 100%);
  }
  .hero__content { padding-bottom: 7rem; }
  .hero .btn-group .btn { width: 100%; }
}

/* ---------- 8. Hero das páginas internas (mesmo estilo do hero) ---------- */
.page-hero {
  position: relative;
  min-height: clamp(480px, 72vh, 680px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--dark);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__bg img { object-position: center; }
.page-hero__content {
  position: relative;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  max-width: 720px;
}
.breadcrumb {
  list-style: none;
  padding: 0;
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.8125rem;
  color: var(--on-dark-2);
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--gold); }
.page-hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.page-hero p {
  margin-top: 1.5rem;
  max-width: 540px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--on-dark-2);
}
.page-hero .btn-group { margin-top: 2.25rem; }

/* ---------- 8b. Apresentação da clínica (home) ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.about__head h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.08;
}
.about__head h2 span { display: block; color: var(--gold); }
.about__text { display: grid; gap: 1.1rem; color: var(--text-2); }
.about__text .lead { color: var(--text); }

.about__values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.value-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px; height: 52px;
  border: 1px solid rgba(176, 141, 87, 0.45);
  border-radius: 50%;
  color: var(--gold);
  background: var(--white);
}
.value-card__icon svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1.25rem; }
.value-card p { margin-top: 0.4rem; color: var(--text-2); }

.about__sign {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-2);
  text-align: center;
}
.about__sign img { width: 44px; height: auto; flex-shrink: 0; }
.about__sign strong { color: var(--text); font-weight: 600; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 620px) {
  .about__values { grid-template-columns: 1fr; }
  .about__sign { flex-direction: column; gap: 0.6rem; }
}

/* ---------- 9. Cards de tratamentos (home) ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 960px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards-3 { grid-template-columns: 1fr; } }

.t-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}
.t-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.t-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--beige-light); }
.t-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.t-card:hover .t-card__media img { transform: scale(1.05); }
.t-card__body { display: flex; flex-direction: column; gap: 0.75rem; flex: 1; padding: 1.75rem; }
.t-card__num { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; color: var(--gold); }
.t-card h3 { font-size: 1.375rem; }
.t-card p { color: var(--text-2); }
.t-card .link-arrow { margin-top: auto; align-self: flex-start; padding-top: 0.75rem; }

.tag-ilustrativa { display: none !important; }

.section-foot { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; justify-content: center; }

/* ---------- 10. Profissionais ---------- */
.p-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.p-card__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--beige-light); }
.p-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform 0.8s var(--ease); }
.p-card:hover .p-card__photo img { transform: scale(1.04); }
.p-card__body { padding: 1.5rem 1.75rem 1.9rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.badge {
  align-self: flex-start;
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--gold-soft);
  border: 1px solid rgba(176, 141, 87, 0.35);
  border-radius: 999px;
}
.p-card h3 { font-size: 1.375rem; }
.p-card p { color: var(--text-2); }

/* Página de profissionais */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.team-grid .p-card { flex: 0 1 calc((100% - 2 * clamp(1.25rem, 2.5vw, 2rem)) / 3); }
.p-card__meta {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
  margin: 0.25rem 0;
  border-block: 1px solid var(--line);
  font-size: 0.875rem;
}
.p-card__meta dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.p-card__meta dd { margin: 0; color: var(--text); }
.p-card__bio { font-size: 0.9375rem; }
@media (max-width: 960px) {
  .team-grid .p-card { flex-basis: calc((100% - clamp(1.25rem, 2.5vw, 2rem)) / 2); }
}
@media (max-width: 620px) {
  .team-grid .p-card { flex-basis: 100%; }
}

/* ---------- 11. Prévia da estrutura (home) ---------- */
.structure-preview {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.structure-preview figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  background: #2a2a2a;
}
.structure-preview figure:first-child { aspect-ratio: auto; grid-row: span 1; }
.structure-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.structure-preview figure:hover img { transform: scale(1.05); }
@media (max-width: 760px) {
  .structure-preview { grid-template-columns: 1fr 1fr; }
  .structure-preview figure:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
}

/* ---------- 12. Localização ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .location-grid { grid-template-columns: 1fr; } }

.info-list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px; height: 48px;
  border: 1px solid rgba(176, 141, 87, 0.45);
  border-radius: 50%;
  color: var(--gold);
}
.info-item__icon svg { width: 20px; height: 20px; }
.info-item h3 {
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 0.3rem;
}
.info-item p, .info-item address { font-style: normal; font-size: 1.0625rem; }

.map-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--beige-light);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) sepia(0.12); }
.map-frame--tall { aspect-ratio: auto; min-height: 520px; height: 100%; }
@media (max-width: 900px) { .map-frame--tall { min-height: 380px; } }

.hours { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.hours th, .hours td { padding: 0.8rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 500; }
.hours td { text-align: right; color: var(--text-2); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--text); font-weight: 600; }
.hours tr.is-today th::after {
  content: "Hoje";
  margin-left: 0.6rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--text);
  border-radius: 999px;
  vertical-align: middle;
}

.loc-card {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.loc-card + .loc-card { margin-top: 1.25rem; }
.loc-card h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-bottom: 1.25rem; }
.loc-card address { font-style: normal; font-size: 1.0625rem; line-height: 1.8; }
.loc-card .btn-group { margin-top: 1.75rem; }

.loc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}
@media (max-width: 960px) { .loc-layout { grid-template-columns: 1fr; } }

/* ---------- 13. Página de tratamentos ---------- */
.chips-wrap {
  position: sticky;
  top: calc(var(--header-h) - 1px);
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: top 0.4s var(--ease);
}
.chips {
  display: flex;
  gap: 0.6rem;
  padding-block: 0.9rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.chips a:hover { color: var(--text); border-color: var(--gold); }
.chips a.is-active { color: var(--text); background: var(--gold-soft); border-color: var(--gold); }

.treatment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.treatment:last-child { border-bottom: 0; }
.treatment:nth-child(even) .treatment__media { order: 2; }
.treatment__media {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--beige-light);
}
.treatment__media img { width: 100%; height: 100%; object-fit: cover; }
.treatment__media::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}
.treatment__num {
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.treatment h2 { margin-top: 0.75rem; font-size: clamp(2rem, 4vw, 2.75rem); }
.treatment__summary { margin-top: 1.1rem; font-size: 1.1875rem; line-height: 1.55; color: var(--text); }
.treatment__desc { margin-top: 1rem; color: var(--text-2); }
.benefits { margin-top: 1.75rem; padding: 1.5rem 1.6rem; background: var(--cream); border-radius: var(--radius); }
.benefits h3 {
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 0.9rem;
}
.benefits ul { display: grid; gap: 0.6rem; }
.benefits li { display: flex; gap: 0.75rem; align-items: flex-start; }
.benefits li::before {
  content: "";
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1F1F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.treatment .btn { margin-top: 2rem; }
@media (max-width: 860px) {
  .treatment { grid-template-columns: 1fr; }
  .treatment:nth-child(even) .treatment__media { order: 0; }
  .treatment__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .treatment .btn { width: 100%; }
}

/* ---------- 14. Galeria da estrutura ---------- */
.gallery {
  columns: 3;
  column-gap: clamp(0.75rem, 1.6vw, 1.25rem);
}
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 clamp(0.75rem, 1.6vw, 1.25rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--beige-light);
  cursor: zoom-in;
  break-inside: avoid;
}
.gallery__item img { width: 100%; height: auto; transition: transform 1s var(--ease), filter 0.6s; }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(31, 31, 31, 0.35));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:hover::after { opacity: 1; }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 520px) { .gallery { columns: 1; } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 4.5rem 1rem;
  background: rgba(20, 20, 20, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 100%;
  width: auto; height: auto;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.lightbox__btn:hover { background: var(--gold); border-color: var(--gold); color: var(--text); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  color: var(--on-dark-2);
}
@media (max-width: 600px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 0.75rem; transform: none; }
}

/* ---------- 15. Faixa de chamada (CTA) ---------- */
.cta-band {
  position: relative;
  padding-block: clamp(5rem, 11vw, 8.5rem);
  color: var(--white);
  background: var(--dark);
  overflow: hidden;
  isolation: isolate;
}
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(31, 31, 31, 0.94) 0%, rgba(31, 31, 31, 0.78) 45%, rgba(31, 31, 31, 0.35) 100%);
}
.cta-band__inner { max-width: 600px; }
.cta-band__icon { width: 56px; height: 56px; margin-bottom: 1.5rem; }
.cta-band h2 { margin-top: 1rem; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.cta-band p { margin-top: 1.25rem; color: var(--on-dark-2); font-size: 1.0625rem; }
.cta-band .btn-group { margin-top: 2.25rem; }
@media (max-width: 600px) {
  .cta-band::before { background: rgba(31, 31, 31, 0.82); }
  .cta-band .btn { width: 100%; }
}

/* Faixa de contato simples (páginas internas) */
.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
}
.contact-strip h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.contact-strip p { margin-top: 0.5rem; color: var(--on-dark-2); }
@media (max-width: 600px) { .contact-strip .btn { width: 100%; } }

/* ---------- 16. Rodapé (components/footer.html) ---------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark-2);
  padding-top: clamp(4rem, 8vw, 5.5rem);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 4rem);
}
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin-top: 1.25rem; max-width: 300px; }
.footer-brand .btn { margin-top: 1.75rem; }
.footer-col h3 {
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; line-height: 1.75; }
.footer-col .footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--white);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  font-size: 0.875rem;
}
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; }
.footer-hours span:last-child { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
}
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; padding-bottom: 6rem; }
}

/* Botão flutuante do WhatsApp */
.wa-float {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  color: var(--white);
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 12px 30px -10px rgba(31, 31, 31, 0.55);
  transition: transform 0.35s var(--ease), background 0.3s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: ring 2.6s ease-out infinite;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: var(--text); }
.wa-float__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translate(8px, -50%);
  padding: 0.5rem 0.9rem;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  background: var(--text);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label { opacity: 1; transform: translate(0, -50%); }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }
@keyframes ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

/* Fallback dos componentes */
.component-error {
  padding: 1rem var(--gutter);
  background: var(--dark);
  color: var(--white);
  font-size: 0.875rem;
}
.component-error nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.5rem; }
.component-error a { text-decoration: underline; }

/* ---------- 17. Animações ao rolar ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.1s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 18. Página 404 ---------- */
.page-hero--full { min-height: 100vh; min-height: 100svh; align-items: center; }

/* ---------- 19. Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim], .js [data-reveal] { opacity: 1; transform: none; }
}
