/* ============================================================
   HealthLaw Training — Stylesheet
   Palette: Navy / Teal / Off-white
   Typefaces: Lora (serif, self-hosted) + system sans
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-Italic-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --navy:        #0D2240;
  --navy-mid:    #163354;
  --navy-light:  #1E4570;
  --teal:        #1A7B8C;
  --teal-bright: #22A0B4;
  --teal-pale:   #EAF5F7;
  --gold:        #C8A84B;
  --white:       #FFFFFF;
  --off-white:   #F6FAFB;
  --text:        #1C2B3A;
  --text-muted:  #5B7282;
  --border:      #D0E4EA;

  --font-serif:  'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius:      6px;
  --shadow-sm:   0 1px 4px rgba(13,34,64,.08);
  --shadow-md:   0 4px 18px rgba(13,34,64,.12);
  --shadow-lg:   0 8px 40px rgba(13,34,64,.18);

  --max-w:       1160px;
  --section-py:  5rem;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-bright); }
ul { list-style: none; }
:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout helpers ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: var(--section-py) 0; }
.section--pale { background: var(--off-white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--teal-pale { background: var(--teal-pale); }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}
.section-label--white { color: var(--teal-bright); }

.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-top: .5rem;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin: 1.25rem 0 1.75rem;
}
.divider--gold { background: var(--gold); }
.divider--center { margin-left: auto; margin-right: auto; }
.divider--white { background: var(--teal-bright); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .18s, color .18s, transform .12s, box-shadow .18s;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }

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

/* ── Navigation ──────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--teal-bright); }
.nav-logo-mark {
  font-size: 1.5rem;
  color: var(--teal-bright);
  line-height: 1;
  font-style: italic;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  padding: .45rem .85rem;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.1); }
.nav-links a.active { color: var(--teal-bright); }
.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: .45rem 1.1rem !important;
}
.nav-cta:hover { background: var(--teal-bright) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .22s, opacity .15s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--navy-mid);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: .25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem 1rem; font-size: 1rem; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1A4060 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: '§';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(14rem, 28vw, 24rem);
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal-bright);
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  margin-bottom: .75rem;
  max-width: 600px;
}
.hero-sub2 {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Card grid ───────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--teal);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--text-muted); font-size: .95rem; }

/* ── Pillar cards (What we do) ──────────────────────────────── */
.pillars { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pillar {
  background: var(--white);
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.pillar h3 { color: var(--navy); margin-bottom: .5rem; }
.pillar p { color: var(--text-muted); font-size: .95rem; }

/* ── Provider cards ─────────────────────────────────────────── */
.provider-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.provider-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.provider-card:hover { box-shadow: var(--shadow-md); }
.provider-card .tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: .6rem;
}
.provider-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.provider-card p { font-size: .9rem; color: var(--text-muted); }

/* ── CTA strip ──────────────────────────────────────────────── */
.cta-strip {
  background: var(--navy);
  padding: 4rem 0;
  text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: .75rem; }
.cta-strip p { color: rgba(255,255,255,.7); margin-bottom: 2rem; }
.cta-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.cta-link-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 1.1rem 2rem;
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  transition: background .18s, border-color .18s;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.cta-link-card:hover { background: rgba(255,255,255,.14); border-color: var(--teal-bright); color: var(--white); }

/* ── Page hero (inner pages) ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '§';
  position: absolute;
  right: -1rem;
  bottom: -2rem;
  font-family: var(--font-serif);
  font-size: 14rem;
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 600px; font-size: 1.05rem; }

/* ── Team bios ───────────────────────────────────────────────── */
.team-grid { display: flex; flex-direction: column; gap: 4rem; }
.bio-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.bio-card:nth-child(even) { direction: rtl; }
.bio-card:nth-child(even) > * { direction: ltr; }
.bio-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--teal-pale);
}
.bio-content h2 { margin-bottom: .25rem; }
.bio-role {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: block;
}
.bio-content p { color: var(--text-muted); font-size: .97rem; line-height: 1.8; }
.bio-content p + p { margin-top: .75rem; }

@media (max-width: 700px) {
  .bio-card, .bio-card:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
  .bio-photo { width: 160px; border-radius: 50%; }
}

/* ── Programs / Workshops ─────────────────────────────────────── */
.workshop-intro-box {
  background: var(--teal-pale);
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  color: var(--text);
}
.topics-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.topic-card:hover { box-shadow: var(--shadow-md); }
.topic-header {
  background: var(--navy);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.topic-header-icon {
  font-size: 1.2rem;
  color: var(--teal-bright);
}
.topic-header h3 { color: var(--white); font-size: 1rem; margin: 0; }
.topic-body { padding: 1.25rem 1.5rem; }
.topic-body ul { display: flex; flex-direction: column; gap: .4rem; }
.topic-body li {
  font-size: .875rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}
.topic-body li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--teal);
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal); }
.pricing-card.featured {
  border-color: var(--teal);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Most Common';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .9rem;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .5rem;
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.pricing-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.pricing-card ul { margin-bottom: 1.5rem; flex: 1; }
.pricing-card li {
  font-size: .875rem;
  color: var(--text-muted);
  padding: .3rem 0 .3rem 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.pricing-card .btn { margin-top: auto; width: 100%; }

.pricing-note {
  background: var(--teal-pale);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
  text-align: center;
  font-size: .95rem;
  color: var(--text-muted);
}
.pricing-note strong { color: var(--navy); }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-detail h4 { color: var(--navy); margin-bottom: .2rem; font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.contact-detail a, .contact-detail p { color: var(--text-muted); font-size: .97rem; }
.contact-detail a:hover { color: var(--teal); }

.contact-process {
  background: var(--off-white);
  border-radius: 10px;
  padding: 2rem;
}
.contact-process h3 { margin-bottom: 1.5rem; }
.process-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.process-step:last-child { margin-bottom: 0; }
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-text h4 { color: var(--navy); margin-bottom: .2rem; font-size: .95rem; }
.step-text p { color: var(--text-muted); font-size: .875rem; margin: 0; }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { font-size: 1.1rem; margin-bottom: .75rem; }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.55); line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .875rem; transition: color .15s; }
.footer-col a:hover { color: var(--teal-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--teal-bright); }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Skip link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--teal);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 999;
  border-radius: 0 0 6px 0;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .75rem;
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--teal-bright); }
.breadcrumb span { margin: 0 .4rem; }

/* ── Misc utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-1 { gap: 1rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
