/* Service landing pages (/feeds/service/*).
   Loaded on top of public.css, which defines the brand tokens (--teal, --ink,
   --border …). Everything here — layout, accordion, carousel — is ours. */

/* ============================== Section frame ============================= */

.svc-section { padding: 76px 0; }
.svc-section-soft { background: var(--bg-soft); }
.svc-section + .svc-section-soft,
.svc-section-soft + .svc-section { border-top: 1px solid var(--border); }

.svc-section h2 {
  font-size: clamp(27px, 3vw, 35px); font-weight: 800; color: var(--ink);
  line-height: 1.2; letter-spacing: -0.02em; max-width: 22ch;
}
/* Short accent rule under every section heading. */
.svc-section h2::after {
  content: ""; display: block; width: 46px; height: 3px; border-radius: 2px;
  background: var(--teal); margin: 16px 0 18px;
}
.svc-section > .container > p {
  font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 65ch;
}
.svc-section > .container > p + p { margin-top: 8px; }

/* ================================== Hero ================================= */

.svc-hero {
  background:
    radial-gradient(1100px 420px at 88% -8%, rgba(60, 123, 134, .14), transparent 62%),
    linear-gradient(180deg, var(--teal-tint) 0%, #fff 78%);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}
.svc-hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .svc-hero-inner { grid-template-columns: 1fr; gap: 34px; } }

.svc-hero h1 {
  font-size: clamp(31px, 4.2vw, 47px); font-weight: 800; color: var(--ink);
  line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 20px;
}
.svc-hero-copy p { font-size: 17.5px; line-height: 1.65; color: var(--body); max-width: 56ch; }
.svc-hero-copy p + p { margin-top: 10px; }
.svc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn-outline { background: #fff; color: var(--teal-dark); border: 1px solid var(--teal); }
.btn-outline:hover { background: var(--teal-tint); color: var(--teal-dark); }

.svc-hero-media img {
  width: 100%; height: auto; display: block; border-radius: 18px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .14), 0 2px 8px rgba(15, 23, 42, .06);
}

/* ============================== Service cards ============================= */

.svc-card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px;
}
@media (max-width: 940px) { .svc-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-card-grid { grid-template-columns: 1fr; } }

.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* Teal edge that grows in on hover. */
.svc-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--teal); transform: scaleY(0); transform-origin: top;
  transition: transform .22s ease;
}
.svc-card:hover {
  transform: translateY(-3px); border-color: #cfe0e3;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .09);
}
.svc-card:hover::before { transform: scaleY(1); }
.svc-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.svc-card p { font-size: 15px; line-height: 1.65; color: var(--body); flex: 1; }
.svc-card-link { font-size: 14px; font-weight: 600; color: var(--teal); }
.svc-card-link:hover { color: var(--teal-dark); }

/* ================================ Accordion ============================== */

.svc-accordion {
  margin-top: 36px; max-width: 900px;
  display: flex; flex-direction: column; gap: 12px;
}

.rh-faq-item {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.rh-faq-item:hover { border-color: #cfe0e3; box-shadow: 0 6px 18px rgba(15, 23, 42, .07); }
.rh-faq-item[open] {
  border-color: #b9d3d8;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .09);
}
/* Teal marker down the side of the open item. */
.rh-faq-item[open]::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--teal);
}

/* flex-start (not space-between): with a step number present the title must hug
   the number rather than float into the middle. The chevron is pushed right. */
.rh-faq-q {
  display: flex; align-items: center; justify-content: flex-start; gap: 14px;
  padding: 19px 22px; cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 650; line-height: 1.45; color: var(--ink);
  transition: color .15s ease;
}
.rh-faq-q::-webkit-details-marker { display: none; }
.rh-faq-q:hover { color: var(--teal-dark); }
.rh-faq-q:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; border-radius: 14px; }
.rh-faq-item[open] .rh-faq-q { color: var(--teal-dark); padding-bottom: 15px; }

.rh-chevron {
  flex: 0 0 auto; box-sizing: border-box; margin-left: auto;
  width: 28px; height: 28px; padding: 7px; border-radius: 999px;
  background: var(--bg-soft); color: var(--muted); fill: currentColor;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.rh-faq-q:hover .rh-chevron { background: var(--teal-tint); color: var(--teal-dark); }
.rh-faq-item[open] .rh-chevron {
  transform: rotate(180deg); background: var(--teal); color: #fff;
}

.rh-faq-a {
  padding: 0 22px 21px; font-size: 16px; line-height: 1.7; color: var(--body);
  animation: svc-reveal .22s ease;
}
.rh-faq-a > :last-child { margin-bottom: 0; }

@keyframes svc-reveal {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

/* Process steps: same component, numbered. */
.svc-accordion.is-steps { counter-reset: svc-step; }
.svc-accordion.is-steps .rh-faq-item { counter-increment: svc-step; }
.svc-accordion.is-steps .rh-faq-q::before {
  content: counter(svc-step);
  flex: 0 0 auto; width: 28px; height: 28px; margin-right: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--teal-tint); color: var(--teal-dark);
  font-size: 13px; font-weight: 700; transition: background-color .2s ease, color .2s ease;
}
.svc-accordion.is-steps .rh-faq-item[open] .rh-faq-q::before {
  background: var(--teal); color: #fff;
}
.svc-accordion.is-steps .rh-faq-a { padding-left: 52px; }

/* ============================== Inline CTA card ========================== */

.svc-inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  flex-wrap: wrap; margin-top: 30px; max-width: 900px;
  padding: 24px 26px; border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, var(--teal-tint) 100%);
  border: 1px solid #cfe0e3; box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
}
.svc-inline-cta-copy h3 { font-size: 20px; font-weight: 700; color: var(--ink); }
.svc-inline-cta-copy p { font-size: 15px; color: var(--muted); margin-top: 5px; }

