/* ═══════════════════════════════════════════════════════════
   MED-LINE HEALTHCare — Master Stylesheet v2.0
   Design: Joan Michaels inspired — light, editorial, portrait-led
   Fonts: Libre Baskerville (serif) + Outfit (sans)
   © 2026 Stan Paraclete · stanparaclete.com
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Outfit:wght@200;300;400;500;600&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* Palette */
  --ivory:      #F4F1EC;
  --cream:      #EDE9E2;
  --warm-white: #FAF9F7;
  --navy:       #0C1F3F;
  --navy-mid:   #1A3560;
  --blue:       #1D4ED8;
  --gold:       #A67C3A;
  --gold-light: #C9A256;
  --red:        #B91C1C;
  --gray:       #7A7167;
  --gray-lt:    #C4BFB8;
  --border:     #DDD8D0;

  /* Type */
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans:  'Outfit', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--warm-white);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── NAVIGATION ── */
/* ── NAV: see assets/css/nav.css ── */

/* Hero layout: see assets/css/fixes.css */

/* ═══════════════════════════
   TICKER / MARQUEE
═══════════════════════════ */
.ticker {
  background: var(--navy);
  padding: 13px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex; gap: 52px;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 300;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.ticker-sep { color: var(--gold-light); opacity: 0.6; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════
   SHARED SECTION STYLES
═══════════════════════════ */
.section { padding: 8vw 6vw; }
.section--ivory { background: var(--ivory); }
.section--cream { background: var(--cream); }
.section--white { background: var(--warm-white); }
.section--navy  { background: var(--navy); color: white; }

.label {
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 13px;
  margin-bottom: 1.6rem;
}
.label::before {
  content: ''; display: block;
  width: 24px; height: 1px; background: var(--gold);
}
.label--white { color: rgba(201,162,86,0.8); }
.label--white::before { background: rgba(201,162,86,0.6); }

h2.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 1.4rem;
}
h2.section-title em { font-style: italic; color: var(--gold); }
h2.section-title--white { color: white; }

p.section-body {
  font-family: var(--sans);
  font-size: 0.97rem; font-weight: 300;
  line-height: 1.85; color: var(--gray);
  max-width: 560px;
}
p.section-body--white { color: rgba(255,255,255,0.62); }

/* ═══════════════════════════
   CEO / ABOUT STRIP
═══════════════════════════ */
.ceo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 86vh;
}
.ceo-photo {
  position: relative; overflow: hidden;
}
.ceo-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 0.8s var(--ease);
}
.ceo-photo:hover img { transform: scale(1.03); }
.ceo-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,31,63,0.55) 0%, transparent 55%);
}
.ceo-photo-caption {
  position: absolute; bottom: 2rem; left: 2rem; right: 2rem;
  color: white;
}
.ceo-photo-caption h3 {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 400;
  margin-bottom: 0.3rem;
}
.ceo-photo-caption p {
  font-size: 0.8rem; font-weight: 300;
  letter-spacing: 0.08em; opacity: 0.75;
}

.ceo-text {
  padding: 7vw 6vw;
  display: flex; flex-direction: column;
  justify-content: center;
  background: var(--warm-white);
}
.ceo-quote {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
}
.ceo-body {
  font-size: 0.92rem; font-weight: 300;
  line-height: 1.9; color: var(--gray);
  margin-bottom: 1.5rem;
}
.ceo-credentials {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 2rem;
}
.cred-chip {
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 7px 14px;
  background: var(--ivory);
  transition: border-color 0.2s, background 0.2s;
}
.cred-chip:hover { border-color: var(--gold); background: var(--cream); }

