/* ==========================================================================
   Dr. Alyrio Mourão — Cirurgião Cabeça e Pescoço
   styles.css — Estilos globais
   Versão: 1.0.0
   ========================================================================== */

/* ==========================================================================
   1. RESET & NORMALIZE
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   2. CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
  /* --- Cores --- */
  --color-primary:        #1B3A5C;
  --color-primary-light:  #2A5480;
  --color-primary-dark:   #0F2438;
  --color-accent:         #B8965A;
  --color-accent-light:   #D4AF78;
  --color-accent-dark:    #8C6F3E;
  --color-bg-light:       #F7F5F2;
  --color-bg-section:     #EDE9E4;
  --color-bg-dark:        #0F2438;
  --color-text-primary:   #2C2C2C;
  --color-text-secondary: #7A7A7A;
  --color-text-on-dark:   #F7F5F2;
  --color-text-accent:    #B8965A;
  --color-border:         #E2DED9;
  --color-border-strong:  #C8C3BC;

  /* --- Tipografia --- */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --text-h1: clamp(2.75rem, 5vw, 4.5rem);
  --text-h2: clamp(1.875rem, 3vw, 2.75rem);
  --text-h3: clamp(1.375rem, 2vw, 1.75rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-eyebrow: 0.75rem;

  /* --- Espaçamento --- */
  --section-spacing-desktop: 112px;
  --section-spacing-mobile:  64px;
  --container-padding:       24px;

  /* --- Layout --- */
  --container-max:     1200px;
  --grid-gap:          24px;
  --border-radius-btn: 2px;
  --border-radius-card: 4px;

  /* --- Sombras --- */
  --shadow-card:   0 4px 24px rgba(27, 58, 92, 0.07);
  --shadow-card-hover: 0 12px 40px rgba(27, 58, 92, 0.14);
  --shadow-navbar: 0 2px 20px rgba(15, 36, 56, 0.15);

  /* --- Transições --- */
  --transition-fast:   150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow:   700ms ease;

  /* --- Navbar --- */
  --navbar-height: 80px;
}

/* ==========================================================================
   3. TIPOGRAFIA BASE
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: inherit;
}

h1 { font-size: var(--text-h1); line-height: 1.1; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
}

/* Eyebrow label — usado acima dos títulos de seção */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-accent);
  margin-bottom: 12px;
}

/* Divisor de seção */
.section-divider {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--color-accent);
  margin: 16px 0 24px;
}

.section-divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   4. GRID & CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* Grid utilitário de 12 colunas */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

/* Helpers de coluna */
.col-12 { grid-column: span 12; }
.col-6  { grid-column: span 6;  }
.col-4  { grid-column: span 4;  }
.col-3  { grid-column: span 3;  }

@media (max-width: 1024px) {
  .col-4  { grid-column: span 6;  }
  .col-3  { grid-column: span 6;  }
}

@media (max-width: 767px) {
  .col-6,
  .col-4,
  .col-3 { grid-column: span 12; }
}

/* Seção com espaçamento padrão */
.section {
  padding-block: var(--section-spacing-desktop);
}

@media (max-width: 767px) {
  .section {
    padding-block: var(--section-spacing-mobile);
  }
}

/* ==========================================================================
   5. BOTOES
   ========================================================================== */

/* Base de botão */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--border-radius-btn);
  border: 1.5px solid transparent;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px);
}

/* Botão primário */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(184, 150, 90, 0.35);
}

/* Botão secundário (contorno) */
.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

/* Botão ghost — para fundos escuros */
.btn--ghost {
  background-color: transparent;
  color: var(--color-text-on-dark);
  border-color: rgba(247, 245, 242, 0.5);
}

.btn--ghost:hover {
  background-color: rgba(247, 245, 242, 0.1);
  border-color: var(--color-text-on-dark);
}

/* Botão WhatsApp */
.btn--whatsapp {
  background-color: #25D366;
  color: #fff;
  border-color: #25D366;
  gap: 10px;
}

.btn--whatsapp:hover {
  background-color: #1ebe5d;
  border-color: #1ebe5d;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn--whatsapp svg {
  flex-shrink: 0;
}

/* Botão grande */
.btn--lg {
  padding: 18px 40px;
  font-size: 0.9375rem;
}

/* ==========================================================================
   6. NAVBAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  background-color: transparent;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* Estado após scroll */
.navbar.navbar--scrolled {
  background-color: var(--color-bg-dark);
  box-shadow: var(--shadow-navbar);
}

/* Estado em páginas internas (sem hero transparente) */
.navbar--solid {
  background-color: var(--color-bg-dark);
}

