/* =========================================
   CLÍNICA ANA GONÇALVES — STYLES
   Paleta: Dourado #C9A96E + Branco — fiel ao logotipo
   ========================================= */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* BRAND GOLD — retirado do logotipo */
  --gold:         #C9A96E;
  --gold-dark:    #A8884A;
  --gold-deeper:  #8A6E38;
  --gold-text:    #6F5A2C;   /* texto dourado acessível (>=4.5:1 em fundos claros) */
  --gold-mid:     #B89558;
  --gold-light:   #E8D5A8;
  --gold-pale:    #F5EDD8;
  --gold-ultra:   #FAF6EE;

  /* NEUTRALS */
  --white:        #FFFFFF;
  --off-white:    #FAFAF8;
  --cream:        #F7F3EC;
  --charcoal:     #1C1C1C;
  --gray-dark:    #3D3D3D;
  --gray-mid:     #6B6B6B;
  --gray-light:   #B8B8B0;
  --border:       #E8E2D6;
  --border-gold:  rgba(201,169,110,.25);

  /* SHADOWS */
  --shadow-sm:    0 2px 12px rgba(168,136,74,.08);
  --shadow-md:    0 8px 32px rgba(168,136,74,.14);
  --shadow-lg:    0 20px 60px rgba(168,136,74,.18);

  /* SHAPE */
  --radius:       16px;
  --radius-pill:  999px;
  --transition:   .3s cubic-bezier(.4,0,.2,1);

  /* FONTS */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Outfit', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
}
img { display: block; max-width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; }

/* --- TYPOGRAPHY --- */
h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
}
h3 { font-family: var(--font-serif); font-weight: 600; }

.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 14px;
}
.tag-light  { color: var(--white); }
.text-white { color: var(--white) !important; }
.text-muted { color: rgba(255,255,255,.72); line-height: 1.75; }

.section-divider {
  width: 44px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 18px 0 28px;
}
.divider-center { margin-left: auto; margin-right: auto; }

.section-header-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-sub { color: var(--gray-mid); margin-top: 16px; font-size: 1rem; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold-deeper);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(201,169,110,.35);
}
.btn-primary:hover {
  background: var(--gold-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168,136,74,.45);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}
.btn-full { width: 100%; justify-content: center; }

/* =========================================
   LOADING SCREEN — EEG Brainwave
   ========================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}
.loader.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.loader.done      { display: none; }

/* --- ANÉIS DE PULSO (sonar / ondas) --- */
.loader-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.loader-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  animation: ring-expand 3.2s ease-out infinite;
  animation-delay: calc(var(--ri) * .8s);
}
@keyframes ring-expand {
  0%   { transform: translate(-50%,-50%) scale(0);   opacity: .7; }
  100% { transform: translate(-50%,-50%) scale(7);   opacity: 0; }
}

/* --- INNER WRAPPER --- */
.loader-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  padding: 24px;
}

/* --- ONDA CEREBRAL EEG --- */
.brainwave-wrap {
  width: min(420px, 88vw);
  position: relative;
}
.brainwave-svg {
  width: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.35));
}

/* Linha que se desenha da esquerda para a direita */
.brainwave-path {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: draw-eeg 1.6s cubic-bezier(.4,0,.2,1) .2s forwards;
}
@keyframes draw-eeg {
  to { stroke-dashoffset: 0; }
}

/* Ponto brilhante que corre sobre a linha */
.brainwave-dot {
  opacity: 0;
  filter: drop-shadow(0 0 6px white);
  animation: dot-run 1.6s cubic-bezier(.4,0,.2,1) .2s forwards;
}
@keyframes dot-run {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { opacity: 0; }
}

/* --- NOME E ESPECIALIDADES --- */
.loader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.loader-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: .01em;
  opacity: 0;
  animation: brand-in .6s ease 1.5s forwards;
}
@keyframes brand-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Especialidades — cada uma entra individualmente */
.loader-specs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.loader-spec, .loader-sep {
  opacity: 0;
  animation: spec-in .35s ease forwards;
  animation-delay: calc(1.8s + var(--sd));
}
.loader-spec { color: rgba(255,255,255,.95); }
.loader-sep  { color: rgba(255,255,255,.4);  font-size: .6rem; }
@keyframes spec-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  /* Transparent on hero (gold-pale bg) */
}
.navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 13px 0;
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  transition: color var(--transition);
}
.logo-orbital {
  width: 48px; height: 48px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(201,169,110,.3);
}
.logo-orbital svg { width: 30px; height: 30px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 1.2rem; font-weight: 700; color: var(--charcoal); }
.logo-text span { font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--gray-dark);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--gold-text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .nav-cta {
  background: var(--gold-deeper);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(201,169,110,.3);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover {
  background: var(--gold-text);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(168,136,74,.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO
   ========================================= */
.hero {
  background: var(--gold-ultra);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
  position: relative;
}
/* Subtle gold pattern in bg */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201,169,110,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(201,169,110,.08) 0%, transparent 45%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 48px;
}

/* LEFT */
.hero-left { padding-right: 20px; }
.hero-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 20px;
}
.hero-left h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--charcoal);
}
.hero-divider {
  width: 44px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 22px 0;
}
.hero-sub {
  color: var(--gray-mid);
  font-size: .97rem;
  max-width: 380px;
  line-height: 1.75;
  margin-bottom: 36px;
}

