/* ── Service Pages Shared Styles ── */

/* ── Class aliases for HTML compatibility ── */

/* hero body text */
.hero-text {
  color: rgba(255, 255, 255, 0.68);
  max-width: 54ch;
  font-size: 1.05rem;
  animation: svc-fade-up 0.7s 0.14s ease both;
}

/* hero trust badges / tags row */
.hero-note {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  animation: svc-fade-up 0.8s 0.28s ease both;
}

.hero-note span {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  background: rgba(74, 122, 191, 0.15);
  border: 1px solid rgba(126, 184, 247, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
}

/* insight panel inside hero */
.insight-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(126, 184, 247, 0.7);
  margin-bottom: 1rem;
  display: block;
}

.insight-stack {
  display: grid;
  gap: 0;
}

.insight-stack article {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.insight-stack article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.insight-stack h2,
.insight-stack h3 {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  margin: 0 0 0.3rem;
}

.insight-stack p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0;
}

/* faq-list alias for faq-grid */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 860px;
  margin-inline: auto;
  margin-top: 2rem;
}

/* p directly inside details (no .faq-body wrapper) */
details.faq-item > p {
  padding: 1.1rem 1.35rem 1.35rem;
  color: var(--text-soft, #52657a);
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Section Base ── */

.section,
.section-alt,
.cta-section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(232,239,248,0.35) 0%, rgba(240,244,248,0.55) 100%);
  border-top: 1px solid rgba(18,33,49,0.06);
  border-bottom: 1px solid rgba(18,33,49,0.06);
}

.section-heading {
  margin-bottom: 2.4rem;
}

.section-heading h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--charcoal, #0f1720);
  margin: 0 0 0.85rem;
}

.section-heading p {
  color: var(--text-soft, #52657a);
  max-width: 58ch;
}

.section-heading.center {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 2.8rem;
}

.section-heading.center p {
  margin-inline: auto;
}

/* ── Dark Page Hero ── */

.page-hero {
  background: linear-gradient(160deg, #0a1220 0%, #0f2540 55%, #102944 100%);
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
}

@keyframes svc-glow-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.07); }
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 25%, rgba(74, 122, 191, 0.2) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 10% 80%, rgba(16, 41, 68, 0.6) 0%, transparent 60%);
  pointer-events: none;
  animation: svc-glow-pulse 9s ease-in-out infinite;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(126, 184, 247, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

@keyframes svc-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: #7eb8f7;
  animation: svc-fade-up 0.6s ease both;
}

.page-hero h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: #fff;
  max-width: 22ch;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
  animation: svc-fade-up 0.65s 0.08s ease both;
}

.hero-accent {
  font-style: italic;
  color: #7eb8f7;
  display: block;
}

.page-hero-text {
  color: rgba(255, 255, 255, 0.68);
  max-width: 54ch;
  font-size: 1.05rem;
  animation: svc-fade-up 0.7s 0.14s ease both;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  animation: svc-fade-up 0.75s 0.2s ease both;
}

.hero-trust {
  margin: 1rem 0 0;
  color: rgba(126, 184, 247, 0.85);
  font-weight: 600;
  font-size: 0.88rem;
  animation: svc-fade-up 0.8s 0.26s ease both;
}

/* ── Hero Layout ── */

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem 1.8rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
  animation: svc-fade-up 0.85s 0.18s ease both;
}

.hero-panel-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(126, 184, 247, 0.7);
  margin-bottom: 1rem;
  display: block;
}

.hero-panel-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
  line-height: 1.45;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-panel-check:last-child {
  border-bottom: none;
}

.hero-check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(74, 122, 191, 0.18);
  border: 1.5px solid rgba(126, 184, 247, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1em;
}

.hero-check-icon svg {
  width: 10px;
  height: 10px;
  stroke: #7eb8f7;
}

/* ── Metrics Grid ── */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 2rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(18, 33, 49, 0.08);
  border-radius: var(--radius-lg, 18px);
  box-shadow: var(--shadow-md, 0 4px 24px rgba(18,33,49,0.08));
  padding: 1.6rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #183a63 0%, #4a7abf 50%, #7eb8f7 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s ease;
  border-radius: 18px 18px 0 0;
}

.metric-card:hover::before {
  transform: scaleX(1);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(18, 33, 49, 0.14);
}

@keyframes fig-pulse {
  0%, 100% { text-shadow: 0 0 0 rgba(74, 122, 191, 0); }
  50%       { text-shadow: 0 0 20px rgba(74, 122, 191, 0.28); }
}

.metric-figure {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #183a63 0%, #4a7abf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.4rem;
}

.metric-card.is-visible .metric-figure {
  animation: fig-pulse 3s ease-in-out infinite;
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted, #7a8fa3);
  display: block;
  margin-bottom: 0.5rem;
}

.metric-desc {
  font-size: 0.88rem;
  color: var(--text-soft, #52657a);
  line-height: 1.5;
  margin: 0;
}

/* ── Content Grid ── */

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.content-grid.flip {
  grid-template-columns: 1.05fr 1fr;
  direction: rtl;
}

.content-grid.flip > * {
  direction: ltr;
}

/* ── Check Panel ── */

.check-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 33, 49, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow-md, 0 4px 24px rgba(18,33,49,0.08));
  padding: 2rem 1.8rem;
}

.check-panel-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue, #183a63);
  margin-bottom: 1.2rem;
  display: block;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

