/* Below-fold CSS for /services/ — loaded deferred (media="print" onload trick) */
/* ATF critical CSS lives inline in services/index.html */

/* ── WHY SECTION ── */
.why-section {
  background: var(--premium-dark);
  border-radius: 24px;
  padding: 60px 48px;
  margin-bottom: 72px;
}

@media (max-width: 640px) {
  .why-section { padding: 40px 24px; }
}

.why-section__heading {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.why-section__sub {
  color: #94a3b8;
  font-size: 16px;
  margin: 0 0 40px;
}

.why-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px 20px;
  cursor: pointer;
  transform: translateY(28px);
  transition:
    transform 0.45s cubic-bezier(.22,.68,0,1.2) calc(var(--card-i, 0) * 75ms),
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.why-section.visible .why-card {
  transform: translateY(0);
}

.why-card:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(245,158,11,0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.32), inset 0 0 0 1px rgba(245,158,11,0.12);
  transition-delay: 0ms;
}

.why-card:hover .why-card__num {
  color: #fff;
  text-shadow: 0 0 18px rgba(245,158,11,0.65);
}

@keyframes numGlow {
  0%   { color: rgba(245,158,11,0.3); }
  45%  { color: #fff; text-shadow: 0 0 22px rgba(245,158,11,0.85); }
  100% { color: var(--premium-gold); text-shadow: none; }
}

.why-section.visible .why-card__num {
  animation: numGlow 0.7s ease calc(var(--card-i, 0) * 75ms + 120ms) both;
}

@media (prefers-reduced-motion: reduce) {
  .why-card { transform: none; transition: background 0.2s, border-color 0.2s; }
  .why-section.visible .why-card__num { animation: none; }
}

.why-card__num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--premium-gold);
  line-height: 1;
  margin-bottom: 10px;
  transition: color 0.2s, text-shadow 0.2s;
}

.why-card__title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}

.why-card__desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
}

/* ── SERVICES SECTION ── */
.svc-section {
  margin-bottom: 72px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  color: var(--premium-dark);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 32px;
}

/* ── SERVICE QUICK-NAV THUMBNAILS ── */
html {
  scroll-behavior: smooth;
}

.services-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  justify-items: center;
  margin: 0 0 28px;
}

.services-thumbs__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 110px;
  text-decoration: none;
}

.services-thumbs__item picture,
.services-thumbs__item img {
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
}

.services-thumbs__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--premium-dark);
  text-align: center;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .services-thumbs {
    grid-template-columns: repeat(4, auto);
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .services-thumbs__item,
  .services-thumbs__item picture,
  .services-thumbs__item img {
    width: 170px;
    height: 170px;
  }
}

#core-service {
  scroll-margin-top: 88px; /* 68px header (768-1023px tier) + 20px buffer */
}

@media (max-width: 767px) {
  #core-service {
    scroll-margin-top: 112px; /* 92px mobile header + 20px buffer */
  }
}

@media (min-width: 1024px) {
  #core-service {
    scroll-margin-top: 120px; /* 100px desktop header + 20px buffer */
  }
}

.svc-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 600px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.svc-card {
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: 20px;
  padding: 28px 24px 28px 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-left-color 0.25s ease;
}

.svc-card:hover {
  box-shadow: 0 12px 36px rgba(15,23,42,0.09);
  transform: translateY(-3px);
  border-left-color: var(--premium-gold);
}

.svc-card--featured {
  border-color: var(--premium-gold);
  border-width: 2px;
}

.svc-card__badge {
  display: inline-block;
  background: var(--premium-gold);
  color: var(--premium-dark);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 4px;
}

.svc-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
  color: var(--premium-dark);
  margin: 0;
  letter-spacing: -0.01em;
}

.svc-card__loss {
  font-size: 13px;
  font-weight: 600;
  color: #b91c1c;
  margin: 0;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 8px;
  line-height: 1.5;
}

.svc-card__desc {
  font-size: 14px;
  color: #374151;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.svc-card__who {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  padding-top: 4px;
}

.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--premium-dark);
  text-decoration: none;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  transition: color 0.2s;
}
.svc-card__link::after { content: " →"; }
.svc-card__link:hover { color: var(--premium-blue); }

.svc-card__voc {
  border-left: 3px solid var(--premium-gold);
  padding-left: 12px;
  font-style: italic;
  color: #6b7280;
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

/* ── TESTIMONIALS ── */
.testimonials-section {
  margin-bottom: 72px;
}

.testimonial-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.testimonial-card__stars {
  color: var(--premium-gold);
  font-size: 16px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-card__quote {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  font-style: italic;
  margin: 0 0 14px;
  flex: 1;
}

.testimonial-card__amount {
  display: inline-block;
  background: #f0fdf4;
  color: #15803d;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  width: fit-content;
}

.testimonial-card__author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-card__avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--premium-dark);
  color: var(--premium-gold);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.testimonial-card__author {
  font-size: 13px;
  font-weight: 600;
  color: var(--premium-dark);
  margin: 0 0 2px;
}

.testimonial-card__source {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  display: block;
}

/* ── FAQ ── */
.faq-section {
  margin-bottom: 72px;
}

.faq-list {
  margin-top: 32px;
}

.svc-faq-item {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.svc-faq-item:first-child {
  border-top: 1px solid var(--line);
}

.svc-faq-item__q {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--premium-dark);
  margin: 0 0 12px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.svc-faq-item__a {
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
  margin: 0;
  max-width: 72ch;
}

/* ── CTA SECTION ── */
.cta-section {
  background: radial-gradient(ellipse at center top, #1a2d50 0%, #0f172a 65%);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  margin-bottom: 56px;
  border: 1px solid rgba(245,158,11,0.1);
}

@media (max-width: 640px) {
  .cta-section { padding: 40px 24px; }
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 36px);
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta-section p {
  color: #94a3b8;
  font-size: 16px;
  margin: 0 0 32px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn-primary {
  display: inline-block;
  padding: 16px 32px;
  background: var(--premium-gold);
  color: var(--premium-dark);
  font-weight: 700;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  display: inline-block;
  padding: 16px 32px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: #fff; }

.cta-section__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 28px;
  font-size: 14px;
  color: #64748b;
}
.cta-section__trust span::before { content: "✓ "; color: var(--premium-gold); }

/* ── RELATED LINKS ── */
.related-links {
  margin-bottom: 48px;
}

.related-links__heading {
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 16px;
}

.related-links__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links__item {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.related-links__item:hover {
  background: var(--premium-light);
  border-color: #94a3b8;
}

/* ── FINE PRINT ── */
.fine-print {
  margin-top: 24px;
  padding-top: 16px;
  font-size: 10px;
  color: #9ca3af;
  line-height: 1.6;
  max-width: 500px;
}

/* ── MODAL SHARED STYLES (required by scripts.js) ── */
.cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  background: var(--premium-dark);
  color: #fff;
  border: 2px solid var(--premium-gold);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}
.cta:hover {
  background: linear-gradient(135deg, var(--premium-dark) 0%, var(--premium-blue) 100%);
  transform: translateY(-2px);
}
