/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 0;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  position: relative;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: #001e3c;
  z-index: 0;
}
/* Fingerprint/contour watermark — left side, bleeds behind photo */
.hero__contour {
  position: absolute;
  top: 50%;
  right: -15%;          /* anchored to right edge */
  width: 70%;           /* bigger — more of the contour visible */
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0.18;
  z-index: 1;
  background-image: url('/themes/yns/images/topo-bg.png');
  background-size: 160%;            /* zoomed in — shows detail not full shape */
  background-repeat: no-repeat;
  background-position: 40% center;  /* shift so center of fingerprint is visible */
}

.hero__inner {
  display: contents;  /* pass grid membership to children */
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 5rem 4rem 5rem max(2rem, calc((100vw - 1200px) / 2 + 1rem));
  align-self: center;
  min-width: 0;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.5rem;
  opacity: 1;
  animation: fadeInUp 0.6s ease 0.2s both;
  display: block;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--sky);
}

.hero__title {
  font-size: clamp(3.2rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  color: white;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  opacity: 1;
  animation: fadeInUp 0.6s ease 0.35s both;
  display: flex;
  flex-direction: column;
}
.hero__title-your {
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.1em;
}
.hero__title-next { line-height: 0.92; white-space: nowrap; }
.hero__title-step { line-height: 0.92; white-space: nowrap; }
/* The X — inline SVG so we get the exact two-tone brand shape */
.hero__x {
  display: inline-block;
  vertical-align: baseline;
  position: relative;
  top: 0.02em;          /* fine-tune optical alignment */
  line-height: 0;
}
.hero__x-img {
  height: 0.82em;       /* matches cap height */
  width: auto;
  display: inline-block;
  vertical-align: baseline;
}

.hero__byline {
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  margin: 0.35rem 0 0;
  opacity: 1;
  animation: fadeInUp 0.6s ease 0.42s both;
}
.hero__tagline {
  white-space: nowrap;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  display: block;
  margin-top: 0.3rem;
  margin-bottom: 0;
  opacity: 1;
  animation: fadeInUp 0.6s ease 0.48s both;
}

.hero__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin-bottom: 2.5rem;
  opacity: 1;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 480px;
  opacity: 1;
  animation: fadeInUp 0.6s ease 0.65s both;
}
.hero__actions .btn {
  white-space: normal;
  max-width: 100%;
  text-align: center;
}

.hero__image {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: 600px;
  opacity: 1;
  animation: fadeIn 0.8s ease 0.5s both;
}
.hero__image img {
  height: min(75vh, 680px);
  width: auto;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 20px 80px rgba(0,20,60,0.5));
}

/* ── COACHING SECTION ───────────────────────────────────────── */
.coaching-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.coaching-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0,67,124,0.06);
}
.coaching-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.coaching-card__image {
  height: 220px;
  overflow: hidden;
}
.coaching-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.coaching-card:hover .coaching-card__image img { transform: scale(1.05); }
.coaching-card__body { padding: 1.75rem; }
.coaching-card__body h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.coaching-card__body p { font-size: 0.9rem; color: var(--mid); line-height: 1.6; }

/* ── SERVICES SLIDER ────────────────────────────────────────── */
.services { background: var(--navy); color: var(--white); padding: 0; overflow: hidden; }

.services__slider {
  display: flex;
  position: relative;
}

.services__slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  width: 100%;
  flex-shrink: 0;
}

.services__slide-content {
  padding: 3rem 3rem 3rem max(1.5rem, calc((100vw - 1160px) / 2 + 1.5rem));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: visible;
}
.services__slide-content .btn { align-self: flex-start; }
.services__slide-content .eyebrow { color: rgba(255,255,255,0.55); margin-bottom: 0.5rem; }
.services__slide-content h2 { color: var(--white); margin-bottom: 1.25rem; }
.services__slide-content p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; font-size: 0.95rem; line-height: 1.75; }

.services__slide-image {
  position: relative;
  overflow: hidden;
}
.services__slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Grayscale + navy/sky gradient tint, lighter variant of .page-hero's photo
     treatment (that one sits under white hero text and needs more contrast;
     this one sits next to a text column, so a lighter tint reads better) —
     applied via class so any future re-upload (any filename) is covered
     automatically, no per-image inline styling needed. */
  filter: grayscale(100%) brightness(0.7);
}
.services__slide-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 47, 88, 0.55) 0%,
    rgba(0, 67, 124, 0.45) 50%,
    rgba(10, 179, 235, 0.18) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.services__tabs {
  display: flex;
  gap: 0;
  background: var(--navy-dark);
  padding: 1.5rem 0;
}
.services__tab {
  flex: 1;
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.services__tab.active {
  color: var(--sky);
  border-bottom-color: var(--sky);
}
.services__tab:hover { color: rgba(255,255,255,0.8); }

/* ── BLOG SECTION ────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,67,124,0.08);
  transition: all var(--transition);
  background: var(--white);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__image { height: 200px; overflow: hidden; }
.blog-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) brightness(0.88);
  transition: filter 0.45s ease, transform 0.5s ease;
}
.blog-card:hover .blog-card__image img {
  filter: none;
  transform: scale(1.04);
}
.blog-card__body { padding: 1.5rem; }
.blog-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.5rem;
}
.blog-card__body h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 0.75rem; color: var(--navy); }
.blog-card__body p { font-size: 0.83rem; color: var(--mid); line-height: 1.6; }

/* ── BLOG CAROUSEL — shown instead of the static grid once more than
   3 posts are marked "Featured on homepage" in the CMS ──────────── */
.blog-carousel { position: relative; }
.blog-grid--carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.blog-grid--carousel::-webkit-scrollbar { display: none; }
.blog-grid--carousel .blog-card {
  flex: 0 0 calc((100% - 4rem) / 3);
  scroll-snap-align: start;
}
.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sky);
  transition: gap var(--transition);
}
.blog-card__link:hover { gap: 0.6rem; }

/* ── CTA SECTION (homepage override — taller padding, softer glow) ──── */
.cta {
  padding: 7rem 2rem;
}
.cta::before {
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(10,179,235,0.12) 0%, transparent 70%);
}
.cta p { margin-bottom: 2.5rem; }

/* ── PRO BONO LOGOS ──────────────────────────────────────────── */
.probono {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem 3.5rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0,67,124,0.08);
}
.probono__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}
.probono img { height: 28px; width: auto; opacity: 0.5; filter: grayscale(1); transition: all var(--transition); }
.probono img:hover { opacity: 0.9; filter: grayscale(0); }

/* ── MOBILE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 72px; }
  .hero__content { padding: 3rem 0 2rem; }
  .hero__image { height: auto; min-height: 0; margin-top: 2rem; }
  .hero__image img { height: auto; max-height: 320px; }
  .coaching-grid { grid-template-columns: 1fr; }
  .services__slide { grid-template-columns: 1fr; }
  .services__slide-image { display: block; height: 220px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid--carousel .blog-card { flex: 0 0 100%; }
  .services__slide-content { padding: 3rem 0; }
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