.navbar__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.navbar__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.navbar__brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.navbar__brand-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text-on-dark);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.navbar__brand-crm {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--color-accent-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Links de navegação */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(247, 245, 242, 0.85);
  letter-spacing: 0.03em;
  position: relative;
  transition: color var(--transition-fast);
  padding-block: 4px;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition-normal);
}

.navbar__link:hover {
  color: var(--color-text-on-dark);
}

.navbar__link:hover::after,
.navbar__link[aria-current="page"]::after {
  width: 100%;
}

.navbar__link[aria-current="page"] {
  color: var(--color-text-on-dark);
}

.navbar__cta {
  flex-shrink: 0;
}

/* Botão hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
}

.navbar__hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-on-dark);
  border-radius: 2px;
  transition:
    transform var(--transition-normal),
    opacity var(--transition-normal),
    width var(--transition-normal);
  transform-origin: center;
}

/* Estado aberto do hamburger */
.navbar__hamburger[aria-expanded="true"] .navbar__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger[aria-expanded="true"] .navbar__hamburger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}
.navbar__hamburger[aria-expanded="true"] .navbar__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--color-bg-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.navbar__mobile-menu.is-open {
  opacity: 1;
}

.navbar__mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.navbar__mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-on-dark);
  transition: color var(--transition-fast);
}

.navbar__mobile-link:hover,
.navbar__mobile-link[aria-current="page"] {
  color: var(--color-accent);
}

.navbar__mobile-crm {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-accent-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* Responsive breakpoints da navbar */
@media (max-width: 1024px) {
  .navbar__nav,
  .navbar__cta {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__mobile-menu {
    display: flex;
  }
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.hero {
  min-height: 100svh;
  min-height: 100vh;
  background-color: var(--color-primary-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

/* Coluna de texto */
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--navbar-height) + 48px) var(--container-padding) 80px;
  padding-left: max(var(--container-padding), calc((100vw - var(--container-max)) / 2 + var(--container-padding)));
  z-index: 2;
  position: relative;
}

.hero__eyebrow {
  color: var(--color-accent-light);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 600;
  color: var(--color-text-on-dark);
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero__title em {
  font-style: italic;
  color: var(--color-accent-light);
}

.hero__description {
  font-size: 1.0425rem;
  color: rgba(247, 245, 242, 0.8);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__credentials {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(247, 245, 242, 0.12);
}

.hero__credential-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__credential-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero__credential-value {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-text-on-dark);
  font-weight: 600;
}

.hero__credential-divider {
  width: 1px;
  height: 40px;
  background: rgba(247, 245, 242, 0.15);
}

/* Coluna de imagem */
.hero__visual {
  position: relative;
  overflow: hidden;
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    var(--color-primary-dark) 0%,
    var(--color-primary-dark) 5%,
    transparent 30%
  );
  z-index: 1;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* Clip-path diagonal conforme briefing */
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Placeholder quando sem foto */
.hero__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    145deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 50%,
    var(--color-primary) 100%
  );
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--font-display);
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.08);
  font-weight: 600;
  letter-spacing: -0.02em;
  user-select: none;
}

/* Decoração geométrica */
.hero__accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
  z-index: 3;
}

/* Scroll indicator */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-hint span {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.4);
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid rgba(247, 245, 242, 0.4);
  border-bottom: 1.5px solid rgba(247, 245, 242, 0.4);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Hero responsivo */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 100svh;
  }

  .hero__content {
    padding: calc(var(--navbar-height) + 20px) var(--container-padding) 48px;
    padding-left: var(--container-padding);
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .hero__description {
    max-width: 540px;
    text-align: center;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__credentials {
    justify-content: flex-start;
  }

  .hero__visual {
    display: none;
  }

  .hero {
    background-image: linear-gradient(
      160deg,
      var(--color-primary-dark) 60%,
      var(--color-primary) 100%
    );
  }
}

@media (max-width: 767px) {
  .hero__credentials {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero__credential-divider {
    display: none;
  }
}

/* ==========================================================================
   8. CARDS DE SERVICO
   ========================================================================== */

.service-card {
  background: #fff;
  border-top: 3px solid var(--color-accent);
  border-radius: var(--border-radius-card);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 56px;
  height: 56px;
  background: rgba(184, 150, 90, 0.08);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-accent);
  stroke-width: 1.5;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.25;
}

.service-card__description {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: gap var(--transition-fast), color var(--transition-fast);
  margin-top: auto;
}

.service-card__link:hover {
  gap: 10px;
  color: var(--color-accent-dark);
}

.service-card__link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Grid de 3 cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   9. SECOES DE FUNDO
   ========================================================================== */

/* Fundo claro */
.section--light {
  background-color: var(--color-bg-light);
}

/* Fundo alternado */
.section--alt {
  background-color: var(--color-bg-section);
}

/* Fundo escuro */
.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--color-text-on-dark);
}