/* ═══════════════════════════
   STATS BAND
═══════════════════════════ */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy);
}
.stat-cell {
  padding: 3rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s;
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: rgba(255,255,255,0.04); }
.stat-num {
  font-family: var(--serif);
  font-size: 3rem; font-weight: 400;
  color: white; line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-num sup { font-size: 1.4rem; color: var(--gold-light); }
.stat-label {
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 300;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

/* ═══════════════════════════
   PROGRAMS SECTION
═══════════════════════════ */
.programs-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw; align-items: end;
  margin-bottom: 4vw;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px; background: var(--border);
}
.program-card {
  background: var(--warm-white);
  padding: 3rem 2.8rem;
  position: relative; overflow: hidden;
  transition: background 0.35s;
  cursor: pointer;
}
.program-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--gold);
  transition: height 0.4s var(--ease);
}
.program-card:hover { background: var(--ivory); }
.program-card:hover::before { height: 100%; }
.program-number {
  font-family: var(--serif);
  font-size: 0.85rem; color: var(--border);
  margin-bottom: 1.4rem;
  transition: color 0.3s;
}
.program-card:hover .program-number { color: var(--gold-light); }
.program-icon { font-size: 1.8rem; margin-bottom: 1.2rem; }
.program-title {
  font-family: var(--serif);
  font-size: 1.4rem; font-weight: 400;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.program-level {
  font-family: var(--sans);
  font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.program-desc {
  font-size: 0.87rem; font-weight: 300;
  line-height: 1.7; color: var(--gray);
  margin-bottom: 1.6rem;
}
.program-link {
  font-family: var(--sans);
  font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy);
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.program-link::after { content: '→'; transition: transform 0.2s; }
.program-link:hover { color: var(--gold); border-color: var(--gold); }
.program-link:hover::after { transform: translateX(5px); }

/* ═══════════════════════════
   SERVICES SECTION
═══════════════════════════ */
.services-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6vw; align-items: start;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px; background: var(--border);
}
.service-tile {
  background: var(--ivory);
  padding: 2.2rem 1.8rem;
  transition: background 0.3s;
}
.service-tile:hover { background: var(--navy); }
.service-tile:hover .service-tile-title,
.service-tile:hover .service-tile-desc { color: white; }
.service-tile:hover .service-tile-icon { background: var(--gold); }
.service-tile-icon {
  width: 44px; height: 44px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  transition: background 0.3s;
}
.service-tile-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
  transition: color 0.3s;
}
.service-tile-desc {
  font-size: 0.82rem; font-weight: 300;
  line-height: 1.65; color: var(--gray);
  transition: color 0.3s;
}

/* ═══════════════════════════
   IMAGE MOSAIC / GALLERY
═══════════════════════════ */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 3px;
}
.mosaic-item {
  overflow: hidden; position: relative;
}
.mosaic-item:first-child {
  grid-row: 1 / 3;
}
.mosaic-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s;
  filter: grayscale(15%);
}
.mosaic-item:hover img { transform: scale(1.06); filter: grayscale(0%); }

/* ═══════════════════════════
   BRANCHES / CONTACT
═══════════════════════════ */
.branches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.branch-panel {
  padding: 5vw 4.5vw;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s;
}
.branch-panel:last-child { border-right: none; }
.branch-panel:hover { background: rgba(255,255,255,0.03); }
.branch-tag {
  font-family: var(--sans);
  font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(201,162,86,0.3);
  padding: 4px 11px; display: inline-block;
  margin-bottom: 1.6rem;
}
.branch-name {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 400; color: white;
  line-height: 1.1; margin-bottom: 2rem;
}
.branch-row {
  display: flex; gap: 12px;
  font-size: 0.84rem; font-weight: 300;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.9rem; line-height: 1.6;
}
.branch-row a { color: var(--gold-light); transition: opacity 0.2s; }
.branch-row a:hover { opacity: 0.72; }
.branch-divider {
  width: 30px; height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 1.8rem 0;
}
.hours-row {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; font-weight: 300;
  color: rgba(255,255,255,0.42);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hours-row span:last-child { color: var(--gold-light); }
.branch-cta {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.17em; text-transform: uppercase;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.branch-cta::after { content: '→'; transition: transform 0.2s; }
.branch-cta:hover { color: var(--gold-light); border-color: var(--gold-light); }
.branch-cta:hover::after { transform: translateX(5px); }

/* ═══════════════════════════
   CONTACT FORM
═══════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 7vw; align-items: start;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: var(--sans);
  font-size: 0.93rem; font-weight: 300;
  color: var(--navy);
  outline: none;
  transition: border-color 0.25s;
  border-radius: 0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { min-height: 100px; resize: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.btn-submit {
  width: 100%;
  background: var(--navy); color: white;
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 14px;
  border: 1.5px solid var(--navy);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.btn-submit:hover { background: var(--gold); border-color: var(--gold); }
.btn-submit.success { background: #166534; border-color: #166534; }

/* ═══════════════════════════
   GALLERY PAGE
═══════════════════════════ */
.gallery-masonry {
  columns: 3; gap: 6px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 6px;
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease), filter 0.3s;
  filter: grayscale(20%);
}
.gallery-item:hover img { transform: scale(1.04); filter: grayscale(0%); }

/* ═══════════════════════════
   PROGRAM DETAIL PAGES
═══════════════════════════ */
.program-hero {
  padding-top: 68px;
  min-height: 60vh;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.program-hero-content {
  padding: 6vw;
  display: flex; flex-direction: column;
  justify-content: center;
}
.program-hero-img {
  overflow: hidden;
}
.program-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.1);
}
.program-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--border);
  margin: 4vw 0;
}
.highlight-card {
  background: var(--warm-white);
  padding: 2.5rem 2rem;
  transition: background 0.3s;
}
.highlight-card:hover { background: var(--ivory); }
.highlight-icon { font-size: 1.5rem; margin-bottom: 1rem; }
.highlight-title {
  font-family: var(--serif);
  font-size: 1.05rem; color: var(--navy);
  margin-bottom: 0.5rem;
}
.highlight-desc {
  font-size: 0.83rem; font-weight: 300;
  line-height: 1.65; color: var(--gray);
}
.careers-grid {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-top: 1.5rem;
}
.career-chip {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 300;
  color: var(--navy);
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--ivory);
  transition: all 0.2s;
}
.career-chip:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* CTA BANNER */
.cta-banner {
  background: var(--gold);
  padding: 4rem 6vw;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 2rem;
}
.cta-banner h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400; color: var(--navy);
  line-height: 1.15;
}
.cta-banner .btn-dark {
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: white; background: var(--navy);
  padding: 14px 34px;
  flex-shrink: 0;
  transition: background 0.25s;
}
.cta-banner .btn-dark:hover { background: rgba(12,31,63,0.8); }

