/* ============================================================
   MedCannabis — Design System
   Paleta: #E85D04 (orange) | #FFFFFF (white) | #1A1A1A (black)
   ============================================================ */

:root {
  --orange:       #E85D04;
  --orange-dark:  #C44D03;
  --orange-light: rgba(232, 93, 4, 0.12);
  --black:        #1A1A1A;
  --black-soft:   #2C2C2C;
  --white:        #FFFFFF;
  --gray-50:      #F8F8F8;
  --gray-100:     #F0F0F0;
  --gray-400:     #9CA3AF;
  --text-muted:   #6B7280;
  --radius:       0.75rem;
  --radius-lg:    1.25rem;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg:    0 12px 48px rgba(0, 0, 0, 0.16);
  --font:         'Inter', sans-serif;
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
}

/* ── Utility ────────────────────────────────────────────── */
.text-orange     { color: var(--orange) !important; }
.bg-orange       { background-color: var(--orange) !important; }
.bg-black        { background-color: var(--black) !important; }
.text-white-75   { color: rgba(255,255,255,.75) !important; }
.text-white-50   { color: rgba(255,255,255,.50) !important; }
.py-6            { padding-top: 5rem; padding-bottom: 5rem; }
.px-6            { padding-left: 3rem; padding-right: 3rem; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-orange {
  background-color: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  transition: background .22s, transform .15s, box-shadow .22s;
}
.btn-orange:hover,
.btn-orange:focus {
  background-color: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.35);
}

.btn-outline-orange {
  border: 2px solid var(--orange);
  color: var(--orange);
  font-weight: 600;
  border-radius: 50px;
  background: transparent;
  transition: all .22s;
}
.btn-outline-orange:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-light { border-radius: 50px; font-weight: 600; }

.btn-white {
  background: #fff;
  color: var(--orange);
  font-weight: 700;
  border-radius: 50px;
  border: none;
  transition: all .22s;
}
.btn-white:hover {
  background: #f3f3f3;
  color: var(--orange-dark);
  transform: translateY(-2px);
}

/* ── Badges ─────────────────────────────────────────────── */
.badge-orange {
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: 600;
  padding: .45em .9em;
  border-radius: 50px;
  font-size: .82rem;
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
}
.badge-orange-light {
  background: var(--orange-light);
  color: var(--orange);
  font-weight: 600;
  padding: .35em .8em;
  border-radius: 50px;
  font-size: .78rem;
}

/* ── Navbar ─────────────────────────────────────────────── */
.med-navbar {
  background: var(--black) !important;
  padding: .8rem 0;
  border-bottom: 2px solid var(--orange);
  transition: box-shadow .3s;
}
.med-navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.med-navbar .nav-link {
  color: rgba(255,255,255,.78) !important;
  font-weight: 500;
  font-size: .92rem;
  padding: .45rem .8rem !important;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.med-navbar .nav-link:hover,
.med-navbar .nav-link.active {
  color: var(--orange) !important;
  background: rgba(232,93,4,.1);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--black) 0%, #2d1200 60%, #1a0a00 100%);
  min-height: 92vh;
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(232,93,4,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(232,93,4,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-overlay { display: none; }

.hero-card {
  max-width: 380px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.hero-card-inner { background: rgba(0,0,0,.2); }

.avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bg-orange-light { background: var(--orange-light); }

/* ── Stats bar ──────────────────────────────────────────── */
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label {
  font-size: .82rem;
  opacity: .85;
}

/* ── Section labels / titles ────────────────────────────── */
.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: .5rem;
}
.section-label-light {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 700;
  color: rgba(232,93,4,.85);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Step cards ─────────────────────────────────────────── */
.step-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: box-shadow .25s, transform .25s;
  height: 100%;
}
.step-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--orange-light);
  line-height: 1;
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}
.step-icon {
  width: 56px;
  height: 56px;
  background: var(--orange-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--orange);
  margin-bottom: 1rem;
}
.step-title {
  font-weight: 700;
  margin-bottom: .5rem;
}
.step-desc { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* ── Feature cards ──────────────────────────────────────── */
.feature-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: border-color .25s, background .25s;
  height: 100%;
}
.feature-card:hover {
  border-color: rgba(232,93,4,.4);
  background: rgba(232,93,4,.06);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--orange-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--orange);
  margin-bottom: 1rem;
}
.feature-card h5  { color: #fff; font-weight: 700; margin-bottom: .5rem; }
.feature-card p   { color: rgba(255,255,255,.55); font-size: .9rem; margin: 0; }

/* ── Doctor cards ───────────────────────────────────────── */
.doctor-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: box-shadow .25s, transform .25s;
  height: 100%;
}
.doctor-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.doctor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--orange-light);
  border: 3px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--orange);
}