@keyframes dot-in {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--charcoal, #0f1720);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue, #183a63);
  box-shadow: 0 0 0 5px rgba(24, 58, 99, 0.1);
  margin-top: 0.45em;
}

.check-panel.is-visible .check-list li::before { animation: dot-in 0.35s ease both; }
.check-panel.is-visible .check-list li:nth-child(2)::before { animation-delay: 0.05s; }
.check-panel.is-visible .check-list li:nth-child(3)::before { animation-delay: 0.1s; }
.check-panel.is-visible .check-list li:nth-child(4)::before { animation-delay: 0.15s; }
.check-panel.is-visible .check-list li:nth-child(5)::before { animation-delay: 0.2s; }
.check-panel.is-visible .check-list li:nth-child(6)::before { animation-delay: 0.25s; }
.check-panel.is-visible .check-list li:nth-child(7)::before { animation-delay: 0.3s; }

/* ── Split Layout ── */

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Process Grid ── */

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.process-card {
  background: linear-gradient(145deg, #0f2540 0%, #1a3a6b 100%);
  border: 1px solid rgba(74, 122, 191, 0.2);
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #4a7abf 0%, #7eb8f7 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.42s ease;
  border-radius: 0 2px 2px 0;
}

.process-card.is-visible::before,
.process-card:hover::before {
  transform: scaleY(1);
}

.process-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(10, 18, 32, 0.4);
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(24, 58, 99, 0.25); }
  50%       { box-shadow: 0 4px 22px rgba(74, 122, 191, 0.55); }
}

.process-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #183a63 0%, #2a5a9e 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.process-card.is-visible .process-number {
  animation: badge-glow 2.5s ease-in-out infinite;
}

.process-card h3 {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.process-card p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

/* ── Related Grid ── */

.related-section {
  padding: 5rem 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 2.2rem;
}

.related-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(18, 33, 49, 0.08);
  border-radius: var(--radius-lg, 18px);
  box-shadow: var(--shadow-md, 0 4px 24px rgba(18,33,49,0.08));
  padding: 1.6rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  display: block;
}

.related-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #183a63 0%, #4a7abf 50%, #7eb8f7 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s ease;
  border-radius: 18px 18px 0 0;
}

.related-card:hover::before {
  transform: scaleX(1);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(18, 33, 49, 0.14);
}

.related-card .card-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue, #183a63);
  margin-bottom: 0.55rem;
  display: block;
}

.related-card h3 {
  font-size: 1.05rem;
  color: var(--charcoal, #0f1720);
  margin: 0 0 0.5rem;
}

.related-card p {
  font-size: 0.88rem;
  color: var(--text-soft, #52657a);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.related-card .card-arrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue, #183a63);
}

/* ── FAQ Accordion ── */

.faq-section {
  padding: 5rem 0;
}

.faq-grid {
  display: grid;
  gap: 0.75rem;
  max-width: 860px;
  margin-inline: auto;
  margin-top: 2rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(18, 33, 49, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(18, 33, 49, 0.05);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  color: var(--charcoal, #0f1720);
  cursor: pointer;
  list-style: none;
  font-size: 0.97rem;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23183a63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  background: rgba(232, 239, 248, 0.5);
}

.faq-item[open] summary {
  border-bottom: 1px solid rgba(18, 33, 49, 0.07);
  color: var(--blue, #183a63);
}

.faq-body {
  padding: 1.1rem 1.35rem 1.35rem;
  color: var(--text-soft, #52657a);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ── CTA Section ── */

.cta-section {
  padding: 5rem 0;
}

.cta-shell {
  padding: 2.4rem 2.2rem;
  border-radius: 28px;
  background: linear-gradient(145deg, #0a1220 0%, #0f2540 50%, #1a3a6b 100%);
  color: #fff;
  box-shadow: 0 20px 60px rgba(10, 18, 32, 0.3);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 90% 40%, rgba(74, 122, 191, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.cta-shell .eyebrow {
  color: #7eb8f7;
}

.cta-shell h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.cta-shell p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.cta-shell .btn-primary {
  background: #fff;
  color: var(--blue, #183a63);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.cta-shell .btn-primary:hover {
  background: #f0f4f9;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md, 12px);
  font-weight: 700;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

/* ── Scroll Reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.metrics-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.metrics-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.process-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.process-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.process-grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.related-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.related-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.faq-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.faq-grid .reveal:nth-child(3) { transition-delay: 0.09s; }
.faq-grid .reveal:nth-child(4) { transition-delay: 0.13s; }
.faq-grid .reveal:nth-child(5) { transition-delay: 0.17s; }

/* ── Reduced Motion ── */

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-hero::before { animation: none; }
  .metric-card.is-visible .metric-figure { animation: none; }
  .process-card.is-visible .process-number { animation: none; }
  .check-panel.is-visible .check-list li::before { animation: none; }
}

/* ── Responsive ── */

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }
  .hero-panel {
    display: none;
  }
  .content-grid,
  .content-grid.flip {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }
  .split-layout {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .cta-shell {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 840px) {
  .section,
  .section-alt,
  .cta-section,
  .related-section,
  .faq-section {
    padding: 4rem 0;
  }
  .page-hero {
    padding: 4.5rem 0 3.5rem;
  }
  .metrics-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .metrics-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .cta-actions {
    flex-direction: column;
  }
}
