/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables for Premium Design Tokens */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Color Palette */
  --color-primary: #0d5c75;       /* Clinical Teal */
  --color-primary-dark: #083c4d;  /* Dark Teal */
  --color-primary-light: #e0f2fe; /* Light Teal accent */
  --color-secondary: #2563eb;     /* Clinical Blue */
  --color-secondary-dark: #1d4ed8;
  --color-accent: #0ea5e9;        /* Sky Blue accent */
  
  --color-bg-base: #f8fafc;       /* Very light slate */
  --color-bg-card: #ffffff;
  --color-bg-dark: #0f172a;       /* Dark slate for footer/hero background */
  --color-bg-teal-light: #f0f7f9;
  
  --color-text-dark: #0f172a;     /* Near black */
  --color-text-muted: #475569;    /* Medium gray-blue */
  --color-text-light: #f8fafc;
  
  --color-border: #e2e8f0;
  --color-success: #10b981;
  
  /* Layout & Spacing */
  --max-width: 1200px;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Shadow & Transitions */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(13, 92, 117, 0.08), 0 8px 10px -6px rgba(13, 92, 117, 0.05);
  --shadow-premium: 0 20px 40px -15px rgba(13, 92, 117, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base resets & styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(13, 92, 117, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 92, 117, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: 70px;
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.95);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.logo-icon {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(13, 92, 117, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary-dark);
  margin: 6px 0;
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, #e0f2fe 0%, #f0f7f9 40%, var(--color-bg-base) 80%);
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 92, 117, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
  z-index: 1;
  position: relative;
}

.hero-content {
  max-width: 650px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: white;
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-tagline-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--color-primary-dark);
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
  border-top: 1px solid var(--color-border);
  padding-top: 32px;
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic-bg {
  position: absolute;
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, var(--color-primary-light), rgba(14, 165, 233, 0.1));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphing 15s infinite alternate ease-in-out;
  z-index: -1;
}

@keyframes morphing {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero-graphic {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 20px 30px rgba(13, 92, 117, 0.15));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Services Section */
.services {
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--color-bg-base);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  transition: var(--transition-bounce);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: transparent;
  background-color: white;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--color-primary);
  color: white;
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.35rem;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.service-card:hover .service-link {
  color: var(--color-secondary);
}

/* About Section */
.about {
  background-color: var(--color-bg-teal-light);
  position: relative;
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.about-graphics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
}

.about-card {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.about-card-featured {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: white;
}

.about-card-featured h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.about-card h4 {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.about-card-featured p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.about-content h2 {
  font-size: 2.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 24px;
}

.about-content .desc {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.about-partners {
  background-color: white;
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.about-partners h4 {
  font-size: 1rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.partners-list {
  display: flex;
  gap: 40px;
}

.partner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.partner-avatar {
  width: 44px;
  height: 44px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.partner-info h5 {
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.partner-info p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Contact Section & Footer */
.contact-section {
  background-color: var(--color-bg-dark);
  color: white;
  padding: 100px 0 50px;
}

.contact-section .section-title {
  color: white;
}

.contact-section .section-desc {
  color: rgba(255, 255, 255, 0.6);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  margin-bottom: 80px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.contact-info-item:hover .contact-icon-box {
  background-color: var(--color-primary);
  color: white;
  transform: scale(1.05);
}

.contact-info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: white;
}

.contact-info-text p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.contact-form-panel {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  color: white;
  transition: var(--transition-smooth);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.form-group select option {
  background-color: var(--color-bg-dark);
  color: white;
}

.contact-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-footer-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
}

.contact-footer-logo span {
  color: var(--color-accent);
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  color: white;
}

/* Modals & Dialogs (Test Booking modal) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: white;
  width: 100%;
  max-width: 600px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border: 1px solid var(--color-border);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  background-color: var(--color-primary-dark);
  color: white;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.35rem;
  color: white;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.modal-body {
  padding: 30px;
}

.modal-body form .form-group label {
  color: var(--color-text-dark);
}

.modal-body form .form-group input,
.modal-body form .form-group select,
.modal-body form .form-group textarea {
  background-color: white;
  border: 1px solid var(--color-border);
  color: var(--color-text-dark);
}

.modal-body form .form-group input:focus,
.modal-body form .form-group select:focus,
.modal-body form .form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 92, 117, 0.15);
}

/* Success notifications toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--color-bg-dark);
  color: white;
  padding: 16px 24px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 4px solid var(--color-success);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--color-success);
  font-weight: bold;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .about .container {
    gap: 40px;
  }
  
  .contact-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 24px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }
  
  .nav.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.15rem;
    width: 100%;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-tagline {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-graphic-bg {
    width: 320px;
    height: 320px;
  }
  
  .hero-graphic {
    max-width: 280px;
  }
  
  .about .container {
    grid-template-columns: 1fr;
  }
  
  .about-graphics {
    order: 1;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .contact-footer {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}