/* CENTER — photo */
.hero-center { display: flex; justify-content: center; }
.hero-photo-wrap {
  width: 300px;
  height: 420px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--gold-pale);
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(201,169,110,.15);
  flex-shrink: 0;
}
.hero-photo { width: 100%; height: 100%; object-position: top center; }

/* RIGHT — stats */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-left: 24px;
  border-left: 1px solid var(--border-gold);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-deeper);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  line-height: 1.5;
}

/* =========================================
   PARTNERS BAR
   ========================================= */
.partners-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.partners-bar .container {
  display: flex;
  align-items: center;
  gap: 48px;
}
.partners-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.partners-list {
  display: flex;
  gap: 48px;
  align-items: center;
  flex: 1;
  justify-content: space-between;
}
.partner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-mid);
  transition: color var(--transition);
}
.partner-item:hover { color: var(--gold-text); }
.partner-item svg { color: var(--gold-light); }

/* =========================================
   SOBRE
   ========================================= */
.sobre { background: var(--white); }
.sobre-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sobre-text h2 { margin-bottom: 0; }
.sobre-text > p { color: var(--gray-mid); margin-bottom: 32px; }

.sobre-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sobre-col {
  padding: 20px;
  background: var(--gold-ultra);
  border-radius: var(--radius);
  border: 1px solid var(--gold-light);
}
.sobre-col h3, .sobre-col h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.sobre-col p { font-size: .875rem; color: var(--gray-mid); line-height: 1.65; }

.sobre-images {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  height: 480px;
}
.sobre-img-pill { border-radius: var(--radius-pill); overflow: hidden; flex-shrink: 0; }
.pill-tall { width: 48%; height: 100%; }
.sobre-img-col { flex: 1; display: flex; flex-direction: column; gap: 16px; height: 100%; }
.pill-short { height: calc(50% - 8px); border-radius: var(--radius-pill); overflow: hidden; }
.sobre-img-pill img, .pill-short img { width: 100%; height: 100%; }

/* =========================================
   SERVIÇOS — fundo dourado escuro
   ========================================= */
.servicos-dark { background: var(--gold-deeper); }
.servicos-dark .section-tag  { color: var(--white); }
.servicos-dark h2             { color: var(--white); }
.servicos-dark .section-divider { background: rgba(255,255,255,.3); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; color: var(--gold-text); }
.service-card h3 { font-size: 1.05rem; color: var(--charcoal); margin-bottom: 10px; }
.service-card p { font-size: .875rem; color: var(--gray-mid); line-height: 1.65; flex: 1; margin-bottom: 24px; }
.btn-service {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-text);
  padding: 10px 18px;
  background: var(--gold-pale);
  border-radius: var(--radius-pill);
  align-self: flex-start;
  transition: var(--transition);
}
.btn-service:hover { background: var(--gold); color: var(--white); }

/* =========================================
   POR QUE ESCOLHER
   ========================================= */
.porque { background: var(--cream); }
.porque-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.porque-image { position: relative; }
.porque-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.porque-img-wrap img { width: 100%; height: 100%; }
.porque-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--gold-deeper);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.porque-badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
}
.porque-badge span { font-size: .75rem; opacity: 1; }

