/* ============ Breadcrumb ============ */
.service-breadcrumb {
  padding: 56px var(--side-padding) 0;
  font-size: 13.5px;
  color: var(--color-text-faint);
  font-family: var(--font-heading);
}
.service-breadcrumb a { color: var(--color-text-faint); }
.service-breadcrumb a:hover { color: var(--color-red); }
.service-breadcrumb .current { color: var(--color-text); font-weight: 600; }

/* ============ Service hero ============ */
.service-hero {
  padding: 28px var(--side-padding) 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}
.service-hero-tag {
  display: inline-flex;
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
}
.service-hero-tag.tone-teal { background: #eaf7f4; color: var(--accent-teal); }
.service-hero-tag.tone-red { background: var(--tint-rose); color: var(--color-red); }
.service-hero h1 {
  font-weight: 700;
  font-size: 46px;
  line-height: 1.08;
  margin: 20px 0 16px;
  letter-spacing: -1px;
}
.service-hero p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 0 28px;
}
.service-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.service-hero-media img { height: 320px; width: 100%; border-radius: 22px; object-fit: cover; }
.service-hero-media-duo { position: relative; padding: 0 28px 28px 0; }
.service-hero-media-duo .service-hero-img-main { position: relative; height: 320px; box-shadow: 0 28px 48px rgba(0, 0, 0, 0.22); }
.service-hero-media-duo .service-hero-img-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 170px;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.3);
}

@media (max-width: 980px) {
  .service-hero { grid-template-columns: 1fr; }
  .service-hero-media img { height: 240px; }
}

/* ============ Icon cards (what we offer / who this is for) ============ */
.icon-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.icon-card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.icon-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
}
.icon-card.centered { text-align: center; }
.icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-card.centered .icon-badge { width: 44px; height: 44px; border-radius: 12px; margin: 0 auto; }
.icon-card h3 { font-weight: 700; font-size: 17px; margin: 14px 0 6px; }
.icon-card.centered h3 { font-size: 15px; margin-top: 14px; margin-bottom: 0; }
.icon-card p { font-size: 13.5px; color: var(--color-text-mutest); line-height: 1.5; }

@media (max-width: 980px) { .icon-card-grid, .icon-card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .icon-card-grid, .icon-card-grid.cols-4 { grid-template-columns: 1fr; } }

/* ============ Who it's for: split layout ============ */
.who-for-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.who-for-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-mutest);
  margin-bottom: 10px;
}
.who-for-text .section-title { margin-bottom: 14px; }
.who-for-text p { font-size: 15px; color: var(--color-text-muted); line-height: 1.6; margin: 0 0 24px; max-width: 420px; }

.dark-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dark-card {
  background: var(--tint-rose);
  border-radius: var(--radius-card);
  padding: 22px;
}
.dark-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.dark-card h3 { color: var(--color-text); font-weight: 700; font-size: 15.5px; margin: 0 0 6px; }
.dark-card p { color: var(--color-text-muted); font-size: 13px; line-height: 1.5; margin: 0; }

@media (max-width: 980px) {
  .who-for-split { grid-template-columns: 1fr; }
  .who-for-text p { max-width: none; }
}
@media (max-width: 560px) {
  .dark-card-grid { grid-template-columns: 1fr; }
}

/* ============ Plain info cards (how we can help) ============ */
.info-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius-card);
  padding: 24px;
}
.info-card h3 { font-weight: 700; font-size: 16.5px; margin-bottom: 8px; }
.info-card p { font-size: 13.5px; color: var(--color-text-mutest); line-height: 1.55; }

@media (max-width: 980px) { .info-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .info-card-grid { grid-template-columns: 1fr; } }

/* ============ Sessions list ============ */
.sessions-list { display: flex; flex-direction: column; border: 1.5px solid var(--color-border); border-radius: var(--radius-card); overflow: hidden; }
.session-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.session-item:last-child { border-bottom: none; }
.session-date {
  font-weight: 700;
  background: var(--pill-pink);
  color: var(--color-red);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  min-width: 64px;
  font-family: var(--font-heading);
}
.session-date .month { font-size: 12px; }
.session-date .day { font-size: 18px; }
.session-info { flex: 1; min-width: 180px; }
.session-info h3 { font-weight: 700; font-size: 16px; }
.session-info p { font-size: 13px; color: var(--color-text-faint); }