/* ── Compliance ─────────────────────────────────────────── */
.compliance-list li {
  padding: .45rem 0;
  font-weight: 500;
  font-size: .95rem;
  color: var(--black);
}
.compliance-badge {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1rem;
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  transition: border-color .2s;
}
.compliance-badge:hover { border-color: var(--orange); }
.compliance-badge i { font-size: 1.4rem; color: var(--orange); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid #eee !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
}
.faq-btn {
  background: var(--white) !important;
  color: var(--black) !important;
  font-weight: 600;
  font-size: .97rem;
  box-shadow: none !important;
  padding: 1.1rem 1.25rem;
}
.faq-btn:not(.collapsed) {
  color: var(--orange) !important;
  background: var(--orange-light) !important;
}
.faq-btn::after { filter: none; }
.faq-btn:not(.collapsed)::after { filter: invert(51%) sepia(74%) saturate(2000%) hue-rotate(5deg); }

/* ── CTA section ────────────────────────────────────────── */
.cta-section { background: var(--gray-50); }
.cta-card {
  background: linear-gradient(135deg, var(--black) 0%, #2d1200 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232,93,4,.3);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(232,93,4,.2) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Footer ─────────────────────────────────────────────── */
.med-footer {
  background: var(--black);
}
.footer-links { margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--orange); }
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.footer-social:hover {
  background: var(--orange);
  color: #fff;
}

/* ── Page header ────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--black) 0%, #2d1200 100%);
  border-bottom: 3px solid var(--orange);
}

/* ── Auth cards ─────────────────────────────────────────── */
.auth-section { min-height: calc(100vh - 72px); display: flex; align-items: center; }
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid #eee;
}
.med-input {
  border: 1.5px solid #e5e5e5;
  border-radius: var(--radius) !important;
  padding: .65rem 1rem;
  font-size: .97rem;
  transition: border-color .2s, box-shadow .2s;
}
.med-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,93,4,.15);
  outline: none;
}
.med-input-icon {
  background: var(--orange-light);
  border: 1.5px solid #e5e5e5;
  border-right: none;
  color: var(--orange);
  border-radius: var(--radius) 0 0 var(--radius) !important;
}
.input-group .med-input { border-radius: 0 var(--radius) var(--radius) 0 !important; }

/* ── Timeline (Como Funciona) ───────────────────────────── */
.timeline { position: relative; padding: 0 1rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--orange);
  z-index: 1;
}
.timeline-content {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 420px;
  box-shadow: var(--shadow);
}

/* ── Doc cards ──────────────────────────────────────────── */
.doc-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: box-shadow .25s, transform .25s;
}
.doc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.doc-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* ── Verify card ────────────────────────────────────────── */
.verify-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid #eee;
}
.verify-icon {
  width: 80px;
  height: 80px;
  background: var(--orange-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--orange);
}
.text-orange { color: var(--orange) !important; }

/* ── Legal doc ──────────────────────────────────────────── */
.legal-doc h5 { font-size: 1rem; }

/* ── Responsiveness ─────────────────────────────────────── */
@media (max-width: 991px) {
  .timeline::before { display: none; }
  .timeline-item { flex-direction: row !important; }
  .timeline-content { max-width: 100%; }
}

@media (max-width: 575px) {
  .hero-section { min-height: auto; padding: 4rem 0 3rem; }
  .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .cta-card { padding: 2.5rem 1.5rem; }
}

/* ── Animations ─────────────────────────────────────────── */
[data-aos] { transition-duration: 600ms !important; }
