/* ==========================================================================
   ProSafe Life – style.css
   Tipografia: Poppins
   Paleta: Navy (#0B1F3B), Emerald (#0CB39B), Sky (#E6F5F2), Slate (#334155), Ink (#1B2430)
   ========================================================================= */

/* ------------------------------
   Variáveis
---------------------------------*/
:root {
  --brand-navy: #0B1F3B;
  --brand-emerald: #0CB39B;
  --brand-sky: #E6F5F2;
  --brand-ink: #1B2430;
  --brand-slate: #334155;
  --brand-gray: #6B7280;
  --brand-line: #EEF2F7;
  --brand-shadow: 0 6px 14px rgba(10,37,64,.06);
  --radius: 16px;
}

/* ------------------------------
   Reset básico e tipografia
---------------------------------*/
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--brand-ink);
  font-weight: 400;
  line-height: 1.6;
  background: #fff;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2 {
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.3px;
  line-height: 1.25;
}

p { margin-bottom: 1rem; color: var(--brand-ink); }
small, .small { color: var(--brand-gray); }
a { color: var(--brand-emerald); text-decoration: none; }
a:hover { opacity: .9; }

/* Foco de acessibilidade */
:focus-visible { outline: 3px solid rgba(12,179,155,.35); outline-offset: 2px; }

/* ------------------------------
   Topbar e Header
---------------------------------*/
#topbar {
  background: var(--brand-navy);
  color: #fff;
  font-size: .95rem;
  padding: .35rem 0;
}
#topbar i { margin-right: .5rem; }

/* Header fixo */
#header {
  background: #fff;
  border-bottom: 1px solid var(--brand-line);
  transition: all .25s ease;
  padding: 10px 0;
}
#header.header-scrolled { padding: 6px 0; box-shadow: 0 6px 24px rgba(11,31,59,.06); }

/* Logo (SVG inline) */
.logo-svg { display: flex; align-items: center; gap: .5rem; }
.logo-svg svg { height: 72px; display: block; }
@media (min-width: 992px) {
  .logo-svg svg { height: 84px; }
}

/* Navbar */
#navbar { margin-left: auto; }
#navbar ul { display: flex; gap: 18px; align-items: center; }
#navbar a {
  color: var(--brand-ink);
  font-weight: 600;
  padding: 8px 4px;
}
#navbar .nav-link.scrollto.active,
#navbar .nav-link:hover { color: var(--brand-emerald); }

/* Botão topo (Contratar) */
.appointment-btn {
  background: var(--brand-emerald);
  border: 0;
  padding: 10px 22px;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  margin-left: 16px;
  box-shadow: var(--brand-shadow);
}
.appointment-btn:hover { transform: translateY(-1px); }

/* Mobile nav toggle (ícone) */
.mobile-nav-toggle { color: var(--brand-ink); }

/* ------------------------------
   Hero
---------------------------------*/
#hero { position: relative; }
#hero .carousel-item { background-position: center; background-size: cover; }
#hero .container { padding-top: 8rem; padding-bottom: 6rem; }
#hero h2 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
#hero p {
  max-width: 720px;
  font-size: 1.1rem;
  color: #f2f6fa;
}
.btn-get-started {
  background: #fff;
  color: var(--brand-navy);
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: var(--brand-shadow);
}

/* Indicadores do carousel */
#hero .carousel-indicators li,
#hero #hero-carousel-indicators li { background: rgba(255,255,255,.6); }
#hero .carousel-indicators .active,
#hero #hero-carousel-indicators .active { background: #fff; }

/* ------------------------------
   Seções base
---------------------------------*/
.section-title h2 { color: var(--brand-navy); margin-bottom: 0.75rem; }
.section-title p { color: var(--brand-gray); }

section { padding: 60px 0; }
.section-bg { background: #f8fafc; }

/* ------------------------------
   Cards / Icon boxes
---------------------------------*/
.icon-box {
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  transition: .25s;
  box-shadow: var(--brand-shadow);
  height: 100%;
}
.icon-box:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(10,37,64,.10); }
.icon-box .icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--brand-sky);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px; color: var(--brand-emerald); font-size: 22px;
}
.icon-box .title a { color: var(--brand-navy); font-weight: 700; }
.icon-box .description { color: var(--brand-ink); }

