/* ============================================================
   home.css — Homepage styles for MedRec Medical Group
   Medical Network · Patient Services · Billing & Collections
   ============================================================ */

/* ── HEADER: Dropped link pill ──────────────────────────── */
.header-dropped-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage);
  padding: 7px 13px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(45,122,95,.25);
  background: var(--sage-faint);
  transition: all var(--t);
  white-space: nowrap;
}
.header-dropped-link:hover {
  background: rgba(45,122,95,.14);
  border-color: var(--sage);
  color: var(--sage-dk);
}
.header-dropped-link i { font-size: 0.72rem; }

.dropped-mobile-link { color: var(--sage) !important; }

/* ── HERO ───────────────────────────────────────────────── */
.home-hero {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 72px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-bg-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hbd-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(18,43,75,.055);
}
.ring-1 {
  width: 640px; height: 640px;
  top: -220px; right: -160px;
}
.ring-2 {
  width: 380px; height: 380px;
  top: -60px; right: 60px;
  border-color: rgba(45,122,95,.06);
}

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

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--slate);
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 7px 14px;
  margin-bottom: 22px;
  width: fit-content;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
}

.home-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.home-h1 em { font-style: italic; color: var(--sage); }

.home-hero-sub {
  font-size: 1.0625rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 34px;
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero right: pillar cards */
.hero-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.hp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t);
}
.hp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hp-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.hp-icon-navy { background: rgba(18,43,75,.07); color: var(--navy); }
.hp-icon-sage { background: var(--sage-faint); color: var(--sage); }
.hp-icon-gold { background: rgba(184,151,90,.1); color: var(--gold); }

.hp-body { display: flex; flex-direction: column; gap: 2px; }
.hp-body strong { font-size: 0.875rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.hp-body span { font-size: 0.72rem; color: var(--text-light); font-weight: 500; line-height: 1.3; }

/* ── SPECIALTY BAR ──────────────────────────────────────── */
.specialty-bar {
  background: var(--navy);
  padding: 0;
  border-bottom: 3px solid var(--gold);
}
.specialty-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.sbar-label {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
  flex-shrink: 0;
}
.sbar-items {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,.62);
  padding: 5px 12px;
  border-radius: 3px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.sbar-item:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.sbar-item i { font-size: 0.7rem; color: var(--gold-lt); }

/* ── SERVICES GRID ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(18,43,75,.15);
}
/* Two large featured cards sit side by side, spanning the first row visually */
.svc-card-lg {
  border-top: 3px solid var(--navy);
}
.svc-card-alt {
  border-top: 3px solid var(--sage);
}
.svc-card-inner {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.svc-icon-wrap {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.svc-icon-navy { background: var(--navy); color: var(--white); }
.svc-icon-sage  { background: var(--sage); color: var(--white); }
.svc-icon-sm {
  width: 44px; height: 44px;
  font-size: 1rem;
  background: var(--stone);
  border: 1px solid var(--border);
  color: var(--navy);
}
.svc-icon-muted { color: var(--sage) !important; }

.svc-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.svc-card p {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
}

.svc-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.svc-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-body);
}
.svc-list li i { color: var(--sage); font-size: 0.72rem; flex-shrink: 0; }

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: auto;
  padding-top: 4px;
  transition: gap var(--t), color var(--t);
}
.svc-link:hover { gap: 10px; }
.svc-link-sage { color: var(--sage); }
.svc-link-sage:hover { color: var(--sage-dk); }

/* ── SPLIT SECTION (reusable) ───────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 68px;
  align-items: center;
}

/* Network specialties grid */
.network-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 28px;
}
.nsg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: 0.01em;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t-slow) var(--ease);
}
.nsg-item:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.nsg-icon {
  width: 30px; height: 30px;
  background: var(--stone);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-size: 0.8rem;
}