.porque-text h2 { margin-bottom: 0; }
.porque-items { display: flex; flex-direction: column; gap: 20px; }
.porque-item { display: flex; gap: 16px; align-items: flex-start; }
.check-icon {
  width: 32px; height: 32px;
  background: var(--gold-deeper);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.porque-item h3, .porque-item h4 { font-size: .97rem; font-weight: 600; color: var(--charcoal); margin-bottom: 4px; }
.porque-item p { font-size: .87rem; color: var(--gray-mid); line-height: 1.6; }

/* =========================================
   EQUIPE
   ========================================= */
.equipe-light { background: var(--gold-ultra); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo-wrap {
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--gold-light);
}
.team-photo-wrap img { width: 100%; height: 100%; }
.team-card h3 { font-size: 1rem; color: var(--charcoal); margin-bottom: 4px; }
.team-role { font-size: .72rem; font-weight: 600; color: var(--gold-text); letter-spacing: .04em; margin-bottom: 10px; }
.team-card > p { font-size: .83rem; color: var(--gray-mid); line-height: 1.6; margin-bottom: 16px; }
.team-social { display: flex; gap: 8px; justify-content: center; }
.team-social a {
  width: 32px; height: 32px;
  background: var(--gold-pale);
  color: var(--gold-text);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  transition: var(--transition);
}
.team-social a:hover { background: var(--gold); color: var(--white); }

/* =========================================
   DEPOIMENTOS — sticky stack layout
   ========================================= */
.depoimentos { background: var(--white); }

/* Two-column grid */
.testi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* LEFT — sticky */
.testi-left {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Tag badge */
.testi-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 500;
  color: var(--gray-mid);
  background: var(--off-white);
}
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(201,169,110,.25);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(201,169,110,.25); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,.1); }
}

.testi-left h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.15; margin-bottom: 0; }
.testi-desc { color: var(--gray-mid); font-size: .97rem; line-height: 1.75; }

/* Stats grid 3 cols */
.testi-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.testi-stat-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
}
.testi-stat-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.testi-stat-card span { font-size: .72rem; color: var(--gray-mid); line-height: 1.4; }

/* CTAs */
.testi-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-ghost-gold {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: .88rem;
  font-weight: 600;
  color: var(--gold-text);
  border: 1.5px solid var(--border-gold);
  transition: var(--transition);
  background: transparent;
}
.btn-ghost-gold:hover {
  background: var(--gold-ultra);
  border-color: var(--gold);
}

/* RIGHT — stacking cards container */
.testi-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Height = enough for all cards to stack and scroll */
  padding-bottom: 40px;
}

/* Individual sticky card */
.testi-card {
  position: sticky;
  top: calc(88px + var(--i) * 28px);   /* stagger: each card peeks 28px below the previous */
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  /* Scale down slightly as they stack to show depth */
  transform: scale(calc(1 - var(--i) * 0.008));
  transform-origin: top center;
  transition: box-shadow var(--transition);
}
.testi-card:hover { box-shadow: 0 8px 40px rgba(168,136,74,.15); }

/* Card top: avatar + name */
.testi-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.testi-avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 2px solid var(--gold-light);
}
.testi-author strong { display: block; font-size: 1rem; font-weight: 600; color: var(--charcoal); }
.testi-author span   { font-size: .8rem; color: var(--gray-mid); }

/* Rating row */
.testi-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.testi-rating-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
}
.testi-stars {
  display: flex;
  gap: 2px;
}
.testi-stars svg {
  width: 16px; height: 16px;
  color: var(--gold-dark);
}

/* Service tag badge inside card */
.testi-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold-text);
  background: var(--gold-ultra);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 12px;
}

/* Quote */
.testi-quote {
  font-size: .93rem;
  color: var(--gray-mid);
  line-height: 1.75;
  margin: 0;
}

/* =========================================
   RESPONSIVE — depoimentos
   ========================================= */
@media (max-width: 900px) {
  .testi-layout { grid-template-columns: 1fr; gap: 48px; }
  .testi-left   { position: static; }
  .testi-card   { position: relative; top: auto !important; transform: none !important; margin-bottom: 16px; }
  .testi-right  { padding-bottom: 0; }
}

/* =========================================
   AGENDAMENTO — fundo dourado escuro
   ========================================= */
.agendamento { background: var(--gold-deeper); }
.agendar-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.agendar-info .section-divider { background: rgba(255,255,255,.25); }
.agendar-info h2 { margin-bottom: 0; }
.agendar-info > p { margin-bottom: 36px; }

.agendar-lista { display: flex; flex-direction: column; gap: 12px; }
.agendar-lista li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  padding: 14px 18px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
}
.lista-icon { color: var(--gold-light); font-size: .8rem; flex-shrink: 0; }

.agendar-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.agendar-form h2, .agendar-form h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--charcoal);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: .88rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}
textarea { resize: vertical; min-height: 96px; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A96E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-success {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--gold-ultra);
  border: 1px solid var(--gold-light);
  border-radius: 8px;
  color: var(--gold-text);
  font-size: .88rem;
  text-align: center;
}

/* =========================================
   CONTATO
   ========================================= */
