/* =========================================================================
   USply 20th Anniversary Landing Page
   Pixel-perfect to Figma at 1440px design width.
   Scales fluidly down to mobile.
   ========================================================================= */

:root {
    --anniv-green:        #4c721d;
    --anniv-green-dark:   #384f27;
    --anniv-green-hover:  #3c5b18;
    --anniv-text-gray:    #9b9b9b;
    --anniv-heading-gray: #c2c1c1;
    --anniv-banner-tan:   rgba(139, 106, 42, 0.6);
    --anniv-field-bg:     rgba(194, 193, 193, 0.2);
    --anniv-shadow:       0 4px 6.667px rgba(8, 19, 79, 0.16);

    --anniv-font-cn:   'Helvetica Neue Cn', 'Helvetica Neue', Arial, sans-serif;
    --anniv-font-body: 'Helvetica Neue', Arial, sans-serif;

    --anniv-page-pad: clamp(20px, 5.55vw, 80px);
}

/* ------------------------------------------------------------------ Page */

.anniv-page,
.anniv-page * {
    box-sizing: border-box;
}

.anniv-page {
    background: #fff;
    color: var(--anniv-text-gray);
    font-family: var(--anniv-font-body);
    font-size: 18.1px;
    line-height: 30.19px;
    position: relative;
    /* Note: do NOT set overflow on this element — `position: sticky` on the
       badge rail's child fails if any ancestor has overflow set. Each
       section below uses its own `overflow: hidden` to clip media. */
}

/* ------------------------------------------- Floating badge rail */

/* The badge floats fixed to the bottom-right of the viewport on every
   breakpoint so it stays visible while the user scrolls the entire page,
   including the footer. */
.anniv-page__badge-rail {
    position: fixed;
    top: 40%;
    right: var(--anniv-page-pad);
    width: 28vw;
    max-width: 360px;
    z-index: 5;
    pointer-events: none;
}

.anniv-page__badge-link {
    display: block;
    text-decoration: none;
    pointer-events: auto;
}

.anniv-page__badge-img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 991px) {
    .anniv-page__badge-rail {
        top: 40%;
        right: 16px;
        width: 32vw;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .anniv-page__badge-rail {
        top: 40%;
        right: 12px;
        width: 36vw;
        max-width: 150px;
    }
}

.anniv-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

.anniv-page ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* --------------------------------------------------------------------- Hero */

.anniv-hero {
    background: #fff;
    padding: 80px var(--anniv-page-pad) 60px;
    overflow: hidden;
}

.anniv-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.anniv-hero__text {
    flex: 1 1 auto;
    min-width: 0;
}

/* Reserve space on the right so the hero text doesn't run under the
   floating badge on desktop. */
@media (min-width: 992px) {
    .anniv-hero__text {
        max-width: 70%;
        padding-right: 40px;
    }
}

/* On narrow viewports the floating badge sits in the top-right corner
   over the hero; reserve a bit of right-side padding for the title so
   it doesn't run under the badge. */
@media (max-width: 991px) {
    .anniv-hero__title {
        padding-right: 32vw;
    }
}

@media (max-width: 480px) {
    .anniv-hero__title {
        padding-right: 36vw;
    }
}

.anniv-hero__title {
    font-family: var(--anniv-font-cn);
    font-weight: 700;
    font-size: clamp(48px, 8vw, 115px);
    line-height: 0.96;
    letter-spacing: -2.5px;
    color: var(--anniv-green);
    margin: 0 0 40px;
}

.anniv-hero__copy {
    font-family: var(--anniv-font-body);
    font-size: 18.1px;
    line-height: 30.19px;
    color: var(--anniv-text-gray);
    max-width: 944px;
    margin: 0;
}

/* ----------------------------------------------------------- Banner overlay */

.anniv-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 500;
    min-height: 360px;
    overflow: hidden;
    color: #fff;
}

.anniv-banner__media {
    position: absolute;
    inset: 0;
    background: #8b6a2a;
}

.anniv-banner__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anniv-banner__overlay {
    position: absolute;
    inset: 0;
    background: var(--anniv-banner-tan);
}

