/* ─────────────────────────────────────────────────────────────────
   Home — hero, services, ring visual, floating data cards
   ─────────────────────────────────────────────────────────── */

/* ─── Hero-specific spacing tweaks ───────────────────────────── */
.hero-pills { margin-bottom: 52px; }

@media (max-width: 900px) {
  .hero-pills { margin-bottom: 36px; }
}

/* ─── Service visual: concentric rings + center icon ────────── */
.service-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 380px;
}

.vis-rings {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.vis-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 150, 136, 0.15);
  transform: translate(-50%, -50%);
}
.vis-ring--1 { width: 200px; height: 200px; }
.vis-ring--2 { width: 290px; height: 290px; }
.vis-ring--3 { width: 370px; height: 370px; border-color: rgba(0, 150, 136, 0.07); }

.vis-center {
  position: relative;
  z-index: 2;
  width: 120px; height: 120px;
  border-radius: 24px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px -8px rgba(0, 150, 136, 0.5);
}
.vis-center iconify-icon { color: #fff; font-size: 52px; }

/* ─── Floating data cards (orbital around the ring) ──────────── */
.float-card {
  position: absolute;
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  min-width: 150px;
}
.theme-light .float-card,
.theme-gray  .float-card {
  background: var(--bg-paper);
  box-shadow: 0 4px 20px rgba(76, 78, 100, 0.12);
}
.theme-dark .float-card {
  background: var(--dark-body);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.30);
}

.float-card-label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.theme-dark .float-card-label { color: rgba(255, 255, 255, 0.40); }

.float-card-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.float-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--primary-a8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.theme-dark .float-icon { background: rgba(0, 150, 136, 0.15); }
.float-icon iconify-icon { color: var(--primary); font-size: 17px; }

/* Orbital positions */
.fc-tr { top: 32px;    right: 16px; }
.fc-bl { bottom: 48px; left: 16px;  }
.fc-tl { top: 48px;    left: 24px;  }
.fc-br { bottom: 32px; right: 12px; }


/* ─── Services overview (6 levers in one grid) ────────────────
   Same FAQ-style overrides: auto height, top-anchored, overflow
   visible — so a six-card grid never gets clipped. */
#s-services {
  height: auto;
  min-height: 100vh;
  align-items: flex-start;
  padding-top: clamp(80px, 12vh, 120px);
  padding-bottom: 80px;
  overflow: visible;
}

.services-wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.services-head {
  text-align: center;
  margin-bottom: 48px;
}
.services-head .tag { display: inline-block; }
.services-head .section-h2 { margin-top: 14px; }
.services-head .section-desc { margin: 14px auto 0; max-width: 580px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-paper);
  border: 1px solid rgba(76, 78, 100, 0.08);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 150, 136, 0.20);
}

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-a16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card-icon iconify-icon {
  color: var(--primary);
  font-size: 22px;
}

.service-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.service-card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}

.service-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.service-card-metric {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(76, 78, 100, 0.06);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.service-card-metric-label {
  font-size: 11px;
  color: var(--text-secondary);
}
.service-card-metric-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-head { margin-bottom: 32px; }
}


/* ─── FAQ section ──────────────────────────────────────────────
   With many items the FAQ may exceed 100vh. We override the snap
   section's centred / fixed-height defaults so it grows naturally
   and anchors content to the top when snapped. */
#s-faq {
  height: auto;
  min-height: 100vh;
  align-items: flex-start;
  padding-top: clamp(80px, 12vh, 120px);
  padding-bottom: 80px;
  overflow: visible;
}

.faq-wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.faq-head {
  text-align: center;
  margin-bottom: 36px;
}
.faq-head .tag { display: inline-block; }
.faq-head .section-h2 { margin-top: 14px; }
.faq-head .section-desc { margin: 14px auto 0; max-width: 560px; }

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid rgba(76, 78, 100, 0.12);
}
.faq-item:last-child {
  border-bottom: 1px solid rgba(76, 78, 100, 0.12);
}

.faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.15s ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--primary); }

/* Plus / minus indicator */
.faq-q::after {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(var(--primary), var(--primary)) center / 14px 2px no-repeat,
    linear-gradient(var(--primary), var(--primary)) center / 2px 14px no-repeat;
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 4px 20px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
}
.faq-a p { margin: 0; }
.faq-a em { color: var(--text-primary); font-style: italic; }


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .service-visual { height: 340px; }
}

@media (max-width: 900px) {
  .service-visual { height: 240px; }
  .vis-ring--1 { width: 150px; height: 150px; }
  .vis-ring--2 { width: 220px; height: 220px; }
  .vis-ring--3 { width: 290px; height: 290px; }
  .vis-center {
    width: 92px; height: 92px;
    border-radius: 18px;
  }
  .vis-center iconify-icon { font-size: 40px !important; }

  /* Floating cards overlap awkwardly when the ring shrinks. Hide them. */
  .float-card { display: none; }

  /* FAQ: tighten spacing on small screens */
  .faq-head { margin-bottom: 24px; }
  .faq-q { font-size: 15px; padding: 16px 2px; gap: 16px; }
  .faq-a { font-size: 14px; padding-bottom: 16px; }
}

@media (max-width: 420px) {
  .service-visual { height: 200px; }
  .vis-ring--1 { width: 130px; height: 130px; }
  .vis-ring--2 { width: 190px; height: 190px; }
  .vis-ring--3 { width: 250px; height: 250px; }
  .vis-center {
    width: 80px; height: 80px;
    border-radius: 16px;
  }
  .vis-center iconify-icon { font-size: 34px !important; }
}
