/* ==========================================================================
   Patient / doctor gateway  (pages/gateway.php)
   The split that opens the site: one choice, nothing else on the page.
   Loaded only on that template - see header.php.

   The colours live on .gateway rather than on :root, so nothing here can leak
   into the rest of the site. The two faces come from brand-type.css, which the
   whole site shares.
   ========================================================================== */

/* No site stylesheet is loaded on this page, so the few base rules it needs
   are set here. */
.gateway-page a {
    text-decoration: none;
}

.gateway-page :focus-visible {
    outline: 3px solid var(--gateway-indigo);
    outline-offset: 3px;
}
.gateway-page {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.gateway-page * {
    box-sizing: border-box;
}

.gateway {
    /* The gradients run through the logo's own magenta and indigo as their
       middle stop; the deeper and lighter stops either side are sampled from
       the client's creative. */
    --gateway-magenta-deep: #7A0B3C;
    --gateway-magenta: #960362;
    --gateway-magenta-lit: #AE1F5D;
    --gateway-indigo-deep: #0A1A6E;
    --gateway-indigo: #1903AB;
    --gateway-indigo-lit: #2638B8;
    --gateway-white: #FFFFFF;
    --gateway-ice: #F2F6F9;
    --gateway-page: #FEFAF5;
    --gateway-white-a55: rgba(255, 255, 255, 0.55);
    --gateway-white-a85: rgba(255, 255, 255, 0.85);
    --gateway-heading: var(--font-heading);
    --gateway-body: var(--font-body);

    background-color: var(--gateway-page);
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.gateway-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    /* On a full page of its own, the split fills the screen rather than
       floating in the middle of it. */
    flex: 1;
}

.gateway-pane {
    position: relative;
    display: flex;
    min-height: 520px;
    overflow: hidden;
}

.gateway-pane .gateway-photo {
    flex: 0 0 34%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.gateway-pane.is-patient .gateway-photo {
    background-image: url(../img/gateway/patients.jpg);
}

.gateway-pane.is-doctor .gateway-photo {
    background-image: url(../img/gateway/doctors.jpg);
}

.gateway-pane .gateway-fill {
    flex: 1;
    min-width: 0;
    padding: 46px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--gateway-white);
    font-family: var(--gateway-body);
}

.gateway-pane .gateway-fill > * {
    width: 100%;
    max-width: 420px;
}

.gateway-pane.is-patient .gateway-fill {
    background-image: linear-gradient(120deg, var(--gateway-magenta-deep) 0%, var(--gateway-magenta) 62%, var(--gateway-magenta-lit) 100%);
    border-radius: 46% 0 0 46% / 58% 0 0 58%;
    margin-left: -54px;
    padding-left: 96px;
}

.gateway-pane.is-doctor .gateway-fill {
    background-image: linear-gradient(240deg, var(--gateway-indigo-deep) 0%, var(--gateway-indigo) 62%, var(--gateway-indigo-lit) 100%);
    border-radius: 0 46% 46% 0 / 0 58% 58% 0;
    margin-right: -54px;
    padding-right: 96px;
    text-align: right;
    align-items: flex-end;
}

.gateway-pane .gateway-for {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--gateway-white-a85);
    margin: 0;
}

.gateway-pane h2 {
    font-family: var(--gateway-heading);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: var(--gateway-white);
    margin: 4px 0 0;
}

.gateway-pane .gateway-rule {
    width: 64px;
    height: 2px;
    background-color: var(--gateway-white-a55);
    margin: 14px 0 20px;
}

.gateway-pane.is-doctor .gateway-rule {
    margin-left: auto;
}

.gateway-pane ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.gateway-pane li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.35;
}

.gateway-pane.is-doctor li {
    flex-direction: row-reverse;
}

.gateway-pane .gateway-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--gateway-white);
    display: grid;
    place-items: center;
    color: var(--gateway-magenta);
}

.gateway-pane.is-doctor .gateway-icon {
    color: var(--gateway-indigo);
}