.section--dark p {
  color: rgba(247, 245, 242, 0.75);
}

/* Fundo azul — CTA */
.section--cta {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

.section--cta h2 {
  color: var(--color-text-on-dark);
}

.section--cta p {
  color: rgba(247, 245, 242, 0.8);
}

/* ==========================================================================
   10. SECAO SOBRE (SOBRE NA HOME)
   ========================================================================== */

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-split__image-wrapper {
  position: relative;
}

.about-split__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--border-radius-card);
}

/* Placeholder da imagem */
.about-split__image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--border-radius-card);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.1);
}

/* Caixa de destaque flutuante */
.about-split__badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--color-accent);
  color: #fff;
  padding: 24px;
  border-radius: var(--border-radius-card);
  box-shadow: 0 8px 32px rgba(184, 150, 90, 0.4);
  text-align: center;
  min-width: 140px;
}

.about-split__badge-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}

.about-split__badge-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 4px;
}

.about-split__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-split__content h2 {
  color: var(--color-primary);
}

.about-split__content p {
  text-align: justify;
  color: var(--color-text-secondary);
}

.about-split__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: 8px;
}

.about-split__list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.about-split__list-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-split__badge {
    bottom: -16px;
    right: 16px;
  }
}

/* ==========================================================================
   11. SECAO NUMEROS / ESTATISTICAS
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(247, 245, 242, 0.06);
}

.stat-item {
  padding: 48px 32px;
  text-align: center;
  background: rgba(247, 245, 242, 0.03);
  transition: background var(--transition-fast);
}

.stat-item:hover {
  background: rgba(247, 245, 242, 0.06);
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
  display: block;
}

.stat-item__label {
  font-size: 0.875rem;
  color: rgba(247, 245, 242, 0.6);
  margin-top: 8px;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    padding: 32px 16px;
  }
}

/* ==========================================================================
   12. SECAO CTA
   ========================================================================== */

.cta-section {
  text-align: center;
  padding-block: var(--section-spacing-desktop);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(184, 150, 90, 0.06);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-section__title {
  font-size: var(--text-h2);
  color: var(--color-text-on-dark);
}

.cta-section__description {
  font-size: 1.0625rem;
  color: rgba(247, 245, 242, 0.75);
  line-height: 1.7;
}

.cta-section__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 8px;
}

@media (max-width: 767px) {
  .cta-section {
    padding-block: var(--section-spacing-mobile);
  }

  .cta-section__actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .cta-section__actions .btn {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding-top: 72px;
  padding-bottom: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(247, 245, 242, 0.1);
}

/* Coluna da marca */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-on-dark);
  line-height: 1.2;
}

.footer__brand-specialty {
  font-size: 0.8125rem;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.footer__brand-crm {
  font-size: 0.8125rem;
  color: rgba(247, 245, 242, 0.5);
  margin-top: -8px;
}

.footer__brand-description {
  font-size: 0.875rem;
  color: rgba(247, 245, 242, 0.5);
  line-height: 1.65;
  max-width: 280px;
}

/* Colunas de links */
.footer__column-title {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.footer__column-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__column-link {
  font-size: 0.875rem;
  color: rgba(247, 245, 242, 0.6);
  transition: color var(--transition-fast);
  line-height: 1.4;
}

.footer__column-link:hover {
  color: var(--color-text-on-dark);
}

/* Contato no footer */
.footer__contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: rgba(247, 245, 242, 0.6);
  line-height: 1.5;
  margin-bottom: 12px;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Barra inferior */
.footer__bottom {
  padding-block: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: rgba(247, 245, 242, 0.35);
  line-height: 1.5;
}

.footer__legal-links {
  display: flex;
  gap: 24px;
}

.footer__legal-link {
  font-size: 0.8125rem;
  color: rgba(247, 245, 242, 0.35);
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: rgba(247, 245, 242, 0.7);
}

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer__legal-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================================================
   14. WHATSAPP FLOATING BUTTON
   ========================================================================== */

.whatsapp-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.whatsapp-fab__bubble {
  background: #fff;
  color: var(--color-text-primary);
  font-size: 0.875rem;
  line-height: 1.4;
  padding: 10px 16px;
  border-radius: 8px 8px 0 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  max-width: 220px;
  text-align: right;
  opacity: 0;
  transform: translateX(8px);
  transition:
    opacity var(--transition-normal),
    transform var(--transition-normal);
  pointer-events: none;
}

.whatsapp-fab:hover .whatsapp-fab__bubble,
.whatsapp-fab__bubble.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.whatsapp-fab__button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366; /* verde WhatsApp */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  padding: 0;
  line-height: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fab__button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab__button:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 3px;
}

.whatsapp-fab__button svg {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
}

/* Ping de notificação */
.whatsapp-fab__ping {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FF4444;
  border: 2px solid #fff;
  animation: fabPing 2s ease-in-out infinite;
}

@keyframes fabPing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}

