/*
 * Option C3: "Lead first". C2's content, re-ordered around the enquiry.
 * Loaded after direction-c.css and direction-c2.css; scoped under .sponsorship-c3.
 *
 * What it borrows from the site, and where it pushes it:
 *   red italic emphasis   the home page headline marks its key words this way;
 *                         here it is used in one headline (Why now)
 *   mosaic                the home page's grid of rounded image cards; here the
 *                         tiles also carry the proof numbers
 *   slate card            the Agency card and the slate panel from C2; here it
 *                         holds a short two-step enquiry in the hero
 *   pills                 the pill button and pill select; here as tickable chips
 * New to the site: the two-step enquiry, number tiles, the call-to-action row in
 * the one-roof band, the "For your RFP file" card.
 */

/* Red italic emphasis, as in the home page headline. Used once, in Why now. */
.single-work .sponsorship-c3 .case-section h3.sc-head em {
  font-family: var(--serif-font);
  font-style: italic;
  font-weight: 300;
  color: var(--ik-red);
}

/* -- 4.1 Hero: headline beside the enquiry card -------------------------------- */

/* The hero runs the full width of the page, to the same edges as the service
   cards further down, so the headline and the card both have room. */
.sponsorship-c3 > .sp-container {
  max-width: 1760px;
}
.c3-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}
.sponsorship-c3 .c3-hero h1.hero-text {
  margin: 0 0 1.5rem;
  font-family: var(--serif-font);
  font-weight: 300;
  font-size: clamp(38px, 5.2vw, 92px);
  line-height: 1.07;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.c3-hero .hero-subtext {
  grid-column: 1 / -1;
  max-width: 40rem;
  text-wrap: pretty; /* the theme balances these lines, which made them short and stacked */
}
.c3-hero .c3-hero-links {
  margin: 1.5rem 0 0;
}
.c3-hero .c3-hero-links a.btn-rounded {
  margin: 0;
}

/* The card: slate, with the two faint circles of the Agency cards. */
.c3-start {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border-radius: 12px;
  background: var(--dark-accent);
  box-shadow: var(--sc-shadow);
  color: var(--c-white);
  scroll-margin-top: 1.5rem;
}
.c3-start::before,
.c3-start::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(248, 244, 227, 0.045);
  pointer-events: none;
}
.c3-start::before {
  width: 420px;
  height: 420px;
  right: -190px;
  bottom: -230px;
}
.c3-start::after {
  width: 260px;
  height: 260px;
  left: -90px;
  top: -170px;
}
/* Two steps, the current one ruled in red. */
.c3-progress {
  list-style: none;
  counter-reset: s;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 1.6rem;
  padding: 0;
}
.c3-progress li {
  counter-increment: s;
  margin: 0;
  padding-top: 0.7rem;
  border-top: 2px solid rgba(248, 244, 227, 0.28);
  font: 500 13px/1.2 var(--sans-font);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.65;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}
.c3-progress li::before {
  content: counter(s, decimal-leading-zero) "\00a0\00a0";
}
.c3-start[data-step="1"] .c3-progress li:first-child,
.c3-start[data-step="2"] .c3-progress li,
.c3-start[data-step="3"] .c3-progress li {
  border-top-color: var(--ik-red);
  opacity: 1;
}
.c3-step[hidden] {
  display: none;
}
.sponsorship-c3 .c3-start h2 {
  margin: 0 0 0.6rem;
  font-family: var(--serif-font);
  font-weight: 300;
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.3px;
  color: var(--c-white);
  outline: none;
}
.sponsorship-c3 .c3-start p {
  margin: 0 0 1.35rem;
  font-size: 16.5px;
  line-height: 1.45;
}

