/* ===================================
   Flexara Health — Styles
   =================================== */

:root {
  --space-cadet: #22203a;
  --cool-white: #f4f5f7;
  --silver: #c0c4cc;
  --steel: #7a8194;
  --deep-navy: #131225;
  --mission-bg: #1a1830;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  color: var(--cool-white);
  background: var(--space-cadet);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ===================================
   Section Utilities
   =================================== */

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: block;
  font-family: 'Jura', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 48px;
}

/* ===================================
   Nav
   =================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--space-cadet);
  border-bottom: 1px solid rgba(192, 196, 204, 0.1);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  mix-blend-mode: lighten;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--silver);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cool-white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cool-white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================================
   Hero
   =================================== */

.hero {
  background: var(--space-cadet);
  padding: 180px 24px 120px;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  height: 80px;
  width: auto;
  margin: 0 auto 48px;
  mix-blend-mode: lighten;
}

.hero h1 {
  font-weight: 700;
  font-size: 42px;
  line-height: 1.2;
  color: var(--cool-white);
  margin-bottom: 20px;
}

.hero-sub {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--silver);
  max-width: 600px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--cool-white);
  border: 1px solid var(--silver);
  padding: 14px 36px;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--cool-white);
  color: var(--space-cadet);
}

/* ===================================
   Portfolio
   =================================== */

.portfolio {
  background: var(--cool-white);
  padding: 100px 0;
}

.portfolio .section-label {
  color: var(--steel);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--space-cadet);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.card-link {
  transition: transform 0.2s;
}

.card-link:hover {
  transform: translateY(-4px);
}

.card-badge {
  font-family: 'Jura', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid rgba(192, 196, 204, 0.3);
  padding: 4px 12px;
  align-self: flex-start;
  margin-bottom: 24px;
}

.card-name {
  font-weight: 700;
  font-size: 22px;
  color: var(--cool-white);
  margin-bottom: 12px;
}

.card-desc {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--silver);
  flex: 1;
}

.card-cta {
  font-weight: 500;
  font-size: 13px;
  color: var(--cool-white);
  margin-top: 20px;
  letter-spacing: 0.02em;
}

/* ===================================
   Founder / About
   =================================== */

.founder {
  background: var(--space-cadet);
  padding: 100px 0;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.founder-text h2 {
  font-weight: 700;
  font-size: 32px;
  color: var(--cool-white);
  margin-bottom: 4px;
}

.founder-title {
  font-weight: 500;
  font-size: 14px;
  color: var(--silver);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.founder-creds {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--silver);
  margin-bottom: 20px;
}

.founder-bio {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cool-white);
}

.founder-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

/* ===================================
   Mission
   =================================== */

.mission {
  background: var(--mission-bg);
  padding: 100px 0;
}

.mission-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.7;
  color: var(--cool-white);
}

/* ===================================
   Footer
   =================================== */

.footer {
  background: var(--deep-navy);
  padding: 64px 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin: 0 auto 32px;
  mix-blend-mode: lighten;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-links a {
  font-weight: 300;
  font-size: 14px;
  color: var(--silver);
  transition: color 0.2s;
}

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

.footer-copy {
  font-weight: 200;
  font-size: 13px;
  color: var(--steel);
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 768px) {
  /* Nav mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--space-cadet);
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    gap: 24px;
    border-bottom: 1px solid rgba(192, 196, 204, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 16px;
  }

  /* Hero mobile */
  .hero {
    padding: 140px 24px 80px;
  }

  .hero-logo {
    height: 56px;
    margin-bottom: 36px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 16px;
  }

  /* Portfolio mobile */
  .portfolio {
    padding: 72px 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    min-height: auto;
    padding: 32px 24px;
  }

  /* Founder mobile */
  .founder {
    padding: 72px 0;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .founder-text {
    order: 1;
  }

  .founder-photo {
    order: 2;
    max-width: 320px;
  }

  .founder-text h2 {
    font-size: 26px;
  }

  /* Mission mobile */
  .mission {
    padding: 72px 0;
  }

  .mission-text {
    font-size: 17px;
  }

  /* Footer mobile */
  .footer {
    padding: 48px 0;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}
