html { scroll-behavior: smooth; }
html, body { font-family: 'Open Sans', system-ui, sans-serif; color: #585969; }
.font-serif { font-family: 'Playfair Display', serif; }
.logo-white { filter: brightness(0) invert(1); }

.watermark-s {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: rgba(200, 173, 97, 0.22);
  user-select: none;
}

.bg-pattern-dark {
  background-color: #020511;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 150px 150px;
}

.card-dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(200,173,97,0.18);
  transition: transform .3s ease, border-color .3s ease;
}
.card-dark:hover {
  transform: translateY(-4px);
  border-color: rgba(200,173,97,0.5);
  box-shadow: 0 0 0 1px rgba(200,173,97,0.4);
}

.btn-gold {
  background: #C8AD61;
  color: #1C1E2F;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .25s ease;
  box-shadow: 0 8px 24px rgba(200,173,97,0.18);
}
.btn-gold:hover { background:#AB924B; transform: translateY(-1px); }

.icon-whatsapp {
  display: block;
  flex-shrink: 0;
}

.btn-gold-outline {
  border: 1px solid #C8AD61;
  color: #C8AD61;
  border-radius: 999px;
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .25s ease;
}
.btn-gold-outline:hover { background:#C8AD61; color:#1C1E2F; }

.section-title {
  color: #fff;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.2;
}

.section-subtitle {
  color: #C8AD61;
  font-style: italic;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.divider-gold { width: 60px; height: 2px; background:#C8AD61; margin: 14px auto 0; }
.star { color:#C8AD61; }

/* Especialidades */
.specialties-section {
  background: #07101f;
  color: #fff;
  overflow: hidden;
  padding: 88px 0;
}

.specialties-inner {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.specialties-heading {
  text-align: center;
  margin-bottom: 56px;
}

.specialties-eyebrow {
  color: #C8AD61;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  letter-spacing: 7px;
  text-transform: uppercase;
}

.specialties-eyebrow::before {
  content: "";
  width: 52px;
  height: 1px;
  background: #C8AD61;
}

.specialties-heading h2 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 500;
  line-height: 1.08;
  margin-top: 20px;
}

.specialties-heading em {
  color: #C8AD61;
  display: block;
  font-style: italic;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.specialty-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 64px 64px 56px;
  background: #0B1322;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.specialty-card-featured {
  background: #1A2436;
  border-left: 4px solid #C8AD61;
}

.specialty-number {
  position: absolute;
  top: 44px;
  right: 52px;
  color: rgba(200,173,97,0.07);
  font-family: 'Playfair Display', serif;
  font-size: 96px;
  line-height: 1;
  pointer-events: none;
}

.specialty-tag {
  border: 1px solid rgba(200,173,97,0.55);
  color: #C8AD61;
  display: inline-flex;
  width: fit-content;
  margin-bottom: 42px;
  padding: 9px 20px;
  font-size: 11px;
  letter-spacing: 4px;
  line-height: 1.2;
  text-transform: uppercase;
}

.specialty-card h3 {
  position: relative;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  max-width: 660px;
  margin-bottom: 24px;
  z-index: 1;
}

.specialty-copy {
  color: rgba(255,255,255,0.48);
  font-size: 16px;
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 32px;
}

.specialty-card ul {
  color: rgba(255,255,255,0.56);
  display: grid;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
}

.specialty-card li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
}

.specialty-card li::before {
  content: "–";
  color: #C8AD61;
}

.specialty-card a {
  color: #C8AD61;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color .2s ease, transform .2s ease;
}

.specialty-card a::after {
  content: "→";
  font-size: 20px;
  line-height: 1;
}

.specialty-card a:hover {
  color: #E2C979;
  transform: translateX(2px);
}

/* Floating WhatsApp */
.fab-whats {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 999px;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  transition: transform .2s ease;
}
.fab-whats:hover { transform: scale(1.08); }
.fab-whats span { display: none; }

/* Principios cards — fan-out effect */
.principio-card {
  transition: transform 0.1s linear, opacity 0.3s ease;
  will-change: transform, opacity;
}
@media (min-width: 768px) {
  .principio-card { position: relative; }
}

@media (max-width: 900px) {
  .specialties-section {
    padding: 68px 0 74px;
  }

  .specialties-inner {
    width: min(100% - 34px, 760px);
  }

  .specialties-heading {
    margin-bottom: 42px;
  }

  .specialties-eyebrow {
    font-size: 12px;
    gap: 14px;
    letter-spacing: 5px;
  }

  .specialties-eyebrow::before {
    width: 42px;
  }

  .specialty-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .specialty-card {
    min-height: auto;
    padding: 48px 28px 48px 38px;
  }

  .specialty-number {
    top: 36px;
    right: 28px;
    font-size: 78px;
  }

  .specialty-tag {
    margin-bottom: 34px;
    padding: 9px 16px;
    font-size: 10px;
    letter-spacing: 3px;
  }

  .specialty-card h3 {
    font-size: 34px;
  }

  .specialty-copy {
    font-size: 16px;
    line-height: 1.68;
  }

  .specialty-card ul {
    gap: 13px;
    font-size: 15px;
  }

  .specialty-card li {
    grid-template-columns: 24px 1fr;
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .specialties-inner {
    width: calc(100% - 28px);
  }

  .specialties-heading h2 {
    font-size: 38px;
  }

  .specialty-card {
    padding: 42px 22px 44px 28px;
  }

  .specialty-card h3 {
    font-size: 31px;
  }

  .specialty-copy {
    font-size: 15px;
  }

  .specialty-card a {
    font-size: 11px;
    letter-spacing: 2.5px;
  }

  .fab-whats {
    right: 18px;
    bottom: 28px;
    width: auto;
    height: 64px;
    min-width: min(360px, calc(100vw - 72px));
    border-radius: 0;
    gap: 14px;
    padding: 0 24px;
    font-size: 18px;
    font-weight: 600;
    justify-content: center;
    box-shadow: 0 18px 42px rgba(37,211,102,0.36);
  }

  .fab-whats span {
    display: inline;
  }

  .fab-whats svg {
    width: 24px;
    height: 24px;
  }
}

/* Hero portrait — funde base da silhueta no fundo escuro */
.hero-portrait {
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

/* Team portrait — fade mais forte para destacar no fundo cream */
.team-portrait {
  -webkit-mask-image: radial-gradient(ellipse 62% 72% at 50% 48%, #000 35%, transparent 95%);
          mask-image: radial-gradient(ellipse 62% 72% at 50% 48%, #000 35%, transparent 95%);
}