/* Chips: the pill, tickable. The ring and tick are the tick list's. */
.c3-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.c3-chip {
  position: relative;
  cursor: pointer;
}
.c3-chip input {
  position: absolute;
  opacity: 0;
}
.c3-chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem 0.45rem 0.6rem;
  border: 1.5px solid rgba(248, 244, 227, 0.5);
  border-radius: 25px;
  font-size: 14.5px;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.c3-chip span::before {
  content: "";
  flex: none;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.75;
}
.c3-chip:hover span {
  border-color: var(--c-white);
}
.c3-chip input:checked + span {
  background: var(--c-white);
  border-color: var(--c-white);
  color: #000;
}
.c3-chip input:checked + span::before {
  border-color: var(--ik-red);
  background: var(--ik-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.4 8.3 2.4 2.4 4.8-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 1;
}
.c3-chip input:focus-visible + span {
  outline: 2px solid var(--ik-red);
  outline-offset: 2px;
}

.c3-start-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.6rem;
}
/* The site's red pill, as a button. */
.c3-btn {
  border: 2px solid var(--ik-red);
  border-radius: 25px;
  padding: 0.75rem 2rem;
  background: var(--ik-red);
  color: #fff;
  font: inherit;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.275s ease;
}
.c3-btn:hover,
.c3-btn:focus-visible {
  border-color: var(--c-white);
  background: var(--c-white);
  color: #000;
}
.c3-count {
  font-size: 15.5px;
  opacity: 0.85;
}
.c3-link {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.c3-fields {
  display: grid;
  gap: 0.9rem;
}
.c3-field span {
  display: block;
  margin-bottom: 0.35rem;
  font: 500 13px/1.2 var(--sans-font);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sponsorship-c3 .c3-field input {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 25px;
  padding: 0.6rem 1rem;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 17px;
}
.sponsorship-c3 .c3-field input:focus-visible {
  outline: 2px solid var(--ik-red);
  outline-offset: 2px;
}

/* -- 4.2 Proof: mosaic ----------------------------------------------------------- */

.c3-bento {
  --c3-gap: clamp(12px, 1.6vw, 24px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(clamp(170px, 16vw, 230px), auto);
  gap: var(--c3-gap);
}
.c3-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  padding: clamp(1.1rem, 2vw, 1.75rem);
  border-radius: 12px;
  box-shadow: var(--sc-shadow);
  grid-column: span 3;
}
.c3-tile--lead {
  grid-column: span 6;
}
.single-work .sponsorship-c3 .case-section .c3-tile p {
  margin: 0;
  max-width: 30ch;
  font-size: 17px;
  line-height: 1.35;
}
.single-work .sponsorship-c3 .case-section .c3-tile p.c3-num {
  margin: 0 0 0.35rem;
  max-width: none;
  font-family: var(--serif-font);
  font-weight: 300;
  font-size: clamp(44px, 4.6vw, 66px);
  line-height: 0.95;
  letter-spacing: -1px;
  color: #000;
}
.single-work .sponsorship-c3 .case-section .c3-tile--lead p.c3-num {
  font-size: clamp(60px, 8vw, 116px);
  letter-spacing: -2px;
}
/* The photo tile: two rows tall, caption on a soft slate shade. */
.sponsorship-c3 a.c3-tile--photo,
.sponsorship-c3 a.c3-tile--photo:visited,
.sponsorship-c3 a.c3-tile--photo:hover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-column: span 6;
  grid-row: span 2;
  min-height: 300px;
  background-color: var(--dark-accent);
  background-position: center;
  background-size: cover;
  color: #fff;
  text-decoration: none;
}
.c3-tile--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(26, 36, 41, 0.86), rgba(26, 36, 41, 0.3) 46%, rgba(26, 36, 41, 0) 70%);
}
.c3-tile--photo .chapeau-project {
  color: #fff;
  font-size: 13px;
  letter-spacing: 1.2px;
}
.c3-tile--photo strong {
  max-width: 20ch;
  margin-top: 0.4rem;
  font-family: var(--serif-condensed);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
}
.c3-more {
  margin-top: 0.9rem;
  font: 500 13px/1.35 var(--sans-font);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.c3-more::after {
  content: " →";
  display: inline-block;
  margin-left: 0.3em;
  transition: translate 0.3s ease;
}
.c3-tile--photo:hover .c3-more::after {
  translate: 4px 0;
}

/* -- One roof band: a call to action at its foot --------------------------------- */

.c3-band-foot {
  border-top: 1px solid rgba(248, 244, 227, 0.35);
}
.c3-band-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: clamp(1.5rem, 2.8vw, 2.25rem);
}
.sponsorship-c3 .c3-band-cta p {
  margin: 0;
  font-family: var(--serif-font);
  font-weight: 300;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.2;
}
.sponsorship-c3 .c3-band-cta a.btn-rounded {
  margin: 0;
}

/* -- 4.11 FAQ beside the RFP card ------------------------------------------------- */

.c3-faq {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.c3-faq .case-faq {
  margin-bottom: 0;
}
.c3-rfp {
  position: sticky;
  top: 2rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
}
.c3-rfp ul {
  list-style: none;
  margin: 1.4rem 0 1.5rem;
  padding: 0;
  border-bottom: 1px solid rgba(48, 65, 73, 0.45);
}
.single-work .sponsorship-c3 .case-section .c3-rfp li {
  margin: 0;
  padding-block: 0.65em;
  border-top: 1px solid rgba(48, 65, 73, 0.45);
  line-height: 1.3;
}
.single-work .sponsorship-c3 .case-section .c3-rfp p {
  margin: 0 0 1.25rem;
  font-size: 17px;
  line-height: 1.45;
}
.sponsorship-c3 .c3-rfp a.btn-rounded {
  margin: 0;
}

/* -- Smaller screens --------------------------------------------------------------- */

@media (max-width: 1000px) {
  .c3-hero,
  .c3-faq {
    grid-template-columns: minmax(0, 1fr);
  }
  .c3-rfp {
    position: static;
  }
  .c3-tile {
    grid-column: span 6;
  }
  .c3-tile--lead,
  .sponsorship-c3 a.c3-tile--photo {
    grid-column: span 12;
  }
  .sponsorship-c3 a.c3-tile--photo {
    grid-row: span 1;
    min-height: clamp(260px, 44vw, 380px);
  }
  .c3-bento {
    grid-auto-rows: auto;
  }
  .c3-tile:not(.c3-tile--photo) {
    min-height: 170px;
  }
}
@media (max-width: 600px) {
  .c3-tile {
    grid-column: span 12;
  }
  .c3-tile:not(.c3-tile--photo) {
    min-height: 0;
    padding-top: 2.25rem;
  }
  .c3-btn {
    padding-inline: 1.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .c3-progress li,
  .c3-chip span,
  .c3-btn,
  .c3-more::after {
    transition: none;
  }
}
