/* ============================================================
   DR. LEANDRO HOLANDA — style.css
   Identidade: Luxury Medical / Editorial Refined
   ============================================================ */

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

:root {
  --blue-main:   #183E67;
  --blue-dark:   #102C46;
  --blue-text:   #4C6175;
  --gold:        #B58F63;
  --gold-light:  #C4A37A;
  --beige:       #EEE7DF;
  --warm-white:  #FAF8F5;
  --white:       #ffffff;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Lato', sans-serif;

  --container:   1200px;
  --radius:      12px;
  --transition:  0.3s ease;
  --shadow:      0 4px 30px rgba(24,62,103,.10);
  --shadow-md:   0 8px 40px rgba(24,62,103,.15);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--blue-text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }

/* ---------- CONTAINER ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181,143,99,.35);
}
.btn--outline {
  background: transparent;
  color: var(--warm-white);
  border-color: rgba(255,255,255,.45);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--lg { padding: 15px 36px; font-size: .9375rem; }

/* ---------- SECTION TAGS & TITLES ---------- */
.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-tag--gold { color: var(--gold-light); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--blue-main);
  line-height: 1.15;
  margin-bottom: 18px;
}
.section-title--light { color: var(--warm-white); }
.section-sub {
  font-size: 1.0625rem;
  color: var(--blue-text);
  max-width: 560px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header--light .section-title,
.section-header--light .section-sub { color: rgba(250,248,245,.85); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(16,44,70,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  padding: 12px 0;
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar__logo img {
  height: 44px;
  max-width: 280px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition);
}
.navbar__logo:hover img { opacity: .8; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: .875rem;
  font-weight: 400;
  color: rgba(250,248,245,.85);
  letter-spacing: .04em;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--warm-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.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 {
  min-height: 100vh;
  background: var(--blue-dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg-decor {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(181,143,99,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(24,62,103,.5) 0%, transparent 55%);
  pointer-events: none;
}
.hero__bg-decor::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(181,143,99,.12);
}
.hero__bg-decor::after {
  content: '';
  position: absolute;
  top: 60px; right: 60px;
  width: 350px; height: 350px;
  border-radius: 50%;
  border: 1px solid rgba(181,143,99,.08);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
}
.hero__content { z-index: 1; }
.hero__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 600;
  color: var(--warm-white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
}
.hero__subtitle {
  font-size: 1.0625rem;
  color: rgba(250,248,245,.75);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero__proof {
  display: flex;
  align-items: center;
  gap: 28px;
}
.proof-item { text-align: center; }
.proof-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.proof-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(250,248,245,.55);
  margin-top: 4px;
}
.proof-divider {
  width: 1px;
  height: 40px;
  background: rgba(181,143,99,.3);
}

/* Hero image */
.hero__image-wrap { z-index: 1; }
.hero__image-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, #1a3f65 0%, #0e2338 100%);
  border: 1px solid rgba(181,143,99,.2);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.hero__image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,44,70,.6) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}
.hero__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero__photo-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}
.hero__badge {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  z-index: 2;
  background: rgba(16,44,70,.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(181,143,99,.35);
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: rgba(250,248,245,.85);
  letter-spacing: .04em;
}
.hero__badge svg {
  margin-bottom: 4px;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.hero__scroll-hint span {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(250,248,245,.4);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(181,143,99,.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity:.4; transform: scaleY(1); }
  50%      { opacity:1;  transform: scaleY(1.15); }
}

/* ============================================================
   SOBRE
   ============================================================ */
.sobre {
  padding: 100px 0;
  background: var(--warm-white);
}
.sobre__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sobre__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.sobre__image-wrap {
  position: relative;
}
.sobre__image-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.15);
  border: 1px solid rgba(181,143,99,.2);
  aspect-ratio: 4/5;
}
.sobre__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.sobre__p {
  font-size: 1.0625rem;
  color: var(--blue-text);
  margin-bottom: 20px;
  line-height: 1.8;
}
.sobre__p--highlight {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--blue-main);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-top: 32px;
}

/* Timeline */
.timeline { margin-top: 16px; }
.timeline__item {
  display: flex;
  gap: 20px;
  padding-bottom: 40px;
  position: relative;
}
.timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px; top: 16px;
  width: 2px;
  height: calc(100% - 8px);
  background: linear-gradient(to bottom, var(--beige), transparent);
}
.timeline__dot {
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--beige);
  border: 3px solid var(--blue-main);
  margin-top: 4px;
}
.timeline__dot--gold {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(181,143,99,.2);
}
.timeline__year {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.timeline__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-main);
  margin-bottom: 4px;
}
.timeline__desc {
  font-size: .9rem;
  color: var(--blue-text);
}

/* ============================================================
   FORMAÇÃO
   ============================================================ */
.formacao {
  padding: 0 0 100px 0;
  background: var(--warm-white);
}
.timeline--horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.timeline--horizontal .timeline__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding-bottom: 0;
}
.timeline--horizontal .timeline__item:not(:last-child)::before {
  left: 50%;
  top: 10px;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--beige) 50%, transparent 100%);
}
.timeline--horizontal .timeline__dot {
  margin-top: 0;
}

/* ============================================================
   ESPECIALIDADES
   ============================================================ */
