/*
Theme Name: Alegro Residencial
Theme URI: https://www.sieglepro.com/
Author: Siegle Producer
Author URI: https://www.sieglepro.com/
Description: Tema WordPress premium para o Alegro Residencial Sênior. Layout completo já ativo na instalação, totalmente editável via painel — sem necessidade de código.
Version: 3.2
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alegro
Tags: custom, responsive, editable, senior, residencial, premium, one-page
*/

/* ========================== GOOGLE FONTS ========================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ========================== RESET & CSS VARS ========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:root {
  --primary: #7a1a3c;
  --primary-dark: #5c1230;
  --primary-light: #9d3058;
  --accent: #c9a656;
  --accent-dark: #a88a3e;
  --cream: #faf6f0;
  --cream-dark: #f0e9dc;
  --ink: #2b1a20;
  --ink-soft: #5a4750;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(43,26,32,.06);
  --shadow-md: 0 8px 24px rgba(43,26,32,.10);
  --shadow-lg: 0 20px 60px rgba(43,26,32,.14);
  --shadow-xl: 0 30px 80px rgba(122,26,60,.18);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ========================== FADE-UP ANIMATIONS ========================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ========================== SECTION LABELS ========================== */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; color: var(--ink); }
.section-title em { color: var(--primary); font-style: italic; }
.section-lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 560px; line-height: 1.7; }
.section-header-center { text-align: center; margin-bottom: 56px; }
.section-header-center .section-eyebrow { justify-content: center; }
.section-header-center .section-eyebrow::before { display: none; }
.section-header-center .section-lead { margin: 0 auto; }

/* ========================== BUTTONS ========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white) !important;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 100px;
  transition: background .25s, transform .2s, box-shadow .25s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--white) !important; }

/* PARTE 1: btn-secondary hover = vermelho escuro + texto branco */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 2px solid rgba(43,26,32,.22);
  border-radius: 100px;
  transition: border-color .25s, color .25s, background .25s, transform .2s;
}
.btn-secondary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 100px;
  transition: background .25s, transform .2s;
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ========================== NAVBAR ========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(250,246,240,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,166,86,.15);
  transition: all .3s ease;
}
.nav.scrolled { padding: 10px 0; box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo img { height: 52px; width: auto; }
.nav-menu { display: flex; gap: 0; align-items: center; list-style: none; }
.nav-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav-menu li a:hover { color: var(--primary); }
.nav-cta { margin-left: 12px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; }
.hamburger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ========================== HERO ========================== */
.hero { padding: 130px 0 80px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }

/* PARTE 1: Badge "Agora também em Piracicaba" — fundo diferente do background, letra e ícone mesma cor */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-dark);
  border: 1.5px solid rgba(43,26,32,.15);
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: none;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
  text-decoration: none !important;
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-soft);
  display: inline-block;
  flex-shrink: 0;
}

