﻿/* ═══════════════════════════════════════════════════════════════
   CLARITY — services.css  (v2 — full redesign)
   Sections: Hero · Service Cards · Programs · Process · FAQ · CTA
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   HERO  — 70vh, animated mesh + subtle photo layer
   ───────────────────────────────────────────────────────────── */
.services-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--pure-white);
  padding-top: var(--nav-height);
}

.services-hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1545205597-3d9d02c29597?w=1600&h=800&fit=crop&q=80&auto=format');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.18;
  mix-blend-mode: luminosity;
}

.services-hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(45, 139, 122, 0.9) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(26, 95, 90, 0.96) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 80%, rgba(75, 191, 160, 0.65) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(26, 95, 90, 0.82) 0%, transparent 50%);
  background-color: #1A5F5A;
  animation: meshShift 14s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  33%  { filter: hue-rotate(8deg) brightness(1.04); }
  66%  { filter: hue-rotate(-5deg) brightness(0.97); }
  100% { filter: hue-rotate(4deg) brightness(1.02); }
}

.services-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 72px;
  padding-top: 56px;
}

.services-hero-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.services-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--pure-white);
  max-width: 820px;
  margin: 0 auto 24px;
  letter-spacing: -0.01em;
}

.services-hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin: 0 auto 52px;
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────────────────
   TAB PILLS
   ───────────────────────────────────────────────────────────── */
.services-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: var(--pure-white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  letter-spacing: 0.01em;
}
.stab-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--pure-white);
}
.stab-pill--active {
  background: var(--pure-white);
  border-color: var(--pure-white);
  color: var(--teal-deep);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

/* Mobile dropdown */
.stab-dropdown-wrapper {
  display: none;
  justify-content: center;
  padding: 20px 24px;
  background: var(--teal-deep);
}
.stab-dropdown {
  width: 100%;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: var(--pure-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.stab-dropdown option {
  background: var(--teal-deep);
  color: var(--pure-white);
}

/* ─────────────────────────────────────────────────────────────
   TAB PANELS
   ───────────────────────────────────────────────────────────── */
.stab-panel { background: var(--warm-white); }
.stab-panel[hidden] { display: none; }

/* ─────────────────────────────────────────────────────────────
   SECTION INTRO
   ───────────────────────────────────────────────────────────── */
.services-section-intro {
  text-align: center;
  padding-top: 88px;
  padding-bottom: 52px;
  max-width: 640px;
  margin: 0 auto;
}
.services-section-intro .italic-accent {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--teal-mid);
  margin-bottom: 14px;
}
.services-section-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.services-section-intro p {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────────────────
   SERVICE CARDS  —  editorial image-first design
   ───────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.svc-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 24px rgba(30, 42, 42, 0.08);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
  background: var(--pure-white);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.svc-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 60px rgba(26, 95, 90, 0.15);
}

.svc-card-image {
  position: relative;
  height: 270px;
  overflow: hidden;
  flex-shrink: 0;
}
.svc-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  filter: brightness(0.85) saturate(1.1);
}
.svc-card:hover .svc-card-image img {
  transform: scale(1.07);
}
.svc-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 42, 42, 0.04) 0%,
    transparent 26%,
    rgba(26, 42, 42, 0.70) 100%
  );
  pointer-events: none;
}

.svc-number {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
  pointer-events: none;
  user-select: none;
  transition: color 0.3s ease;
}
.svc-card:hover .svc-number { color: var(--gold-light); }

.svc-image-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 16px 26px 22px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--pure-white);
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.01em;
}

.svc-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.svc-desc {
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--slate);
  flex: 1;
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.svc-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--teal-pale);
  color: var(--teal-deep);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-mid);
  text-decoration: none;
  transition: gap 0.22s ease, color 0.22s ease;
  align-self: flex-start;
  padding-top: 4px;
}
.svc-link:hover { color: var(--teal-deep); gap: 10px; }
.svc-link i { font-size: 1rem; transition: transform 0.22s ease; }
.svc-link:hover i { transform: translateX(3px); }

/* Full-width 7th card */
.svc-card--full {
  grid-column: 1 / -1;
  flex-direction: row;
}
.svc-card--full .svc-card-image {
  flex: 0 0 52%;
  height: auto;
  min-height: 320px;
}
.svc-card--full .svc-card-body { padding: 44px 52px; justify-content: center; }
.svc-card--full .svc-image-title { font-size: 2rem; }
.svc-card--full .svc-desc { font-size: 0.95rem; max-width: 480px; }

/* Bottom CTA */
.services-bottom-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 64px 0 88px;
  text-align: center;
}
.services-bottom-cta > p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--slate);
}

