/* =========================================================
   Nexus Core Physicians LLC – Stylesheet
   Color Palette: Navy #1B2A4A, Teal #2ABFBF, White, Light Gray
   Fonts: Outfit (headings), Inter (body)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --navy: #1B2A4A;
  --navy-light: #243656;
  --teal: #2ABFBF;
  --teal-dark: #229E9E;
  --teal-glow: rgba(42, 191, 191, 0.15);
  --white: #ffffff;
  --off-white: #F7F9FC;
  --gray-light: #E8ECF1;
  --gray-mid: #9BA4B0;
  --gray-text: #5A6375;
  --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 6px 24px rgba(27, 42, 74, 0.10);
  --shadow-lg: 0 12px 40px rgba(27, 42, 74, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }

.section-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-text);
  max-width: 620px;
  line-height: 1.75;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* ---------- Badges / Pills ---------- */
.badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--teal-glow);
  color: var(--teal-dark);
  margin-right: 8px;
  margin-bottom: 8px;
}

.badge--navy {
  background: rgba(27, 42, 74, 0.08);
  color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(42, 191, 191, 0.30);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42, 191, 191, 0.40);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-link {
  background: none;
  padding: 0;
  color: var(--teal);
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.btn-link:hover {
  border-bottom-color: var(--teal);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-light);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-group img {
  height: 50px;
  width: auto;
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--gray-text);
  font-weight: 500;
  line-height: 1.3;
  max-width: 200px;
  border-left: 2px solid var(--gray-light);
  padding-left: 12px;
}

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

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
  position: relative;
  transition: color var(--transition);
}

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

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('hero-bg.png') no-repeat center right / contain;
  opacity: 0.5;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .highlight {
  color: var(--teal);
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--gray-text);
  margin-bottom: 16px;
}

.hero-badges {
  margin-bottom: 36px;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  max-width: 420px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(27, 42, 74, 0.08));
}

/* ---------- At a Glance ---------- */
.at-a-glance {
  padding: 80px 0;
  background: var(--white);
}

.glance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.glance-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
}

.glance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.glance-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--teal-glow);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glance-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glance-card h3 {
  margin-bottom: 8px;
}

.glance-card p {
  font-size: 0.92rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ---------- About Preview ---------- */
.about-preview {
  padding: 90px 0;
  background: var(--off-white);
}

.about-preview .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-preview-visual {
  position: relative;
}

.about-preview-visual .network-motif {
  width: 100%;
  max-width: 400px;
  opacity: 0.12;
}

.about-preview-text h2 {
  margin-bottom: 20px;
}

.about-preview-text p {
  color: var(--gray-text);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ---------- Network Motif Band ---------- */
.motif-band {
  position: relative;
  overflow: hidden;
}

.motif-band::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('hero-bg.png') repeat-x center / auto 100%;
  opacity: 0.06;
  pointer-events: none;
}

/* ---------- Facilities Section ---------- */
#facilities {
  background: var(--white);
}

.facilities-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.service-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.service-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--teal-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-bottom: 6px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.65;
}

/* ---------- How it Works ---------- */
.how-it-works {
  padding: 80px 0;
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.how-it-works::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('hero-bg.png') no-repeat center / cover;
  opacity: 0.04;
  pointer-events: none;
}

.how-it-works .container {
  position: relative;
  z-index: 1;
}

.how-it-works .section-label { color: var(--teal); }
.how-it-works h2 { color: var(--white); margin-bottom: 48px; }

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.step p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 26px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: rgba(42, 191, 191, 0.4);
}

/* ---------- Physicians Section ---------- */
#physicians {
  background: var(--white);
}

.physicians-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.physicians-text .section-subtitle {
  margin-bottom: 32px;
}

.physicians-list {
  margin-bottom: 36px;
}

.physicians-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  color: var(--gray-text);
  line-height: 1.7;
}

.physicians-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.physicians-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.physicians-visual .decorative-card {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
}

.decorative-card .stat-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
}

.stat-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.stat-desc {
  font-size: 0.82rem;
  color: var(--gray-text);
}

/* ---------- About & Contact ---------- */
#about-contact {
  background: var(--off-white);
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}

.about-section.reversed {
  grid-template-columns: 1.2fr 1fr;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
}

.about-card h3 {
  margin-bottom: 4px;
}

.about-card .role {
  font-size: 0.88rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.about-card p {
  color: var(--gray-text);
  line-height: 1.75;
}

.mission-text p {
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ---------- Contact Form ---------- */
.contact-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
}

.contact-section h2 {
  margin-bottom: 8px;
}

.contact-intro-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-intro-col h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--navy);
}

.contact-intro-col p {
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.6;
}

.phi-disclaimer {
  background: rgba(42, 191, 191, 0.06);
  border: 1px solid rgba(42, 191, 191, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.phi-disclaimer svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
  margin-top: 1px;
}

.phi-disclaimer p {
  font-size: 0.84rem;
  color: var(--navy);
  line-height: 1.6;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group label .optional {
  font-weight: 400;
  color: var(--gray-mid);
  font-size: 0.78rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  padding: 12px 16px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  color: var(--navy);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

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

.form-submit {
  margin-top: 8px;
}

.form-submit .btn {
  width: auto;
}

.contact-details {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-light);
  text-align: center;
}

.contact-details p {
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.7;
}

.contact-details a {
  color: var(--teal);
  font-weight: 600;
}

.contact-details a:hover {
  text-decoration: underline;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success svg {
  width: 56px;
  height: 56px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
  margin: 0 auto 16px;
}

.form-success h3 {
  margin-bottom: 8px;
}

.form-success p {
  color: var(--gray-text);
}

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

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left p {
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-right p {
  font-size: 0.75rem;
  max-width: 480px;
  line-height: 1.6;
  text-align: right;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }

  .about-preview .container,
  .about-section,
  .about-section.reversed {
    grid-template-columns: 1fr;
  }

  .physicians-split {
    grid-template-columns: 1fr;
  }

  .physicians-visual { order: -1; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .steps-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:not(:last-child)::after { display: none; }
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 1000;
  }

  .nav-links.open { right: 0; }

  .nav-links a { font-size: 1.1rem; }

  .hamburger { display: flex; }

  .glance-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps-row {
    grid-template-columns: 1fr;
  }

  .contact-section { padding: 32px 20px; }
  .contact-intro-cols { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

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

  .footer-right p { text-align: center; }
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 74, 0.3);
  z-index: 999;
}

.nav-overlay.open {
  display: block;
}