.anniv-banner__inner {
    position: relative;
    z-index: 2;
    padding: 60px var(--anniv-page-pad);
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.anniv-banner__quote {
    font-family: var(--anniv-font-cn);
    font-weight: 700;
    font-size: clamp(40px, 8vw, 115px);
    line-height: 0.96;
    letter-spacing: -2.5px;
    color: #fff;
    margin: 0;
    max-width: 1195px;
}

/* ---------------------------------------------------------------- Journey */

.anniv-journey {
    background: #fff;
    padding: 80px var(--anniv-page-pad);
}

.anniv-journey__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.anniv-journey__title {
    font-family: var(--anniv-font-cn);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 56px);
    line-height: 0.96;
    letter-spacing: -1px;
    color: var(--anniv-heading-gray);
    margin: 0 0 50px;
}

/* ---- Timeline ---- */

.anniv-timeline {
    counter-reset: anniv-step;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.anniv-timeline__item {
    display: grid;
    grid-template-columns: 17px 1fr 169px;
    column-gap: 25px;
    align-items: start;
    position: relative;
}

.anniv-timeline__rail {
    grid-column: 1;
    width: 17px;
    height: 100%;
    position: relative;
}

.anniv-timeline__dot {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--anniv-green);
}

.anniv-timeline__line {
    display: none;
}

.anniv-timeline__body::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 30px;
    bottom: 0;
    width: 3px;
    background: var(--anniv-green);
    border-radius: 2px;
}

.anniv-timeline__body {
    grid-column: 2;
    min-width: 0;
    position: relative;
}

.anniv-timeline__year {
    font-family: var(--anniv-font-cn);
    font-weight: 700;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 53.76px;
    letter-spacing: -1px;
    color: var(--anniv-heading-gray);
    margin: 0 0 10px;
}

.anniv-page ul.anniv-timeline__list {
    list-style: disc;
    padding-left: 27px;
    margin: 0;
    color: var(--anniv-text-gray);
    font-size: 18.1px;
    line-height: 30.19px;
}

.anniv-page ul.anniv-timeline__list li {
    margin-bottom: 0;
    display: list-item;
}

.anniv-timeline__media {
    grid-column: 3;
    margin: 0;
    width: 169px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.anniv-timeline__media img {
    width: 169px;
    height: 169px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--anniv-heading-gray);
}

.anniv-timeline__media figcaption {
    font-family: var(--anniv-font-body);
    font-size: 14px;
    line-height: 30.19px;
    color: var(--anniv-text-gray);
    text-align: center;
}

/* ----------------------------------------------------------- Meaning block */

.anniv-meaning {
    background: #fff;
    padding: 50px var(--anniv-page-pad);
}

.anniv-meaning__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.anniv-meaning__title {
    font-family: var(--anniv-font-cn);
    font-weight: 700;
    font-size: clamp(54px, 9vw, 112px);
    line-height: 1.05;
    letter-spacing: -2.5px;
    color: var(--anniv-heading-gray);
    margin: 0 0 40px;
    max-width: 900px;
}

.anniv-meaning__copy {
    font-family: var(--anniv-font-body);
    font-size: 18.1px;
    line-height: 30.19px;
    color: var(--anniv-text-gray);
    max-width: 900px;
    margin: 0;
}

/* ----------------------------------------------------------- Quote block  */

.anniv-quote {
    background: var(--anniv-green-dark);
    color: #fff;
    padding: 60px clamp(24px, 8.3vw, 120px);
}

.anniv-quote__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.anniv-quote__mark {
    display: block;
    font-family: var(--anniv-font-cn);
    font-weight: 700;
    font-size: clamp(80px, 12vw, 150px);
    line-height: 0.4;
    letter-spacing: -2.5px;
    margin-bottom: 30px;
}

.anniv-quote__text {
    font-family: var(--anniv-font-cn);
    font-weight: 700;
    font-size: clamp(24px, 4vw, 48px);
    line-height: 1.08;
    margin: 0 0 40px;
    font-feature-settings: 'liga' 0;
    color: #fff;
    border: 0;
    padding: 0;
}

.anniv-quote__cite {
    font-family: 'Helvetica', var(--anniv-font-body);
    font-size: 20px;
    line-height: 38px;
    margin: 0;
    color: #fff;
}

/* ----------------------------------------------------------- Story banner */

.anniv-story {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: #fff;
    background: #4d4d4d;
}

.anniv-story__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.anniv-story__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anniv-story__inner {
    position: relative;
    z-index: 2;
    padding: 76px clamp(24px, 8.5vw, 122px);
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 50px;
}