/* PARTE 1: Título sem sublinhado, cor correta */
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  color: var(--ink);
  text-decoration: none !important;
  border-bottom: none !important;
}
.hero h1 em { color: var(--primary); font-style: italic; }
.hero-lead { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 32px; max-width: 500px; }
.hero-actions { display: flex; flex-wrap: nowrap; gap: 14px; margin-bottom: 40px; align-items: center; }
.hero-actions .btn-primary,
.hero-actions .btn-secondary { white-space: nowrap; flex-shrink: 0; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(43,26,32,.1); }
.hero-stat .stat-num { font-family: 'Cormorant Garamond',serif; font-size: 3rem; font-weight: 600; color: var(--primary); line-height:1; }
.hero-stat .stat-label { font-size: .75rem; color: var(--ink-soft); margin-top: 4px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

/* PARTE 1: Imagem principal — quadrada com apenas canto inferior direito arredondado */
.hero-image-wrap { position: relative; }
.hero-image-main {
  border-radius: 0 0 80px 0;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hero-image-main img { width: 100%; height: 500px; object-fit: cover; display: block; }

/* PARTE 1: Círculo inferior decorativo (accent) */
.hero-image-accent {
  position: absolute;
  bottom: -38px;
  left: -42px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--cream);
  box-shadow: var(--shadow-lg);
}
.hero-image-accent img { width: 100%; height: 100%; object-fit: cover; }

/* PARTE 1: Círculo decorativo superior — só preenchimento, sem borda */
.hero-ornament {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 90px;
  height: 90px;
  background: var(--cream-dark);
  border-radius: 50%;
  opacity: .7;
  z-index: -1;
}

/* ========================== ABOUT ========================== */
/* PARTE 2: Fundo branco, grid invertido (imagem à direita igual ao design) */
.about { padding: 100px 0; background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* PARTE 2: imagens não quadradas — aspecto natural */
.about-images { position: relative; padding-bottom: 40px; }
.about-img-primary {
  border-radius: 20px 20px 20px 60px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-primary img { width: 100%; height: 420px; object-fit: cover; }

.about-img-secondary {
  position: absolute;
  bottom: -20px;
  right: -30px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--cream);
  box-shadow: var(--shadow-md);
}
.about-img-secondary img { width: 100%; height: 100%; object-fit: cover; }

/* PARTE 2: número "01" ao fundo */
.about-ornament-num {
  position: absolute;
  top: -30px;
  left: -10px;
  font-family: 'Cormorant Garamond',serif;
  font-size: 9rem;
  font-weight: 600;
  color: var(--primary);
  opacity: .07;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.about-content { position: relative; z-index: 1; }
.about-content .section-title { color: var(--ink); }
.about-features { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.about-feature { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid rgba(43,26,32,.07); }
.about-feature:last-child { border-bottom: none; padding-bottom: 0; }

/* PARTE 2 & 3: ícones — estado normal: ícone vermelho com fundo mais claro; hover: vermelho mais forte */
.about-feature-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(122,26,60,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  transition: transform .3s, background .3s;
  position: relative;
  overflow: visible;
}

/* PARTE 3: linha superior — totalmente removida no estado normal */
.about-feature-icon::before { display: none; }

/* SVG inline (fallback sem imagem enviada) — herda a cor via currentColor */
.about-feature-icon svg {
  color: var(--primary);
  transition: color .3s;
}
.about-feature:hover .about-feature-icon svg {
  color: var(--white);
}

/* IMG (SVG enviado via painel) — usa filter para colorir com cor exata #7a1a3c */
.about-feature-icon img {
  width: 22px;
  height: 22px;
  display: block;
  /* filter calibrado para #7a1a3c (vermelho/bordô primário) */
  filter: invert(13%) sepia(72%) saturate(900%) hue-rotate(305deg) brightness(85%) contrast(95%);
  transition: filter .3s;
}

.about-feature:hover .about-feature-icon {
  transform: scale(1.12) rotate(-8deg);
  background: var(--primary);
  overflow: hidden;
}
.about-feature:hover .about-feature-icon img {
  /* hover: ícone branco */
  filter: brightness(0) invert(1);
}
.about-feature:hover .about-feature-icon::before { display: none; }

.about-feature h4 { font-size: 1rem; margin-bottom: 4px; font-family: 'Inter',sans-serif; font-weight: 600; color: var(--ink); }
.about-feature p { font-size: .9rem; color: var(--ink-soft); line-height: 1.6; }

/* ========================== DIFERENCIAIS ========================== */
/* PARTE 3: background não é branco puro — usa tom creme suave */
.differentials { padding: 100px 0; background: var(--cream); }
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.diff-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid rgba(43,26,32,.07);
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.diff-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.diff-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.diff-card:hover::before { transform: scaleX(1); }

/* PARTE 3: ícone diff — estado normal: ícone vermelho com fundo claro; sem destaque antes do hover */
.diff-icon {
  width: 52px;
  height: 52px;
  background: rgba(122,26,60,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--primary);
  transition: transform .3s, background .3s, color .3s;
  position: relative;
  overflow: visible;
}
/* Remove linha branca completamente no estado normal */
.diff-icon::before {
  display: none;
}
/* PARTE 2/3: Hover — vermelho sólido, ícone branco, sem mancha no topo */
.diff-card:hover .diff-icon {
  transform: scale(1.12) rotate(-8deg);
  background: var(--primary);
  color: var(--white);
  overflow: hidden;
}
.diff-card:hover .diff-icon::before { display: none; }

/* SVG enviado como imagem — aplica filtro para herdar a cor do ícone */
.diff-icon img {
  width: 22px;
  height: 22px;
  display: block;
  filter: invert(18%) sepia(60%) saturate(900%) hue-rotate(300deg) brightness(80%);
  transition: filter .3s;
}
.diff-card:hover .diff-icon img {
  filter: brightness(0) invert(1);
}

.diff-card h3 { font-size: 1.15rem; margin-bottom: 10px; font-family:'Inter',sans-serif; font-weight:600; color: var(--ink); }
.diff-card p { font-size: .9rem; color: var(--ink-soft); line-height: 1.65; }

/* PARTE 3: primeiro card — sem borda destacada nem linha superior antes do hover */
.diff-card:first-child {
  border-color: rgba(43,26,32,.07);
  border-width: 1px;
}
.diff-card:first-child::before { transform: scaleX(0); }

/* ========================== ESPAÇOS / GALLERY ========================== */
/* PARTE 4: header da seção "Nossa Estrutura" — alinhamento à esquerda com linha no eyebrow */
.spaces { padding: 100px 0; background: #2b1a20; }
.spaces-header {
  max-width: 540px;
  margin-bottom: 48px;
}
.spaces-header .section-eyebrow {
  color: var(--accent);
}
.spaces-header .section-eyebrow::before {
  background: var(--accent);
}
.spaces .section-header-center {
  text-align: left;
  margin-bottom: 48px;
}
.spaces .section-header-center .section-eyebrow {
  justify-content: flex-start;
  color: var(--accent);
}
.spaces .section-header-center .section-eyebrow::before {
  display: block;
  background: var(--accent);
}
.spaces .section-header-center .section-lead { margin: 0; }
.spaces .section-title { color: var(--white); }
.spaces .section-title em { color: var(--accent); }
.spaces .section-lead { color: rgba(255,255,255,.65); }
.spaces-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 16px;
  margin-top: 48px;
}
.spaces-gallery .gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.spaces-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.spaces-gallery .gallery-item:hover img { transform: scale(1.05); }
.spaces-gallery .gallery-item:first-child { grid-row: span 2; }

/* PARTE 4: Gallery — texto surge de baixo pra cima no hover */
.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(transparent, rgba(20,10,15,.75));
  transform: translateY(100%);
  transition: transform .35s ease;
}
.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.gallery-overlay-title {
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.2;
}
.gallery-overlay-desc {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 500;
}

/* ========================== EQUIPE ========================== */
/* PARTE 5: imagem à direita, fundo branco/creme, formato mais oval */
.team { padding: 100px 0; background: var(--cream); }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Conteúdo primeiro (esquerda), imagem direita */
.team-content { order: 1; }
.team-image-wrap { order: 2; position: relative; }

/* PARTE 5: Imagem oval/arredondada */
.team-image {
  border-radius: 40% 40% 40% 40% / 30% 30% 30% 30%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.team-image img { width: 100%; height: 480px; object-fit: cover; }

/* Citação sobreposição na imagem */
.team-quote-box {
  position: absolute;
  bottom: -20px;
  left: -24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  max-width: 280px;
  border-left: 4px solid var(--primary);
}
.team-quote-box p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}

.team-members {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 32px;
  border: 1px solid rgba(43,26,32,.08);
  border-radius: var(--radius);
  overflow: hidden;
}

/* PARTE 5: hover dos membros — linha inferior vermelha + desloca direita */
.team-member {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(43,26,32,.06);
  border-right: 1px solid rgba(43,26,32,.06);
  transition: background .2s, padding-left .2s;
  cursor: default;
  position: relative;
}
.team-member::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.team-member:hover { background: rgba(122,26,60,.04); padding-left: 24px; }
.team-member:hover::after { transform: scaleX(1); }

.team-member-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  opacity: .9;
  flex-shrink: 0;
  min-width: 24px;
}
.team-member h4 { font-size: .88rem; font-family:'Inter',sans-serif; font-weight: 600; color: var(--ink); }
.team-member p { display: none; }

/* ========================== MODALIDADES ========================== */
.modalities { padding: 100px 0; background: var(--white); }
.modalities-header { max-width: 600px; margin-bottom: 56px; }
.modalities-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(43,26,32,.08);
}
.modality-item {
  display: grid;
  grid-template-columns: 80px 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(43,26,32,.08);
  transition: background .2s;
  cursor: default;
}
.modality-item:hover { background: rgba(122,26,60,.02); }
.modality-num {
  font-family: 'Cormorant Garamond',serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary);
  opacity: .35;
  line-height: 1;
}
.modality-title { font-size: 1.2rem; font-family:'Cormorant Garamond',serif; font-weight:500; color: var(--ink); }
.modality-title em { color: var(--primary); font-style: italic; }
.modality-body p { font-size: .9rem; color: var(--ink-soft); line-height: 1.6; }
.modality-link {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: gap .2s;
  text-decoration: none;
}
.modality-link:hover { gap: 10px; }

