/* ============================================
   Integrix Health — Minimal Redesign
   Palette: Navy #1B3664, Teal #00A4A6, Orange #F68B1E,
           Warm White #FAF8F5, Stone #E8E2DA
   Fonts: Inter (clean sans), Playfair Display (warm serif accent)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,500&display=swap');

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

:root {
  --navy: #1B3664;
  --navy-light: #274A80;
  --teal: #00A4A6;
  --teal-dark: #008B8D;
  --teal-light: rgba(0,164,166,0.08);
  --orange: #F68B1E;
  --orange-dark: #E07A10;
  --gold: #FFD200;
  --purple: #7B4FB0;
  --warm-white: #FAF8F5;
  --stone: #E8E2DA;
  --stone-light: #F3EFEB;
  --sand: #C4B8A8;
  --text: #2D3436;
  --text-muted: #636E72;
  --text-light: #8E9499;
  --white: #FFFFFF;
  --border: rgba(27,54,100,0.08);
  --shadow-sm: 0 1px 3px rgba(27,54,100,0.04);
  --shadow-md: 0 4px 16px rgba(27,54,100,0.06);
  --shadow-lg: 0 8px 32px rgba(27,54,100,0.08);
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1120px;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--teal-dark); }
ul { list-style: none; }

/* Typography */
h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: var(--navy);
}

h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.3;
  color: var(--navy);
}

h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--warm { background: var(--warm-white); }
.section--stone { background: var(--stone-light); }

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

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

.section-header p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 2rem;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  line-height: 1.2;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn--primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42,157,143,0.25);
}

.btn--outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn--white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 0.95rem;
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--teal); }

.nav__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer__logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
}
.nav__links a:hover,
.nav__links a.active { color: var(--navy); }

.nav__cta { margin-left: 0.5rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: all var(--ease);
}

/* Hero */
.hero {
  padding: 9rem 0 5rem;
  background: var(--warm-white);
}

.hero--home {
  padding: 10rem 0 6rem;
  background: linear-gradient(170deg, var(--navy) 0%, #0F2440 100%);
  color: var(--white);
}

.hero--page {
  padding: 9rem 0 4rem;
  background: var(--navy);
  color: var(--white);
}

.hero__content {
  max-width: 620px;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero--home h1,
.hero--page h1 {
  color: var(--white);
}

.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero__sub {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.hero--home .hero__sub,
.hero--page .hero__sub {
  color: rgba(255,255,255,0.7);
}

/* Trust Strip */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.trust-strip__inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.trust-strip__item {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-strip__check {
  color: var(--teal);
  font-weight: 700;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card h3 { margin-bottom: 0.5rem; }

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

/* Pillar Cards */
.pillar {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: all var(--ease);
}

.pillar:hover {
  box-shadow: var(--shadow-lg);
}

.pillar__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.pillar__badge--teal {
  background: var(--teal-light);
  color: var(--teal);
}

.pillar__badge--orange {
  background: rgba(246,139,30,0.1);
  color: var(--orange);
}

.pillar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.pillar p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.pillar ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pillar ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* Condition Tiles */
.condition-tile {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--ease);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--text);
}

.condition-tile:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}

.condition-tile__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.condition-tile h4 { margin-bottom: 0.25rem; }

.condition-tile p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Steps */
.steps { max-width: 680px; }

.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 4.25rem;
  bottom: 0;
  width: 1.5px;
  background: var(--stone);
}

.step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.step__body h3 { margin-bottom: 0.4rem; }
.step__body p { color: var(--text-muted); font-size: 0.95rem; }

.step__note {
  font-size: 0.85rem;
  color: var(--teal);
  font-style: italic;
  margin-top: 0.25rem;
}

/* About Grid */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.split p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.split strong { color: var(--navy); }

/* Credentials */
.credentials {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}

.credentials h3 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.credential {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.credential::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* Testimonials */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
}

.testimonial p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.testimonial cite {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--teal);
}

/* Callout */
.callout {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 700px;
}

.callout p {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,157,143,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-banner .btn-group { justify-content: center; position: relative; }

/* Service Detail */
.service-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  margin-bottom: 1.5rem;
}

.service-block h3 { margin-bottom: 0.5rem; }

.service-block p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.service-block ul li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.service-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* Who Is This For */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.fit-col h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fit-col li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.fit-col--yes li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.fit-col--no li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: var(--sand);
  font-weight: 700;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,0.08);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Contact Cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.contact-card h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }

.contact-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform var(--ease);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .faq-answer {
  padding-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 640px;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer__brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer__brand span { color: var(--teal); }

.footer__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer ul li { padding: 0.25rem 0; }

.footer ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color var(--ease);
}

.footer ul li a:hover { color: var(--teal); }

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* Phases */
.phase-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.phase-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.phase-item__num {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal);
}

.phase-item strong {
  color: var(--navy);
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}

.phase-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger > .fade-up:nth-child(2) { transition-delay: 0.08s; }
.stagger > .fade-up:nth-child(3) { transition-delay: 0.16s; }
.stagger > .fade-up:nth-child(4) { transition-delay: 0.24s; }
.stagger > .fade-up:nth-child(5) { transition-delay: 0.32s; }
.stagger > .fade-up:nth-child(6) { transition-delay: 0.4s; }

/* Mobile Nav */
@media (max-width: 900px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 0.6rem 1rem; border-radius: var(--radius); }
  .nav__links a:hover { background: var(--warm-white); }
  .nav__cta { margin-left: 0; width: 100%; margin-top: 0.5rem; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .nav__toggle { display: flex; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 7.5rem 0 3.5rem; }
  .hero--home { padding: 8.5rem 0 4.5rem; }
  .section { padding: 3.5rem 0; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .fit-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .step { gap: 1rem; }
  .step__num { width: 40px; height: 40px; font-size: 0.9rem; }
  .step:not(:last-child)::after { left: 19px; }
}

@media (max-width: 480px) {
  .hero { padding: 6.5rem 0 3rem; }
  .hero--home { padding: 7.5rem 0 3.5rem; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; justify-content: center; }
  .trust-strip__inner { flex-direction: column; align-items: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
}

/* Skip to content */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  background: var(--teal);
  color: var(--white);
  z-index: 9999;
  font-weight: 600;
}