/* =============================== Testimonials ============================ */

.svc-quote {
  flex: 0 0 min(440px, 84vw);
  display: flex; flex-direction: column; gap: 16px; justify-content: space-between;
  margin: 0; padding: 28px; border-radius: 16px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.svc-stars { color: #f0a92e; letter-spacing: 3px; font-size: 15px; line-height: 1; }
.svc-quote blockquote { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink); }
.svc-quote blockquote::before { content: "\201C"; }
.svc-quote blockquote::after  { content: "\201D"; }
.svc-quote figcaption {
  display: flex; flex-direction: column; gap: 3px;
  border-top: 1px solid var(--border); padding-top: 15px;
}
.svc-quote-name { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.svc-quote-role { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* =================================== Team ================================ */

.svc-member {
  flex: 0 0 min(760px, 92vw);
  display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start;
  padding: 26px; border-radius: 18px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
@media (max-width: 700px) { .svc-member { grid-template-columns: 1fr; gap: 20px; } }

.svc-member-photo img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border-radius: 14px; box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
}
.svc-member-initials {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal-tint), #dbeaec);
  color: var(--teal-dark); font-size: 56px; font-weight: 800;
}
.svc-member-body h3 { font-size: 21px; font-weight: 700; color: var(--ink); }
.svc-member-role {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); margin: 6px 0 14px;
}
.svc-member-bio { font-size: 15px; line-height: 1.7; color: var(--body); }

/* ================================= Features ============================== */

.svc-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 36px;
}
@media (max-width: 760px) { .svc-feature-grid { grid-template-columns: 1fr; } }

.svc-feature {
  padding: 20px 22px; border-radius: 14px;
  background: #fff; border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.svc-feature h3 { font-size: 17.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.svc-feature p { font-size: 15px; line-height: 1.65; color: var(--body); }

/* Award/badge variant: centred cards with artwork. */
.svc-feature-grid-media { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .svc-feature-grid-media { grid-template-columns: 1fr; } }
.svc-feature-card {
  border-left: 1px solid var(--border); text-align: center; padding: 30px 24px;
}
.svc-feature-badge {
  height: 64px; width: auto; margin: 0 auto 18px; display: block;
  opacity: .9;
}

.svc-wide-image {
  width: 100%; height: auto; display: block; border-radius: 18px; margin-top: 38px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .12);
}

/* ================================== Logos ================================ */

.svc-logos {
  display: flex; flex-wrap: wrap; align-items: center; gap: 34px; margin-top: 32px;
}
.svc-logos img { height: 60px; width: auto; object-fit: contain; }

/* ================================= Carousel ============================== */

.rh-carousel { position: relative; width: 100%; margin-top: 36px; }
.rh-carousel-viewport { overflow: hidden; }

.rh-carousel-track {
  display: flex; gap: 20px; padding: 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.rh-carousel-track::-webkit-scrollbar { display: none; }
.rh-carousel-track > * { scroll-snap-align: start; flex-shrink: 0; }

.rh-carousel-controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.rh-carousel-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--border); color: var(--ink);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.rh-carousel-btn svg { width: 17px; height: 17px; fill: currentColor; }
.rh-carousel-btn[data-rh-carousel-prev] svg { transform: rotate(180deg); }
.rh-carousel-btn:hover:not(:disabled) {
  background: var(--teal); border-color: var(--teal); color: #fff;
}
.rh-carousel-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.rh-carousel-btn:disabled { opacity: .3; cursor: default; }
.rh-carousel[data-rh-static] .rh-carousel-controls { display: none; }

/* ============================== Preview banner =========================== */

.preview-banner {
  background: #b45309; color: #fff; text-align: center;
  font-size: 14px; font-weight: 600; padding: 10px;
}

@media (max-width: 620px) {
  .svc-section { padding: 56px 0; }
  .rh-faq-q { padding: 17px 18px; font-size: 15.5px; gap: 14px; }
  .rh-faq-a { padding: 0 18px 18px; font-size: 15.5px; }
  .svc-accordion.is-steps .rh-faq-a { padding-left: 48px; }
}