@media (max-width: 767px) {
  .whatsapp-fab {
    bottom: 24px;
    right: 20px;
  }

  .whatsapp-fab__button {
    width: 54px;
    height: 54px;
  }
}

/* ==========================================================================
   15. FORMULARIO DE CONTATO
   ========================================================================== */

.contact-form {
  background: #fff;
  border-radius: var(--border-radius-card);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__field--full {
  grid-column: span 2;
}

.contact-form__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

.contact-form__label--required::after {
  content: ' *';
  color: var(--color-accent);
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius-btn);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  background: var(--color-bg-light);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.1);
  background: #fff;
}

.contact-form__input.is-error,
.contact-form__textarea.is-error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.contact-form__input.is-success,
.contact-form__textarea.is-success {
  border-color: #16A34A;
}

.contact-form__textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* Mensagem de erro por campo */
.contact-form__error-msg {
  font-size: 0.75rem;
  color: #DC2626;
  display: none;
  margin-top: 2px;
}

.contact-form__error-msg.is-visible {
  display: block;
}

/* Checkbox LGPD */
.contact-form__checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  grid-column: span 2;
  margin-top: 4px;
}

.contact-form__checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  position: relative;
}

.contact-form__checkbox:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.contact-form__checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.contact-form__checkbox:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.contact-form__checkbox-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.contact-form__checkbox-label a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form__checkbox-label a:hover {
  color: var(--color-accent);
}

/* Botão de envio */
.contact-form__submit-wrapper {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Mensagem de feedback global */
.form-feedback {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--border-radius-card);
  font-size: 0.9rem;
  font-weight: 500;
  grid-column: span 2;
}

.form-feedback.is-visible {
  display: flex;
}

.form-feedback--success {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.form-feedback--error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.form-feedback svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

@media (max-width: 767px) {
  .contact-form {
    padding: 28px 20px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .contact-form__field--full,
  .contact-form__checkbox-wrapper,
  .contact-form__submit-wrapper {
    grid-column: span 1;
  }
}

/* ==========================================================================
   16. SECAO DE MAPA (CONTATO)
   ========================================================================== */

.map-wrapper {
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 767px) {
  .map-wrapper {
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================================
   17. CABECALHO DE PAGINAS INTERNAS
   ========================================================================== */

.page-header {
  background-color: var(--color-primary-dark);
  padding-top: calc(var(--navbar-height) + 64px);
  padding-bottom: 64px;
  text-align: center;
}

.page-header__eyebrow {
  color: var(--color-accent-light);
}

.page-header__title {
  color: var(--color-text-on-dark);
  margin-bottom: 16px;
}

.page-header__description {
  color: rgba(247, 245, 242, 0.7);
  max-width: 560px;
  margin-inline: auto;
  font-size: 1.0625rem;
}

/* ==========================================================================
   18. ANIMACOES DE SCROLL REVEAL
   ========================================================================== */

/* Estado inicial — elementos invisíveis antes da animação */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para cards */
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }

/* Variante: apenas fade (sem movimento) */
.reveal--fade {
  transform: none;
}

/* ==========================================================================
   19. ACESSIBILIDADE — prefers-reduced-motion
   ========================================================================== */

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .hero__scroll-hint {
    animation: none;
  }

  .whatsapp-fab__ping {
    animation: none;
  }
}

/* ==========================================================================
   20. UTILITARIOS
   ========================================================================== */

.text-center { text-align: center; }
.text-left   { text-align: left;   }

.color-accent    { color: var(--color-accent); }
.color-primary   { color: var(--color-primary); }
.color-on-dark   { color: var(--color-text-on-dark); }
.color-secondary { color: var(--color-text-secondary); }

.mt-0  { margin-top: 0;    }
.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0  { margin-bottom: 0;    }
.mb-8  { margin-bottom: 8px;  }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

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

/* Skip navigation link — acessibilidade */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 0 0 4px 4px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* Focus ring global */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Separador de seção decorativo */
.section-header {
  margin-bottom: 56px;
}

.section-header--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header__lead {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-top: 8px;
}

.section--dark .section-header__lead,
.section--cta .section-header__lead {
  color: rgba(247, 245, 242, 0.65);
}

/* ==========================================================================
   21. PRINT
   ========================================================================== */

@media print {
  .navbar,
  .whatsapp-fab,
  .hero__scroll-hint {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #555;
  }
}
