/*
 * TYPES ONE design-fidelity layer
 *
 * This file intentionally sits after style.css.  It keeps the theme structure
 * and WordPress behaviour intact while matching the supplied 1366px comp more
 * closely. Desktop measurements are based on the original PSD/JPG artwork,
 * with fluid intermediate values so the composition stays stable on tablets.
 */

:root {
  --to-navy: #120f3c;
  --to-blue: #253680;
  --to-sky: #e2f1fd;
  --to-lavender: #eff1ff;
  --to-coral: #fa5d44;
  --to-coral-dark: #d94d3c;
  --to-orange: #e88237;
  --to-content: 1278px;
}

.types-one-front-page .hero-cta .button,
.types-one-front-page .section-cta .button {
  width: min(722px, 100%);
  min-width: 0;
  color: #fff;
  background: linear-gradient(90deg, #f77a6b 0%, #fa5d44 100%);
}

.types-one-front-page .contact {
  background: #253680;
}

.types-one-front-page .form-field input,
.types-one-front-page .form-field select,
.types-one-front-page .form-field textarea {
  background: #e2f1fd;
}

.types-one-front-page .faq,
.types-one-front-page .support {
  background-color: #eff1ff;
}

.types-one-front-page .site-footer {
  min-height: 0;
  padding: clamp(44px, 5vw, 64px) 0 20px;
}

.types-one-front-page .site-footer__bottom {
  padding-top: 22px;
}

@media (min-width: 981px) {
  :root {
    --to-header: 100px;
    --to-page-gutter: clamp(36px, calc(13.5vw - 96px), 88px);
  }

  /*
   * The comp uses 44px outer gutters at 1366px.  At larger viewports the
   * composition remains centred instead of stretching the content columns.
   */
  .types-one-front-page .site-container {
    width: min(calc(100% - var(--to-page-gutter)), 1278px);
  }

  .types-one-front-page .site-logo__image,
  .types-one-front-page .site-header .custom-logo {
    max-width: 125px;
    max-height: 92px;
  }

  .types-one-front-page .site-header__inner {
    width: min(calc(100% - 62px), 1304px);
  }

  .types-one-front-page .site-navigation a {
    font-size: 16px;
  }

  .types-one-front-page .header-cta {
    min-width: 293px;
    min-height: 58px;
    color: #fff;
    background: linear-gradient(90deg, #f77a6b 0%, #fa5d44 100%);
    font-size: 17px;
  }

  /* First view */
  .types-one-front-page .hero,
  .types-one-front-page .hero__inner {
    height: clamp(800px, 81.55vw, 1114px);
    min-height: 0;
  }

  .types-one-front-page .hero__figure {
    width: min(100vw, 1366px);
  }

  .types-one-front-page .hero__tagline {
    top: 29%;
    left: 33px;
  }

  .types-one-front-page .hero__tagline p {
    padding: 5px 13px 8px;
    margin-bottom: 9px;
    font-size: clamp(44px, 4.69vw, 64px);
    line-height: 1.14;
  }

  .types-one-front-page .hero__copy {
    right: 0;
    bottom: 13.7%;
    width: min(44.73%, 611px);
    font-size: clamp(14px, 1.32vw, 18px);
    line-height: 2;
  }

  .types-one-front-page .hero-cta {
    padding: 65px 24px 46px;
  }

  .types-one-front-page .hero-cta .button,
  .types-one-front-page .section-cta .button {
    min-height: 121px;
    padding-inline: 54px;
    font-size: 34px;
  }

  /* Problems: 1200 × 800 supplied photograph and the compact comp spacing. */
  .types-one-front-page .section.problems {
    padding: 32px 0 43px;
  }

  .types-one-front-page .problems .display-heading {
    margin-bottom: -48px;
    margin-left: 26px;
    font-size: 70px;
  }

  .types-one-front-page .problems__stage {
    min-height: 850px;
  }

  .types-one-front-page .problems__photo {
    right: clamp(-44px, calc(48px - 6.75vw), -18px);
    bottom: 0;
    width: min(1173px, calc(100vw - var(--to-page-gutter)));
  }

  .types-one-front-page .problem-bubbles {
    top: 26px;
    right: -1px;
    width: 518px;
  }

  .types-one-front-page .problem-bubbles li {
    padding: 16px 24px;
    margin-bottom: 24px;
    font-size: 23px;
  }

  /* Blue promise band and the full-bleed male portrait. */
  .types-one-front-page .promise__heading {
    display: grid;
    min-height: 300px;
    padding: 0;
    margin: 0;
    background: #253680;
    place-items: center;
  }

  .types-one-front-page .promise__heading h2 {
    font-size: clamp(52px, 5.42vw, 74px);
  }

  .types-one-front-page .promise__media {
    width: 100vw;
    max-width: none;
    height: 754px;
    margin: 0 calc(50% - 50vw);
  }

  .types-one-front-page .promise__media > img {
    width: 100%;
    height: 754px;
    max-height: none;
    object-fit: cover;
    object-position: center top;
  }

  .types-one-front-page .promise__copy {
    right: 0;
    bottom: 151px;
    display: flex;
    width: min(65.23vw, 891px);
    min-height: 299px;
    padding: 34px 48px;
    flex-direction: column;
    justify-content: center;
    font-size: 17px;
    line-height: 1.95;
  }

  /* Four 607 × 440 support panels. */
  .types-one-front-page .support__grid {
    grid-template-columns: repeat(2, minmax(0, 607px));
    gap: 83px 42px;
    justify-content: center;
    max-width: 1256px;
    margin: 0 auto;
  }

  .types-one-front-page .support-card {
    min-height: 440px;
    padding: 36px 40px;
  }

  .types-one-front-page .support-card__eyebrow {
    font-size: 42px;
  }

  .types-one-front-page .support-card h3 {
    font-size: 42px;
  }

  .types-one-front-page .support-card p {
    font-size: 17px;
  }

  /*
   * The supplied comp shows two complete 594px video panels and the leading
   * edge of the third.  Horizontal scrolling preserves all three embeds.
   */
  .types-one-front-page .section.voices {
    padding: 108px 0 72px;
  }

  .types-one-front-page .voices__grid {
    display: flex;
    gap: 18px;
    padding: 0 44px 16px 0;
    margin-right: calc(50% - 50vw);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 0 44px;
    scroll-snap-type: x proximity;
    scrollbar-color: #253680 #eff1ff;
    scrollbar-width: thin;
  }

  .types-one-front-page .voice-card {
    height: 370px;
    flex: 0 0 594px;
    scroll-snap-align: start;
  }

  .types-one-front-page .voice-card iframe,
  .types-one-front-page .voice-card__placeholder {
    width: 100%;
    height: 370px;
    aspect-ratio: auto;
  }

  .types-one-front-page .section-cta {
    padding: 70px 24px 94px;
  }

  /* Contact form: 944px field width, 508px select, 459px textarea. */
  .types-one-front-page .contact {
    padding: 90px 0 110px;
  }

  .types-one-front-page .contact__inner {
    width: min(calc(100% - var(--to-page-gutter)), 944px);
  }

  .types-one-front-page .contact h2 {
    margin-bottom: 66px;
  }

  .types-one-front-page .contact-form,
  .types-one-front-page .form-status {
    max-width: 944px;
  }

  .types-one-front-page .form-field {
    margin-bottom: 36px;
  }

  .types-one-front-page .form-field label {
    margin-bottom: 12px;
    font-size: 30px;
  }

  .types-one-front-page .form-field select {
    width: min(508px, 100%);
  }

  .types-one-front-page .form-field input,
  .types-one-front-page .form-field select {
    min-height: 100px;
    padding: 20px 24px;
  }

  .types-one-front-page .form-field textarea {
    min-height: 459px;
    padding: 24px;
  }

  .types-one-front-page .contact-form .button--light {
    width: min(722px, 100%);
    min-width: 0;
    min-height: 88px;
  }

  /* FAQ: question/answer rhythm measured from the supplied comp. */
  .types-one-front-page .section.faq {
    padding: 120px 0;
  }

  .types-one-front-page .faq > .site-container {
    width: min(calc(100% - var(--to-page-gutter)), 1170px);
  }

  .types-one-front-page .faq__list {
    gap: 58px;
  }

  .types-one-front-page .faq-item summary {
    padding: 0 52px 46px 4px;
    font-size: clamp(28px, 2.78vw, 38px);
    line-height: 1.25;
  }

  .types-one-front-page .faq-item__answer {
    grid-template-columns: 176px 1fr;
    min-height: 229px;
    padding: 24px 48px;
  }

  .types-one-front-page .faq-item__answer > span {
    font-size: 94px;
  }

  .types-one-front-page .faq-item__answer p {
    font-size: clamp(20px, 1.76vw, 24px);
    line-height: 1.7;
  }

  /* Footer composition: compact 1096px centred grid and 186px brand mark. */
  .types-one-front-page .site-footer {
    min-height: 0;
    padding: 64px 0 20px;
  }

  .types-one-front-page .site-footer__grid,
  .types-one-front-page .site-footer__bottom {
    width: min(calc(100% - var(--to-page-gutter)), 1096px);
  }

  .types-one-front-page .site-footer__grid {
    grid-template-columns: 300px 260px minmax(0, 1fr);
    gap: 48px;
  }

  .types-one-front-page .site-footer .site-logo__image,
  .types-one-front-page .site-footer .custom-logo {
    width: 186px;
  }

  .types-one-front-page .footer-menu a,
  .types-one-front-page .footer-courses a {
    font-size: 20px;
  }

  .types-one-front-page .footer-courses h2 {
    font-size: 22px;
  }
}

/*
 * The comp is 1366px wide. These values scale continuously down to tablet
 * widths instead of jumping to full comp dimensions at 981px.
 */
@media (min-width: 701px) {
  .types-one-front-page .section.reasons {
    padding: clamp(70px, 7.54vw, 103px) 0 clamp(16px, 1.46vw, 20px);
  }

  .types-one-front-page .reasons .display-heading {
    margin-bottom: clamp(52px, 5.71vw, 78px);
    font-size: clamp(46px, 6.3vw, 86px);
    letter-spacing: -0.04em;
    line-height: 1;
  }

  .types-one-front-page .reasons__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3.8vw, 52px);
  }

  .types-one-front-page .reason-card__media {
    aspect-ratio: var(--reason-media-ratio);
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }

  .types-one-front-page .reason-card__media h3 {
    inset: var(--reason-title-top) auto auto var(--reason-title-left);
    width: clamp(46px, 4.76vw, 65px);
    height: 78.35%;
    padding: clamp(12px, 1.6vw, 22px) clamp(8px, 0.8vw, 11px);
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1;
    transform: rotate(var(--reason-title-tilt));
  }

  .types-one-front-page .reason-card:nth-child(2) .reason-card__media h3 {
    height: 72.84%;
  }

  .types-one-front-page .reason-card:nth-child(3) .reason-card__media h3 {
    height: 66.24%;
  }

  .types-one-front-page .reason-card p {
    max-width: 79.6%;
    padding: 0;
    margin: clamp(32px, 2.93vw, 40px) auto 0 0;
    font-size: clamp(14px, 1.25vw, 17px);
    line-height: 1.68;
  }

  .types-one-front-page .reason-card:nth-child(2) p {
    max-width: 91.8%;
  }

  .types-one-front-page .reason-card:nth-child(3) p {
    max-width: 98%;
  }

  .types-one-front-page .section.support {
    padding: 0 0 clamp(80px, 7.32vw, 100px);
    overflow: visible;
    background: transparent;
    clip-path: none;
  }

  .types-one-front-page .support::before {
    z-index: 0;
    opacity: 1;
    background:
      linear-gradient(
        to bottom,
        rgba(239, 241, 255, 0.96),
        rgba(239, 241, 255, 0) 22%,
        rgba(239, 241, 255, 0) 86%,
        rgba(239, 241, 255, 0.88)
      ),
      repeating-linear-gradient(
        -13deg,
        transparent 0 140px,
        rgba(47, 67, 143, 0.1) 141px 144px,
        transparent 145px 278px
      ),
      #eff1ff;
    clip-path: polygon(0 4%, 100% 0, 100% 98%, 0 100%);
  }

  .types-one-front-page .support::after {
    content: none;
  }

  .types-one-front-page .support__lead {
    min-height: clamp(560px, 61.5vw, 840px);
  }

  .types-one-front-page .support__art {
    top: clamp(-45px, -3.3vw, -24px);
    left: calc(50% - 50vw);
    width: min(72vw, 980px);
    transform: none;
  }

  .types-one-front-page .support__lead > p {
    top: 71%;
    right: auto;
    bottom: auto;
    left: clamp(56px, 6.59vw, 90px);
    max-width: min(47.6vw, 650px);
    padding: 0;
    background: transparent;
    font-size: clamp(15px, 1.61vw, 22px);
  }

  .types-one-front-page .support__grid {
    grid-template-columns: repeat(2, minmax(0, 607px));
    gap: clamp(48px, 6.08vw, 83px) clamp(28px, 3.08vw, 42px);
    justify-content: center;
    max-width: 1256px;
    margin: 0 auto;
  }

  .types-one-front-page .support-card {
    min-height: clamp(320px, 32.2vw, 440px);
    padding: clamp(28px, 2.64vw, 36px) clamp(24px, 2.93vw, 40px);
  }

  .types-one-front-page .support-card__eyebrow,
  .types-one-front-page .support-card h3 {
    font-size: clamp(28px, 3.08vw, 42px);
  }

  .types-one-front-page .support-card p {
    font-size: clamp(15px, 1.25vw, 17px);
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .types-one-front-page .reasons__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px 30px;
  }

  .types-one-front-page .reason-card:nth-child(3) {
    grid-column: 1 / -1;
    width: min(100%, 420px);
    justify-self: center;
  }

  .types-one-front-page .reason-card p,
  .types-one-front-page .reason-card:nth-child(2) p,
  .types-one-front-page .reason-card:nth-child(3) p {
    max-width: 100%;
  }
}