.anniv-story__title {
    font-family: var(--anniv-font-cn);
    font-weight: 700;
    font-size: clamp(40px, 8vw, 115px);
    line-height: 0.96;
    letter-spacing: -2.5px;
    margin: 0;
    max-width: 1195px;
    color: #fff;
}

.anniv-story__copy {
    font-family: var(--anniv-font-body);
    font-size: 18.1px;
    line-height: 30.19px;
    margin: 0;
    max-width: 1035px;
}

.anniv-story__byline {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.anniv-story__byline-co {
    font-weight: 400;
}

/* ----------------------------------------------------------- Partner form */

.anniv-partner {
    background: #fff;
    padding: 50px var(--anniv-page-pad) 80px;
}

.anniv-partner__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.anniv-partner__title {
    font-family: var(--anniv-font-cn);
    font-weight: 700;
    font-size: clamp(48px, 7vw, 90.9px);
    line-height: 0.96;
    letter-spacing: -2.5px;
    color: var(--anniv-heading-gray);
    margin: 0 0 60px;
}

.anniv-partner__row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.anniv-form {
    flex: 1 1 585px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 19px;
    padding-left: 15px;
    max-width: 585px;
}

.anniv-form__row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.anniv-form__field {
    display: block;
    flex: 1 1 0;
    min-width: 0;
}

.anniv-form__field--full {
    width: 100%;
}

.anniv-form__field input,
.anniv-form__field select,
.anniv-form__field textarea {
    width: 100%;
    background: var(--anniv-field-bg);
    border: 0;
    border-radius: 2px;
    padding: 9px 12px;
    font-family: var(--anniv-font-body);
    font-size: 18px;
    line-height: 22px;
    color: var(--anniv-text-gray);
    height: 40px;
    outline: none;
    transition: background 0.2s ease;
}

.anniv-form__field textarea {
    height: 100px;
    padding: 12px;
    resize: vertical;
    line-height: 27px;
}

.anniv-form__field select {
    height: 39px;
    line-height: 27px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%239b9b9b' d='M6 8 0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.anniv-form__field input::placeholder,
.anniv-form__field textarea::placeholder {
    color: var(--anniv-heading-gray);
    opacity: 1;
}

.anniv-form__field input:focus,
.anniv-form__field select:focus,
.anniv-form__field textarea:focus {
    background: rgba(194, 193, 193, 0.35);
}

.anniv-form__submit {
    width: 150px;
    height: 46px;
    background: var(--anniv-green);
    color: #fff;
    border: 0;
    border-radius: 2px;
    font-family: var(--anniv-font-cn);
    font-weight: 700;
    font-size: 24px;
    line-height: 34px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.anniv-form__submit:hover,
.anniv-form__submit:focus {
    background: var(--anniv-green-hover);
}

/* ---- CF7 form overrides (form 475 renders inside .anniv-form) ---- */

.anniv-form .wpcf7-form p {
    margin: 0 0 19px;
}

.anniv-form .wpcf7-form p:last-of-type {
    margin-bottom: 0;
}

.anniv-form input[type="text"],
.anniv-form input[type="email"],
.anniv-form input[type="tel"],
.anniv-form input[type="url"],
.anniv-form input[type="number"],
.anniv-form select,
.anniv-form textarea {
    width: 100%;
    background: var(--anniv-field-bg);
    border: 0;
    border-radius: 2px;
    padding: 9px 12px;
    font-family: var(--anniv-font-body);
    font-size: 18px;
    line-height: 22px;
    color: var(--anniv-text-gray);
    height: 40px;
    outline: none;
    box-shadow: none;
    transition: background 0.2s ease;
}

.anniv-form textarea {
    height: 100px;
    padding: 12px;
    resize: vertical;
    line-height: 27px;
}

.anniv-form select {
    height: 40px;
    line-height: 22px;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%239b9b9b' d='M6 8 0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* Guard against any pseudo-element arrow leaking from global styles */
.anniv-form .wpcf7-form-control-wrap.subject:before,
.anniv-form .wpcf7-form-control-wrap.subject:after,
.anniv-form .wpcf7-form-control-wrap.PrimaryBusiness:before,
.anniv-form .wpcf7-form-control-wrap.PrimaryBusiness:after {
    content: none !important;
    display: none !important;
}

/* Hide any IE-only dropdown arrow */
.anniv-form select::-ms-expand {
    display: none;
}

.anniv-form input::placeholder,
.anniv-form textarea::placeholder {
    color: var(--anniv-heading-gray);
    opacity: 1;
}

.anniv-form input:focus,
.anniv-form select:focus,
.anniv-form textarea:focus {
    background: rgba(194, 193, 193, 0.35);
}

.anniv-form input[type="submit"],
.anniv-form .wpcf7-submit {
    width: 150px;
    height: 46px;
    background: var(--anniv-green);
    color: #fff;
    border: 0;
    border-radius: 2px;
    font-family: var(--anniv-font-cn);
    font-weight: 700;
    font-size: 24px;
    line-height: 34px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.anniv-form input[type="submit"]:hover,
.anniv-form input[type="submit"]:focus,
.anniv-form .wpcf7-submit:hover,
.anniv-form .wpcf7-submit:focus {
    background: var(--anniv-green-hover);
}

/* CF7 wraps each label/input pair in <p>; collapse default block spacing */
.anniv-form .wpcf7-form-control-wrap {
    display: block;
}

/* ---- Contact card ---- */

.anniv-contact {
    flex: 0 0 203px;
    width: 203px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.anniv-contact .location-wrapper,
.anniv-contact .location {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.anniv-contact .cf-title {
    background: var(--anniv-heading-gray);
    color: #fff;
    font-family: var(--anniv-font-cn);
    font-weight: 700;
    font-size: 24px;
    line-height: 25px;
    text-align: center;
    padding: 8px 0;
    margin: 0;
    border-radius: 2px 2px 0 0;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anniv-contact .cf-address,
.anniv-contact .cf-phone {
    font-family: var(--anniv-font-body);
    font-size: 18px;
    line-height: 34.92px;
    color: var(--anniv-text-gray);
    margin: 0;
}

.anniv-contact .cf-phone a {
    color: var(--anniv-text-gray);
    text-decoration: none;
}

.anniv-contact .cf-phone a:hover,
.anniv-contact .cf-phone a:focus {
    color: var(--anniv-green);
}

/* ===================================================== Responsive tweaks */

@media (max-width: 991px) {
    .anniv-hero__title,
    .anniv-banner__quote,
    .anniv-story__title {
        letter-spacing: -1.5px;
    }

    .anniv-meaning__title {
        letter-spacing: -1.5px;
    }
}

@media (max-width: 900px) {
    .anniv-timeline__item {
        grid-template-columns: 17px 1fr;
        row-gap: 20px;
    }

    .anniv-timeline__media {
        grid-column: 1 / -1;
        margin-left: 42px;
        align-items: flex-start;
        text-align: left;
    }

    .anniv-timeline__media figcaption {
        text-align: left;
    }

    .anniv-form {
        max-width: none;
        flex: 1 1 100%;
        padding-left: 0;
    }

    .anniv-contact {
        flex: 0 0 100%;
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 720px) {
    :root {
        --anniv-page-pad: 24px;
    }

    .anniv-hero {
        padding: 50px 24px 40px;
    }

    .anniv-hero__title {
        margin-bottom: 24px;
    }

    .anniv-banner {
        aspect-ratio: auto;
        min-height: 280px;
    }

    .anniv-banner__inner {
        padding: 40px 24px;
    }

    .anniv-journey {
        padding: 50px 24px;
    }

    .anniv-journey__title {
        margin-bottom: 32px;
        letter-spacing: -0.5px;
    }

    .anniv-timeline {
        gap: 36px;
    }

    .anniv-meaning {
        padding: 40px 24px;
    }

    .anniv-quote {
        padding: 40px 24px;
    }

    .anniv-quote__mark {
        margin-bottom: 18px;
    }

    .anniv-story__inner {
        padding: 50px 24px;
        gap: 24px;
    }

    .anniv-partner {
        padding: 40px 24px 60px;
    }

    .anniv-partner__title {
        margin-bottom: 32px;
    }

    .anniv-form__row {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .anniv-quote__cite {
        font-size: 16px;
        line-height: 28px;
    }

    .anniv-form__submit {
        width: 100%;
    }

    .anniv-timeline__media img {
        width: 130px;
        height: 130px;
    }

    .anniv-timeline__media {
        margin-left: 0;
    }
}
