/* ==========================================================================
   Why choose us  (views/index.hbs, section.why) - the RIGHT half of div.duo

   A navy half that runs out to the right edge of the screen, with the same
   faint lattice as the hero. The three reasons are rows: gold icon, serif
   title, text and an outlined number; a gold bar grows along the top of a
   row on hover. Then a Contact Us button. Layout of the two halves: duo.css.
   ========================================================================== */

.why {
    --navy: #111d42;
    --navy-deep: #0b1332;
    --gold: #d1a24f;
    --gold-soft: #e6c98f;       /* light gold: readable as small text on navy */

    position: relative;
    padding: 104px 0 112px 72px;
    color: #fff;
    font-family: 'Raleway', 'PT Sans', Arial, sans-serif;
}

/* The navy panel: starts at this column's left edge and runs off to the right. */
.why::before,
.why::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: -100vw;
    z-index: 0;
    pointer-events: none;
}

.why::before {
    background:
        radial-gradient(700px 360px at 0 0, rgba(209, 162, 79, .16), transparent 65%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

/* lattice, fading out toward the middle where the text is */
.why::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23d1a24f' stroke-opacity='.2'%3E%3Crect x='18' y='18' width='36' height='36'/%3E%3Crect x='18' y='18' width='36' height='36' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 0l18 18M72 0L54 18M0 72l18-18M72 72L54 54'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 30%, transparent 70%, #000);
    mask-image: linear-gradient(to bottom, #000, transparent 30%, transparent 70%, #000);
}

.why > * {
    position: relative;
    z-index: 1;
}

.why h2,
.why h3,
.why p {
    margin: 0;
    text-transform: none;
}

/* no notices to show (API down): the navy band stands alone, full width */
.why:only-child {
    grid-column: 1 / -1;
    padding-left: 0;
}

.why:only-child::before,
.why:only-child::after {
    left: -100vw;
}

.why:only-child > * {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}


/* --------------------------------------------------------------------------
   Heading
   -------------------------------------------------------------------------- */

.why__head {
    margin-bottom: 38px;
}

.why__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.why__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
}

.why__eyebrow::after {
    content: "";
    width: 48px;
    height: 1px;
    background: var(--gold);
}

.why__title {
    max-width: 560px;
    margin-top: 16px !important;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.18;
    color: #fff;
    text-wrap: balance;         /* even line lengths, no lonely last word */
}


/* --------------------------------------------------------------------------
   Reasons
   -------------------------------------------------------------------------- */

.why__list {
    counter-reset: reason;
}

.reason {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 30px 78px 30px 0;
    border-top: 1px solid rgba(209, 162, 79, .32);
    counter-increment: reason;
}

.reason:last-child {
    border-bottom: 1px solid rgba(209, 162, 79, .32);
}

/* gold bar on the row's top line: a short stub that runs the full width on hover */
.reason::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--gold);
    transition: width .5s ease;
}

/* outlined number */
.reason::after {
    content: counter(reason, decimal-leading-zero);
    position: absolute;
    top: 26px;
    right: 0;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(209, 162, 79, .55);
}

.reason__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-deep);
    font-size: 23px;
}

.reason__body {
    min-width: 0;
}

.reason__title {
    margin-bottom: 8px !important;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.reason__text {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .78);
}

@media (hover: hover) {
    .reason:hover::before {
        width: 100%;
    }
}


/* --------------------------------------------------------------------------
   Call to action
   -------------------------------------------------------------------------- */

.why__cta {
    margin-top: 42px;
}

.why__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 34px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy-deep);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.why__btn:hover,
.why__btn:focus {
    background: #fff;
    color: var(--navy-deep);
    text-decoration: none;
}

.why__btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .why {
        padding-left: 52px;
    }
}

/* Stacked layout: the navy half spans the full width under the notices. */
@media (max-width: 991px) {
    .why {
        padding: 76px 0 84px;
    }

    .why::before,
    .why::after {
        left: -100vw;
    }

    .why > * {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    .why__title {
        max-width: none;
    }

    .why__head {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    .why {
        padding: 60px 0 68px;
    }

    .why__eyebrow {
        font-size: 11px;
        letter-spacing: .24em;
    }

    .reason {
        gap: 18px;
        padding: 26px 50px 26px 0;
    }

    .reason::after {
        top: 24px;
        font-size: 40px;
    }

    .reason__icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .reason__title {
        font-size: 21px;
    }

    .reason__text {
        font-size: 15px;
    }

    .why__cta {
        margin-top: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reason::before,
    .why__btn {
        transition: none;
    }
}