/* ─────────────────────────────────────────────────────────────
   PROGRAMS GRID
   ───────────────────────────────────────────────────────────── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 88px;
}

.prog-card {
  background: var(--pure-white);
  border-radius: 18px;
  box-shadow: 0 2px 20px rgba(30, 42, 42, 0.07);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  border-top: 3px solid var(--teal-mid);
}
.prog-card--popular {
  border-top: 3px solid var(--gold);
  box-shadow: 0 4px 32px rgba(201, 168, 76, 0.13);
}
.prog-card--custom { border-top: 3px solid var(--charcoal); }
.prog-card:hover { transform: translateY(-7px); box-shadow: 0 24px 52px rgba(26, 95, 90, 0.13); }
.prog-card--popular:hover { box-shadow: 0 24px 52px rgba(201, 168, 76, 0.2); }

.prog-popular-badge {
  position: absolute;
  top: 0; right: 0;
  background: linear-gradient(135deg, var(--gold), #B8935A);
  color: var(--pure-white);
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 0 0 0 12px;
  z-index: 3;
}

.prog-card-header {
  padding: 28px 26px 20px;
  background: var(--warm-white);
  border-bottom: 1px solid rgba(168, 216, 207, 0.35);
}
.prog-card--popular .prog-card-header { background: #FAF8F2; }
.prog-card--custom .prog-card-header { background: #F2F4F4; }

.prog-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 8px;
}
.prog-tagline {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--teal-mid);
  font-style: italic;
}

.prog-card-body {
  padding: 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prog-desc {
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--slate);
}
.prog-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.prog-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--charcoal);
  line-height: 1.45;
}
.prog-includes li i {
  color: var(--teal-mid);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.prog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--teal-pale);
  margin-top: auto;
}
.prog-ideal,
.prog-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--slate);
}
.prog-ideal i,
.prog-duration i { color: var(--teal-mid); font-size: 0.88rem; }

.prog-card-footer { padding: 0 26px 26px; }

.btn-outline-teal {
  background: transparent;
  color: var(--teal-mid);
  border: 1.5px solid var(--teal-mid);
}
.btn-outline-teal:hover { background: var(--teal-mid); color: var(--pure-white); }
.btn-teal {
  background: var(--teal-mid);
  color: var(--pure-white);
  border: 1.5px solid var(--teal-mid);
}
.btn-teal:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  border: 1.5px solid var(--gold);
  font-weight: 600;
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.prog-card-footer .btn { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────────────────────────
   PROCESS SECTION
   ───────────────────────────────────────────────────────────── */
.process-section { background: var(--teal-pale); }

.process-track {
  position: relative;
  margin-top: 72px;
}
.process-line {
  position: absolute;
  top: 96px;
  left: calc(12.5% + 32px);
  right: calc(12.5% + 32px);
  height: 2px;
  background: rgba(45, 139, 122, 0.18);
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none;
}
.process-line-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal-light));
  width: 0%;
  transition: width 1.8s ease 0.4s;
  border-radius: 2px;
}
.process-section.process-animated .process-line-fill { width: 100%; }

.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  position: relative;
  z-index: 1;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.process-step-icon {
  width: 56px; height: 56px;
  background: var(--pure-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--teal-mid);
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(26, 95, 90, 0.12);
  transition: background 0.3s ease, color 0.3s ease;
}
.process-step:hover .process-step-icon { background: var(--teal-mid); color: var(--pure-white); }
.process-step-circle {
  width: 56px; height: 56px;
  background: var(--teal-mid); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(45, 139, 122, 0.32);
}
.process-step-circle span {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700; color: var(--pure-white); line-height: 1;
}
.process-step-body { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.process-step-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--charcoal); }
.process-step-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  color: var(--teal-mid); background: rgba(45, 139, 122, 0.1);
  padding: 3px 12px; border-radius: 12px; letter-spacing: 0.02em;
}
.process-step-desc { font-size: 0.85rem; line-height: 1.65; color: var(--slate); max-width: 210px; }

/* ─────────────────────────────────────────────────────────────
   FAQ  —  two-column layout
   ───────────────────────────────────────────────────────────── */
.faq-section { background: var(--pure-white); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 52px;
  margin-top: 56px;
}

.faq-item {
  border-bottom: 1px solid rgba(74, 85, 104, 0.12);
  transition: padding 0.25s ease, margin 0.25s ease;
}
.faq-item:first-child { border-top: 1px solid rgba(74, 85, 104, 0.12); }
.faq-item.faq-item--open {
  border-left: 3px solid var(--teal-mid);
  padding-left: 20px;
  margin-left: -20px;
}
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; background: transparent; border: none; cursor: pointer;
  text-align: left; font-family: var(--font-body); font-size: 0.95rem;
  font-weight: 500; color: var(--charcoal); line-height: 1.5; transition: color 0.2s ease;
}
.faq-question:hover,
.faq-question[aria-expanded="true"] { color: var(--teal-mid); }
.faq-icon { font-size: 1.2rem; color: var(--teal-mid); flex-shrink: 0; transition: transform 0.3s ease; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  overflow: hidden; max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.faq-answer--open { max-height: 600px; }
.faq-answer[hidden] { display: block !important; visibility: hidden; max-height: 0; padding-bottom: 0; }
.faq-answer p { font-size: 0.9rem; line-height: 1.82; color: var(--slate); padding-bottom: 22px; }

/* ─────────────────────────────────────────────────────────────
   CTA STRIP
   ───────────────────────────────────────────────────────────── */
.services-cta-strip { background: var(--teal-deep); padding: 52px 0; }
.services-cta-strip-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.services-cta-text {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 300; font-style: italic; color: var(--pure-white); text-align: center;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .svc-card--full .svc-card-body { padding: 36px 40px; }
}
@media (max-width: 992px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process-line { display: none; }
  .faq-grid { gap: 0 32px; }
}
@media (max-width: 768px) {
  .services-hero { min-height: 65vh; }
  .services-tabs-nav { display: none; }
  .stab-dropdown-wrapper { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-card--full { grid-column: auto; flex-direction: column; }
  .svc-card--full .svc-card-image { flex: none; height: 260px; width: 100%; }
  .svc-card--full .svc-card-body { padding: 28px 28px; justify-content: flex-start; }
  .svc-card--full .svc-image-title { font-size: 1.7rem; }
  .programs-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
  .services-cta-strip-inner { flex-direction: column; gap: 20px; text-align: center; }
}
@media (max-width: 480px) {
  .services-section-intro { padding-top: 56px; padding-bottom: 36px; }
  .svc-card-image { height: 240px; }
  .services-bottom-cta { padding: 48px 0 64px; }
}