.gateway-pane .gateway-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gateway-pane .gateway-cta {
    width: auto;
    margin-top: 28px;
    align-self: flex-start;
    background-color: var(--gateway-white);
    color: var(--gateway-magenta);
    border-radius: 40px;
    padding: 13px 28px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
}

.gateway-pane.is-doctor .gateway-cta {
    align-self: flex-end;
    color: var(--gateway-indigo);
}

.gateway-pane .gateway-cta:hover,
.gateway-pane .gateway-cta:focus {
    background-color: var(--gateway-ice);
    color: var(--gateway-magenta);
}

.gateway-pane.is-doctor .gateway-cta:hover,
.gateway-pane.is-doctor .gateway-cta:focus {
    color: var(--gateway-indigo);
}

.gateway-medallion {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 152px;
    height: 152px;
    border-radius: 50%;
    border: 4px solid var(--gateway-white);
    background-color: var(--gateway-white);
    display: grid;
    place-items: center;
    padding: 14px;
}

.gateway-medallion img {
    max-width: 100%;
    height: auto;
}

.gateway-tags {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px 24px;
    font-family: var(--gateway-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.gateway-tags .is-left {
    color: var(--gateway-magenta);
}

.gateway-tags .is-right {
    color: var(--gateway-indigo);
}

@media (max-width: 991px) {
    .gateway-pane {
        min-height: 440px;
    }

    .gateway-pane h2 {
        font-size: 32px;
    }

    .gateway-pane .gateway-fill {
        padding: 34px 22px;
    }

    .gateway-pane.is-patient .gateway-fill {
        margin-left: -40px;
        padding-left: 70px;
    }

    .gateway-pane.is-doctor .gateway-fill {
        margin-right: -40px;
        padding-right: 70px;
    }

    .gateway-medallion {
        width: 112px;
        height: 112px;
        padding: 10px;
    }
}

@media (max-width: 767px) {
    .gateway {
        min-height: 0;
    }

    /* One column. The curve moves to the top of each fill so the photograph
       sits above the text rather than beside it. */
    .gateway-split {
        grid-template-columns: 1fr;
    }

    .gateway-pane {
        flex-direction: column;
        min-height: 0;
    }

    .gateway-pane .gateway-photo {
        flex: 0 0 220px;
        min-height: 220px;
    }

    .gateway-pane .gateway-fill,
    .gateway-pane.is-patient .gateway-fill,
    .gateway-pane.is-doctor .gateway-fill {
        margin: -44px 0 0;
        padding: 62px 24px 40px;
        border-radius: 46% 46% 0 0 / 90px 90px 0 0;
        text-align: left;
        align-items: stretch;
    }

    .gateway-pane .gateway-fill > * {
        max-width: none;
    }

    .gateway-pane.is-doctor li {
        flex-direction: row;
    }

    .gateway-pane.is-doctor .gateway-rule {
        margin-left: 0;
    }

    .gateway-pane .gateway-cta,
    .gateway-pane.is-doctor .gateway-cta {
        align-self: flex-start;
    }

    .gateway-medallion {
        width: 92px;
        height: 92px;
        padding: 8px;
    }

    .gateway-tags {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
}

/* ---------- brand mark, standing in for the absent site header -------- */
.gateway-brand {
    display: flex;
    justify-content: center;
    padding: 22px 16px 6px;
}

.gateway-brand img {
    height: 54px;
    width: auto;
}

/* ---------- the whole pane is the target ------------------------------ */
.gateway-hit {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.gateway-pane {
    transition: transform .35s ease;
}

.gateway-pane:hover .gateway-cta,
.gateway-pane:focus-within .gateway-cta {
    background-color: var(--gateway-ice);
    transform: translateX(4px);
}

.gateway-pane .gateway-cta {
    transition: background-color .2s ease, transform .25s ease;
    position: relative;
    z-index: 5;
}

.gateway-pane .gateway-photo {
    transition: transform .6s ease;
}

.gateway-pane:hover .gateway-photo {
    transform: scale(1.04);
}

/* The medallion must not swallow clicks meant for either pane. */
.gateway-medallion {
    pointer-events: none;
}