.contato { background: var(--cream); }
.contato-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}
.contato-info h2 { margin-bottom: 0; }
.contato-items { display: flex; flex-direction: column; gap: 24px; margin-top: 4px; }
.contato-item { display: flex; gap: 16px; align-items: flex-start; }
.contato-icon {
  font-size: 1.2rem;
  width: 46px; height: 46px;
  background: var(--gold-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contato-item strong { display: block; font-size: .78rem; font-weight: 700; color: var(--gold-text); margin-bottom: 4px; letter-spacing: .05em; text-transform: uppercase; }
.contato-item p { font-size: .9rem; color: var(--gray-mid); line-height: 1.6; margin: 0; }

.mapa-placeholder {
  background: var(--gold-ultra);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--gold-light);
}
.mapa-inner { text-align: center; color: var(--gray-mid); }
.mapa-inner span { font-size: 3rem; display: block; margin-bottom: 12px; }
.mapa-inner p { font-weight: 600; color: var(--gold-text); margin-bottom: 4px; }
.mapa-inner small { font-size: .82rem; }

/* =========================================
   LEGAL STRIP (links para páginas legais)
   ========================================= */
.legal-strip {
  background: var(--gold-pale);
  padding: 40px 0;
  border-top: 1px solid var(--border-gold);
}
.legal-strip .container {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.legal-strip-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.legal-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.legal-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--gold-text);
  padding: 8px 16px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  transition: var(--transition);
  background: var(--white);
}
.legal-link:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* =========================================
   COOKIE BANNER
   ========================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--charcoal);
  color: rgba(255,255,255,.85);
  padding: 16px 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: .84rem;
  line-height: 1.5;
  transform: translateY(0);
  transition: transform .4s ease;
  box-shadow: 0 -4px 20px rgba(168,136,74,.2);
}
.cookie-banner.hidden { transform: translateY(110%); }
.cookie-banner p { flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--gold-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.cookie-accept { background: var(--gold-deeper); color: var(--white); }
.cookie-accept:hover { background: var(--gold-text); }
.cookie-decline { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.cookie-decline:hover { background: rgba(255,255,255,.18); }

/* =========================================
   FOOTER
   ========================================= */
.footer { background: var(--charcoal); padding: 60px 0 28px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
}
.footer .logo-text strong { color: var(--white); }
.footer .logo-text span   { color: var(--gold-light); }
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.62); margin-top: 12px; max-width: 220px; line-height: 1.6; }
.footer-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(201,169,110,.3);
  border-radius: 6px;
  font-size: .7rem;
  color: var(--gold-light);
  letter-spacing: .06em;
}

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h3, .footer-nav h4 { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.footer-nav a { font-size: .86rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-nav a:hover { color: var(--gold-light); }

.footer-contact h3, .footer-contact h4 { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.footer-contact p { font-size: .86rem; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-btn:hover { background: var(--gold); color: var(--white); }
.social-btn.whatsapp { background: #25d366; color: var(--white); }
.social-btn.whatsapp:hover { background: #1eba58; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.55); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: .76rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-legal a:hover { color: var(--gold-light); }

/* =========================================
   WHATSAPP FLOAT & BACK TO TOP
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 80px; right: 24px;
  width: 52px; height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 900;
  transition: var(--transition);
  color: var(--white);
}
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float:hover { transform: scale(1.1); }

.back-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 900;
}
.back-top.visible { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--gold-dark); }

/* =========================================
   ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-left   { padding-right: 0; }
  .hero-sub    { margin-left: auto; margin-right: auto; }
  .hero-center { order: -1; }
  .hero-photo-wrap { width: 240px; height: 340px; }
  .hero-right {
    flex-direction: row;
    justify-content: center;
    border-left: none;
    border-top: 1px solid var(--border-gold);
    padding-left: 0;
    padding-top: 28px;
    gap: 48px;
  }
  .hero-stat { text-align: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid     { grid-template-columns: repeat(2, 1fr); }
  .sobre-layout  { grid-template-columns: 1fr; gap: 48px; }
  .porque-layout { grid-template-columns: 1fr; gap: 48px; }
  .porque-badge  { right: 16px; bottom: 16px; }
  .footer-top    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 1001;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.nav-cta) { font-size: 1.1rem; color: var(--charcoal) !important; }
  .nav-links .nav-cta { padding: 14px 36px; font-size: 1.05rem; color: var(--white) !important; }
  .hamburger { display: flex; }

  .partners-bar .container { flex-direction: column; gap: 16px; }
  .partners-list { gap: 20px; flex-wrap: wrap; justify-content: center; }

  .sobre-images    { height: 280px; }
  .services-grid   { grid-template-columns: 1fr; }
  .team-grid       { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .agendar-layout  { grid-template-columns: 1fr; gap: 40px; }
  .agendar-form    { padding: 28px 20px; }
  .form-row        { grid-template-columns: 1fr; }
  .contato-layout  { grid-template-columns: 1fr; }
  .footer-top      { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom   { flex-direction: column; text-align: center; }
  .footer-legal    { justify-content: center; }
  .legal-strip .container { flex-direction: column; gap: 16px; }

  .cookie-banner   { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .team-grid  { grid-template-columns: 1fr; }
  .hero-right { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 24px; }
  .hero-stat strong { font-size: 1.9rem; }
  .hero-stat span { font-size: .62rem; }
  .sobre-cols { grid-template-columns: 1fr; }
}

/* =========================================
   LEGAL PAGES
   ========================================= */
.legal-hero {
  background: var(--gold-ultra);
  padding: 120px 0 60px;
  border-bottom: 1px solid var(--border);
}
.legal-breadcrumb {
  font-size: .78rem;
  color: var(--gray-light);
  margin-bottom: 16px;
}
.legal-breadcrumb a { color: var(--gold-text); }
.legal-breadcrumb a:hover { text-decoration: underline; }
.legal-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
}
.legal-hero p { color: var(--gray-mid); font-size: .95rem; }
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 14px;
  background: var(--gold-pale);
  border-radius: var(--radius-pill);
  font-size: .76rem;
  color: var(--gold-text);
  font-weight: 600;
  border: 1px solid var(--border-gold);
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
  padding: 64px 0;
}

.legal-toc {
  position: sticky;
  top: 90px;
}
.legal-toc h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 14px;
}
.legal-toc ul { display: flex; flex-direction: column; gap: 4px; }
.legal-toc a {
  font-size: .83rem;
  color: var(--gray-mid);
  padding: 6px 12px;
  border-radius: 8px;
  display: block;
  transition: var(--transition);
  border-left: 2px solid transparent;
}
.legal-toc a:hover,
.legal-toc a.active {
  color: var(--gold-text);
  background: var(--gold-ultra);
  border-left-color: var(--gold);
}

.legal-content section {
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}
.legal-content section:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.legal-content h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-text);
  margin: 24px 0 10px;
}
.legal-content p { color: var(--gray-dark); margin-bottom: 14px; line-height: 1.75; font-size: .93rem; }
.legal-content ul, .legal-content ol { margin: 12px 0 16px 20px; }
.legal-content li { color: var(--gray-dark); font-size: .93rem; line-height: 1.7; margin-bottom: 8px; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-highlight {
  background: var(--gold-ultra);
  border: 1px solid var(--gold-light);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}
.legal-highlight p { margin-bottom: 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .88rem; }
.legal-table th { background: var(--gold-pale); color: var(--charcoal); font-weight: 600; padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--gold-light); }
.legal-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--gray-dark); vertical-align: top; }
.legal-table tr:hover td { background: var(--gold-ultra); }