/* ============ Eligibility / locations split ============ */
.eligibility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.eligibility-card { border-radius: 20px; padding: 32px; }
.eligibility-card.tone-sand { background: #f4f1ea; }
.eligibility-card.tone-white { background: #fff; border: 1.5px solid var(--color-border); }
.eligibility-card h3 { font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.eligibility-card p, .eligibility-card ul { font-size: 14px; color: var(--color-text-muted); line-height: 1.8; }
.eligibility-card ul { list-style: none; padding: 0; margin: 0; }
.eligibility-card li::before { content: "\2713  "; color: var(--color-red); }

@media (max-width: 980px) { .eligibility-grid { grid-template-columns: 1fr; } }

/* ============ Accordion (native details/summary) ============ */
.accordion-list { display: flex; flex-direction: column; border: 1.5px solid var(--color-border); border-radius: var(--radius-card); overflow: hidden; }
.accordion-list details { border-bottom: 1px solid var(--color-border); }
.accordion-list details:last-child { border-bottom: none; }
.accordion-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 26px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
}
.accordion-list summary::-webkit-details-marker { display: none; }
.accordion-title { font-weight: 700; font-size: 16px; }
.accordion-sub { font-size: 13.5px; color: var(--color-text-mutest); margin-top: 3px; font-family: var(--font-body); font-weight: 400; }
.accordion-icon { font-size: 20px; color: var(--color-red); flex-shrink: 0; transition: transform 0.15s ease; }
.accordion-list details[open] .accordion-icon { transform: rotate(45deg); }
.accordion-body { padding: 0 26px 20px; font-size: 13.5px; color: var(--color-text-muted); line-height: 1.6; }
/* A link inside an answer has to look like one — base.css makes every link
   inherit its surroundings, which left these reading as plain grey text. */
.accordion-body a { color: var(--color-red); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.accordion-body a:hover { text-decoration-thickness: 2px; }
ul.accordion-body { padding-left: 46px; }
ul.accordion-body li { margin-bottom: 5px; }

.faq-summary { font-weight: 700; font-size: 15.5px; }

/* ============ Contact this team ============ */
.contact-team-card {
  border-radius: 20px;
  background: #f4f1ea;
  padding: 32px;
}
.contact-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-team-grid h3 { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15.5px; margin-bottom: 8px; }
.contact-team-grid h3 svg { flex-shrink: 0; }
.contact-team-grid p { font-size: 14px; color: var(--color-text-muted); line-height: 1.7; }

/* Used where a page lists only one contact method. */
.contact-team-grid-single { grid-template-columns: 1fr; }
/* A single contact cell can carry a long list of offices and numbers. Setting
   it in two columns keeps the panel from running down the page; the heading
   spans both, and a location's name never parts from its numbers. */
@media (min-width: 781px) {
  .contact-team-grid-single > div { columns: 2; column-gap: 56px; }
  .contact-team-grid-single h3 { column-span: all; }
  .contact-team-grid-single .contact-team-subhead { break-after: avoid; }
  .contact-team-grid-single p { break-inside: avoid; }
}
.contact-team-grid-duo { grid-template-columns: 1fr 1fr; }

/* Sub-heading inside a contact cell, for grouping numbers by area. */
.contact-team-grid .contact-team-subhead {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--color-text);
  margin-top: 14px;
}
.contact-team-grid h3 + .contact-team-subhead { margin-top: 0; }

@media (max-width: 780px) { .contact-team-grid { grid-template-columns: 1fr; } }

/* ============ Related services ============ */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  color: var(--color-text);
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 22px;
  display: block;
}
.related-card .icon-badge { width: 38px; height: 38px; border-radius: 10px; }
.related-card h3 { font-weight: 700; font-size: 16px; margin: 12px 0 3px; }
.related-card p { font-size: 12.5px; color: var(--color-text-mutest); }

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

/* ============ Dark CTA banner ============ */
.cta-banner-dark {
  margin: 0 24px 52px;
  border-radius: var(--radius-lg);
  background: var(--color-text);
  color: #fff;
  padding: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.cta-banner-dark h2 { font-weight: 700; font-size: 26px; }
.cta-banner-dark p { font-size: 14.5px; color: #b8b0b4; margin-top: 6px; }
.btn-gold { background: #f4b64a; color: var(--color-text); }
.btn-gold:hover { background: #eaa930; transform: translateY(-2px); }

@media (max-width: 640px) { .cta-banner-dark { margin: 0 12px 40px; padding: 32px; } }

/* Anchor targets must clear the fixed header */
.section[id] { scroll-margin-top: 100px; }

/* ============ Photo strip (a row of real moments inside a text section) ============ */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.photo-strip-5 { grid-template-columns: repeat(5, 1fr); }
/* Three wider frames get a taller box so they are not letterboxed. */
.photo-strip-3 { grid-template-columns: repeat(3, 1fr); }
.photo-strip-3 img { height: 270px; }
/* Two frames are wide, so give them more height again. */
.photo-strip-2 { grid-template-columns: repeat(2, 1fr); }
.photo-strip-2 img { height: 340px; }
.photo-strip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  /* Feed this strip landscape crops. A portrait source would be cut vertically
     here, and there is no single anchor that works for every one of them —
     crop the file instead. */
  border-radius: 18px;
  display: block;
  box-shadow: var(--shadow-float);
}

/* Two across below 780px, never one: stacked one to a row, five photos made
   about 1,150px of scrolling on a phone. With an odd number the first photo
   takes the full row, so none is left standing alone at the end. */
@media (max-width: 780px) {
  .photo-strip,
  .photo-strip-5,
  .photo-strip-3,
  .photo-strip-2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .photo-strip img,
  .photo-strip-3 img,
  .photo-strip-2 img { height: 200px; }
  .photo-strip > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .photo-strip img,
  .photo-strip-3 img,
  .photo-strip-2 img { height: 130px; border-radius: 14px; }
  .photo-strip > :first-child:nth-last-child(odd) { height: 180px; }
}

/* "You may also be interested in": three cards, so three across down to
   tablet width rather than two and one left over, and without the empty
   band the two-line title reserve left under one-line titles. */
@media (min-width: 641px) and (max-width: 980px) {
  .program-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .program-card-body { padding: 36px 18px 18px; }
  .program-card-body h3 { font-size: 15px; }
}
@media (max-width: 980px) {
  .program-card { padding-bottom: 0; }
  .program-card-body h3 { min-height: 0; }
  .program-card-body p { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .program-grid { gap: 16px; }
  .program-card-body { padding-bottom: 20px; }
}

/* ============ Employer testimonials ============ */
/* A slider rather than a wall of quotes: five testimonials would push the FAQs
   far down the page, and employers read one at a time anyway. It is a scroll
   container first, so a touch screen can swipe it with no script at all; the
   script only adds the arrows, the dots and the automatic advance. */
.testimonial-slider { position: relative; margin-top: 26px; }
.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.testimonial-track::-webkit-scrollbar { display: none; }
/* The track takes keyboard focus so it can be scrolled with the arrow keys. */
.testimonial-track:focus-visible { outline: 2px solid var(--color-red); outline-offset: -2px; border-radius: 16px; }
.testimonial {
  scroll-snap-align: center;
  margin: 0;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 34px 38px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  position: relative;
  padding-left: 30px;
}
.testimonial blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -10px;
  font-family: var(--font-heading);
  font-size: 46px;
  line-height: 1;
  color: var(--color-red);
  opacity: 0.35;
}
.testimonial figcaption { font-size: 14px; line-height: 1.5; margin-top: auto; }
.testimonial blockquote p + p { margin-top: 12px; }
.testimonial-name { display: block; font-family: var(--font-heading); font-weight: 700; color: var(--color-red); }
.testimonial-role { display: block; color: var(--color-text-muted); }

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.testimonial-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.testimonial-arrow:hover { border-color: var(--color-red); }
.testimonial-pause svg { width: 12px; height: 12px; fill: currentColor; }
/* Each dot is drawn at 9px but is a 24px button: the padding is transparent
   and the colour stops at the content box, so a thumb can hit it. */
.testimonial-dots { display: flex; gap: 0; margin: -7.5px; }
.testimonial-dot {
  width: 24px;
  height: 24px;
  padding: 7.5px;
  background-clip: content-box;
  border: 0;
  border-radius: 50%;
  background-color: var(--color-border);
  cursor: pointer;
}
.testimonial-dot[aria-current="true"] { background-color: var(--color-red); }

@media (max-width: 640px) {
  .testimonial { padding: 26px 24px 24px; }
  .testimonial blockquote { font-size: 15.5px; }
}

/* ============ Office maps under a contact block ============ */
.map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.map-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.map-card iframe { width: 100%; height: 190px; border: 0; display: block; }
.map-card-label { padding: 14px 16px 16px; font-size: 13.5px; line-height: 1.55; }
.map-card-name { display: block; font-family: var(--font-heading); font-weight: 700; color: var(--color-text); }
.map-card-address { display: block; color: var(--color-text-muted); }

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

/* Very narrow screens (a 1280px window zoomed to 400% is 320px wide, WCAG
   1.4.10): "Employment" at 46px is wider than the column. */
@media (max-width: 360px) {
  .service-hero h1 { font-size: 38px; }
}
