:root {
  /* Premium Medic Colors */
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-dark: #025983; /* Matching primary logo blue */
  --bg-light: #f8fafc;
  
  --primary: #025983; /* Deep, trustful Medical Blue */
  --primary-hover: #02486a;
  --primary-light: #e0f2fe;
  
  --accent: #0ea5e9; /* Light blue accent */
  --accent-soft: #f0f9ff;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --text-light-muted: #94a3b8;
  
  --border-subtle: #e2e8f0;
  
  /* Radii & Shadows */
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.1);
  --shadow-floating: 0 30px 60px rgba(2, 89, 131, 0.08);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Offset for sticky nav */
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Outfit", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  color: var(--primary);
  letter-spacing: -0.02em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

p {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

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

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-fluid {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Utility Classes */
.text-white { color: var(--text-light); }
.text-light-muted { color: var(--text-light-muted); }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.mb-8 { margin-bottom: 2rem; }
.full-width { width: 100%; }
.radius-lg { border-radius: var(--radius-lg); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Buttons */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(2, 89, 131, 0.39);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 89, 131, 0.4);
}

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

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

/* Navigation */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: all var(--transition-fast);
}

.topbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  padding: 4px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  transition: height var(--transition-fast);
  max-width: 1920px;
  width: 100%;
  padding: 0 5%;
}

.topbar.scrolled .topbar-inner {
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  height: 80px;
  width: auto;
  transition: height var(--transition-fast);
}

.topbar.scrolled .brand-logo {
  height: 60px;
}

.brand-mark-fallback {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  display: none;
}

.brand-subtitle {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}

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

.nav a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

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

.nav a:hover { color: var(--primary); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
}

/* Sections */
main {
   /* Adjust for fixed header */
   padding-top: 1px; /* Prevent margin collapse */
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-inner-wide {
  max-width: 1400px;
  margin: 0 auto;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header {
  margin-bottom: 56px;
  max-width: 600px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-caption {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh; /* Make it substantial */
  display: flex;
  align-items: center;
  padding-top: 140px; /* Offset for larger nav */
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-soft) 100%);
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(226, 232, 240, 0.4) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1920px;
  width: 100%;
  padding: 0 5%;
}

.split-hero {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 0;
  align-items: center;
}

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

.hero-image-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  z-index: 0;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--primary);
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

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

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

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

.service-image {
  height: 220px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 16px;
  color: var(--primary);
}

.service-card:hover .service-link {
  color: var(--accent);
  padding-left: 8px; /* Slight slide effect */
}

/* Praxis Section */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.align-center {
  align-items: center;
}

.image-stack {
  position: relative;
}

.image-stack .img-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  scroll-snap-align: start;
}

.experience-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--primary);
  color: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  text-align: center;
  border: 4px solid var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-divider {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  margin: 16px auto;
  border-radius: 2px;
}

.exp-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.exp-text {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}

/* Slider Arrows */
.slider-wrapper {
  position: relative;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  transition: all var(--transition-fast);
}

.slider-arrow:hover {
  background: var(--primary);
  color: white;
}

.prev-arrow {
  left: -24px;
}

.next-arrow {
  right: -24px;
}

.team-track::-webkit-scrollbar {
  display: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 1.05rem;
}

.check-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Contact Section */
.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--text-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.info-blocks {
  display: grid;
  gap: 32px;
}

.info-block {
  display: flex;
  gap: 20px;
}

.info-block .icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 4px 0;
  vertical-align: top;
}

.hours-table td:first-child {
  padding-right: 16px;
  font-weight: 500;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-elevated);
  padding: 48px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.contact-form-wrapper h3 {
  color: var(--primary);
  margin-bottom: 32px;
  font-size: 1.5rem;
}

.custom-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-light);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
  color: var(--text-main);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.custom-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.form-submit {
  margin-top: 12px;
  padding: 16px;
  font-size: 1.1rem;
}

.form-disclaimer {
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.footer {
  background-color: #02486a; /* Darker blue matching logo */
  color: var(--text-light-muted);
  padding: 80px 0 32px;
  margin-top: auto;
}

.footer-grid-simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer-col p {
  color: var(--text-light-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col a {
  color: var(--text-light-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.hours-table-footer {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-light-muted);
  line-height: 1.8;
}

.hours-table-footer td:first-child {
  padding-right: 16px;
  font-weight: 500;
  width: 60px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  text-align: center;
  font-size: 0.875rem;
}

/* Animations (Reveal via JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    padding-top: 120px;
  }
  
  .hero-inner {
    order: 2;
  }

  .two-col, .contact-grid, .split-hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    position: relative;
    width: calc(100% - 48px);
    height: auto;
    aspect-ratio: 4/3;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin: 0 auto 40px;
    order: 1;
  }
  
  .experience-badge {
    bottom: 24px;
    right: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav, .nav-cta {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    transform: none;
    margin-top: 40px;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .section {
    padding: 64px 0;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .contact-form-wrapper {
    padding: 24px;
  }
}

/* Google Maps Placeholder */
.map-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.map-placeholder svg {
  color: var(--primary);
  margin-bottom: 16px;
}

.map-placeholder p {
  margin-top: 16px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 400px;
}

.map-iframe {
  display: none;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-xl);
}

/* Contact Form Feedback Status & Disabled States */
.form-status {
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  font-weight: 500;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
  animation: formStatusFadeIn 0.3s ease-in-out;
}

.form-status.success {
  background-color: rgba(16, 185, 129, 0.15); /* light green background */
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-status.error {
  background-color: rgba(239, 68, 68, 0.15); /* light red background */
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-primary:disabled {
  background-color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

@keyframes formStatusFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