/* ========================== UNIDADES ========================== */
.units { padding: 100px 0; background: var(--cream); }
.units-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.unit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .3s, box-shadow .3s;
}
.unit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.unit-card-image { position: relative; height: 300px; overflow: hidden; }
.unit-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.unit-card:hover .unit-card-image img { transform: scale(1.04); }

/* PARTE 7: Badge com cor do texto igual à cor da bolinha */
.unit-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.95);
  font-size: .75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.unit-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* Status em operação — verde */
.unit-badge.em-operacao .badge-dot { background: #4caf50; }
.unit-badge.em-operacao .badge-text { color: #4caf50; }
/* Status em breve — dourado */
.unit-badge.em-breve .badge-dot { background: var(--accent); }
.unit-badge.em-breve .badge-text { color: var(--accent-dark); }

.unit-card-body { padding: 28px 28px 24px; }
.unit-eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.unit-card-body h3 { font-size: 1.8rem; margin-bottom: 16px; color: var(--ink); }
.unit-address { display: flex; gap: 8px; font-size: .88rem; color: var(--ink-soft); margin-bottom: 8px; align-items: flex-start; }
.unit-phone { display: flex; gap: 8px; font-size: .88rem; color: var(--ink-soft); margin-bottom: 24px; align-items: center; }
.unit-actions { display: flex; gap: 12px; flex-wrap: nowrap; align-items: center; }

.unit-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 100px;
  transition: background .25s, transform .2s;
}
.unit-btn-wa:hover { background: var(--primary-dark); transform: translateY(-2px); }
.unit-btn-wa.accent { background: var(--accent); }
.unit-btn-wa.accent:hover { background: var(--accent-dark); }

/* PARTE 7: "Ver no Mapa" hover = vermelho + branco */
.unit-btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 2px solid rgba(43,26,32,.18);
  border-radius: 100px;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.unit-btn-map:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ========================== CONTATO ========================== */
.contact { padding: 100px 0; background: var(--primary); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-left .section-eyebrow { color: var(--accent); }
.contact-left .section-eyebrow::before { background: var(--accent); }
.contact-left h2 { color: var(--white); font-size: clamp(2rem, 3.5vw, 2.8rem); }
.contact-left h2 em { color: var(--accent); }
.contact-left p { color: rgba(255,255,255,.72); margin-top: 16px; line-height: 1.7; }
.contact-channels { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: background .2s;
}
.contact-channel:hover { background: rgba(255,255,255,.12); }
.contact-channel-icon {
  width: 40px;
  height: 40px;
  background: rgba(201,166,86,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-channel-icon svg { color: var(--accent); }
.contact-channel-label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.contact-channel-value { color: var(--white); font-size: .95rem; font-weight: 500; }
.contact-form-box {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}
.contact-form-box h3 { font-size: 1.6rem; margin-bottom: 6px; color: var(--ink); }
.contact-form-box > p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid rgba(43,26,32,.12);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: 'Inter',sans-serif;
  font-size: .9rem;
  color: var(--ink);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { 
  width: 100%; 
  margin-top: 8px; 
  justify-content: center;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========================== FOOTER ========================== */
/* PARTE 9: Estrutura do footer — ícones sociais ABAIXO da descrição lado esquerdo */
footer { background: #1a0d12; padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; }
/* Logo do rodapé com upload dedicado — sem filtro, proporção preservada */
.footer-brand > img:not(.footer-logo-auto) {
  display: block;
  height: 64px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 16px;
}
/* Logo principal com filtro branco automático */
.footer-brand .footer-logo-auto {
  display: block;
  height: 64px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 20px; }

/* PARTE 9: Ícones sociais ABAIXO da descrição, lado esquerdo */
.footer-social { display: flex; gap: 10px; margin-top: 0; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--primary); color: var(--white); }

.footer-links h5 { font-family:'Inter',sans-serif; font-weight:600; font-size:.85rem; color:rgba(255,255,255,.85); margin-bottom:16px; letter-spacing:.05em; text-transform: uppercase; }
.footer-links ul { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-links ul li a { font-size:.85rem; color:rgba(255,255,255,.45); transition:color .2s; }
.footer-links ul li a:hover { color:var(--accent); }

/* PARTE 9: Remover frase "Desenvolvido por" visualmente (mantido no HTML comentado) */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer-bottom a:hover { color: var(--accent); }
.footer-credit { display: none; } /* Oculto no frontend */

/* ========================== WHATSAPP FLOAT ========================== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  opacity: 0;
  transform: scale(0.7);
  transform-origin: bottom right;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  z-index: 9999;
}
.wa-float.show {
  opacity: 1;
  transform: scale(1);
}

/* Botão circular */
.wa-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  pointer-events: auto;
  z-index: 9999;
  position: relative;
}
.wa-trigger:hover { transform: scale(1.08); box-shadow: 0 10px 32px rgba(37,211,102,.5); }

/* Toggle: ícones abrir/fechar */
.wa-trigger--toggle .wa-icon-close { display: none; }
.wa-trigger--toggle.is-open .wa-icon-open  { display: none; }
.wa-trigger--toggle.is-open .wa-icon-close { display: flex; }

/* ---- POPUP ---- */
.wa-popup {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.13), 0 1px 4px rgba(0,0,0,.07);
  width: 270px;
  overflow: hidden;
  position: absolute;
  bottom: 70px;
  right: 0;
  opacity: 0;
  transform: translateY(12px) scale(.97);
  transform-origin: bottom right;
  transition: opacity .25s ease, transform .25s ease, max-height .25s ease;
  pointer-events: none;
  z-index: 9999;
  max-height: 0;
}
.wa-popup.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 9999;
  max-height: 500px;
}

.wa-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 0;
}
.wa-popup-header span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a0d12;
}
.wa-popup-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.wa-popup-close:hover { background: #f3f3f3; color: #333; }

.wa-popup-sub {
  font-size: .78rem;
  color: #888;
  padding: 4px 16px 10px;
  margin: 0;
}

.wa-popup-list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}
.wa-popup-list li { margin: 0; }

.wa-popup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: #1a0d12;
  transition: background .18s ease;
  cursor: pointer;
}
.wa-popup-item:hover {
  background: #f5faf5;
  color: #1a0d12;
}

