/* ===== PAGES: Hero, Services, About, Timeline, Articles ===== */
/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(8,29,48,.88) 0%, rgba(13,43,69,.72) 60%, rgba(10,138,122,.40) 100%),
    url('images/hero.jpg') center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--white), transparent);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(56,189,248,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(249,115,22,.12) 0%, transparent 45%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 80px 24px;
}
.hero__eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 20px;
}
.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  margin-bottom: 40px;
  max-width: 540px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: linear-gradient(90deg, var(--navy-dark) 0%, #0d3a6e 50%, var(--navy) 100%);
  padding: 40px 0;
  border-bottom: 3px solid var(--coral);
}
.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
}
.trust-item i {
  font-size: 30px;
  color: var(--teal-light);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(56,189,248,.4));
}
.trust-item strong { display: block; font-size: 15px; font-weight: 700; }
.trust-item span   { font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: .3px; }

/* ===== SERVICES ===== */
.services { background: var(--off-white); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Service card — magazine-style: colored header + white body */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card__header {
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* Rotating accent circle */
.service-card__header::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}
/* Each card gets a distinct gradient */
.service-card:nth-child(6n+1) .service-card__header { background: linear-gradient(135deg, #0369a1, #0891b2); }
.service-card:nth-child(6n+2) .service-card__header { background: linear-gradient(135deg, #0C2340, #0369a1); }
.service-card:nth-child(6n+3) .service-card__header { background: linear-gradient(135deg, #0891b2, #059669); }
.service-card:nth-child(6n+4) .service-card__header { background: linear-gradient(135deg, #EA580C, #F97316); }
.service-card:nth-child(6n+5) .service-card__header { background: linear-gradient(135deg, #059669, #0369a1); }
.service-card:nth-child(6n+6) .service-card__header { background: linear-gradient(135deg, #0C2340, #0891b2); }
.service-card:nth-child(6n+7) .service-card__header { background: linear-gradient(135deg, #F97316, #EA580C); }
.service-card:nth-child(6n+8) .service-card__header { background: linear-gradient(135deg, #0369a1, #059669); }

.service-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.service-card__icon i { font-size: 22px; color: var(--white); }

.service-card__num {
  position: absolute;
  top: 14px; right: 18px;
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: rgba(255,255,255,.12);
  line-height: 1;
  user-select: none;
}

.service-card__header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  line-height: 1.3;
}

.service-card__body {
  padding: 22px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card__body p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
  margin: 0 0 16px;
}
.service-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  transition: gap var(--transition);
}
.service-card:hover .service-card__arrow { gap: 10px; }

/* ===== ABOUT ===== */
.about { background: var(--white); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__image-col { position: relative; }
.about__img-wrapper {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.about__img-wrapper i { font-size: 120px; color: rgba(255,255,255,.2); }
.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s ease;
  display: block;
}
.about__img.loaded {
  opacity: 1;
}
.about__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  max-width: 260px;
  box-shadow: var(--shadow-md);
  z-index: 2;
  line-height: 1.4;
}
.about__badge i { font-size: 20px; flex-shrink: 0; }
.about__text-col .section-title { margin-bottom: 20px; }
.about__text-col p { color: var(--gray-500); margin-bottom: 16px; }
.about__creds { margin: 28px 0 36px; display: flex; flex-direction: column; gap: 12px; }
.cred-item { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; }
.cred-item i { color: var(--teal); margin-top: 2px; flex-shrink: 0; }

/* ===== PHASES OF CARE — HORIZONTAL TIMELINE ===== */
.care { background: linear-gradient(160deg, var(--navy-dark) 0%, #0d3a6e 100%); color: var(--white); }
.care .section-title { color: var(--white); }
.care .section-sub   { color: rgba(255,255,255,.65); }
.care .section-tag   { color: var(--teal-light); }

/* ---- Timeline layout ---- */
.ptl-wrapper { overflow: visible; padding: 16px 0 8px; }

/* Top & bottom label rows — 3-equal-column grid */
.ptl-top, .ptl-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.ptl-top  { min-height: 196px; }
.ptl-bottom { min-height: 196px; }

/* Label cells */
.ptl-label {
  text-align: center;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.ptl-top .ptl-label    { justify-content: flex-end; padding-bottom: 76px; }
.ptl-bottom .ptl-label { justify-content: flex-start; padding-top: 76px; }

.ptl-tag {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ptl-title {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}
.ptl-desc {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  margin: 0;
}

/* Track row */
.ptl-track {
  display: flex;
  align-items: center;
  height: 92px;
  overflow: visible;
  position: relative;
}

/* Start dot */
.ptl-start {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(56,189,248,.18);
  flex-shrink: 0;
  z-index: 3;
}

/* Connecting line segments */
.ptl-line {
  flex: 0.2;
  height: 5px;
  border-radius: 3px;
}
.ptl-line--1 { background: linear-gradient(90deg, var(--teal), #0369a1); flex: 0.2}
.ptl-line--2 { background: linear-gradient(90deg, #0369a1, var(--coral)); flex: 0.5}
.ptl-line--3 { background: linear-gradient(90deg, var(--coral), var(--emerald)); flex: 0.5}
.ptl-line--4 { background: var(--emerald); flex: 0.2; }

/* Node circles */
.ptl-node {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
  font-size: 30px;
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  cursor: pointer;
}
.ptl-node:hover { transform: scale(1.08); }
.ptl-node i,
.ptl-mobile-circle i {
  font-size: 34px;
  color: currentColor;
}
.ptl-node--1 { color: var(--teal);    box-shadow: 0 6px 24px rgba(2,132,199,.35), 0 0 0 4px rgba(2,132,199,.12); }
.ptl-node--2 { color: var(--coral);   box-shadow: 0 6px 24px rgba(249,115,22,.35), 0 0 0 4px rgba(249,115,22,.12); }
.ptl-node--3 { color: var(--emerald); box-shadow: 0 6px 24px rgba(5,150,105,.35), 0 0 0 4px rgba(5,150,105,.12); }

/* Vertical stems — anchored at circle CENTER so they appear to pass through it */
.ptl-stem {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 3px;
  height: 50px;   /* 44px inside circle + 56px visible above/below */
  border-radius: 2px;
}
.ptl-stem--up   { bottom: 100%; }   /* anchored at center, extends upward */
.ptl-stem--down { top: 100%; }      /* anchored at center, extends downward */

.ptl-dot { display: none; }

/* Number labels inside timeline circles */
.ptl-num {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 100;
  line-height: 1;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  transform: translateY(-8px);
  text-shadow: -1px -1px 0px rgb(65, 65, 65);
}

/* ---- Mobile vertical timeline (hidden by default) ---- */
.ptl-mobile { display: none; }

.ptl-mobile-phase {
  display: flex;
  gap: 20px;
  padding-bottom: 8px;
}
.ptl-mobile-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.ptl-mobile-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--teal);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(2,132,199,.28), 0 0 0 3px rgba(2,132,199,.12);
  z-index: 2;
  text-decoration: none;
}
.ptl-mobile-vline {
  width: 3px;
  flex: 1;
  min-height: 24px;
  background: var(--teal);
  border-radius: 2px;
  margin: 8px 0;
  opacity: .5;
}
.ptl-mobile-body { padding-top: 14px; padding-bottom: 28px; }
.ptl-mobile-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 4px 0 10px;
}
.ptl-mobile-desc {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin: 0;
}

/* Arrow at track end */
.ptl-arrow {
  flex-shrink: 0;
  width: 0; height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 22px solid var(--emerald);
  z-index: 3;
}
/* ===== ARTICLE PAGES ===== */
.article-body { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.article-body h2 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: clamp(20px,3vw,26px); margin: 40px 0 14px; }
.article-body h3 { color: var(--navy); font-size: 18px; margin: 28px 0 10px; }
.article-body p { color: var(--gray-600); line-height: 1.75; margin: 0 0 18px; font-size: 16px; }
.article-body ul { color: var(--gray-600); line-height: 1.75; padding-left: 24px; margin: 0 0 18px; }
.article-body ul li { margin-bottom: 8px; font-size: 16px; }
.article-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--gray-400); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-100); }
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-tag-label { display: inline-block; background: rgba(2,132,199,.1); color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; }
blockquote { border-left: 4px solid var(--teal); margin: 28px 0; padding: 16px 24px; background: var(--off-white); border-radius: 0 var(--radius) var(--radius) 0; }
blockquote p { color: var(--navy); font-style: italic; font-size: 17px; margin: 0; }

/* ===== ARTICLES LISTING PAGE ===== */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
@media (max-width: 960px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }
.article-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--transition), transform var(--transition); text-decoration: none; color: inherit; }
.article-card:hover { box-shadow: 0 8px 32px rgba(2,132,199,.12); transform: translateY(-3px); }
.article-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--gray-100); }
.article-card__img-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy), var(--teal)); display: flex; align-items: center; justify-content: center; font-size: 40px; color: rgba(255,255,255,.4); }
.article-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-card__tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.article-card__title { font-size: 17px; font-weight: 600; color: var(--navy); line-height: 1.4; margin: 0 0 10px; }
.article-card__excerpt { font-size: 14px; color: var(--gray-500); line-height: 1.6; flex: 1; margin: 0 0 18px; }
.article-card__footer { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--gray-400); border-top: 1px solid var(--gray-100); padding-top: 14px; margin-top: auto; }
.article-card__read-more { color: var(--teal); font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ── News feed (articles.html) ── */
.news-section { background: var(--off-white); padding: 64px 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow var(--transition); }
.news-card:hover { box-shadow: 0 4px 16px rgba(2,132,199,.1); }
.news-card__source { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--teal); }
.news-card__title { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.4; margin: 0; }
.news-card__date { font-size: 12px; color: var(--gray-400); }
.news-card__link { font-size: 13px; font-weight: 600; color: var(--teal); text-decoration: none; display: flex; align-items: center; gap: 4px; margin-top: auto; }
.news-card__link:hover { text-decoration: underline; }
.news-skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, #e8eef4 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; height: 14px; }
.news-skeleton--title { height: 18px; margin-bottom: 6px; }
.news-skeleton--short { width: 60%; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.news-error { grid-column: 1/-1; text-align: center; color: var(--gray-400); font-size: 14px; padding: 24px; }
