/* Medical Professional Design System */

/* CSS Variables */
:root {
  /* Medical theme colors */
  --background: hsl(210, 40%, 98%);
  --foreground: hsl(215, 25%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(215, 25%, 15%);
  --primary: hsl(203, 89%, 53%);
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-light: hsl(203, 89%, 65%);
  --primary-dark: hsl(203, 89%, 40%);
  --secondary: hsl(152, 60%, 50%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --secondary-light: hsl(152, 60%, 65%);
  --accent: hsl(203, 50%, 96%);
  --accent-foreground: hsl(203, 89%, 30%);
  --muted: hsl(210, 40%, 96%);
  --muted-foreground: hsl(215, 16%, 47%);
  --border: hsl(210, 30%, 88%);
  --input: hsl(210, 30%, 88%);
  --ring: hsl(203, 89%, 53%);

  /* Medical gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  --gradient-hero: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-card: linear-gradient(145deg, hsl(0 0% 100% / 0.9), hsl(0 0% 100% / 0.7));

  /* Professional shadows */
  --shadow-soft: 0 4px 20px hsl(203 89% 53% / 0.1);
  --shadow-card: 0 8px 32px hsl(203 89% 53% / 0.12);
  --shadow-elevated: 0 16px 48px hsl(203 89% 53% / 0.15);

  /* Smooth transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --radius: 0.5rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hidden {
  display: none;
}

.text-muted {
  color: var(--muted-foreground);
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

/* Icon Sizes */
.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.accent-bg {
  background-color: var(--accent);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

/* Card Component */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-slow);
  border: 1px solid var(--border);
}

.card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-0.125rem);
}

.hero-card {
  background: var(--gradient-card);
  backdrop-filter: blur(0.5rem);
  border: none;
  box-shadow: var(--shadow-elevated);
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-medical {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border: 1px solid transparent;
}

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

.btn-appointment {
  background: var(--gradient-secondary);
  color: var(--secondary-foreground);
  border: 1px solid transparent;
}

.btn-appointment:hover {
  background: var(--secondary);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(0.5rem);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
}

.clinic-name {
  font-weight: bold;
  color: var(--foreground);
}

.doctor-name {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-desktop a:hover {
  color: var(--primary);
}

.cta-desktop {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

.mobile-nav {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-links a {
  display: block;
  padding: 0.5rem 0;
  color: var(--foreground);
  text-decoration: none;
  transition: var(--transition);
}

.mobile-nav-links a:hover {
  color: var(--primary);
}

.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  color: var(--primary-foreground);
}

.credentials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.credentials span {
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-header h3 {
  font-weight: 600;
  color: var(--card-foreground);
}

.credentials-list {
  list-style: none;
}

.credentials-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

.bullet {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

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

.bullet.secondary {
  background-color: var(--secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: bold;
}

.stat-number.primary {
  color: var(--primary);
}

.stat-number.secondary {
  color: var(--secondary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Clinics Section */
.clinics-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.clinic-card {
  padding: 1.5rem;
}

.clinic-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.clinic-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.clinic-name h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--card-foreground);
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge.available {
  background-color: rgba(152, 195, 121, 0.2);
  color: var(--secondary);
}

.badge.weekend {
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.clinic-details {
  margin-bottom: 1.5rem;
}

.detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--card-foreground);
}

.clinic-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Services Section */
.services-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

.service-card {
  padding: 1.5rem;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--card-foreground);
}

.service-card p {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--card-foreground);
}

.cta-section {
  text-align: center;
}

.cta-card {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem;
  background: var(--gradient-card);
  box-shadow: var(--shadow-soft);
}

.cta-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.cta-card p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

/* Appointments Section */
.appointment-container {
  max-width: 64rem;
  margin: 0 auto;
}

.appointment-card {
  padding: 2rem;
  box-shadow: var(--shadow-elevated);
}

.appointment-grid {
  display: grid;
  gap: 2rem;
}

.booking-form h3,
.booking-summary h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--card-foreground);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
}

.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.875rem;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.time-slot {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.time-slot:hover {
  background: var(--accent);
}

.time-slot.selected {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.summary-empty {
  text-align: center;
  padding: 2rem;
}

.summary-content {
  background: rgba(203, 89, 53, 0.1);
  border-radius: var(--radius);
  padding: 1rem;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.summary-item:last-child {
  margin-bottom: 0;
}

.summary-item svg {
  color: var(--primary);
}

.summary-details h4 {
  font-weight: 500;
  color: var(--card-foreground);
}

.summary-details p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.price {
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--primary);
}

.booking-actions {
  margin-top: 1.5rem;
}

.booking-actions .btn {
  width: 100%;
  margin-bottom: 1rem;
}

.payment-info {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

.support-section {
  margin-top: 2rem;
  text-align: center;
}

.support-section p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: var(--foreground);
  color: var(--background);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-text .clinic-name,
.footer-brand .logo-text .doctor-name {
  color: var(--background);
}

.footer-brand p {
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.7;
  margin: 1rem 0;
}

.credentials-footer {
  font-size: 0.875rem;
}

.credential-title {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.credentials-footer div {
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.footer-links h3,
.footer-clinics h3,
.footer-contact h3 {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  display: block;
  font-size: 0.875rem;
  opacity: 0.8;
  color: var(--background);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.clinic-item {
  margin-bottom: 0.75rem;
}

.clinic-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.clinic-details {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-left: 1.5rem;
  line-height: 1.5;
}

.contact-info {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-buttons .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--background);
}

.footer-buttons .btn-outline:hover {
  background: var(--background);
  color: var(--foreground);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem 0;
  text-align: center;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.copyright {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-bottom-links a {
  color: var(--background);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  opacity: 1;
}

.disclaimer {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 1rem;
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .cta-desktop {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .clinics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-buttons {
    flex-direction: row;
  }

  .appointment-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .clinics-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 5rem;
  }

  .hero-subtitle {
    font-size: 2.5rem;
  }
}