/* ============================================================
   Respire BioMed — style.css
   IBM Plex Sans | Light clinical aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,600;1,300&family=IBM+Plex+Serif:wght@300;400&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --navy:       #1A2B45;
  --teal:       #2A9D8F;
  --teal-light: #3AB5A6;
  --white:      #FFFFFF;
  --grey-50:    #F5F6F8;
  --grey-100:   #E8EAED;
  --grey-300:   #B0B7C3;
  --grey-600:   #6B7280;
  --grey-800:   #2D3748;
  --font-main:  'IBM Plex Sans', sans-serif;
  --font-serif: 'IBM Plex Serif', serif;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);
  --radius:     4px;
  --transition: 0.3s ease;
  --max-width:  1120px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--grey-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  height: 72px;
}
.nav.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav__logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav__logo-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav__logo-tagline {
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--teal-light);
  letter-spacing: 0.08em;
  font-style: italic;
  transition: color var(--transition);
}
.nav.scrolled .nav__logo-name  { color: var(--navy); }
.nav.scrolled .nav__logo-tagline { color: var(--teal); }

.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav__links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--teal-light);
  transition: width var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav.scrolled .nav__links a { color: var(--grey-600); }
.nav.scrolled .nav__links a:hover,
.nav.scrolled .nav__links a.active { color: var(--navy); }
.nav.scrolled .nav__links a::after { background: var(--teal); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav.scrolled .nav__hamburger span { background: var(--navy); }
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 999;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--grey-100);
}
.nav__mobile a:last-child { border-bottom: none; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero__bg.loaded { transform: scale(1); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 43, 69, 0.82) 0%,
    rgba(26, 43, 69, 0.60) 50%,
    rgba(42, 157, 143, 0.35) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 760px;
}
.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.3s forwards;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.5s forwards;
}
.hero__title em {
  font-style: italic;
  color: var(--teal-light);
}
.hero__sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.80);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.7s forwards;
}
.hero__cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.9s forwards;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}
.hero__scroll svg { width: 20px; height: 20px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn--primary {
  background: var(--teal);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42,157,143,0.35);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover {
  background: #243c5e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Section Shared ───────────────────────────────────────── */
.section {
  padding: 6rem 2rem;
}
.section--grey { background: var(--grey-50); }
.section--navy {
  background: var(--navy);
  color: var(--white);
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.section--navy .section__label { color: var(--teal-light); }
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.section--navy .section__title { color: var(--white); }
.section__body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--grey-600);
  max-width: 560px;
  line-height: 1.8;
}
.section--navy .section__body { color: rgba(255,255,255,0.7); }

/* ── Home: Cards ──────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 0;
}
.card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card__img { transform: scale(1.05); }
.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,43,69,0.85) 0%, rgba(26,43,69,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: background var(--transition);
}
.card:hover .card__overlay {
  background: linear-gradient(to top, rgba(26,43,69,0.92) 0%, rgba(26,43,69,0.4) 60%, rgba(42,157,143,0.1) 100%);
}
.card__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.4rem;
}
.card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1rem;
}
.card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
  transform: translateX(-8px);
  opacity: 0;
  transition: all var(--transition);
}
.card__arrow svg { width: 16px; height: 16px; }
.card:hover .card__arrow { transform: translateX(0); opacity: 1; }

/* ── Home: Contact Strip ──────────────────────────────────── */
.contact-strip {
  background: var(--navy);
  padding: 4rem 2rem;
}
.contact-strip__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-strip__info {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.contact-strip__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact-strip__item-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-light);
}
.contact-strip__item-value {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
}
.contact-strip__item-value a {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.contact-strip__item-value a:hover { color: var(--teal-light); }

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  position: relative;
  height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,43,69,0.88) 0%,
    rgba(26,43,69,0.50) 100%
  );
}
.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem 3rem;
}
.page-hero__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.6rem;
}
.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
}

/* ── Our Story ────────────────────────────────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.story-img {
  position: relative;
}
.story-img img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}
.story-text { padding: 1rem 0; }
.story-text p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--grey-600);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}
.story-text p:last-child { margin-bottom: 0; }

/* ── Values Strip ─────────────────────────────────────────── */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--grey-100);
  border-bottom: 1px solid var(--grey-100);
}
.value {
  padding: 3rem 2rem;
  border-right: 1px solid var(--grey-100);
  text-align: center;
}
.value:last-child { border-right: none; }
.value__icon {
  width: 48px; height: 48px;
  margin: 0 auto 1.25rem;
  color: var(--teal);
}
.value__title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.value__text {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--grey-600);
  line-height: 1.7;
}

/* ── Expertise ────────────────────────────────────────────── */
.expertise-intro {
  max-width: 700px;
  margin-bottom: 4rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--teal);
  transition: height 0.4s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card:hover::before { height: 100%; }
.product-card__num {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.product-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1rem;
}
.product-card__desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--grey-600);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.product-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.product-tag {
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  color: var(--grey-800);
  font-size: 0.72rem;
  font-weight: 400;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  letter-spacing: 0.03em;
  transition: all var(--transition);
}
.product-card:hover .product-tag {
  background: rgba(42,157,143,0.08);
  border-color: rgba(42,157,143,0.3);
  color: var(--teal);
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact-info { padding-top: 0.5rem; }
.contact-info__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.contact-info__sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--grey-600);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}
.contact-detail__icon {
  width: 40px; height: 40px;
  background: rgba(42,157,143,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
}
.contact-detail__icon svg { width: 18px; height: 18px; }
.contact-detail__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-300);
  margin-bottom: 0.2rem;
}
.contact-detail__value {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--grey-800);
  line-height: 1.5;
}
.contact-detail__value a {
  color: var(--teal);
  transition: color var(--transition);
}
.contact-detail__value a:hover { color: var(--teal-light); }

/* Contact Form */
.contact-form { background: var(--grey-50); padding: 2.5rem; border-radius: var(--radius); }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--grey-800);
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,0.12);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 300;
}
.form-success svg { width: 48px; height: 48px; margin: 0 auto 1rem; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}
.footer__links {
  display: flex;
  gap: 2rem;
}
.footer__links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--teal-light); }

/* ── Scroll Animations ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 3rem; }
  .story-img__accent { display: none; }
  .story-img img { height: 360px; }
  .values { grid-template-columns: 1fr; }
  .value { border-right: none; border-bottom: 1px solid var(--grey-100); }
  .value:last-child { border-bottom: none; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-strip__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .section { padding: 4rem 1.25rem; }
  .page-hero { height: 280px; }
  .hero__title { font-size: 2rem; }
  .contact-form { padding: 1.5rem; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}