/* ==========================================================================
   DRA. MARION CURADO | DESIGN SYSTEM LUXURY REFERENCE
   Inspirado no padrão estética médica de alto padrão (Bege/Nude/Rose Luxury)
   ========================================================================== */

:root {
  /* Paleta Exata da Referência */
  --bg-sand: #F7F3EE;
  --bg-sand-light: #FAF7F2;
  --bg-white: #FFFFFF;
  --bg-card-glass: rgba(255, 255, 255, 0.82);
  --bg-pill-active: #8E5A4A;
  --bg-pill-inactive: #EFE8E1;

  --color-primary: #8E5A4A;
  --color-primary-hover: #764739;
  --color-rose-soft: #D9A59E;
  --color-rose-light: #F8ECE9;
  
  --color-gold: #C2A37E;
  
  --text-dark: #2C2420;
  --text-muted: #6E645E;
  --text-light: #9C9189;
  --text-white: #FFFFFF;

  --border-subtle: 1px solid rgba(142, 90, 74, 0.12);
  --border-card: 1px solid rgba(255, 255, 255, 0.9);
  --border-glass: 1px solid rgba(255, 255, 255, 0.75);

  --shadow-card: 0 10px 30px rgba(70, 50, 45, 0.05);
  --shadow-hover: 0 18px 40px rgba(70, 50, 45, 0.1);
  --shadow-btn: 0 6px 18px rgba(142, 90, 74, 0.28);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-sand);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tipografia */
h1, h2, h3, h4 {
  font-family: var(--font-family);
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
}

p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.highlight-word {
  color: var(--color-primary);
  font-weight: 800;
}

.section-title-center {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.8rem auto;
}

.section-title-center h2 {
  margin-bottom: 6px;
}

.section-title-center p {
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* Botões */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary-pill {
  background: var(--color-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-btn);
}

.btn-primary-pill:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(142, 90, 74, 0.38);
  color: var(--text-white);
}

.btn-outline-pill {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-dark);
  border: 1px solid rgba(142, 90, 74, 0.25);
}

.btn-outline-pill:hover {
  background: var(--bg-white);
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
/* ==========================================================================
   HEADER / NAVBAR (ALINHAMENTO EM LINHA ÚNICA & REFINAMENTO LUXO)
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 243, 238, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(142, 90, 74, 0.12);
  height: 72px;
  display: flex;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-primary);
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.logo-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.7rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-items li {
  white-space: nowrap;
}

.nav-items a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}

.nav-items a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s ease;
}

.nav-items a:hover {
  color: var(--color-primary);
}

.nav-items a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 6px;
}

.mobile-nav-panel {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(142, 90, 74, 0.15);
  padding: 20px 24px;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
  z-index: 999;
}

.mobile-nav-panel.active {
  display: flex;
}

.mobile-nav-panel a {
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid #F4EFEA;
}

@media (max-width: 1080px) {
  .nav-items {
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .nav-items, .nav-cta {
    display: none;
  }
  .mobile-toggle-btn {
    display: block;
  }
}


/* ==========================================================================
   HERO SECTION (FIEL À IMAGEM DE REFERÊNCIA)
   ========================================================================== */
.hero-wrapper {
  padding-top: 105px;
  padding-bottom: 40px;
  position: relative;
}

.hero-main-card {
  background: linear-gradient(135deg, #F9F6F1 0%, #F3ECE2 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 46px 40px 30px 40px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 35px;
}

.hero-title-area h1 {
  margin-bottom: 12px;
}

.hero-title-area p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 520px;
}

.hero-doctor-display {
  display: flex;
  justify-content: center;
  align-items: center;
}

.doctor-portrait-frame {
  position: relative;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  max-width: 280px;
  width: 100%;
}

.portrait-circle {
  width: 110px;
  height: 110px;
  margin: 0 auto 12px auto;
  border-radius: var(--radius-full);
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #FFFFFF;
}

.portrait-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-portrait-frame h4 {
  font-size: 1.08rem;
  margin-bottom: 2px;
}

.doctor-portrait-frame .crm-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-primary);
  background: #FFFFFF;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(142, 90, 74, 0.2);
  margin-bottom: 8px;
}

.doctor-portrait-frame p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* 4 CARDS FLUTUANTES NO RODAPÉ DO HERO (IGUAL À REFERÊNCIA) */
.hero-floating-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pillar-glass-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.pillar-glass-card:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.pillar-glass-card .pillar-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px auto;
  border-radius: var(--radius-full);
  background: var(--color-rose-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.pillar-glass-card strong {
  display: block;
  font-size: 0.84rem;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.pillar-glass-card p {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--text-muted);
}

/* ==========================================================================
   SEÇÃO DE ESPECIALIDADES (COM ABAS / FILTROS IGUAL REFERÊNCIA)
   ========================================================================== */
.specialties-container {
  padding: 60px 0;
}

.filter-tabs-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

.tab-pill-btn {
  padding: 9px 22px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--bg-pill-inactive);
  color: var(--text-muted);
  transition: var(--transition);
}

.tab-pill-btn.active, .tab-pill-btn:hover {
  background: var(--bg-pill-active);
  color: var(--text-white);
  box-shadow: var(--shadow-btn);
}