/* Badge suave */
.badge-soft {
  background: var(--brand-sky);
  color: var(--brand-navy);
  font-weight: 700;
  padding: .35rem .6rem;
  border-radius: .5rem;
  display: inline-block;
}

/* ------------------------------
   CTA
---------------------------------*/
#cta {
  background: linear-gradient(90deg, var(--brand-navy), #0E2D55);
  padding: 56px 0;
  text-align: center;
}
#cta h3, #cta p { color: #fff; margin: 0.25rem 0; }
#cta .cta-btn {
  background: #fff;
  color: var(--brand-navy);
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 20px;
  display: inline-block;
  margin-top: 12px;
  box-shadow: var(--brand-shadow);
}

/* ------------------------------
   Sobre (About)
---------------------------------*/
.about img { border-radius: 12px; box-shadow: var(--brand-shadow); }
.about .muted, .muted { color: var(--brand-slate); }
.about .check { color: var(--brand-emerald); }

/* Bloco de destaque no Sobre */
.about .highlight {
  background: var(--brand-sky);
  border-radius: var(--radius);
  padding: 16px;
}

/* ------------------------------
   Medicina Protegida (hero interna)
---------------------------------*/
.mp-hero { background: linear-gradient(180deg, var(--brand-sky), #fff); }
.mp-hero .icon-box { box-shadow: 0 6px 14px rgba(12,179,155,.08); }

/* ------------------------------
   Services / Especialidades
---------------------------------*/
.services .icon-box h4.title { margin-bottom: 6px; }
.services .icon-box .description { margin-bottom: 0; }

/* ------------------------------
   Formulários (Contratar / Contato)
---------------------------------*/
.php-email-form .form-control,
.php-email-form .form-select {
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: none !important;
}
.php-email-form .form-control:focus,
.php-email-form .form-select:focus {
  border-color: var(--brand-emerald);
  box-shadow: 0 0 0 3px rgba(12,179,155,.15) !important;
}
.php-email-form textarea.form-control { min-height: 140px; }
.php-email-form button[type=submit],
.php-email-form .btn {
  background: var(--brand-emerald);
  border: 0;
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--brand-shadow);
}
.php-email-form .loading { color: var(--brand-gray); }
.php-email-form .error-message { color: #b91c1c; }
.php-email-form .sent-message { color: #065f46; }

/* ------------------------------
   FAQ
---------------------------------*/
.faq .question {
  font-weight: 700;
  color: var(--brand-navy);
  cursor: pointer;
}
.faq .collapse { padding: 8px 0 0 0; }
.faq p { margin-bottom: .75rem; }

/* ------------------------------
   Footer
---------------------------------*/
#footer { background: #0c1420; color: #c8d1dc; }
#footer .footer-top { padding: 40px 0 10px; }
#footer a { color: #e5f4f3; }
#footer .footer-info p { margin-top: 12px; }
.footer-logo svg { height: 60px; display: block; }

/* ------------------------------
   Back to top
---------------------------------*/
.back-to-top {
  position: fixed; visibility: hidden; opacity: 0; right: 15px; bottom: 15px;
  z-index: 996; background: var(--brand-emerald); width: 40px; height: 40px;
  border-radius: 50px; transition: all .4s; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.active { visibility: visible; opacity: 1; }
.back-to-top:hover { transform: translateY(-2px); }

/* ------------------------------
   Utilitários
---------------------------------*/
.rounded-3 { border-radius: 12px !important; }
.shadow-soft { box-shadow: var(--brand-shadow); }
.text-slate { color: var(--brand-slate) !important; }
.text-navy { color: var(--brand-navy) !important; }
.btn-emerald {
  background: var(--brand-emerald); color: #fff; border-radius: 12px; font-weight: 700;
}
.btn-emerald:hover { opacity: .92; }

/* ------------------------------
   Responsividade
---------------------------------*/
@media (max-width: 991.98px) {
  #navbar ul { gap: 12px; }
  #header { padding: 8px 0; }
  #hero .container { padding-top: 7rem; padding-bottom: 4rem; }
  #hero h2 { font-size: 2.2rem; }
}

@media (max-width: 575.98px) {
  .logo-svg svg { height: 64px; }
  #hero h2 { font-size: 1.9rem; }
  .appointment-btn { padding: 9px 18px; }
}

/* ------------------------------
   Ajustes de integração com AOS / Vendors
---------------------------------*/
[data-aos] { transition-property: transform, opacity; }