.rights-card {
  background: var(--gold-ultra);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.rights-number {
  width: 36px; height: 36px;
  background: var(--gold-deeper);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.rights-card h4 { font-weight: 600; color: var(--charcoal); margin-bottom: 4px; font-size: .95rem; }
.rights-card p  { color: var(--gray-mid); font-size: .87rem; line-height: 1.6; margin: 0; }

.duty-card {
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.duty-card h4 { font-weight: 600; color: var(--charcoal); margin-bottom: 4px; font-size: .95rem; }
.duty-card p  { color: var(--gray-mid); font-size: .87rem; line-height: 1.6; margin: 0; }

@media (max-width: 768px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc    { display: none; }
}

@media print {
  .navbar, .footer, .whatsapp-float, .back-top, .cookie-banner, .legal-toc { display: none !important; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-hero { padding: 20px 0; }
  body { font-size: 12pt; }
}

/* =========================================
   REVISÃO — ajustes do documento Website_Rita
   ========================================= */

/* Serviços: cartões mais pequenos */
.services-grid-compact { gap: 20px; }
.services-grid-compact .service-card { padding: 26px 22px; }
.services-grid-compact .service-icon { width: 46px; height: 46px; margin-bottom: 14px; }
.services-grid-compact .service-icon svg { width: 22px; height: 22px; }
.services-grid-compact .service-card h3 { font-size: .95rem; }
.services-grid-compact .service-card p { font-size: .82rem; margin-bottom: 18px; }
.services-grid-compact .btn-service { padding: 8px 15px; font-size: .72rem; }

/* Outros serviços brevemente disponíveis */
.services-soon {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  border: 1.5px dashed rgba(255,255,255,.35);
  border-radius: var(--radius-pill);
}
.services-soon-badge { color: var(--gold-light); font-size: 1rem; }
.services-soon p {
  margin: 0;
  color: var(--white);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* Equipa: 6 membros em 3 colunas */
.team-grid-6 { grid-template-columns: repeat(3, 1fr); }
.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-pale);
  color: var(--gold-text);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
}
.team-role small { font-weight: 500; }
.btn-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-text);
  padding: 8px 16px;
  background: var(--gold-pale);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.btn-team:hover { background: var(--gold); color: var(--white); }
.team-card .team-social { margin-bottom: 4px; }

/* Agendamento: só o formulário + subtítulo destacado */
.agendar-sub-destaque {
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 500;
  margin-top: 12px;
}
.agendar-layout-solo { align-items: center; }

/* Form: caixas de consentimento */
.form-check { margin: 4px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .8rem;
  font-weight: 400;
  color: var(--gray-mid);
  line-height: 1.5;
  cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold-text);
  cursor: pointer;
}
.check-label a { color: var(--gold-text); text-decoration: underline; }
.check-label.check-error span { color: #B3261E; }

/* Contactos: tipografia limpa + ícones SVG */
.contato-item strong {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: .95rem;
  color: var(--charcoal);
}
.contato-item p { font-family: var(--font-sans); font-size: .92rem; }
.contato-item p a { color: var(--gray-dark); }
.contato-item p a:hover { color: var(--gold-text); }
.contato-item p small { font-size: .78rem; color: var(--gray-mid); }
.contato-icon svg { color: var(--gold-text); }

/* Mapa embebido */
.mapa-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gold);
}
.mapa-wrap iframe { display: block; width: 100%; height: 100%; }

