/* ========================================
   ROOT VARIABLES & TYPOGRAPHY
======================================== */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --secondary: #10b981;
  --accent: #f59e0b;
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #64748b;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-lighter: #f1f5f9;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

section {
  scroll-margin-top: 90px;
  padding: 5rem 0;
}

/* ========================================
   NAVBAR
======================================== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  margin-right: 12px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-medium);
  font-weight: 500;
}

.navbar-nav .nav-link {
  color: var(--text-medium);
  font-weight: 500;
  font-size: 15px;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.btn-appointment {
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-appointment:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
  color: white;
}

/* ========================================
   PAGE HEADER
======================================== */
.page-header {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border: 1px solid #bfdbfe;
  border-radius: 50px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-description {
  font-size: 1.2rem;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ========================================
   SERVICE DETAIL SECTION
======================================== */
.service-detail-section {
  background: var(--bg-white);
  padding: 4rem 0;
}

.service-detail-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

.service-detail-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.service-header {
  background: linear-gradient(135deg, var(--primary-light), #e0f2fe);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.service-header-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 36px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.service-header-content h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.service-header-content p {
  font-size: 1rem;
  color: var(--text-medium);
  margin: 0;
}

.service-body {
  padding: 2.5rem;
}

.service-overview {
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.service-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-section-title i {
  color: var(--primary);
  font-size: 1.3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.feature-item h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-item h5 i {
  color: var(--secondary);
  font-size: 1rem;
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin: 0;
  line-height: 1.6;
}

.procedure-steps {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin: 0;
  line-height: 1.6;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.7;
}

.info-list li i {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  color: white;
  margin-top: 2rem;
}

.cta-box h4 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.btn-cta {
  background: white;
  color: var(--primary);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
  color: var(--primary);
}

/* ========================================
   WHY CHOOSE US SECTION
======================================== */
.why-choose-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 4rem 0;
}

.why-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.why-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.why-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-light), #e0f2fe);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  font-size: 30px;
}

.why-card:hover .why-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.why-card h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin: 0;
  line-height: 1.6;
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-brand i {
  font-size: 24px;
  color: var(--primary);
}

.footer-text {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
  color: white;
}

.btn-footer {
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-footer:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: white;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: #94a3b8;
  margin: 0.25rem 0;
}

/* ========================================
   ANIMATIONS
======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 991px) {
  .page-title {
    font-size: 2.5rem;
  }

  .page-header {
    padding: 6rem 0 3rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .service-header {
    flex-direction: column;
    text-align: center;
  }

  .service-header-content h3 {
    font-size: 1.75rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .page-title {
    font-size: 2rem;
  }

  .page-description {
    font-size: 1rem;
  }

  .service-body {
    padding: 1.5rem;
  }

  .service-header {
    padding: 1.5rem;
  }

  .service-header-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .service-section-title {
    font-size: 1.25rem;
  }

  .cta-box {
    padding: 1.5rem;
  }

  .cta-box h4 {
    font-size: 1.5rem;
  }

  .step-item {
    flex-direction: column;
    gap: 1rem;
  }
}