/* Vitalis Clinic - Custom Styles */

:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --accent: #00a896;
  --soft-bg: #f8fafc;
  --text-muted: #6c757d;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  --radius: 0.75rem;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: #212529;
  background-color: #ffffff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, .section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Navbar */
.navbar-brand {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #495057;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s ease;
}

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

.navbar .btn-primary {
  border-radius: 50px;
  font-weight: 500;
}

/* Hero */
.hero-section {
  min-height: 92vh;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 50%, #f8fafc 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content h1 {
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-card {
  background: white;
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
  max-width: 360px;
  margin: 0 auto;
  border: 1px solid rgba(13, 110, 253, 0.1);
}

.hero-stats h3 {
  font-size: 1.75rem;
}

/* Icon circles */
.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.feature-box .icon-circle {
  width: 60px;
  height: 60px;
  font-size: 1.4rem;
}

/* Service cards */
.service-card {
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.service-detail-card {
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease;
}

.service-detail-card:hover {
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.1) !important;
}

/* Steps */
.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}

/* Doctor cards */
.doctor-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.doctor-card {
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

/* Avatar for testimonials */
.avatar {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* Forms */
.form-control,
.form-select {
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid #dee2e6;
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  padding: 0.55rem 1.25rem;
}

.btn-lg {
  padding: 0.7rem 1.6rem;
  font-size: 1.05rem;
}

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

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

/* Map placeholder */
.map-placeholder {
  min-height: 280px;
  border-radius: var(--radius);
}

/* Footer */
.footer a:hover {
  color: #ffffff !important;
}

/* Utilities */
.bg-primary-subtle {
  background-color: rgba(13, 110, 253, 0.12) !important;
}

.bg-success-subtle {
  background-color: rgba(25, 135, 84, 0.12) !important;
}

.bg-info-subtle {
  background-color: rgba(13, 202, 240, 0.12) !important;
}

.bg-warning-subtle {
  background-color: rgba(255, 193, 7, 0.15) !important;
}

.bg-danger-subtle {
  background-color: rgba(220, 53, 69, 0.12) !important;
}

.bg-secondary-subtle {
  background-color: rgba(108, 117, 125, 0.12) !important;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: auto;
    padding: 3rem 0 2.5rem;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-stats {
    gap: 1.5rem !important;
  }

  .hero-stats h3 {
    font-size: 1.4rem;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Small animation helpers used by GSAP */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
}