/* Footer: links de informações com small */
.footer-nav a small { display: block; opacity: .9; font-size: .72rem; margin-top: 2px; }

@media (max-width: 1024px) {
  .team-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .team-grid-6 { grid-template-columns: 1fr; }
  .agendar-sub-destaque { font-size: 1rem; }
}

/* =========================================
   CORREÇÕES 2
   ========================================= */

/* Fale Connosco: título em Inter */
.contato-info h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -.01em;
}

/* Exit intent modal */
.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(28,28,28,.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.exit-modal.open { opacity: 1; visibility: visible; }
.exit-card {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  padding: 40px 36px 32px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(138,110,56,.4);
  transform: translateY(16px);
  transition: transform .3s ease;
}
.exit-modal.open .exit-card { transform: translateY(0); }
.exit-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gray-mid);
  cursor: pointer;
}
.exit-close:hover { color: var(--charcoal); }
.exit-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-text);
  margin-bottom: 12px;
}
.exit-card p {
  font-size: .93rem;
  color: var(--gray-mid);
  line-height: 1.7;
  margin-bottom: 24px;
}
.exit-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: .88rem;
  font-weight: 600;
  transition: var(--transition);
}
.exit-whatsapp { background: #e8f7ee; color: #1e7a43; }
.exit-whatsapp:hover { background: #25D366; color: #fff; }
.exit-form { background: var(--gold-pale); color: var(--gold-text); }
.exit-form:hover { background: var(--gold); color: #fff; }
.exit-note { display: block; margin-top: 16px; font-size: .78rem; color: var(--gray-mid); }

/* Fotos reais das instalações */
.contato-foto {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gold);
}
.contato-foto img { display: block; width: 100%; height: auto; }

/* Logótipo ERS no rodapé */
.ers-logo {
  display: block;
  width: 140px;
  height: auto;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 6px;
}

/* =========================================
   AUDITORIA — acessibilidade, motion, subpáginas
   ========================================= */

/* Foco visível global */
:focus-visible {
  outline: 2px solid var(--white);
  box-shadow: 0 0 0 4px var(--charcoal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -48px; left: 16px;
  z-index: 10001;
  background: var(--gold-deeper);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: .85rem;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* Tracking dos títulos serif */
h1, h2 { letter-spacing: -0.01em; }

/* Página atual no nav */
.nav-links a[aria-current="page"] { color: var(--gold-text); font-weight: 600; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .loader { display: none !important; }
}

/* Tag de serviço nos testemunhos: ponto dourado em vez de emoji */
.testi-service-tag::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 8px;
  vertical-align: middle;
}

/* Ícones SVG inline (sucesso, exit, soon) */
.inline-ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }

/* ===== SUBPÁGINAS (extraído dos <style> inline) ===== */
.subpage-hero { background: var(--gold-ultra); padding: 130px 0 56px; border-bottom: 1px solid var(--gold-light); }
.subpage-hero .container { max-width: 900px; }
.breadcrumb { font-family: var(--font-sans); font-size: .85rem; color: var(--gray-mid); margin-bottom: 16px; }
.breadcrumb a { color: var(--gold-text); text-decoration: underline; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }
.subpage-hero h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold-text); margin: 0 0 12px; }
.subpage-hero p { font-family: var(--font-sans); color: var(--gray-mid); font-size: 1.05rem; margin: 0; line-height: 1.7; }
.updated-badge { display: inline-block; margin-top: 14px; background: var(--gold-light); color: var(--gold-text); font-family: var(--font-sans); font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.subpage-content { max-width: 900px; margin: 0 auto; padding: 56px 24px 80px; font-family: var(--font-sans); color: var(--charcoal); line-height: 1.75; }
.subpage-content h2 { font-family: var(--font-serif); font-size: 1.45rem; color: var(--gold-text); margin: 40px 0 16px; }
.subpage-content h2:first-child { margin-top: 0; }
.subpage-content.ruled h2 { padding-top: 32px; border-top: 2px solid var(--gold-light); }
.subpage-content.ruled h2:first-child { padding-top: 0; border-top: none; }
.subpage-content h3 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold-text); margin: 24px 0 10px; }
.subpage-content p { margin: 0 0 16px; font-size: .97rem; }
.subpage-content ul, .subpage-content ol { padding-left: 22px; margin: 0 0 16px; }
.subpage-content li { margin-bottom: 8px; font-size: .97rem; }
.subpage-content strong { color: var(--gold-text); }
.subpage-content a:not(.btn) { color: var(--gold-text); text-decoration: underline; }
.subpage-content .btn { color: var(--white); text-decoration: none; }
.subpage-cta { margin-top: 48px; background: var(--gold-ultra); border: 1px solid var(--gold-light); border-radius: 14px; padding: 32px; text-align: center; }
.subpage-cta h3 { font-family: var(--font-serif); color: var(--gold-text); font-size: 1.3rem; margin: 0 0 8px; }
.subpage-cta p { color: var(--gray-mid); margin: 0 0 20px; }
.soon-box { background: var(--gold-ultra); border: 1.5px dashed var(--gold-light); border-radius: 14px; padding: 48px 32px; text-align: center; color: var(--gray-mid); margin-top: 8px; }
.soon-box strong { display: block; font-family: var(--font-serif); font-size: 1.3rem; color: var(--gold-text); margin-bottom: 8px; }
.team-anchor { scroll-margin-top: 100px; }
.info-box { background: var(--gold-ultra); border: 1px solid var(--gold-light); border-radius: 10px; padding: 16px 20px; margin: 20px 0; font-size: .93rem; }
.info-box p { margin: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 20px 0; }
.data-table th { background: var(--gold-light); color: var(--charcoal); font-weight: 600; padding: 10px 14px; text-align: left; border: 1px solid var(--gold-light); }
.data-table td { padding: 10px 14px; border: 1px solid var(--gold-light); vertical-align: top; }
.data-table tr:nth-child(even) td { background: var(--gold-ultra); }
@media print {
  .navbar, .footer, .whatsapp-float, .back-top, .cookie-banner, .exit-modal { display: none !important; }
  .subpage-hero { padding-top: 24px; }
}

