/* Site styles, part 3 of 3: breakpoints and accessibility overrides for
   everything in styles.css and quiz.css. */
@media (min-width: 1600px) {
  .hero-banner {
    min-height: 660px;
  }
  .hero-copy {
    padding-left: 85px;
    max-width: 900px;
  }
  .hero-copy > p {
    font-size: 18px;
    max-width: 460px;
  }
  .hero-bottom {
    left: 52px;
    right: 42px;
  }
  .hero-caption {
    font-size: 13px;
  }
  .client-photo {
    height: 435px;
  }
  .quiz-workspace {
    margin-top: 34px;
  }
  .quiz-card {
    padding: 42px 46px 26px;
  }
  .question-body {
    min-height: 410px;
  }
}
@media (max-width: 1200px) {
  .container {
    width: calc(100% - 80px);
  }
  .nav-shell {
    width: calc(100% - 80px);
    gap: 22px;
  }
  .desktop-nav {
    margin-left: 0;
    gap: 20px;
  }
  .desktop-nav a {
    font-size: 12px;
  }
  .brand {
    width: 166px;
  }
  .hero-banner {
    min-height: 590px;
  }
  .hero-copy {
    padding-left: 50px;
    max-width: 720px;
  }
  .hero-copy h1 {
    font-size: 66px;
  }
  .approach,
  .services,
  .faq {
    column-gap: 65px;
  }
  .client-photo {
    height: 350px;
  }
  .approach-steps {
    gap: 28px;
  }
  .gallery-image {
    height: 310px;
  }
  .final-cta {
    padding: 51px 48px;
  }
  .final-cta h2 {
    font-size: 43px;
  }
  .quiz-header-inner {
    width: calc(100% - 64px);
  }
}
@media (max-width: 1000px) {
  .container {
    width: calc(100% - 64px);
  }
  .nav-shell {
    width: calc(100% - 64px);
  }
  .desktop-nav {
    gap: 18px;
  }
  .desktop-nav a:last-child {
    display: none;
  }
  .brand {
    width: 156px;
  }
  .hero-banner {
    width: calc(100% - 40px);
    border-radius: 20px;
    min-height: 570px;
  }
  .hero-copy {
    padding: 65px 42px 124px;
    max-width: 670px;
  }
  .hero-copy h1 {
    font-size: 62px;
  }
  .hero-copy > p {
    max-width: 380px;
    font-size: 16px;
  }
  .hero-actions {
    gap: 23px;
  }
  .hero-secondary {
    font-size: 12px;
  }
  .hero-bottom {
    left: 28px;
    right: 24px;
    bottom: 22px;
  }
  .section {
    padding-block: 78px;
  }
  .approach {
    gap: 40px 48px;
  }
  .approach-copy {
    padding-top: 26px;
  }
  .approach-copy p:first-child {
    font-size: 19px;
  }
  .approach-steps {
    gap: 24px;
  }
  .approach-steps article {
    grid-template-columns: 1fr;
  }
  .step-number {
    grid-row: auto;
    margin-bottom: 8px;
  }
  .approach-steps h3 {
    font-size: 17px;
  }
  .approach-steps p {
    font-size: 13px;
  }
  .client-grid {
    gap: 19px;
  }
  .client-photo {
    height: 310px;
    border-radius: 15px;
  }
  .client-card h3 {
    font-size: 19px;
  }
  .client-card p {
    font-size: 11px;
  }
  .services,
  .faq {
    gap: 50px;
  }
  .service h3 {
    font-size: 18px;
  }
  .service summary {
    gap: 17px;
  }
  .service-body {
    padding-left: 40px;
  }
  .service-body > p {
    font-size: 14px;
  }
  .approach-copy p + p {
    font-size: 14px;
  }
  .service-body li {
    font-size: 11px;
  }
  .service-body ul {
    gap: 6px 9px;
  }
  .service-body li + li:before {
    margin-right: 9px;
  }
  .media-heading-copy {
    max-width: 310px;
  }
  .gallery-image {
    height: 280px;
    border-radius: 15px;
  }
  .gallery-slide figcaption {
    display: block;
    font-size: 14px;
  }
  .gallery-slide figcaption span + span {
    display: block;
    font-size: 11px;
    margin-top: 4px;
  }
  .final-cta {
    padding: 44px 37px;
  }
  .final-cta h2 {
    font-size: 37px;
  }
  .footer-top .brand {
    width: 152px;
  }
  .footer-contact {
    font-size: 12px;
  }
  .footer-socials {
    font-size: 12px;
    gap: 20px;
  }
  .footer-bottom {
    font-size: 10px;
  }
  .quiz-header {
    height: 78px;
  }
  .quiz-workspace {
    margin-top: 24px;
    max-width: 790px;
  }
  .quiz-card {
    padding: 32px 34px 22px;
  }
  .quiz-navigation {
    margin-inline: 4px;
  }
  .quiz-question {
    font-size: 31px;
  }
  .question-body {
    min-height: 395px;
  }
  .quiz-header-title {
    margin-left: 0;
  }
  .quiz-brand {
    width: 160px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 85px;
  }
  .container {
    width: calc(100% - 40px);
  }
  .wide-container {
    width: calc(100% - 28px);
  }
  .site-header {
    height: 81px;
  }
  .nav-shell {
    width: calc(100% - 40px);
    gap: 14px;
  }
  .brand {
    width: 148px;
  }
  .desktop-nav {
    display: none;
  }
  .nav-cta {
    margin-left: auto;
    font-size: 12px;
    min-height: 44px;
    padding: 11px 15px;
    gap: 18px;
  }
  .menu-toggle {
    display: grid;
    border: 0;
    width: 44px;
    height: 44px;
  }
  .hero-banner {
    margin-top: 0;
    min-height: 580px;
    border-radius: 18px;
  }
  .hero-copy {
    padding: 62px 30px 133px;
    max-width: 610px;
  }
  .hero-copy h1 {
    font-size: 58px;
  }
  .hero-copy > p {
    font-size: 16px;
    margin-top: 24px;
    max-width: 360px;
  }
  .hero-actions {
    gap: 24px;
    margin-top: 27px;
  }
  .hero-secondary {
    font-size: 12px;
  }
  .hero-time {
    font-size: 11px;
    margin-top: 15px;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, #1d2e32f2, #1d2e32b3 65%, #1d2e3260), linear-gradient(0deg, #1d2e32b8, transparent 45%);
  }
  .hero-slide img {
    object-position: 62% 50%;
  }
  .hero-slide:nth-child(2) img {
    object-position: 65% 50%;
  }
  .hero-bottom {
    left: 25px;
    right: 23px;
    bottom: 20px;
    padding-top: 16px;
  }
  .hero-caption {
    font-size: 11px;
    max-width: 170px;
    line-height: 1.6;
  }
  .carousel-button {
    width: 44px;
    height: 44px;
  }
  .carousel-controls {
    gap: 6px;
  }
  .slide-counter {
    font-size: 10px;
    gap: 7px;
    margin-right: 4px;
  }
  .section {
    padding-block: 64px;
  }
  h2 {
    font-size: 41px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 19px;
  }
  .approach {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .approach-copy {
    padding-top: 26px;
    max-width: 550px;
  }
  .approach-copy p:first-child {
    font-size: 20px;
  }
  .approach-copy .text-link {
    font-size: 13px;
    margin-top: 20px;
  }
  .approach-steps {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 36px;
  }
  .approach-steps article {
    grid-template-columns: 34px 1fr;
    gap: 5px 14px;
    padding-block: 22px;
  }
  .approach-steps article:last-child {
    padding-bottom: 0;
  }
  .step-number {
    grid-row: 1 / 3;
    font-size: 26px;
    margin: 0;
  }
  .approach-steps h3 {
    font-size: 17px;
  }
  .approach-steps p {
    font-size: 14px;
    max-width: none;
  }
  .section-heading {
    display: block;
    margin-bottom: 30px;
  }
  .section-heading > p {
    font-size: 14px;
    margin-top: 21px;
    padding: 0;
  }
  .section-heading > p br {
    display: none;
  }
  .client-grid {
    grid-template-columns: 1fr 1fr;
    gap: 27px 17px;
  }
  .client-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
    align-items: center;
  }
  .client-photo {
    height: 330px;
  }
  .client-card:last-child .client-photo {
    height: 330px;
  }
  .client-card h3 {
    font-size: 19px;
  }
  .client-card p {
    font-size: 12px;
    max-width: 220px;
  }
  .client-card figcaption {
    padding-top: 17px;
  }
  .services {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .services-heading {
    position: static;
  }
  .services-heading > p {
    margin-top: 22px;
    font-size: 14px;
  }
  .services-heading > p br {
    display: none;
  }
  .services-heading .text-link {
    margin-top: 23px;
    font-size: 13px;
  }
  .service summary {
    padding-block: 22px;
    min-height: 73px;
  }
  .service h3 {
    font-size: 19px;
  }
  .service-body > p {
    font-size: 14px;
  }
  .service-body li {
    font-size: 12px;
  }
  .service-body > a {
    font-size: 13px;
  }
  .media-heading {
    display: block;
    margin-bottom: 31px;
  }
  .media-heading-copy {
    max-width: 460px;
    margin-top: 25px;
  }
  .media-heading-copy > p {
    font-size: 14px;
  }
  .media-heading-copy > .text-link {
    font-size: 13px;
    margin-top: 16px;
  }
  .gallery-track {
    gap: 16px;
  }
  .gallery-slide {
    flex-basis: 86%;
  }
  .gallery-image {
    height: 315px;
    border-radius: 15px;
  }
  .gallery-slide figcaption {
    font-size: 16px;
    padding-top: 16px;
  }
  .client-card:last-child figcaption {
    padding-top: 0;
  }
  .gallery-footer {
    align-items: flex-start;
    gap: 16px;
    margin-top: 25px;
  }
  .gallery-footer > a {
    font-size: 12px;
    line-height: 1.8;
    max-width: 210px;
    margin-top: 8px;
  }
  .gallery-controls {
    gap: 8px;
  }
  .gallery-controls > span {
    font-size: 10px;
    margin-right: 3px;
    white-space: nowrap;
  }
  .gallery-slide figcaption span + span {
    font-size: 12px;
    margin-top: 5px;
  }
  .gallery-controls .carousel-button {
    width: 44px;
    height: 44px;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .faq-list summary {
    font-size: 15px;
    padding-block: 23px;
  }
  .final-cta {
    display: block;
    padding: 40px 31px;
    border-radius: 17px;
  }
  .final-cta h2 {
    font-size: 42px;
  }
  .final-cta-actions {
    text-align: left;
    margin-top: 29px;
  }
  .final-cta-actions p {
    font-size: 12px;
  }
  .faq-list details > p {
    font-size: 14px;
  }
  .approach-copy p + p {
    max-width: 500px;
    font-size: 14px;
  }
  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    padding-bottom: 31px;
  }
  .footer-top .brand {
    width: 146px;
  }
  .footer-contact {
    justify-self: end;
    font-size: 12px;
    max-width: 190px;
    gap: 9px;
    text-align: right;
  }
  .footer-socials {
    grid-column: 1 / -1;
    font-size: 12px;
    gap: 25px;
  }
  .footer-bottom {
    align-items: flex-start;
    font-size: 10px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .footer-bottom > span:last-child {
    display: none;
  }
  /* On phones the form becomes a simple page, not a shrunken desktop card. */
  .quiz-dialog {
    background: #fff;
  }
  .quiz-header {
    height: 72px;
    background: var(--paper);
  }
  .quiz-header-inner {
    width: calc(100% - 40px);
    gap: 15px;
  }
  .quiz-brand {
    width: 145px;
  }
  .quiz-header-title {
    font-size: 13px;
    display: none;
  }
  .quiz-exit {
    font-size: 13px;
    gap: 10px;
    min-width: 70px;
  }
  .quiz-workspace {
    width: 100%;
    max-width: 620px;
    margin-top: 0;
    padding: 0 22px 14px;
  }
  .quiz-navigation {
    margin: 19px 0 24px;
  }
  .quiz-stepper {
    gap: 8px;
  }
  .step-link {
    padding: 6px 0 10px;
    min-height: 35px;
    border-bottom-width: 3px;
    background: none;
  }
  .step-link:not(:disabled):hover {
    background: none;
  }
  .step-link .step-circle {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
  .step-link .step-label {
    display: none;
  }
  .quiz-mobile-progress {
    display: block;
    margin-top: 13px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
  }
  .quiz-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .quiz-question {
    font-size: 29px;
    line-height: 1.24;
    letter-spacing: -0.035em;
    font-weight: 600;
  }
  .question-hint {
    font-size: 15px;
    margin-top: 12px;
    line-height: 1.65;
  }
  .question-body {
    min-height: 0;
  }
  .quiz-options,
  .quiz-options.option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 25px;
  }
  .quiz-option,
  .option-grid .quiz-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 17px;
    min-height: 67px;
    border-radius: 10px;
  }
  .option-grid .quiz-option {
    min-height: 91px;
  }
  .option-grid .option-icon {
    width: 27px;
    height: 27px;
  }
  .option-grid .option-text {
    display: block;
    min-width: 0;
    flex: 1;
  }
  .option-label,
  .option-grid .option-label {
    font-size: 16px;
    line-height: 1.55;
    padding-right: 23px;
  }
  .option-description,
  .option-grid .option-description {
    font-size: 12px;
    padding-right: 23px;
    margin-top: 4px;
  }
  .radio-indicator,
  .option-grid .radio-indicator {
    top: calc(50% - 9px);
    right: 17px;
    width: 18px;
    height: 18px;
  }
  .radio-indicator:after {
    width: 7px;
    height: 7px;
  }
  .form-error {
    font-size: 13px;
    min-height: 27px;
    padding-top: 7px;
  }
  .quiz-controls {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #ffffffed;
    backdrop-filter: blur(12px);
    padding: 16px 0 max(13px, env(safe-area-inset-bottom));
    margin-top: 13px;
    gap: 16px;
    border-top: 1px solid var(--line);
    min-height: 82px;
  }
  .quiz-controls .button {
    min-height: 52px;
    min-width: 165px;
    gap: 15px;
    font-size: 14px;
    padding-inline: 20px;
  }
  .quiz-controls .button.final-continue {
    font-size: 13px;
    min-width: 190px;
  }
  .quiz-back {
    font-size: 13px;
    gap: 7px;
    line-height: 1.4;
  }
  .quiz-back .icon {
    width: 16px;
    height: 16px;
  }
  .quiz-bottom {
    font-size: 11px;
    padding: 12px 0 0;
    gap: 12px;
  }
  .quiz-bottom .plain-button {
    font-size: 11px;
  }
  .quiz-bottom .icon {
    width: 13px;
    height: 13px;
  }
  .gallery-footer > a .icon {
    width: 16px;
    height: 16px;
  }
  .result-title {
    font-size: 31px;
    line-height: 1.22;
  }
  .result-kicker {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .result-intro {
    font-size: 15px;
    line-height: 1.75;
  }
  .result-focus {
    gap: 7px 14px;
    margin-top: 17px;
  }
  .result-focus li {
    font-size: 11px;
  }
  .review-heading {
    padding-top: 21px;
    margin-top: 22px;
  }
  .review-heading h3 {
    font-size: 15px;
  }
  .result-next {
    font-size: 14px;
    margin-top: 22px;
  }
  .result-actions {
    gap: 10px;
    margin-top: 19px;
  }
  .result-actions .button {
    flex: 1;
    min-height: 52px;
    font-size: 13px;
    padding-inline: 15px;
    gap: 12px;
  }
  .result-transfer {
    font-size: 12px;
  }
  .result-secondary {
    gap: 20px;
    padding-top: 13px;
    margin-top: 23px;
    align-items: center;
  }
  .result-secondary > a {
    font-size: 12px;
    max-width: 230px;
  }
  .result-secondary .plain-button {
    font-size: 12px;
    white-space: nowrap;
  }
  .edit-notice {
    font-size: 12px;
    margin-bottom: 12px;
  }
}
@media (max-width: 480px) {
  .nav-shell {
    width: calc(100% - 32px);
    gap: 7px;
  }
  .brand {
    width: 137px;
  }
  .nav-cta {
    font-size: 11px;
    gap: 13px;
    padding-inline: 13px;
  }
  .menu-toggle {
    width: 44px;
  }
  .hero-banner {
    min-height: 590px;
  }
  .hero-copy {
    padding: 52px 25px 125px;
    max-width: 100%;
  }
  .hero-copy h1 {
    font-size: 44px;
    line-height: 1.12;
  }
  .hero-copy > p {
    font-size: 15px;
    line-height: 1.8;
    max-width: 285px;
    margin-top: 23px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 26px;
  }
  .hero-actions .button {
    min-height: 52px;
    font-size: 14px;
    gap: 36px;
    padding: 14px 22px;
  }
  .hero-secondary {
    font-size: 12px;
    min-height: 28px;
  }
  .hero-time {
    display: none;
  }
  .hero-bottom {
    left: 22px;
    right: 18px;
    bottom: 19px;
    gap: 10px;
  }
  .hero-caption {
    max-width: 125px;
    font-size: 10px;
    line-height: 1.7;
  }
  .carousel-controls {
    gap: 5px;
  }
  .carousel-button {
    width: 44px;
    height: 44px;
  }
  .carousel-button .icon {
    width: 16px;
    height: 16px;
  }
  .slide-counter {
    display: none;
  }
  .client-photo,
  .client-card:last-child .client-photo {
    height: 265px;
  }
  .client-card h3 {
    font-size: 17px;
    line-height: 1.3;
  }
  .client-card p {
    font-size: 11px;
    max-width: 165px;
  }
  .gallery-image {
    height: 260px;
  }
  .gallery-slide {
    flex-basis: 91%;
  }
  .gallery-slide figcaption {
    font-size: 14px;
  }
  .gallery-footer > a {
    font-size: 11px;
    max-width: 165px;
    gap: 7px;
  }
  .gallery-controls {
    gap: 7px;
  }
  .gallery-controls > span {
    display: none;
  }
  .gallery-slide figcaption span + span {
    font-size: 11px;
  }
  .final-cta h2 {
    font-size: 36px;
  }
  .final-cta {
    padding: 36px 26px;
  }
  .footer-top .brand {
    width: 133px;
  }
  .footer-contact {
    font-size: 11px;
  }
  .footer-bottom {
    font-size: 9px;
  }
  .quiz-workspace {
    padding-inline: 20px;
  }
  .quiz-question {
    font-size: 27px;
  }
  .quiz-option,
  .option-grid .quiz-option {
    padding-inline: 15px;
  }
  .option-label,
  .option-grid .option-label {
    font-size: 15px;
  }
  .option-description,
  .option-grid .option-description {
    font-size: 12px;
  }
  .option-grid .option-icon {
    width: 25px;
    height: 25px;
  }
  .radio-indicator,
  .option-grid .radio-indicator {
    right: 14px;
  }
  .quiz-controls .button.final-continue {
    min-width: 180px;
    font-size: 12px;
    padding-inline: 15px;
    gap: 10px;
  }
  .result-actions {
    flex-direction: column;
  }
  .result-actions .button {
    width: 100%;
    justify-content: center;
    font-size: 14px;
  }
  .result-secondary {
    align-items: flex-start;
  }
  .result-secondary > a {
    max-width: 205px;
  }
}
@media (max-width: 360px) {
  .nav-shell {
    gap: 4px;
  }
  .brand {
    width: 124px;
  }
  .nav-cta {
    font-size: 10px;
    padding-inline: 10px;
    gap: 10px;
  }
  .hero-copy {
    padding-inline: 21px;
  }
  .hero-copy h1 {
    font-size: 40px;
  }
  .container {
    width: calc(100% - 34px);
  }
  .quiz-workspace {
    padding-inline: 17px;
  }
  .quiz-question {
    font-size: 25px;
  }
  .quiz-option,
  .option-grid .quiz-option {
    gap: 11px;
    padding-inline: 13px;
  }
  .option-label,
  .option-grid .option-label {
    font-size: 14px;
  }
  .option-description,
  .option-grid .option-description {
    font-size: 11px;
  }
  .quiz-controls .button.final-continue {
    min-width: 177px;
    font-size: 12px;
  }
  .quiz-back {
    font-size: 12px;
  }
  .quiz-controls {
    gap: 12px;
  }
  .client-photo,
  .client-card:last-child .client-photo {
    height: 235px;
  }
  .hero-bottom {
    left: 18px;
    right: 16px;
  }
  .hero-caption {
    font-size: 9px;
  }
  .carousel-button {
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-track {
    will-change: auto;
  }
  .client-card:hover .client-photo img {
    transform: none;
  }
}
/* Visible focus remains distinct on photography and deep green surfaces. */
.hero-secondary:focus-visible,
.media-section a:focus-visible,
.media-section button:focus-visible {
  outline-color: var(--gold-light);
  box-shadow: none;
}
@media (forced-colors: active) {
  .button-primary {
    background: ButtonFace;
    border-color: ButtonText;
    color: ButtonText;
    box-shadow: none;
  }
  .quiz-option:has(input:checked) {
    border: 2px solid Highlight;
  }
  .quiz-option:has(input:checked) .radio-indicator {
    background: Highlight;
    forced-color-adjust: none;
  }
  .button:focus-visible {
    outline-color: Highlight;
  }
}
/* Apply the sampled brand tone exactly while retaining the original logo artwork. */
@supports (mask-image: url("assets/uba-logo.png")) {
  .brand {
    position: relative;
  }
  .brand img {
    opacity: 0;
  }
  .brand::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--ink);
    mask: url("assets/uba-logo.png") center / contain no-repeat;
  }
}
