/* ==========================================================================
   MEU DOUTOR ONLINE - DESIGN SYSTEM & STYLES
   ========================================================================== */

:root {
  --primary: #00a86b;
  --primary-dark: #027f5e;
  --primary-light: #e8f8f2;
  --primary-glow: rgba(0, 168, 107, 0.25);
  --accent: #ffb703;
  --accent-dark: #fb8500;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 25px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 35px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--slate-800);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Enhanced Buttons — Impeccable Design Standard */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

/* Primary Button: layered depth, inset highlight, rich emerald shadow */
.btn-primary {
  background: linear-gradient(180deg, #02bf7c 0%, #00965e 100%);
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 4px 14px rgba(0, 168, 107, 0.32);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #05ce87 0%, #02a367 100%);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 20px rgba(0, 168, 107, 0.42);
  color: #ffffff;
}

.btn-primary:active {
  background: linear-gradient(180deg, #00965e 0%, #008251 100%);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 2px 6px rgba(0, 168, 107, 0.25);
  transform: translateY(1px);
}

/* Secondary Button: crisp refined border, subtle emerald tint */
.btn-secondary {
  background: #ffffff;
  color: #026b4f;
  border: 1.5px solid #00a86b;
  box-shadow: 0 2px 6px rgba(0, 168, 107, 0.08);
}

.btn-secondary:hover {
  background: #eefbf6;
  border-color: #008f5a;
  color: #014d38;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 168, 107, 0.16);
}

.btn-secondary:active {
  background: #dcf7ec;
  transform: translateY(1px);
}

/* WhatsApp Button */
.btn-whatsapp {
  background: linear-gradient(180deg, #27d869 0%, #1fb858 100%);
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 14px rgba(37, 211, 102, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.btn-whatsapp:hover {
  background: linear-gradient(180deg, #2fe873 0%, #22c55e 100%);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 20px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

/* Sizing Tokens */
.btn-sm {
  height: 40px;
  padding: 0 20px;
  font-size: 0.875rem;
}

.btn-md {
  height: 48px;
  padding: 0 26px;
  font-size: 0.95rem;
}

.btn-lg {
  height: 54px;
  padding: 0 32px;
  font-size: 1.05rem;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  transition: all 0.25s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-container {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--slate-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-mobile-cta {
  display: none !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  color: var(--slate-800);
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 0 90px;
  background: radial-gradient(circle at 80% 20%, #eefbf6 0%, var(--white) 60%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(0, 168, 107, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--slate-900);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-badges-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--slate-700);
}

.hero-badge-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-img-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.hero-doctor-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  filter: drop-shadow(0 20px 30px rgba(0, 168, 107, 0.15));
}

.hero-seal-floating {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 100px;
  height: 100px;
  animation: spinSlow 30s linear infinite;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.15));
  z-index: 5;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-stat-card {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 168, 107, 0.2);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-500);
}

/* Sections General */
.section {
  padding: 90px 0;
}

.section-alt {
  background-color: var(--slate-50);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--slate-600);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 168, 107, 0.4);
}

.feature-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 22px;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* Specialties Grid */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.specialty-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.specialty-pill:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.specialty-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 168, 107, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.specialty-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate-800);
}

/* Steps / How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  position: relative;
  text-align: center;
}

.step-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 20px;
  box-shadow: 0 6px 16px var(--primary-glow);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--slate-200);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 16px 36px rgba(0, 168, 107, 0.18);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: 0 22px 42px rgba(0, 168, 107, 0.25);
}

.featured-ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.plan-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.plan-subtitle {
  font-size: 0.875rem;
  color: var(--slate-500);
  font-weight: 600;
  margin-bottom: 24px;
}

.plan-price-box {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--slate-200);
}

.price-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  vertical-align: top;
  margin-right: 4px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1;
}

.price-period {
  font-size: 0.95rem;
  color: var(--slate-500);
  font-weight: 500;
}

.plan-features-list {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.925rem;
  color: var(--slate-700);
}

.plan-feature-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.plan-cta-btn {
  width: 100%;
}

/* Club / Benefits banner */
.club-banner {
  background: linear-gradient(135deg, var(--slate-900) 0%, #033a2b 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-xl);
}

.club-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.club-title span {
  color: var(--accent);
}

.club-desc {
  font-size: 1.05rem;
  color: var(--slate-200);
  line-height: 1.7;
  margin-bottom: 24px;
}

.pharmacy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pharmacy-tag {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-question svg {
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 22px;
}

/* Footer */
.footer {
  background-color: var(--slate-900);
  color: var(--slate-200);
  padding: 80px 0 32px;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--slate-400);
  margin-top: 16px;
  line-height: 1.65;
  max-width: 320px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--slate-800);
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

/* Responsive Breakpoints — Impeccable Standard */
@media (max-width: 1200px) {
  .header-inner {
    gap: 12px;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.825rem;
  }
  .btn-sm {
    padding: 0 14px;
    font-size: 0.8rem;
    height: 38px;
  }
  .logo-img {
    height: 38px;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    height: 70px;
  }
  .nav-container {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    padding: 20px 24px 28px;
    display: none;
    flex-direction: column;
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-container.mobile-open {
    display: flex;
    animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 14px;
    margin-bottom: 20px;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 8px 0;
    width: 100%;
    border-bottom: 1px solid var(--slate-100);
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-mobile-cta {
    display: block;
    width: 100%;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-lead {
    margin: 0 auto 28px;
  }
  .hero-badges-list {
    justify-content: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-img-col {
    margin-top: 32px;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }
  .club-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }
  .logo-img {
    height: 32px;
  }
  .btn-sm {
    height: 36px;
    padding: 0 12px;
    font-size: 0.775rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
