/* ==========================================================================
   CSS Variables (High-End Clinical Theme)
   ========================================================================== */
:root {
  /* High-Contrast "Trust" Palette */
  --c-blue: #7D9CE6;
  --c-blue-dark: #6281cc;
  --c-yellow: #FCF786;
  --c-green: #79D18A;
  --c-green-dark: #64b875;
  --c-black: #111827;
  /* Darker, stronger black for bold typography */
  --c-white: #FFFFFF;

  /* Layout Colors */
  --c-bg: #F8FAFC;
  --c-surface: #FFFFFF;
  --c-text-main: #374151;
  /* Stronger grey for readability */
  --c-text-muted: #6B7280;
  --c-border: #E5E7EB;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* Borders & Shadows */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-pill: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --nav-bg: rgba(255, 255, 255, 0.98);
  --nav-border: 1px solid var(--c-border);

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Responsive Spacing */
  --section-padding: 6rem;
  --container-padding: 1.5rem;
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem;
    --container-padding: 1.25rem;
  }
}

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

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

body {
  font-family: var(--font-body);
  color: var(--c-text-main);
  background-color: var(--c-surface);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--c-black);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  p {
    font-size: 1.05rem;
  }
}

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

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

ul {
  list-style: none;
}

/* ==========================================================================
   Typography Utilities (Bold & Confident)
   ========================================================================== */
.display-1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.display-2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  color: var(--c-text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-weight: 400;
  line-height: 1.6;
}

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

.text-trust-blue {
  color: var(--c-blue);
}

.text-trust-green {
  color: var(--c-green);
}

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

.fw-bold {
  font-weight: 700;
}

.fw-medium {
  font-weight: 500;
}

/* ==========================================================================
   Layout Containers & Spacing
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
}

.section-lg {
  padding: calc(var(--section-padding) * 1.33) 0;
}

.bg-clinical-white {
  background-color: var(--c-surface);
}

.bg-soft-grey {
  background-color: var(--c-bg);
}

.bg-trust-blue {
  background-color: var(--c-blue);
  color: var(--c-white);
}

.bg-trust-green {
  background-color: var(--c-green);
  color: var(--c-white);
}

/* Overlapping Utilities */
.overlap-container {
  position: relative;
  z-index: 10;
}

.overlap-up {
  margin-top: -6rem;
}

.overlap-down {
  margin-bottom: -6rem;
}

/* Split Layouts */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

@media (max-width: 992px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .split-layout.reverse-mobile .split-image {
    grid-row: 1;
  }

  .overlap-up {
    margin-top: -3rem;
  }
}

/* ==========================================================================
   Image Placeholders
   ========================================================================== */
.img-placeholder {
  width: 100%;
  background-color: var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  font-weight: 600;
  font-family: var(--font-heading);
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
}

.aspect-video {
  aspect-ratio: 16/9;
}

.aspect-square {
  aspect-ratio: 1/1;
}

.aspect-portrait {
  aspect-ratio: 3/4;
}

.aspect-landscape {
  aspect-ratio: 4/3;
}

/* ==========================================================================
   Buttons (High Conversion)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  text-align: center;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    /* Most buttons should be full-width on mobile for better accessibility */
  }

  .btn.btn-inline {
    width: auto;
  }

  /* For cases where we want small buttons */
}



/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: var(--nav-border);
  transition: padding var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: height var(--transition-normal);
}

.navbar.scrolled .logo img {
  height: 40px;
}

/* Global Fixed Logo Visibility */
.navbar .logo img {
  opacity: 1;
  transform: translateX(0);
  transition: height var(--transition-normal);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-black);
  margin-left: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: margin 0.5s ease;
}



.footer .logo-text {
  color: var(--c-white);
  margin-left: 1rem;
  /* Footer logo is usually static, keep margin */
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 1rem;
    margin-left: 0.75rem;
  }
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-text-main);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--c-blue);
}

/* Dropdown Menu */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--c-surface);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-md);
  padding: 1rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 100;
  border: 1px solid var(--c-border);
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--c-text-main);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--c-bg);
  color: var(--c-blue);
}

.dropdown-divider {
  height: 1px;
  background: var(--c-border);
  margin: 0.5rem 0;
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    min-width: 100%;
    display: none;
    /* Toggle this via JS if needed, or just show them all */
  }

  .navbar.menu-open .dropdown-menu {
    display: block;
  }

  .dropdown-item {
    font-size: 1.25rem;
    padding: 0.5rem 0;
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--c-black);
  position: relative;
  transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--c-black);
  transition: transform var(--transition-normal);
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.navbar.menu-open .hamburger {
  background-color: transparent;
}

.navbar.menu-open .hamburger::before {
  transform: translateY(6px) rotate(45deg);
}

.navbar.menu-open .hamburger::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   Trust Badges Strip
   ========================================================================== */
.trust-strip {
  background-color: var(--c-black);
  color: var(--c-white);
  padding: 1rem 0;
}

.trust-strip-inner {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .trust-strip-inner {
    gap: 1.5rem;
    justify-content: flex-start;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trust-item svg {
  color: var(--c-yellow);
}

/* ==========================================================================
   Visual Credentials (Badges)
   ========================================================================== */
.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.badge-trust {
  padding: 0.75rem 1.25rem;
  background: rgba(125, 156, 230, 0.1);
  color: var(--c-blue);
  border: 1px solid rgba(125, 156, 230, 0.2);
  border-radius: var(--border-radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--c-black);
  color: var(--c-white);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--c-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p,
.footer-col a,
.footer-col li {
  color: #9CA3AF;
  font-size: 1rem;
  margin-bottom: 0.875rem;
  display: block;
}

.footer-col a:hover {
  color: var(--c-yellow);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9CA3AF;
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--c-white);
}

.footer .logo img {
  height: 60px;
  /* Slightly larger in footer */
}

/* ==========================================================================
   Animations
   ========================================================================== */


@media (max-width: 768px) {
  .section {
    padding: var(--section-padding) 0;
  }

  .section-lg {
    padding: calc(var(--section-padding) * 1.2) 0;
  }

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

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    padding: 2rem;
    text-align: center;
  }

  .navbar.menu-open .nav-links {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.75rem;
    font-weight: 700;
    width: 100%;
  }

  .nav-links .btn {
    font-size: 1.25rem;
    margin-top: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .trust-strip-inner {
    flex-direction: row;
    gap: 1.25rem;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .trust-strip-inner::-webkit-scrollbar {
    display: none;
  }

  .trust-item {
    font-size: 0.75rem;
  }


}