.cards-procedure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.procedure-item-card {
  background: var(--bg-white);
  border: 1px solid #ECE4DC;
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.procedure-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-rose-soft);
  box-shadow: var(--shadow-hover);
}

.procedure-circle-img {
  width: 74px;
  height: 74px;
  border-radius: var(--radius-full);
  background: var(--color-rose-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.procedure-item-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.procedure-item-card p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.procedure-saiba-mais {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.procedure-saiba-mais:hover {
  gap: 8px;
  color: var(--color-primary-hover);
}

/* ==========================================================================
   SEÇÕES COMPLEMENTARES (FORMAÇÃO, AUDITORIA, DEPOIMENTOS, LOCALIZAÇÃO)
   ========================================================================== */
.section-spacer {
  padding: 55px 0;
}

.hospital-trust-box {
  background: var(--bg-white);
  border: 1px solid #ECE4DC;
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-card);
}

.hospital-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.hospital-col h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
}

.history-simple-list {
  list-style: none;
}

.history-simple-list li {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #F5EFEB;
}

.history-simple-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.history-simple-list strong {
  display: block;
  font-size: 0.94rem;
}

.history-simple-list span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
}

.history-simple-list p {
  font-size: 0.84rem;
  margin-top: 2px;
}

/* Auditoria Médica Card */
.audit-highlight-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF5EE 100%);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 38px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.audit-seal {
  background: #FFFFFF;
  border: 1px dashed var(--color-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.audit-seal i {
  font-size: 2.2rem;
  color: var(--color-gold);
  margin-bottom: 8px;
}

/* Depoimentos */
.testimonials-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.test-simple-card {
  background: var(--bg-white);
  border: 1px solid #ECE4DC;
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.test-simple-card .stars {
  color: #E6A23C;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.test-simple-card p {
  font-size: 0.88rem;
  font-style: italic;
  margin-bottom: 14px;
  flex-grow: 1;
}

.test-simple-card strong {
  font-size: 0.84rem;
  color: var(--text-dark);
}

/* FAQ */
.faq-accordion-box {
  max-width: 740px;
  margin: 0 auto;
}

.faq-single-item {
  background: var(--bg-white);
  border: 1px solid #ECE4DC;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-header-btn {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-content-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

.faq-single-item.active .faq-content-body {
  padding: 0 20px 16px 20px;
}

.faq-content-body p {
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Localização */
.location-clean-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 26px;
  background: var(--bg-white);
  border: 1px solid #ECE4DC;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.location-info-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.loc-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-rose-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.map-clean-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #ECE4DC;
  min-height: 290px;
}

.map-clean-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 290px;
  border: none;
}

/* ==========================================================================
   FOOTER & MODAL
   ========================================================================== */
.footer-clean {
  background: #201A18;
  color: #C7BFB9;
  padding: 50px 0 24px 0;
}

.footer-clean-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

.footer-clean h5 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-clean ul {
  list-style: none;
}

.footer-clean li {
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.footer-clean a {
  color: #9C9189;
}

.footer-clean a:hover {
  color: #FFFFFF;
}

.footer-clean-copy {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.76rem;
  color: #7E7570;
}

/* Modal Lead */
.lead-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lead-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lead-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 30px 26px;
  width: 100%;
  max-width: 430px;
  position: relative;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.lead-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-sand);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.lead-modal-close:hover {
  background: var(--color-primary);
  color: #FFFFFF;
}

.modal-head-box {
  text-align: center;
  margin-bottom: 16px;
}

.modal-head-box h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.modal-head-box p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.form-group-item {
  margin-bottom: 11px;
}

.form-group-item label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.form-control-input {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-xs);
  border: 1px solid #D6CDC4;
  font-size: 0.9rem;
  outline: none;
}

.form-control-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(142, 90, 74, 0.2);
}

/* Floating WhatsApp & Sticky Mobile */
.float-wa-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  font-weight: 700;
  font-size: 0.86rem;
  border: none;
  cursor: pointer;
}

.mobile-sticky-action {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 980;
  background: #FFFFFF;
  border-top: 1px solid #ECE4DC;
  padding: 9px 16px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.mobile-sticky-action .btn-pill {
  width: 100%;
  padding: 11px;
}

/* Responsividade */
@media (max-width: 960px) {
  .nav-items, .nav-cta {
    display: none;
  }

  .mobile-toggle-btn {
    display: block;
  }

  .hero-content-grid,
  .hospital-grid-layout,
  .audit-highlight-card,
  .location-clean-grid,
  .footer-clean-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-floating-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-procedure-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-main-card {
    padding: 24px 18px;
  }

  .hero-floating-pillars {
    grid-template-columns: 1fr;
  }

  .cards-procedure-grid {
    grid-template-columns: 1fr;
  }

  .float-wa-btn {
    bottom: 65px;
    right: 14px;
    padding: 9px 12px;
    font-size: 0;
  }

  .float-wa-btn i {
    font-size: 1.35rem;
  }

  .mobile-sticky-action {
    display: block;
  }

  body {
    padding-bottom: 55px;
  }

  .hero-wrapper {
    padding-top: 85px;
  }
}
