/* ============================================================
   ClinicFramework Hub — Premium Medical Design System
   Navy (#1a2332) / Gold (#b89c6e) / White
   ============================================================ */

:root {
  --navy:         #1a2332;
  --navy-deep:    #111927;
  --navy-mid:     #212d3f;
  --navy-light:   #2a3a50;
  --gold:         #b89c6e;
  --gold-light:   #d4ba8a;
  --gold-dark:    #9a7f55;
  --gold-glow:    rgba(184, 156, 110, 0.15);
  --white:        #ffffff;
  --cream:        #f0ece4;
  --text:         #d4d8de;
  --text-muted:   #7d8a9a;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-gold:  0 0 40px rgba(184, 156, 110, 0.12);
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET & BASE ──────────────────────────────── */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--navy-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--gold-light);
}

/* ── HEADER ────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 25, 39, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184, 156, 110, 0.12);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

.header-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(184, 156, 110, 0.25);
  border-radius: 6px;
  transition: all var(--transition);
}
.header-nav a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-glow);
}

/* ── HERO ──────────────────────────────────────── */

.hero {
  padding: 8rem 2rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── HUB WHEEL SECTION ─────────────────────────── */

.hub-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: var(--navy);
  position: relative;
}

.wheel-container {
  position: relative;
  width: 620px;
  height: 620px;
}

/* SVG connector lines */
.wheel-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ── CENTER HUB ────────────────────────────────── */

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-mid), var(--navy-deep));
  border: 2.5px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  box-shadow:
    var(--shadow-gold),
    0 0 60px rgba(184, 156, 110, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hub-icon {
  margin-bottom: 6px;
  opacity: 0.9;
}

.hub-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.hub-label {
  font-size: 0.6rem;
  color: var(--gold);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* ── SPOKE NODES ───────────────────────────────── */

.spoke-node {
  position: absolute;
  width: 160px;
  height: 180px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--navy-mid), var(--navy-light));
  border: 1.5px solid rgba(184, 156, 110, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 5;
  text-decoration: none;
  color: var(--text);
}

.spoke-active:hover {
  border-color: var(--gold);
  box-shadow:
    0 0 24px rgba(184, 156, 110, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.spoke-active:hover .spoke-icon {
  color: var(--gold);
}

.spoke-muted {
  opacity: 0.45;
  cursor: default;
}
.spoke-muted:hover {
  opacity: 0.6;
}

.spoke-icon {
  color: var(--gold-light);
  margin-bottom: 8px;
  transition: color var(--transition);
  line-height: 1;
}

.spoke-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 4px;
}

.spoke-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
  padding: 0 4px;
}

.spoke-status {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
}

.status-live {
  background: rgba(39, 174, 96, 0.15);
  color: #4ecb71;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.status-soon {
  background: rgba(125, 138, 154, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(125, 138, 154, 0.2);
}

/* ── RESOURCES & TOOLS SECTION ─────────────────── */

.resources-section {
  padding: 4rem 2rem 5rem;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 50%, var(--navy) 100%);
  position: relative;
}

.resources-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 156, 110, 0.4), transparent);
}

.resources-inner {
  max-width: 900px;
  margin: 0 auto;
}

.resources-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.resources-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.resources-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}

.resources-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ── RESOURCE CARDS ────────────────────────────── */

.resource-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(33, 45, 63, 0.6), rgba(26, 35, 50, 0.8));
  border: 1px solid rgba(184, 156, 110, 0.1);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
  position: relative;
}

.resource-active {
  cursor: pointer;
}

.resource-active:hover {
  border-color: rgba(184, 156, 110, 0.3);
  background: linear-gradient(145deg, rgba(33, 45, 63, 0.8), rgba(42, 58, 80, 0.6));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.resource-active:hover .resource-icon {
  color: var(--gold);
}

.resource-soon {
  opacity: 0.5;
  cursor: default;
}

.resource-icon {
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
  line-height: 1;
  transition: color var(--transition);
}

.resource-content h3 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.resource-content p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.resource-badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 12px;
}

.badge-live {
  background: rgba(39, 174, 96, 0.12);
  color: #4ecb71;
  border: 1px solid rgba(39, 174, 96, 0.25);
}

.badge-soon {
  background: rgba(125, 138, 154, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(125, 138, 154, 0.15);
}

/* ── TAGLINE SECTION ───────────────────────────── */

.tagline-section {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: relative;
}

.tagline-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.tagline-inner {
  max-width: 650px;
  margin: 0 auto;
}

.tagline-text {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.tagline-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── FEATURES SECTION ──────────────────────────── */

.features-section {
  padding: 4rem 2rem 5rem;
  background: var(--navy-deep);
}

.features-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: linear-gradient(145deg, var(--navy-mid), var(--navy));
  border: 1px solid rgba(184, 156, 110, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(184, 156, 110, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CONTACT SECTION ───────────────────────────── */

.contact-section {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--navy);
  border-top: 1px solid rgba(184, 156, 110, 0.08);
}

.contact-inner {
  max-width: 500px;
  margin: 0 auto;
}

.contact-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.contact-inner > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(184, 156, 110, 0.3);
  border-radius: 8px;
  transition: all var(--transition);
}
.contact-link:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ── FOOTER ────────────────────────────────────── */

.site-footer {
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--navy-deep);
  border-top: 1px solid rgba(184, 156, 110, 0.08);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  letter-spacing: 0.3px;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(125, 138, 154, 0.6);
}

/* ── RESPONSIVE ────────────────────────────────── */

@media (max-width: 768px) {

  .hero {
    padding: 7rem 1.5rem 2rem;
  }

  .hub-section {
    padding: 2.5rem 1.5rem;
  }

  .wheel-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0;
  }

  .wheel-lines {
    display: none;
  }

  .wheel-center {
    position: static;
    transform: none;
    margin-bottom: 0.5rem;
  }

  .spoke-node {
    position: static !important;
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 1rem;
    justify-content: flex-start;
    text-align: left;
  }

  .spoke-node .spoke-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .spoke-node .spoke-name {
    font-size: 0.9rem;
  }
  .spoke-node .spoke-name br {
    display: none;
  }

  .spoke-node .spoke-desc {
    width: 100%;
    padding: 0;
    margin-bottom: 6px;
  }

  .spoke-muted {
    opacity: 0.5;
  }

  /* Resources grid: 2 columns on tablet, 1 on small */
  .resources-section {
    padding: 3rem 1.5rem 3.5rem;
  }

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .features-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tagline-section {
    padding: 3.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.8rem 1rem;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .spoke-node {
    max-width: 100%;
  }

  /* Resources grid: single column on phone */
  .resources-grid {
    grid-template-columns: 1fr;
  }
}

/* ── SUBTLE ANIMATIONS ─────────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  animation: fadeInUp 0.6s ease both;
}
.hero-title {
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero-subtitle {
  animation: fadeInUp 0.6s ease 0.2s both;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 0 40px rgba(184, 156, 110, 0.08),
      0 0 60px rgba(184, 156, 110, 0.04);
  }
  50% {
    box-shadow:
      0 0 50px rgba(184, 156, 110, 0.14),
      0 0 80px rgba(184, 156, 110, 0.06);
  }
}

.wheel-center {
  animation: pulseGlow 4s ease-in-out infinite;
}
