/* ===================================
   Plano de Saúde Interior - Styles
   =================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Primary */
  --color-primary: #0d6efd;
  --color-primary-dark: #0a58ca;
  --color-primary-light: #e7f1ff;

  /* Secondary */
  --color-secondary: #198754;
  --color-secondary-dark: #146c43;
  --color-secondary-light: #d1e7dd;

  /* Neutrals */
  --color-white: #ffffff;
  --color-gray-50: #f8f9fa;
  --color-gray-100: #e9ecef;
  --color-gray-600: #6c757d;
  --color-gray-800: #343a40;
  --color-gray-900: #212529;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 40%, #198754 100%);
  --gradient-cta: linear-gradient(135deg, #198754 0%, #0d6efd 100%);

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding-y: 5rem;
  --section-padding-y-sm: 3rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Border radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  /* WhatsApp */
  --whatsapp-green: #25D366;
}

/* ===== BASE ===== */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-gray-800);
  line-height: 1.7;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.section-padding {
  padding: var(--section-padding-y) 0;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ===== FOCUS STYLES ===== */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== NAVBAR ===== */
#navbar {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  z-index: 1040;
}

#navbar.navbar-scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-gray-900) !important;
}

.navbar-brand .text-primary {
  font-size: 1.5rem;
}

.brand-text strong {
  color: var(--color-primary);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--color-gray-800);
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-primary);
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: #fff;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-outline-primary {
  font-weight: 600;
}

.btn-outline-light {
  font-weight: 600;
}

.btn-outline-light:hover {
  color: var(--color-primary);
}

/* ===== HERO ===== */
.hero-section {
  background: var(--gradient-hero);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: #fff;
}

.shape-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -60px;
}

.shape-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  right: 20%;
}

.hero-section h1 {
  color: #fff;
}

/* Hero Illustration Cards */
.hero-illustration {
  position: relative;
  height: 400px;
  width: 100%;
}

.hero-card {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 6s ease-in-out infinite;
}

.hero-card:first-child {
  top: 20px;
  left: 10%;
}

.hero-card-2 {
  top: 150px;
  right: 0;
  animation-delay: -2s !important;
}

.hero-card-3 {
  bottom: 40px;
  left: 5%;
  animation-delay: -4s !important;
}

.hero-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ===== PARTNERS ===== */
.partner-badge {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.partner-badge span {
  font-weight: 600;
  color: var(--color-gray-600);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.partner-badge:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.partner-badge:hover span {
  color: var(--color-primary);
}

/* ===== ABOUT ===== */
.about-illustration {
  position: relative;
  min-height: 380px;
}

.about-card-main {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #e8f5e9 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  position: relative;
}

.about-floating-badge {
  position: absolute;
  background: var(--color-white);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.about-floating-badge.badge-1 {
  bottom: 20px;
  left: -10px;
  animation: float 5s ease-in-out infinite;
}

.about-floating-badge.badge-2 {
  top: 10px;
  right: -10px;
  animation: float 5s ease-in-out infinite;
  animation-delay: -2.5s;
}

.icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.icon-box-sm {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ===== PLAN CARDS ===== */
.card-plan {
  border-radius: var(--radius-md) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-plan:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== PROCESS STEPS ===== */
.process-step {
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  position: relative;
  z-index: 2;
}

/* Connector line between steps (desktop) */
@media (min-width: 992px) {
  .process-step::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(50% + 32px);
    width: calc(100% - 64px);
    height: 2px;
    border-top: 2px dashed var(--color-gray-100);
    z-index: 1;
  }

  .row > .col-lg:last-child .process-step::after {
    display: none;
  }
}

/* ===== TESTIMONIALS ===== */
.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* ===== FAQ ===== */
.accordion-button {
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-gray-900);
}

.accordion-button:not(.collapsed) {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--gradient-cta);
  padding: var(--section-padding-y) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

/* ===== CONTACT CARDS ===== */
.contact-card {
  border-radius: var(--radius-md) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg) !important;
}

.contact-card h6 {
  color: var(--color-gray-900);
}

.contact-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-cta-box {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary-light) 100%);
  border: 1px solid rgba(13, 110, 253, 0.1);
}

/* ===== FOOTER ===== */
footer a.text-white-50:hover,
footer .hover-white:hover {
  color: #fff !important;
  transition: color 0.3s ease;
}

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--whatsapp-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
  color: #fff;
}

/* Pulse animation */
.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--whatsapp-green);
  z-index: -1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  z-index: 1050;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
}

.back-to-top.show {
  display: flex;
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for cards in a row */
.row > .col-md-6:nth-child(2) .animate-on-scroll,
.row > .col-md-4:nth-child(2) .animate-on-scroll,
.row > .col-lg-4:nth-child(2) .animate-on-scroll,
.row > .col-md-6.col-lg-4:nth-child(2) .animate-on-scroll {
  transition-delay: 0.1s;
}

.row > .col-md-6:nth-child(3) .animate-on-scroll,
.row > .col-md-4:nth-child(3) .animate-on-scroll,
.row > .col-lg-4:nth-child(3) .animate-on-scroll,
.row > .col-md-6.col-lg-4:nth-child(3) .animate-on-scroll {
  transition-delay: 0.2s;
}

.row > .col-md-6:nth-child(4) .animate-on-scroll,
.row > .col-md-6.col-lg-4:nth-child(4) .animate-on-scroll {
  transition-delay: 0.3s;
}

.row > .col-md-6:nth-child(5) .animate-on-scroll,
.row > .col-md-6.col-lg-4:nth-child(5) .animate-on-scroll {
  transition-delay: 0.4s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .section-padding {
    padding: var(--section-padding-y-sm) 0;
  }

  .hero-section {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .navbar-nav .nav-link.active::after {
    display: none;
  }

  .hero-stats .row {
    flex-direction: column;
    gap: 0.5rem !important;
  }

  .hero-stats .vr {
    display: none;
  }

  .hero-stats .col-auto {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-stats .col-auto .h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  .about-illustration {
    min-height: 280px;
  }

  .cta-section {
    padding: var(--section-padding-y-sm) 0;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 6rem 0 3rem;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .about-floating-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .about-floating-badge.badge-1 {
    left: 0;
  }

  .about-floating-badge.badge-2 {
    right: 0;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1rem;
  }

  .partner-badge {
    padding: 0.5rem;
  }

  .partner-badge span {
    font-size: 0.8rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-card {
    animation: none;
  }

  .about-floating-badge {
    animation: none;
  }

  .whatsapp-float::after {
    animation: none;
  }

  .whatsapp-float,
  .card-plan,
  .partner-badge,
  .btn-whatsapp,
  #navbar {
    transition: none;
  }
}