.wa-popup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #25d366;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-popup-item:hover .wa-popup-icon {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(37,211,102,.35);
}

.wa-popup-label {
  flex: 1;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.3;
}

.wa-popup-arrow {
  color: #bbb;
  flex-shrink: 0;
  transition: transform .18s ease, color .18s ease;
}
.wa-popup-item:hover .wa-popup-arrow {
  transform: translateX(3px);
  color: #25d366;
}

/* Highlight de item ativo (quando formulário seleciona unidade) */
.wa-popup-item.is-active {
  background: #edfbf1;
}
.wa-popup-item.is-active .wa-popup-icon {
  box-shadow: 0 4px 14px rgba(37,211,102,.3);
}
.wa-popup-item.is-active .wa-popup-arrow {
  color: #25d366;
}

/* ========================== RESPONSIVE ========================== */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-image-wrap { max-width: 540px; margin: 0 auto; }
  .about-img-primary img { height: 480px; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .units-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .spaces-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .spaces-gallery .gallery-item:first-child { grid-row: span 1; }
  .team-content { order: 1; }
  .team-image-wrap { order: 2; max-width: 480px; margin: 0 auto; }
  .modality-item { grid-template-columns: 60px 1fr auto; }
  .modality-body { display: none; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid rgba(43,26,32,.08); padding: 16px 0; }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }
  .diff-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modality-item { grid-template-columns: 50px 1fr; }
  .modality-link { display: none; }
  .spaces-gallery { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .team-members { grid-template-columns: 1fr; }
  .units-grid { grid-template-columns: 1fr; }

  /* ── HERO RESPONSIVO ── */
  .hero { padding: 100px 0 60px; }
  .hero-grid { gap: 40px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-lead { font-size: .95rem; }
  .hero-actions { flex-wrap: wrap; gap: 12px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }
  .hero-image-main img { height: 420px; }
  .hero-image-wrap { order: -1; margin-bottom: 20px; }
  .hero-image-accent { width: 180px; height: 180px; left: -24px; bottom: -24px; }
  .hero-ornament { width: 60px; height: 60px; top: -10px; right: -10px; }

  /* ── CONTAINER SEGURO ── */
  .container { padding: 0 18px; }

  /* ── WHATSAPP MOBILE ── */
  .wa-float { bottom: 18px; right: 16px; z-index: 9999; }
  .wa-trigger { width: 52px; height: 52px; }
  .wa-popup { width: 240px; }

  /* ── ABOUT IMAGEM MOBILE ── */
  .about-img-secondary { right: -10px; width: 180px; height: 180px; }

  /* ── UNIT BUTTONS MOBILE — 1 linha com texto ── */
  .unit-btn-wa, .unit-btn-map { font-size: 0.7rem; padding: 10px 14px; white-space: nowrap; }
  .unit-btn-wa svg, .unit-btn-map svg { width: 14px; height: 14px; }

  /* ── FOOTER MOBILE — Centralizado ── */
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-brand > img, .footer-brand .footer-logo-auto { margin-left: auto; margin-right: auto; }
  .footer-social { justify-content: center; }
  .footer-links { text-align: center; }
}
