/* Approved Divorț & familie editorial layout, shared by individual services.
   Historical pilot identifiers are retained; service copy is never changed. */
body.at-service-pilot {
  --pilot-paper: #faf7f2;
  --pilot-green: #304a40;
  --pilot-muted: #655b58;
  background: var(--pilot-paper);
}

.at-service-pilot .service-page .wrap {
  max-width: 1408px;
  padding-inline: clamp(24px, 4vw, 64px);
}

.at-service-pilot .service-page a:focus-visible,
.at-service-pilot .service-page summary:focus-visible {
  outline: 2px solid var(--pilot-green); outline-offset: 5px;
}
.at-service-pilot .service-page .section { padding-block: clamp(64px, 7vw, 108px); }
.at-service-pilot .service-page .eyebrow { letter-spacing: .18em; }
.at-service-pilot .service-page .reveal { opacity: 1; transform: none; transition: none; }
.at-service-pilot .srv-overview,
.at-service-pilot #cum-lucram,
.at-service-pilot #intrebari { scroll-margin-top: 92px; }

/* One framed composition; every approved service stays visible. */
.at-service-pilot .service-page .srv-overview { padding-block: clamp(48px, 5vw, 80px); }
.at-service-pilot .srv-overview > .wrap {
  display: grid;
  width: calc(100% - clamp(32px, 6vw, 96px));
  padding: clamp(32px, 4vw, 64px);
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  grid-template-rows: min-content 1fr;
  column-gap: clamp(40px, 5.5vw, 88px);
  row-gap: 28px;
  align-items: start;
  border: 1px solid #80695730;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 0% 0%, #e8c3b647, transparent 48%),
    radial-gradient(ellipse at 100% 100%, #a7b79a30, transparent 52%),
    #fffaf5;
  box-shadow: 0 20px 64px #39252d05;
}
.at-service-pilot .srv-overview__head {
  display: block; grid-column: 1; grid-row: 1;
  margin: 0;
}
.at-service-pilot .srv-overview__head h2 {
  max-width: none;
  font-size: clamp(2.3rem, 3.2vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 18px 0 28px;
}
.at-service-pilot .srv-overview__head h2 em { color: var(--pilot-green); }
.at-service-pilot .srv-overview__title-line { display: block; }
.at-service-pilot .srv-overview__title-line:nth-child(2) { white-space: nowrap; }
.at-service-pilot .srv-overview__title-line:last-child { font-size: .82em; margin-top: .12em; }
.at-service-pilot .srv-overview__head > p {
  border: 0; padding: 0; max-width: 35ch;
  color: var(--pilot-muted); font-size: 1rem; line-height: 1.85;
}
.at-service-pilot .srv-help-list {
  grid-column: 2; grid-row: 1 / 3;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid #304a4026;
  margin: 0;
}
.at-service-pilot .srv-help-list li:nth-child(n) {
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-left: 0;
  border-bottom-color: #304a4026;
}
.at-service-pilot .srv-help-list li > span { display: none; }
.at-service-pilot .srv-help-list li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: .7rem;
  border-radius: 50%;
  background: #718570;
  box-shadow: 0 0 0 3px #71857015;
}
.at-service-pilot .srv-help-list p { margin: 0; font-size: .94rem; line-height: 1.6; color: var(--pilot-muted); }
.at-service-pilot .srv-help-list strong {
  display: block;
  font-family: var(--disp);
  font-size: 1.65rem; font-weight: 600; line-height: 1.2;
  color: var(--pilot-green);
}
.at-service-pilot .srv-help-list__detail { display: inline-block; margin-top: 5px; }
.at-service-pilot .srv-overview__cta {
  grid-column: 1; grid-row: 2;
  justify-self: start; align-self: start;
  margin-top: 0; padding: 16px 24px;
  font-size: .85rem; line-height: 1.6;
  background: var(--pilot-green);
  border-radius: 10px;
  max-width: 100%;
  white-space: normal;
}

/* Longer service pages retain their entire introduction and category lists.
   Flat lists stay beside the introduction; grouped lists use the frame's full
   width below it so long categories do not become narrow, crowded columns. */
.at-service-pilot .srv-overview--with-story > .wrap {
  grid-template-rows: min-content min-content 1fr;
}
.at-service-pilot .srv-story {
  grid-column: 1; grid-row: 2;
  display: block; padding: 24px 0 0; margin: 0;
  border: 0; border-top: 1px solid #304a4026;
  border-radius: 0; background: none;
}
.at-service-pilot .srv-story__label {
  display: block; margin-bottom: 16px;
  color: var(--pilot-green); font-size: 1.45rem; font-weight: 600;
}
.at-service-pilot .srv-story__copy {
  max-width: none; font-size: .96rem; line-height: 1.8; color: var(--pilot-muted);
}
.at-service-pilot .srv-story__copy em { color: var(--pilot-green); }
.at-service-pilot .srv-overview--with-story .srv-help-list { grid-row: 1 / 4; }
.at-service-pilot .srv-overview--with-story .srv-overview__cta { grid-row: 3; }
.at-service-pilot .srv-overview--grouped > .wrap {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  grid-template-rows: auto auto auto;
  row-gap: 40px;
}
.at-service-pilot .srv-overview--grouped .srv-story {
  grid-column: 2; grid-row: 1;
  padding-top: 0; border: 0;
}
.at-service-pilot .srv-help-groups {
  grid-column: 1 / -1; grid-row: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
}
.at-service-pilot .srv-help-group {
  padding: 24px 0 0; border: 0; border-top: 1px solid #304a4026;
  border-radius: 0; background: none; overflow: visible;
}
.at-service-pilot .srv-help-group::before { display: none; }
.at-service-pilot .srv-help-group:hover { transform: none; box-shadow: none; }
.at-service-pilot .srv-help-group__n {
  position: static; display: block; margin-bottom: 12px;
  color: #718570; font-size: 1rem;
}
.at-service-pilot .srv-help-group h3 {
  margin: 0 0 20px; font-size: 1.65rem; font-weight: 600;
  line-height: 1.2; color: var(--pilot-green);
}
.at-service-pilot .srv-help-group .tick { gap: 14px; }
.at-service-pilot .srv-help-group .tick li { color: var(--pilot-muted); font-size: .94rem; line-height: 1.65; }
.at-service-pilot .srv-help-group .tick li::before { background: #718570; }
.at-service-pilot .srv-help-group:last-child:nth-child(odd) { grid-column: 1 / -1; }
.at-service-pilot .srv-help-group:last-child:nth-child(odd) .tick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.at-service-pilot .srv-overview--grouped .srv-overview__cta { grid-column: 1 / -1; }

.at-service-pilot .shead h2 {
  font-size: clamp(2.6rem, 3.4vw, 3.5rem);
  font-weight: 500; letter-spacing: -.025em; line-height: 1.08;
}

/* Original connected steps: light panel, green circles and a centered title. */
.at-service-pilot #cum-lucram .shead { max-width: none; }
.at-service-pilot #cum-lucram .shead h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 700; letter-spacing: -.01em; line-height: 1.05;
}

/* Existing native details controls, styled as a readable question index. */
.at-service-pilot #intrebari { background: #fffdfa; }
.at-service-pilot .srv-faq {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: clamp(40px, 6vw, 96px);
}
.at-service-pilot .srv-faq .shead { margin: 0; max-width: 20rem; }
.at-service-pilot .srv-faq h2 em { color: var(--pilot-green); }
.at-service-pilot .srv-faq__list { gap: 0; border-top: 1px solid var(--line); }
.at-service-pilot .faq,
.at-service-pilot .faq[open] {
  background: none; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; box-shadow: none; overflow: visible;
}
.at-service-pilot .faq summary {
  padding: 25px 0; gap: 24px;
  font-size: 1.5rem; line-height: 1.25; font-weight: 600;
}
.at-service-pilot .faq summary:hover { color: var(--pilot-green); }
.at-service-pilot .faq__ic { width: 28px; height: 28px; border: 1px solid #304a4040; border-radius: 50%; }
.at-service-pilot .faq__a { padding: 0 48px 26px 0; color: var(--pilot-muted); line-height: 1.85; }

/* Related services keep their images, descriptions and destinations. */
.at-service-pilot .service-page > .section--tint:not(#cum-lucram) { background: #f0ece4; }
.at-service-pilot .service-page > .section--tint:not(#cum-lucram) .shead { text-align: left; margin-left: 0; }
.at-service-pilot .srv-related { gap: 32px; }
.at-service-pilot .srv-rcard {
  align-items: flex-start; gap: 20px;
  padding: 24px 0 0;
  border: 0; border-top: 1px solid #2b212633;
  border-radius: 0; background: none;
}
.at-service-pilot .srv-rcard:hover { transform: none; box-shadow: none; color: var(--pilot-green); }
.at-service-pilot .srv-rcard__ph { width: 94px; height: 106px; border: 0; border-radius: 2px; }
.at-service-pilot .srv-rcard__b b { font-size: 1.6rem; font-weight: 600; margin: 4px 0 10px; }
.at-service-pilot .srv-rcard__b span { font-size: .88rem; line-height: 1.65; color: var(--pilot-muted); }
.at-service-pilot .srv-rcard:hover .srv-rcard__b b { text-decoration: underline; text-underline-offset: 4px; }

.at-service-pilot .ctaband {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 48px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  text-align: left;
}
.at-service-pilot .ctaband h2 { font-size: clamp(2.4rem, 3.4vw, 3.4rem); font-weight: 500; line-height: 1.08; }
.at-service-pilot .ctaband h2 em {
  display: block; background: none; -webkit-text-fill-color: currentColor;
  color: #e8c3b6; animation: none;
}
.at-service-pilot .ctaband p { grid-column: 1; margin: 10px 0 0; line-height: 1.8; }
.at-service-pilot .ctaband .btn {
  grid-column: 2; grid-row: 1 / 3;
  background: #e8c3b6; color: #39252d;
  font-size: .9rem; font-weight: 700;
}
.at-service-pilot .ctaband .btn:hover { background: #f3d7cc; }
.at-service-pilot .ctaband a:focus-visible { outline-color: #fff; }

@media (max-width: 1000px) {
  .at-service-pilot .srv-overview > .wrap { column-gap: 32px; }
  .at-service-pilot .srv-overview__head h2 { font-size: 2.3rem; }
  .at-service-pilot .srv-help-list strong { font-size: 1.45rem; }
  .at-service-pilot .srv-related { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .at-service-pilot .srv-rcard { flex-direction: column; gap: 16px; }
  .at-service-pilot .ctaband { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .at-service-pilot .ctaband .btn { grid-column: 1; grid-row: auto; justify-self: start; }
}

@media (max-width: 920px) {
  .at-service-pilot .srv-steps .gcard:not(:last-child)::after { display: none; }
}

@media (max-width: 760px) {
  .at-service-pilot .srv-overview > .wrap { grid-template-columns: minmax(0, 1fr); row-gap: 30px; padding: 32px clamp(20px, 6vw, 32px); border-radius: 22px; }
  .at-service-pilot .srv-overview__head { grid-column: 1; grid-row: auto; }
  .at-service-pilot .srv-overview__head h2 { max-width: none; margin-block: 14px 22px; font-size: clamp(1.85rem, 8.2vw, 2.6rem); }
  .at-service-pilot .srv-overview__head > p { max-width: 54ch; }
  .at-service-pilot .srv-help-list { grid-column: 1; grid-row: auto; }
  .at-service-pilot .srv-overview__cta { grid-column: 1; grid-row: auto; }
  .at-service-pilot .srv-overview--with-story > .wrap,
  .at-service-pilot .srv-overview--grouped > .wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 30px; }
  .at-service-pilot .srv-overview--with-story .srv-story,
  .at-service-pilot .srv-overview--with-story .srv-help-list,
  .at-service-pilot .srv-overview--with-story .srv-overview__cta,
  .at-service-pilot .srv-help-groups { grid-column: 1; grid-row: auto; }
  .at-service-pilot .srv-help-groups { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .at-service-pilot .srv-help-group:last-child:nth-child(odd) .tick { grid-template-columns: minmax(0, 1fr); }
  .at-service-pilot .srv-help-group h3 { font-size: 1.5rem; }
  .at-service-pilot .srv-help-list li:nth-child(n) { grid-template-columns: 8px minmax(0, 1fr); gap: 14px; padding-block: 18px; }
  .at-service-pilot .srv-help-list p { font-size: .94rem; }
  .at-service-pilot .srv-help-list strong { font-size: 1.4rem; }
  .at-service-pilot .srv-faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .at-service-pilot .srv-faq .shead { max-width: 24rem; }
  .at-service-pilot .faq summary { font-size: 1.4rem; padding-block: 22px; }
  .at-service-pilot .faq__a { padding-right: 0; }
  .at-service-pilot .srv-related { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .at-service-pilot .srv-rcard { flex-direction: row; }
  .at-service-pilot .srv-rcard__ph { width: 82px; height: 92px; }
  .at-service-pilot .srv-rcard__b b { font-size: 1.5rem; }
  .at-service-pilot .ctaband { padding: 32px 24px; }
  .at-service-pilot .ctaband .btn { padding-inline: 20px; }
  .at-service-pilot .srv-overview,
  .at-service-pilot #cum-lucram,
  .at-service-pilot #intrebari { scroll-margin-top: 80px; }
}
