/*
 * Sponsorship & Asset Valuation landing page: additions to the theme.
 *
 * Direction A loads the live theme's own style.css, interkom-styles.css and
 * case-study.css. Every section on the page is an existing component:
 *   hero               .hero-section / .kicker / .hero-text / .hero-services-list
 *   hero image         .case-hero
 *   proof numbers      .case-stats
 *   chapter labels     .case-divider
 *   pressures, steps,
 *   process, projects  .case-cards
 *   services           .service-grid-row (Services page)
 *   featured project   .work-item (Work archive)
 *   deliverables       .case-split + .is-document
 *   statement, quote   .case-statement / .case-lead
 *   form               Gravity Forms styles from the Contact page
 *
 * This file is everything the page needs that the theme does not have yet.
 * Sections 1-4 adapt existing components to a new context. Section 5 (FAQ) is
 * the only new component, and it is built from the case-card rule and heading.
 */

/* 1. Hero container: the same box as #primary.services-content. */
.sp-container {
  box-sizing: border-box;
  max-width: var(--max-width-page);
  width: 100%;
  margin: 2rem auto 0;
  padding: 32px;
}
@media only screen and (max-width: 767px) {
  .sp-container {
    margin: 0 auto 1rem;
    padding: 0 24px;
  }
}

/* 2. Hero buttons: a third row in the hero grid (as #service-cta does), under the headline. */
.hero-inner > .cta-btn-container {
  grid-area: 3 / 1 / span 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.75rem;
  padding-left: calc(clamp(20px, 1.7123vw + 13.8356px, 40px) + 12px);
}
.hero-inner > .cta-btn-container a.btn-rounded {
  margin: 0;
}
@media only screen and (max-width: 767px) {
  .hero-inner > .cta-btn-container {
    grid-area: 4 / 1 / span 1 / -1;
    padding-left: 0;
  }
}

/* 3. Services rows inside a case section. On the Services page the rows sit on the
      page and GSAP fades it to slate; here the dark comes from .case-bg-accent. */
.case-section .service-grid-row {
  margin-top: 0;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-bottom-color: color-mix(in srgb, currentColor 40%, transparent);
}
.case-section .service-grid-row:first-child {
  padding-top: 0;
}
.case-section .service-grid-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.single-work .case-section .service-title h2,
.single-work .case-section .service-title h3 {
  margin: 0;
}
.single-work .case-section .service-description ul {
  margin: 1.5rem 0 0;
}
.single-work .case-section .service-description li + li {
  margin-top: 0;
}
/* Long lists (the ten asset classes) run in two columns. */
@media (min-width: 600px) {
  .single-work .case-section .service-description ul.is-two-col {
    columns: 2;
    column-gap: var(--case-gap);
    margin-top: 0;
  }
  .service-description ul.is-two-col li {
    break-inside: avoid;
  }
}
/* ...and the row gives the list the wider column. */
@media (min-width: 1000px) {
  .case-section .service-grid-row:has(ul.is-two-col) {
    grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  }
}

/* 4. Case cards holding more than one paragraph (project cards, step links). */
.single-work .case-cards .case-card p + p {
  margin-top: 0.6em;
}
.case-card .card-meta {
  font-size: var(--font-sm);
  opacity: 0.8;
}
.single-work .case-section .case-cards + p {
  margin-top: 2.5rem;
}
/* A Work archive item inside a case section, with cards under it. */
.case-section .work-archive-container {
  margin-block: 0;
}
.case-section .work-archive-container .work-item {
  margin-bottom: 0;
}
.single-work .case-section .work-archive-container + .case-cards {
  margin-top: 4.5rem;
}

/* 5. FAQ (new). Each question is a case card that opens: same rule, same 24px condensed head. */
.case-faq {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid currentColor;
}
.case-faq details {
  border-top: 1px solid currentColor;
}
.case-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.25rem;
  font-family: var(--serif-condensed);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.case-faq summary::-webkit-details-marker {
  display: none;
}
.case-faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans-font);
  font-weight: 300;
  font-size: 28px;
  line-height: 0.8;
  color: var(--ik-red);
  transition: rotate 0.275s ease;
}
.case-faq details[open] summary::after {
  rotate: 45deg;
}
.single-work .case-section .case-faq details p {
  margin: 0 0 1.5rem;
  max-width: 62ch;
}

/* 6. Form: the brief adds a dropdown. It takes the pill from the Work archive filters. */
#gform_1 select {
  width: 100%;
  border: 1px solid var(--dark-accent);
  border-radius: 25px;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  background-color: #fff;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%231a1c27' d='M0 0l5 6 5-6H0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px;
}
#contact {
  scroll-margin-top: 1rem;
}
