/* =====================================================================
   Victa Health Care — Design System v3
   Visual language inspired by warm, photo-driven fertility/parenthood
   care platforms: deep plum primary, soft coral secondary, blush washes,
   pill buttons, numbered-circle step flows, organic blob decoration.
   ===================================================================== */

:root {
  --ink:         #241224;   /* near-black plum — headings & body text */
  --ink-soft:    #6B5A6C;   /* muted plum-grey for secondary text */
  --paper:       #FFFFFF;
  --blush:       #FCEEEA;   /* soft page wash */
  --blush-deep:  #FBE0D9;   /* deeper blush for icon tiles / step bg */
  --primary:     #5B2A56;   /* deep plum/maroon — brand, CTAs, headings accent */
  --primary-dk:  #451F42;
  --primary-tint:#F1E3EF;
  --coral:       #F2A48C;   /* soft coral — secondary buttons / accents */
  --coral-dk:    #E8875F;
  --coral-tint:  #FDECE5;
  --sage:        #3F7A5C;   /* semantic success (distinct from brand) */
  --sage-tint:   #E6F1EA;
  --gold:        #C08A2E;   /* semantic warning */
  --gold-tint:   #F7EDD9;
  --danger:      #B4433F;
  --danger-tint: #FAE7E5;
  --line:        rgba(36,18,36,0.09);
  --shadow:      0 22px 50px rgba(91,42,86,0.14);
  --shadow-sm:   0 8px 20px rgba(91,42,86,0.09);
  --radius:      1.1rem;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-heading {
  font-family: 'Jost', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h5, h6 { font-family: 'Jost', sans-serif; font-weight: 600; color: var(--ink); }

.mono, .stat-value, .badge-status, .section-eyebrow { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dk); }

.text-victa-teal, .text-victa-primary { color: var(--primary) !important; }
.bg-victa-teal, .bg-victa-primary { background-color: var(--primary) !important; }
.bg-victa-light { background-color: var(--blush) !important; }
:root { --victa-teal: var(--primary); }

/* ---------- Buttons (pill-shaped, two-tone like reference) ---------- */
.btn-victa {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .2s ease;
  box-shadow: 0 10px 22px rgba(91,42,86,0.28);
}
.btn-victa:hover { background: var(--primary-dk); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(91,42,86,0.32); }
.btn-outline-victa {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  padding: 0.7rem 1.7rem;
  background: transparent;
}
.btn-outline-victa:hover { background: var(--primary); color: #fff; }
.btn-blush, .btn-coral {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  box-shadow: 0 10px 22px rgba(242,164,140,0.35);
}
.btn-blush:hover, .btn-coral:hover { background: var(--coral-dk); color: #fff; transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.navbar-victa {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.navbar-victa .navbar-brand {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.navbar-victa .navbar-brand .brand-dot { color: var(--primary); }
.navbar-victa .nav-link { font-weight: 500; color: var(--ink-soft); margin: 0 .4rem; }
.navbar-victa .nav-link.active, .navbar-victa .nav-link:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero-section {
  background: linear-gradient(180deg, var(--blush) 0%, var(--paper) 85%);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-decor { position: absolute; pointer-events: none; opacity: .55; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 50px;
  padding: .45rem 1.05rem; font-size: .8rem; font-weight: 600; color: var(--primary);
}
.hero-title { font-size: 3rem; line-height: 1.14; }
.hero-title .accent { color: var(--primary); }
.hero-visual { position: relative; border-radius: 2rem; overflow: hidden; box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-badge-float {
  position: absolute; bottom: 1.25rem; left: 1.25rem;
  background: #fff; border-radius: 1rem; padding: .9rem 1.2rem;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: .75rem;
}
.hero-ring-badge {
  position: absolute; top: -1.25rem; right: -1.25rem;
  width: 108px; height: 108px; border-radius: 50%;
  background: #fff; border: 2px dashed var(--coral);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); text-align: center; padding: .5rem;
}
.avatar-stack { display: flex; }
.avatar-stack .avatar-circle { border: 2px solid #fff; margin-left: -12px; }
.avatar-stack .avatar-circle:first-child { margin-left: 0; }

/* ---------- Cards ---------- */
.victa-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.85rem;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.victa-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-tile {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--primary-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.icon-tile.sage { background: var(--sage-tint); color: var(--sage); }
.icon-tile.gold { background: var(--gold-tint); color: var(--gold); }
.icon-tile.coral { background: var(--coral-tint); color: var(--coral-dk); }

/* ---------- Step indicator: numbered circles with dashed connector ---------- */
.step-row { position: relative; }
.step-row::before {
  content: ''; position: absolute; top: 27px; left: 12%; right: 12%; height: 0;
  border-top: 2px dashed var(--line); z-index: 0;
}
.step-arc { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; }
.step-arc .step-dot {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary);
  color: var(--primary); font-family: 'Jost', sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; font-size: 1.1rem;
}

/* ---------- Plan / pricing cards ---------- */
.plan-card {
  background: #fff; border-radius: 1.4rem; border: 1.5px solid var(--line);
  padding: 2.1rem; height: 100%; transition: all .2s ease; position: relative;
}
.plan-card.popular { border-color: var(--primary); box-shadow: var(--shadow); }
.plan-card .popular-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700;
  padding: .35rem 1rem; border-radius: 50px; letter-spacing: .06em;
}
.plan-price { font-family: 'Jost', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--ink); }
.plan-price small { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.plan-card ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.plan-card ul li { padding: .4rem 0; color: var(--ink-soft); }
.plan-card ul li i { color: var(--sage); margin-right: .55rem; }

/* ---------- Full-bleed "Why choose us" band ---------- */
.band-primary { background: var(--primary); color: #fff; position: relative; overflow: hidden; }
.band-primary h2, .band-primary h3 { color: #fff; }
.band-primary .section-eyebrow { color: var(--coral); }
.band-feature { display: flex; gap: 1rem; align-items: flex-start; }
.band-feature .icon-tile { background: rgba(255,255,255,0.12); color: #fff; flex-shrink: 0; }
.band-feature h6 { color: #fff; }
.band-feature p { color: rgba(255,255,255,0.75); }

/* ---------- Doctor / specialist cards ---------- */
.doctor-card { text-align: center; }
.doctor-photo {
  width: 100%; aspect-ratio: 1/1; border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%;
  overflow: hidden; background: var(--blush-deep); margin-bottom: 1rem;
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; border-radius: 1.1rem; padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.testimonial-card .stars { color: var(--gold); font-size: .85rem; }

/* ---------- Footer ---------- */
.footer-victa { background: var(--primary-dk); color: #E9DCE8; padding: 4rem 0 1.5rem; position: relative; overflow: hidden; }
.footer-victa h5 { color: #fff; font-family: 'Jost', sans-serif; font-size: 1.05rem; }
.footer-victa a { color: #E9DCE8; }
.footer-victa a:hover { color: #fff; }
.footer-victa .footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .82rem; color: #C7AFC5; }
.footer-watermark {
  position: absolute; bottom: -1.2rem; left: 0; right: 0; text-align: center;
  font-family: 'Jost', sans-serif; font-weight: 700; font-size: 5.5rem; letter-spacing: .05em;
  color: rgba(255,255,255,0.05); white-space: nowrap; pointer-events: none;
}

/* ---------- Auth pages (split screen) ---------- */
.auth-wrapper { min-height: 100vh; display: flex; }
.auth-brand-panel {
  flex: 1 1 45%; background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  padding: 3rem; position: relative; overflow: hidden;
}
.auth-brand-panel .brand { font-family: 'Jost', sans-serif; font-weight: 700; font-size: 1.5rem; color: #fff; }
.auth-brand-panel .brand .brand-dot { color: var(--coral); }
.auth-brand-quote { font-family: 'Jost', sans-serif; font-size: 1.9rem; line-height: 1.3; max-width: 24rem; font-weight: 600; }
.auth-form-panel { flex: 1 1 55%; display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: var(--paper); }
.auth-card { max-width: 440px; width: 100%; }
@media (max-width: 991.98px) { .auth-brand-panel { display: none; } }

/* ---------- Dashboard shell (patient-facing default theme) ---------- */
.dash-shell { display: flex; min-height: 100vh; }
.dash-sidebar { width: 264px; background: var(--primary-dk); color: #E9DCE8; padding: 1.5rem 1.1rem; flex-shrink: 0; }
.dash-sidebar .brand { font-family:'Jost',sans-serif; font-weight:700; font-size:1.2rem; color:#fff; padding: .5rem .5rem 1.5rem; display:block; }
.dash-sidebar .brand .text-victa-teal { color: var(--coral) !important; }
.dash-sidebar .nav-link { color: #CBB3C9; font-weight: 500; border-radius: .7rem; padding: .65rem .9rem; margin-bottom: .2rem; display: flex; align-items: center; gap: .65rem; font-size: .93rem; }
.dash-sidebar .nav-link i { width: 20px; text-align: center; }
.dash-sidebar .nav-link.active { background: rgba(255,255,255,0.1); color: #fff; }
.dash-sidebar .nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.dash-sidebar hr { border-color: rgba(255,255,255,0.14); }
.dash-main { flex: 1; padding: 2.25rem; max-width: 100%; background: var(--blush); }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.85rem; }
.dash-topbar h4 { font-family: 'Jost', sans-serif; }
.stat-card { background: #fff; border-radius: 1.1rem; padding: 1.6rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); border-left: 3px solid var(--primary); }
.stat-card.sage { border-left-color: var(--sage); }
.stat-card.gold { border-left-color: var(--gold); }
.stat-card .stat-label { color: var(--ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .stat-value { font-size: 2.1rem; font-weight: 700; margin-top: .3rem; }

@media (max-width: 991.98px) {
  .dash-sidebar { position: fixed; left: -280px; top: 0; bottom: 0; z-index: 1050; transition: left .25s ease; }
  .dash-sidebar.show { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .dash-main { padding: 1.25rem; }
}

/* ---------- Dashboard: creative welcome banner ---------- */
.welcome-banner {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dk) 100%);
  border-radius: 1.4rem; padding: 2.25rem 2rem; color: #fff; position: relative; overflow: hidden;
}
.welcome-banner::before {
  content: ''; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255,255,255,0.08);
}
.welcome-banner::after {
  content: ''; position: absolute; bottom: -80px; right: 60px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(255,255,255,0.06);
}
.welcome-banner h3 { color: #fff; position: relative; z-index: 1; }
.welcome-banner p { position: relative; z-index: 1; }
.admin-theme .welcome-banner { background: linear-gradient(120deg, #1E2A63 0%, #12162A 100%); }

/* ---------- Stat cards v2: icon + colored tile ---------- */
.stat-card-v2 {
  background: #fff; border-radius: 1.1rem; padding: 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 1rem;
}
.stat-card-v2 .stat-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  background: var(--primary-tint); color: var(--primary);
}
.stat-card-v2.sage .stat-icon { background: var(--sage-tint); color: var(--sage); }
.stat-card-v2.gold .stat-icon { background: var(--gold-tint); color: var(--gold); }
.stat-card-v2.coral .stat-icon { background: var(--coral-tint); color: var(--coral-dk); }
.stat-card-v2 .stat-value { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.stat-card-v2 .stat-label { color: var(--ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Progress ring (sessions used) ---------- */
.progress-ring-wrap { position: relative; width: 92px; height: 92px; flex-shrink: 0; }
.progress-ring-wrap svg { transform: rotate(-90deg); }
.progress-ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.05rem; }

/* ---------- Quick action tiles ---------- */
.quick-action {
  display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line);
  border-radius: 1rem; padding: 1.1rem 1.25rem; transition: all .2s ease; height: 100%;
}
.quick-action:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--primary); }
.quick-action .qa-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--primary-tint); color: var(--primary); flex-shrink: 0; }
.quick-action h6 { margin-bottom: .15rem; color: var(--ink); }
.quick-action p { margin-bottom: 0; font-size: .78rem; color: var(--ink-soft); }

/* ---------- Timeline (recent activity) ---------- */
.timeline-item { display: flex; gap: 1rem; padding-bottom: 1.25rem; position: relative; }
.timeline-item:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.timeline-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .85rem; }
.timeline-dot.sage { background: var(--sage-tint); color: var(--sage); }
.timeline-dot.gold { background: var(--gold-tint); color: var(--gold); }
.timeline-dot.danger { background: var(--danger-tint); color: var(--danger); }
/* ---------- Tables ---------- */
.table-victa thead { background: var(--blush); }
.table-victa thead th { color: var(--ink); font-weight: 600; border-bottom: none; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.table-victa td, .table-victa th { vertical-align: middle; padding: .9rem 1.1rem; }
.table-victa tbody tr { border-bottom: 1px solid var(--line); }
.badge-status { font-weight: 600; padding: .4em .8em; border-radius: 50px; font-size: .7rem; letter-spacing: .03em; text-transform: uppercase; }

.bg-success-subtle { background: var(--sage-tint) !important; }
.text-success-emphasis { color: var(--sage) !important; }
.bg-warning-subtle { background: var(--gold-tint) !important; }
.text-warning-emphasis { color: var(--gold) !important; }
.bg-danger-subtle { background: var(--danger-tint) !important; }
.text-danger-emphasis { color: var(--danger) !important; }
.bg-secondary-subtle { background: #F1ECEE !important; }
.text-secondary-emphasis { color: var(--ink-soft) !important; }

/* ---------- Section utility ---------- */
.section-pad { padding: 5rem 0; }
.section-eyebrow { color: var(--coral-dk); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; display: inline-flex; align-items: center; gap: .4rem; }
.section-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--coral-dk); display: inline-block; }

/* ---------- Time slot picker ---------- */
.slot-btn { border: 1.5px solid var(--line); border-radius: .7rem; padding: .55rem; background: #fff; font-weight: 600; font-size: .85rem; color: var(--ink-soft); }
.slot-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.slot-btn.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- Misc ---------- */
.rounded-victa { border-radius: var(--radius) !important; }
.shadow-victa { box-shadow: var(--shadow) !important; }
.avatar-circle {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--coral));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
}

a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--coral-dk); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* =====================================================================
   Responsive refinements
   ===================================================================== */
@media (max-width: 991.98px) {
  .hero-title { font-size: 2.4rem; }
  .section-pad { padding: 3.25rem 0; }
  .hero-section { padding: 3rem 0 2.5rem; }
  .hero-ring-badge { width: 84px; height: 84px; top: -0.75rem; right: -0.5rem; }
  .footer-watermark { font-size: 3.6rem; }
}

@media (max-width: 767.98px) {
  .hero-title { font-size: 2rem; line-height: 1.2; }
  .hero-badge { font-size: .72rem; padding: .4rem .85rem; }
  .lead { font-size: 1rem; }
  .section-pad { padding: 2.75rem 0; }
  h2 { font-size: 1.6rem; }
  .plan-price { font-size: 2rem; }
  .hero-visual { border-radius: 1.25rem; }
  .hero-badge-float { left: .75rem; bottom: .75rem; padding: .6rem .8rem; gap: .5rem; }
  .hero-badge-float .fw-semibold { font-size: .8rem; }
  .hero-ring-badge { width: 72px; height: 72px; top: -0.6rem; right: -0.4rem; }
  .hero-ring-badge span:first-child { font-size: .85rem; }
  .step-row::before { display: none; }
  .footer-watermark { display: none; }
  .band-feature { flex-direction: column; }
  .auth-form-panel { padding: 2rem 1.25rem; }
  .auth-card h2 { font-size: 1.5rem; }
  .dash-topbar h4.d-none { display: block !important; font-size: 1.15rem; }
  .victa-card { padding: 1.4rem; }
  .plan-card { padding: 1.6rem; }
  .table-victa th, .table-victa td { padding: .65rem .7rem; font-size: .85rem; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 1.7rem; }
  .navbar-victa .navbar-brand { font-size: 1.25rem; }
  .btn-victa, .btn-coral, .btn-outline-victa { padding: .6rem 1.2rem; font-size: .88rem; }
  .hero-ring-badge { display: none; }
  .dash-main { padding: 1rem; }
  .stat-card { padding: 1.15rem; }
  .stat-card .stat-value { font-size: 1.6rem; }
}

/* Ensure images never overflow their containers on any breakpoint */
img { max-width: 100%; height: auto; }
.table-responsive { -webkit-overflow-scrolling: touch; }