.especialidades {
  padding: 100px 0;
  background: var(--beige);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid rgba(24,62,103,.07);
  transition: all var(--transition);
  cursor: default;
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 48px; height: 48px;
  color: var(--gold);
  margin-bottom: 20px;
}
.card__icon svg { width: 100%; height: 100%; }
.card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-main);
  margin-bottom: 12px;
}
.card__desc {
  font-size: .9375rem;
  color: var(--blue-text);
  line-height: 1.7;
}

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.diferenciais {
  padding: 100px 0;
  background: var(--blue-main);
  position: relative;
  overflow: hidden;
}
.diferenciais::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(181,143,99,.1);
  pointer-events: none;
}
.diferenciais__grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 16px;
}
.diferencial {
  flex: 1;
  padding: 48px 40px;
}
.diferencial__line {
  width: 1px;
  background: rgba(181,143,99,.2);
  align-self: stretch;
}
.diferencial__num {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 600;
  color: rgba(181,143,99,.15);
  line-height: 1;
  margin-bottom: 20px;
}
.diferencial__title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--warm-white);
  margin-bottom: 16px;
}
.diferencial__desc {
  font-size: .9375rem;
  color: rgba(250,248,245,.65);
  line-height: 1.75;
}

/* ============================================================
   CTA MID
   ============================================================ */
.cta-mid {
  padding: 100px 0;
  background: var(--warm-white);
}
.cta-mid__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
  text-align: center;
}
.cta-mid__steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 800px;
}
.step {
  flex: 1;
  padding: 32px 24px;
  background: var(--beige);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color var(--transition);
}
.step:hover { border-color: var(--gold); }
.step__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-main);
  color: var(--warm-white);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue-main);
  margin-bottom: 10px;
}
.step__desc {
  font-size: .9rem;
  color: var(--blue-text);
  line-height: 1.65;
}
.step__arrow {
  font-size: 1.5rem;
  color: var(--gold);
  padding-top: 48px;
  flex-shrink: 0;
}

/* ============================================================
   LOCAIS DE ATENDIMENTO
   ============================================================ */
.locais {
  padding: 100px 0;
  background: var(--beige);
}
.locais__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.locais__grid .local-card {
  flex: 0 1 calc((100% - 40px) / 3);
  min-width: 280px;
}
.locais__cta {
  text-align: center;
  margin-top: 48px;
}
.local-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid rgba(24,62,103,.07);
  transition: all var(--transition);
}
.local-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.local-card__icon {
  width: 40px; height: 40px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
}
.local-card__icon svg { width: 100%; height: 100%; }
.local-card__city {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-main);
  margin-bottom: 2px;
}
.local-card__clinic {
  font-size: .875rem;
  color: var(--blue-text);
}
.local-card__address {
  font-size: .8125rem;
  color: var(--blue-text);
  opacity: 0.75;
  margin-top: 6px;
  line-height: 1.4;
}
.local-card__map-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.local-card__map-link svg {
  width: 14px;
  height: 14px;
}
.local-card__map-link:hover {
  color: var(--blue-main);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--blue-dark);
  padding: 72px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(181,143,99,.15);
}
.footer__logo {
  height: 48px;
  max-width: 280px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.footer__tagline {
  font-size: .9375rem;
  color: rgba(250,248,245,.55);
  margin-bottom: 24px;
  font-style: italic;
  font-family: var(--font-serif);
}
.footer__social {
  display: flex;
  gap: 14px;
}
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(181,143,99,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250,248,245,.6);
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(181,143,99,.1);
}
.social-link svg { width: 18px; height: 18px; }

.footer__cols {
  display: flex;
  gap: 48px;
}
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.footer__link {
  font-size: .9rem;
  color: rgba(250,248,245,.55);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--gold); }
.footer__text {
  font-size: .9rem;
  color: rgba(250,248,245,.45);
}
.footer__bottom {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: rgba(250,248,245,.3);
}
.footer__bottom strong { color: var(--gold); font-weight: 700; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: all var(--transition);
  animation: waBounce 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,.6);
  animation: none;
}
@keyframes waBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-aos="fade-left"]  { transform: translateX(28px); }
[data-aos="fade-right"] { transform: translateX(-28px); }
[data-aos].aos-animate  { opacity: 1; transform: translate(0); }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding-top: 120px;
  }
  .hero__subtitle,
  .hero__actions { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__proof { justify-content: center; }
  .hero__image-wrap { max-width: 360px; margin: 0 auto; }

  .sobre__inner  { grid-template-columns: 1fr; gap: 48px; }
  .cards-grid    { grid-template-columns: 1fr 1fr; }

  .diferenciais__grid { flex-direction: column; }
  .diferencial__line  { width: 100%; height: 1px; align-self: auto; }
  .diferencial        { padding: 32px 24px; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols  { gap: 32px; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  /* Navbar */
  .hamburger { display: flex; }
  .navbar__links {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 90vw);
    height: 100vh;
    background: var(--blue-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 36px 36px;
    gap: 28px;
    transition: right .4s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 30px rgba(0,0,0,.3);
  }
  .navbar__links.open { right: 0; }
  .nav-link { font-size: 1.1rem; color: var(--warm-white); }

  /* Hero */
  .hero__title   { font-size: 2.25rem; }
  .hero__actions { flex-direction: column; }
  .hero__proof   { gap: 16px; }
  .proof-num     { font-size: 1.75rem; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }

  /* Formação */
  .timeline--horizontal { grid-template-columns: 1fr; gap: 32px; }
  .timeline--horizontal .timeline__item {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
  .timeline--horizontal .timeline__item:not(:last-child)::before {
    left: 7px;
    top: 16px;
    width: 2px;
    height: calc(100% - 8px);
    background: linear-gradient(to bottom, var(--beige), transparent);
  }

  /* Steps */
  .cta-mid__steps { flex-direction: column; }
  .step__arrow { display: none; }

  /* Locais */
  .locais__grid .local-card { flex: 1 1 100%; }

  /* Footer */
  .footer__cols  { flex-direction: column; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
