/* PatientLead Health - Marketing Site
   Shared design system across Throughline + PriorAuthPro.
   Static site, Cloudflare Pages deployment.
*/

:root {
  --dark: #2b4142;
  --sage: #a3b9a3;
  --dark-sage: #4a6e4a;
  --light-sage: #ebf0eb;
  --rose: #ecd1cb;
  --terracotta: #c97f6d;
  --cta: #c2552a;
  --cta-hover: #a8441f;
  --deep: #864232;
  --warm-bg: #FAF8F5;
  --card-bg: #FFFFFF;
  --sand: #F0EBE3;
  --text: #2b4142;
  --text-secondary: #4a6e6e;
  --border: #DDD8D0;
  --heading: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--dark);
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

/* ============================================
   NAVIGATION
   ============================================ */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 2px solid var(--sage);
  box-shadow: 0 1px 8px rgba(43,65,66,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a:focus { color: var(--cta); }

.nav-cta {
  background: var(--cta) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover,
.nav-cta:focus { background: var(--cta-hover) !important; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 0.75rem;
    border-bottom: 2px solid var(--sage);
    box-shadow: 0 4px 8px rgba(43,65,66,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
}

/* ============================================
   LAYOUT
   ============================================ */

.container { max-width: 960px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }

section { padding: 5rem 0; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark);
  background: var(--light-sage);
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: 10rem 2rem 5rem;
  text-align: center;
  background: var(--warm-bg);
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-badge {
  display: inline-block;
  background: var(--light-sage);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.75rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.9rem 2.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 4px 16px rgba(194,85,42,0.2);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(194,85,42,0.3);
}

.btn-secondary {
  background: var(--dark);
  color: #fff;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #1d2e2f;
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}
.btn-outline:hover,
.btn-outline:focus {
  background: var(--dark);
  color: #fff;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   CARDS
   ============================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* ============================================
   PRODUCT CARDS (homepage)
   ============================================ */

.product-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: left;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(43,65,66,0.08);
  border-color: var(--sage);
}

.product-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.product-badge-throughline {
  background: var(--light-sage);
  color: var(--dark-sage);
}

.product-badge-pap {
  background: var(--sand);
  color: var(--deep);
}

.product-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.product-card .product-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.product-card .btn { font-size: 0.9rem; padding: 0.7rem 1.5rem; }

/* ============================================
   DARK SECTIONS
   ============================================ */

.dark-section {
  background: var(--dark);
  color: #fff;
}
.dark-section h2 { color: #fff; }
.dark-section .section-label {
  background: rgba(163,185,163,0.2);
  color: var(--sage);
}
.dark-section .section-desc { color: rgba(255,255,255,0.75); }
.dark-section .card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.dark-section .card h3 { color: #fff; }
.dark-section .card p { color: rgba(255,255,255,0.7); }

/* ============================================
   SAGE SECTIONS
   ============================================ */

.sage-section { background: var(--light-sage); }

/* ============================================
   LEGAL PAGES
   ============================================ */

.legal-hero {
  padding: 9rem 2rem 3rem;
  background: var(--warm-bg);
}
.legal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.legal-hero .meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legal-content { padding: 3rem 0 5rem; }
.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul, .legal-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
}
.legal-content li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.legal-content a { color: var(--cta); }

.legal-callout {
  background: var(--light-sage);
  border-left: 4px solid var(--sage);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.legal-callout p { font-size: 0.95rem; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.legal-table th, .legal-table td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.legal-table th {
  font-weight: 600;
  width: 30%;
  color: var(--dark);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--warm-bg);
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}
.footer-brand-name {
  margin-bottom: 0.5rem;
}
.footer-logo-img {
  height: 32px;
  width: auto;
}
.footer-brand-name span { color: var(--sage); }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.2rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

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

.footer-legal a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-left: 1.5rem;
}
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
  .hero { padding: 8rem 1.5rem 3rem; }
  section { padding: 3rem 0; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal a { margin-left: 0; margin-right: 1rem; }
}