.footer-contact small { font-size: .72rem; opacity: .9; }

.form-error {
  margin-top: 16px;
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c6c0;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .88rem;
  line-height: 1.5;
}

/* Checkboxes: repor o aspeto nativo (o estilo global de inputs removia o visto) */
.check-label input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  padding: 0;
  border-radius: 4px;
}

/* =========================================
   POLISH FINAL (impeccable)
   ========================================= */

/* Escala semântica de z-index */
:root {
  --z-nav: 1000;
  --z-float: 900;
  --z-cookie: 2000;
  --z-loader: 9000;
  --z-modal: 9100;
  --z-skip: 9200;
}
.navbar { z-index: var(--z-nav); }
.whatsapp-float, .back-top { z-index: var(--z-float); }
.cookie-banner { z-index: var(--z-cookie); }
.loader { z-index: var(--z-loader); }
.exit-modal { z-index: var(--z-modal); }
.skip-link { z-index: var(--z-skip); }

/* Títulos equilibrados, prosa sem órfãos */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Estado ativo nos botões */
.btn:active, .btn-service:active, .cookie-btn:active, .exit-btn:active {
  transform: translateY(1px) scale(.99);
}

/* =========================================
   ACESSIBILIDADE + CTA (auditoria WCAG AA)
   ========================================= */

/* Utilitário para texto só de leitores de ecrã */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Âncoras não ficam sob a navbar fixa */
.section[id], main[id] { scroll-margin-top: 100px; }

/* Elementos escondidos não devem ser focáveis */
.cookie-banner.hidden { visibility: hidden; pointer-events: none; }
.back-top { visibility: hidden; }
.back-top.visible { visibility: visible; }

/* Botões desativados parecem desativados */
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Marcadores das listas nas subpáginas (o reset global removia-os) */
.subpage-content ul { list-style: disc; }
.subpage-content ol { list-style: decimal; }
.subpage-content li::marker { color: var(--gold-text); }