/*
 * Tablet adjustments retain the theme's existing navigation breakpoint while
 * the reason and companion sections above stay fluid across the boundary.
 */
@media (max-width: 980px) {
  .types-one-front-page .hero-cta .button,
  .types-one-front-page .section-cta .button {
    min-height: 96px;
    padding-inline: 38px;
    font-size: 28px;
  }

  .types-one-front-page .voices__grid {
    display: flex;
    gap: 18px;
    padding-bottom: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-color: #253680 #eff1ff;
    scrollbar-width: thin;
  }

  .types-one-front-page .voice-card {
    flex: 0 0 min(594px, 82vw);
    scroll-snap-align: start;
  }

  .types-one-front-page .voice-card iframe,
  .types-one-front-page .voice-card__placeholder {
    aspect-ratio: 594 / 370;
  }

  .types-one-front-page .contact__inner {
    width: min(calc(100% - 36px), 944px);
  }

  .types-one-front-page .contact-form,
  .types-one-front-page .form-status {
    max-width: 944px;
  }

  .types-one-front-page .form-field select {
    width: min(508px, 100%);
  }
}

@media (max-width: 700px) {
  .types-one-front-page .hero-cta .button,
  .types-one-front-page .section-cta .button {
    min-height: 62px;
    padding-inline: 24px;
    font-size: 17px;
  }

  .types-one-front-page .reason-card__media {
    width: min(100%, 420px);
    margin-inline: auto;
    aspect-ratio: var(--reason-media-ratio);
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .types-one-front-page .reason-card__media img {
    width: var(--reason-image-width);
    height: auto;
    max-width: none;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .types-one-front-page .reason-card__media h3 {
    inset: var(--reason-title-top) auto auto var(--reason-title-left);
    width: clamp(44px, 12vw, 58px);
    height: auto;
    max-height: 72%;
    padding: 12px 8px;
    font-size: clamp(16px, 5vw, 22px);
    transform: rotate(var(--reason-title-tilt));
  }

  .types-one-front-page .reason-card p {
    margin-top: 36px;
  }

  .types-one-front-page .support__lead {
    min-height: 430px;
  }

  .types-one-front-page .voice-card {
    flex-basis: calc(100vw - 54px);
  }

  .types-one-front-page .site-footer {
    min-height: 0;
  }
}
