/* ─────────────────────────────────────────
   DR. CARLOS ALBERTO — DESIGN SYSTEM
   Poppins · Azul Royal + Dourado + Branco
   ───────────────────────────────────────── */

:root {
  /* Azul Royal */
  --royal:          #1E3A8A;
  --royal-dark:     #152D6E;
  --royal-mid:      #243FA0;
  --royal-soft:     rgba(30, 58, 138, 0.08);
  --royal-faint:    rgba(30, 58, 138, 0.04);

  /* Dourado */
  --gold:           #D4AF37;
  --gold-dark:      #B8952A;
  --gold-light:     #E8CB6A;
  --gold-faint:     rgba(212, 175, 55, 0.12);
  --gold-line:      rgba(212, 175, 55, 0.30);

  /* Neutros */
  --white:          #FFFFFF;
  --off-white:      #F8FAFC;
  --light:          #F1F5F9;
  --border:         #E2E8F0;
  --border-dark:    rgba(255, 255, 255, 0.10);
  --text-main:      #0F172A;
  --text-soft:      #475569;
  --text-ghost:     #94A3B8;

  /* Semânticos (_core) */
  --color-bg:           var(--white);
  --color-bg-secondary: var(--light);
  --color-text:         var(--text-main);
  --color-text-secondary: var(--text-soft);
  --color-text-tertiary:  var(--text-ghost);
  --color-brand:        var(--royal);
  --color-brand-subtle: var(--royal-soft);
  --color-gold:         var(--gold);
  --color-gold-dark:    var(--gold-dark);
  --color-gold-subtle:  var(--gold-faint);
  --color-border:       var(--border);
  --color-navy-deep:    var(--royal-dark);

  /* Fontes */
  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body:    'Poppins', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-card:  0 2px 20px rgba(30, 58, 138, 0.08);
  --shadow-hover: 0 8px 36px rgba(30, 58, 138, 0.14);
  --shadow-gold:  0 4px 24px rgba(212, 175, 55, 0.25);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── LABEL ── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--royal);
}

.label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.label--light { color: var(--gold-light); }
.label--light::before { background: var(--gold-light); }

/* ── CABEÇALHO DE SEÇÃO ── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: normal;
  color: var(--royal);
}

.section-title--light { color: white; }
.section-title--light em { color: var(--gold-light); }

.section-desc {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 52ch;
  font-family: var(--font-body);
  font-weight: 300;
}

.section-desc--light { color: rgba(255,255,255,0.55); }

/* ── BOTÕES ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--royal-dark);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn--royal {
  background: var(--royal);
  color: white;
  border-color: var(--royal);
}
.btn--royal:hover {
  background: var(--royal-dark);
  border-color: var(--royal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border);
}
.btn--outline:hover {
  border-color: var(--royal);
  color: var(--royal);
  background: var(--royal-faint);
}

.btn--outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.30);
}
.btn--outline-white:hover {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.08);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
  border-radius: 6px;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 15px;
  border-radius: 10px;
}

.btn--full { width: 100%; justify-content: center; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky, 100);
  padding-block: 24px;
  transition: all 0.35s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-block: 16px;
  box-shadow: 0 1px 20px rgba(30, 58, 138, 0.06);
}

.nav.is-scrolled .nav__logo-name { color: var(--royal); }
.nav.is-scrolled .nav__logo-sub  { color: var(--text-ghost); }
.nav.is-scrolled .nav__link      { color: var(--text-soft); }
.nav.is-scrolled .nav__link:hover { color: var(--royal); }
.nav.is-scrolled .nav__toggle span { background: var(--text-main); }

.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.nav__logo-sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.nav__link:hover {
  color: white;
  background: rgba(255,255,255,0.10);
}

.nav__cta { margin-left: 16px; flex-shrink: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 24px;
  position: fixed;
  inset: 0;
  top: 65px;
  background: var(--white);
  padding: 32px 24px;
  z-index: calc(var(--z-sticky, 100) - 1);
  border-top: 1px solid var(--border);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile-links { display: flex; flex-direction: column; gap: 4px; }
.nav__mobile-links a {
  font-size: 17px;
  font-weight: 500;
  font-family: var(--font-display);
  color: var(--text-main);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

/* ── FLOATING WHATSAPP ── */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: var(--z-toast, 200);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 14px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.30);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.40);
}
.wa-float__label { white-space: nowrap; }

@media (max-width: 1100px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}
@media (max-width: 768px) {
  .wa-float__label { display: none; }
  .wa-float { padding: 16px; border-radius: 50%; }
}