/* Tabelas legais com scroll acessível */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}
.table-scroll:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.data-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  color: var(--gold-text);
  padding-bottom: 8px;
  font-size: .9rem;
}

/* Erros de campo do formulário */
.field-error {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
  font-weight: 500;
  color: #B3261E;
}
.field-error:empty { display: none; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #B3261E;
}
.form-hint { display: block; margin-top: 6px; font-size: .75rem; color: var(--gray-mid); }
.form-required-note { font-size: .78rem; color: var(--gray-mid); margin-bottom: 18px; }

/* Grupo de consentimento */
.form-check { border: none; padding: 0; margin: 4px 0 18px; }
.form-check legend { font-size: .78rem; font-weight: 600; color: var(--gray-dark); margin-bottom: 8px; padding: 0; }

/* Faixa de confiança junto ao formulário */
.trust-strip {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--gray-mid);
  line-height: 1.7;
  text-align: center;
}
.trust-strip strong { color: var(--gold-text); font-weight: 600; }
.trust-strip a { color: var(--gold-text); text-decoration: underline; font-weight: 600; }

/* Botões flutuantes sobem quando o banner de cookies está visível */
body.cookie-visible .whatsapp-float { bottom: 216px; }
body.cookie-visible .back-top { bottom: 160px; }

/* Áreas de toque >= 44px */
.btn-service, .services-grid-compact .btn-service {
  min-height: 44px;
  padding: 12px 18px;
  align-items: center;
}
.team-social a { width: 44px; height: 44px; }
.social-btn { min-width: 44px; min-height: 44px; }
.exit-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }

/* Modal: WhatsApp é o primário, formulário é secundário */
.exit-whatsapp {
  background: #1E7A43;
  color: var(--white);
  font-weight: 600;
  padding: 14px 26px;
}
.exit-whatsapp:hover { background: #176336; color: var(--white); }
.exit-form {
  background: transparent;
  color: var(--gold-text);
  text-decoration: underline;
  padding: 14px 18px;
}
.exit-form:hover { background: var(--gold-ultra); color: var(--gold-text); }

/* Rodapé compacto das subpáginas */
.subpage-footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  align-items: center;
  padding-bottom: 20px;
  font-size: .88rem;
}
.subpage-footer-contact a { color: rgba(255,255,255,.92); text-decoration: underline; }
.subpage-footer-contact a:hover { color: var(--gold-light); }

/* Contactos: sem transbordo a 320px */
.contato-layout > *, .contato-item, .contato-item > div { min-width: 0; }
.contato-item p, .contato-item strong { overflow-wrap: anywhere; }

@media (max-width: 380px) {
  .container { padding: 0 18px; }
  .agendar-form { padding: 26px 20px; }
}

/* Movimento reduzido: neutralizar também os atrasos inline */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition-delay: 0s !important; }
}

/* Nomes da equipa como links */
.team-card h3 a { color: inherit; text-decoration: none; }
.team-card h3 a:hover { color: var(--gold-text); text-decoration: underline; }

/* Estados do formulário controlados pelo atributo hidden (anunciáveis) */
.form-success, .form-error { display: block; }
.form-success[hidden], .form-error[hidden] { display: none !important; }
.form-success:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }

/* =========================================
   AVALIAÇÕES REAIS DO GOOGLE
   ========================================= */

/* Cartão passa a <figure> */
figure.testi-card { margin: 0; }
.testi-quote { margin: 0; quotes: none; }
.testi-quote::before { content: "\201C"; }
.testi-quote::after  { content: "\201D"; }

.testi-source {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

/* Avatar com iniciais (sem fotos de stock) */
.testi-avatar-initials {
  background-image: none !important;
  background: var(--gold-deeper);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Selo com a nota real do Google */
.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 28px;
  padding: 16px 22px;
  background: var(--white);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.google-rating:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.google-rating-score {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-deeper);
}
.google-rating-body { display: flex; flex-direction: column; gap: 2px; }
.google-rating-stars { color: var(--gold-dark); font-size: 1rem; letter-spacing: .1em; }
.google-rating-count {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-dark);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .google-rating { width: 100%; justify-content: center; }
}

/* WebP com fallback: o <picture> não altera o layout */
picture { display: contents; }

/* Menu mobile aberto: o backdrop-filter da navbar prenderia o menu fixo à altura da navbar */
.navbar:has(.nav-links.open),
body.menu-open .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Crédito de autoria no rodapé */
.footer-credit { flex-basis: 100%; width: 100%; text-align: center; margin-top: 12px; font-size: .78rem; color: rgba(255,255,255,.55); }
.footer-credit a { color: var(--gold); font-weight: 700; }
.footer-credit a:hover { text-decoration: underline; }