/* Credentialing panel */
.cred-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.cred-panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-lt);
}
.cred-header-icon {
  width: 44px; height: 44px;
  background: var(--sage-faint);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage);
  font-size: 1.0625rem;
  flex-shrink: 0;
}
.cred-panel-header strong { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--navy); }
.cred-panel-header span { font-size: 0.775rem; color: var(--text-light); }
.cred-list { display: flex; flex-direction: column; gap: 16px; }
.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cred-dot {
  width: 8px; height: 8px;
  background: var(--navy);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.cred-item strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.cred-item span { font-size: 0.8rem; color: var(--text-mid); line-height: 1.5; }

/* ── PATIENT SERVICES GRID ──────────────────────────────── */
.patient-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ps-card {
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t), background var(--t);
}
.ps-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: var(--white); }
.ps-icon {
  width: 46px; height: 46px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-size: 1.0625rem;
  box-shadow: var(--shadow-xs);
}
.ps-card h3 { font-size: 0.9375rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.ps-card p { font-size: 0.8375rem; color: var(--text-mid); line-height: 1.65; }

/* ── BILLING & COLLECTIONS LAYOUT ──────────────────────── */
.billing-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: start;
}
.billing-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* RCM steps */
.rcm-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.rcm-num {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(18,43,75,.2);
}
.rcm-body { flex: 1; padding-bottom: 4px; }
.rcm-body strong { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.rcm-body p { font-size: 0.8375rem; color: var(--text-mid); line-height: 1.65; }
.rcm-connector {
  width: 2px; height: 22px;
  background: var(--border);
  margin-left: 17px;
  margin: 6px 0 6px 17px;
}

/* Billing feature tiles */
.bspec-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  transition: border-color var(--t), box-shadow var(--t);
}
.bspec-item:hover { border-color: rgba(18,43,75,.2); box-shadow: var(--shadow-sm); }
.bspec-icon {
  width: 38px; height: 38px;
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.bspec-body strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.bspec-body p { font-size: 0.8125rem; color: var(--text-mid); line-height: 1.6; }

.billing-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--sage-faint);
  border: 1px solid rgba(45,122,95,.2);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  font-size: 0.8375rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-top: 4px;
}
.billing-note i { color: var(--sage); font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.billing-note strong { display: block; color: var(--sage-dk); font-weight: 700; margin-bottom: 3px; }
.billing-note a { color: var(--sage); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ── ABOUT VALUES ───────────────────────────────────────── */
.about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.av-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.av-item:hover { background: var(--white); border-color: rgba(18,43,75,.18); box-shadow: var(--shadow-sm); }
.av-icon {
  width: 40px; height: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.av-body strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.av-body p { font-size: 0.8125rem; color: var(--text-mid); line-height: 1.6; }

/* ── DROPPED CASES RIBBON ───────────────────────────────── */
.dropped-ribbon {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 28px 0;
}
.dropped-ribbon-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.dr-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-lt);
  font-size: 1.375rem;
  flex-shrink: 0;
}
.dr-text { flex: 1; min-width: 200px; }
.dr-text strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.dr-text span {
  font-size: 0.8375rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}
.btn-dropped-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.4);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--t);
}
.btn-dropped-ribbon:hover {
  background: rgba(255,255,255,.18);
  border-color: var(--white);
  transform: translateY(-1px);
}

/* ── CONTACT LAYOUT ─────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 60px;
  align-items: start;
}
.contact-reasons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.cr-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}
.cr-icon {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.cr-item strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.cr-item span { font-size: 0.8rem; color: var(--text-mid); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .home-hero-inner { grid-template-columns: 1fr; }
  .hero-pillars { grid-template-columns: repeat(2, 1fr); max-width: 400px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 44px; }
  .network-spec-grid { grid-template-columns: repeat(4, 1fr); }
  .patient-services-grid { grid-template-columns: 1fr 1fr; }
  .billing-layout { grid-template-columns: 1fr; gap: 44px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .home-hero { padding-top: calc(var(--header-h) + 44px); padding-bottom: 56px; }
  .home-hero-actions { flex-direction: column; }
  .home-hero-actions .btn { width: 100%; justify-content: center; }
  .hero-pillars { max-width: 100%; }
  .specialty-bar-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sbar-items { gap: 8px; }
  .services-grid { grid-template-columns: 1fr; }
  .network-spec-grid { grid-template-columns: repeat(2, 1fr); }
  .patient-services-grid { grid-template-columns: 1fr; }
  .dropped-ribbon-inner { flex-direction: column; align-items: flex-start; }
  .btn-dropped-ribbon { width: 100%; justify-content: center; }
  .header-dropped-link { display: none; }
}

@media (max-width: 480px) {
  .hero-pillars { grid-template-columns: 1fr; max-width: 100%; }
  .network-spec-grid { grid-template-columns: repeat(2, 1fr); }
  .home-h1 { font-size: 1.75rem; }
}