/* ═══════════════════════════
   INNER PAGE HERO
═══════════════════════════ */
.inner-hero {
  padding-top: 68px;
  min-height: 50vh;
  background: var(--navy);
  display: flex; align-items: flex-end;
  padding-bottom: 6vw;
  padding-left: 6vw;
  padding-right: 6vw;
  position: relative; overflow: hidden;
}
.inner-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 25%, rgba(29,78,216,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(166,124,58,0.1) 0%, transparent 45%);
}
.inner-hero-content { position: relative; z-index: 1; }
.inner-hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400; color: white;
  line-height: 0.95; margin: 1rem 0 1.5rem;
  letter-spacing: -0.02em;
}
.inner-hero-title em { font-style: italic; color: var(--gold-light); }
.inner-hero-sub {
  font-family: var(--sans);
  font-size: 1rem; font-weight: 300;
  color: rgba(255,255,255,0.52);
  max-width: 500px; line-height: 1.7;
}

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
footer {
  background: var(--navy);
  padding: 3.5rem 6vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-logo img {
  height: 38px;
  filter: brightness(0) invert(1);
  opacity: 0.65;
}
.footer-copy {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.66rem; font-weight: 300;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.28);
  line-height: 1.85;
}
.footer-copy a { color: var(--gold-light); }
.footer-copy a:hover { opacity: 0.7; }
.footer-right {
  text-align: right;
  font-size: 0.66rem; font-weight: 300;
  color: rgba(255,255,255,0.22);
  line-height: 1.8;
}
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem 1.5rem; margin-top: 0.6rem;
}
.footer-links a {
  font-size: 0.62rem; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }

/* Partners strip */
.partners-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 2.5rem;
}
.partner-badge {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 300;
  color: var(--navy);
  padding: 9px 18px;
  border: 1px solid var(--border);
  background: var(--warm-white);
  transition: border-color 0.2s, background 0.2s;
}
.partner-badge:hover { border-color: var(--gold); background: var(--ivory); }

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--border);
  margin-top: 3.5rem;
}
.value-card {
  background: var(--warm-white);
  padding: 2.5rem 2rem;
  transition: background 0.3s;
}
.value-card:hover { background: var(--ivory); }
.value-icon { font-size: 1.6rem; margin-bottom: 1rem; }
.value-title {
  font-family: var(--serif);
  font-size: 1.1rem; color: var(--navy);
  margin-bottom: 0.6rem;
}
.value-desc {
  font-size: 0.83rem; font-weight: 300;
  line-height: 1.65; color: var(--gray);
}

/* ═══════════════════════════
   SCROLL REVEAL
═══════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ═══════════════════════════
   RESPONSIVE
═══════════════════════════ */
@media (max-width: 1100px) {
  .programs-grid { grid-template-columns: 1fr; }
  .services-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* hero responsive: see fixes.css */
  .ceo-strip, .contact-layout, .programs-intro { grid-template-columns: 1fr; }
  .branches-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-rows: auto; }
  .mosaic-item:first-child { grid-row: auto; }
  .program-hero { grid-template-columns: 1fr; }
  .program-hero-img { min-height: 40vw; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-right { text-align: center; }
  /* nav rules handled by nav.css */
  .cta-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  /* hero mobile: see fixes.css */
  .programs-grid, .services-grid, .values-grid, .program-highlights { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .gallery-masonry { columns: 2; }
  .form-row { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}
