/*
Home page (layouts/home.html), inspired by the 2021 portalaction.com.br layout.
Its components (.pa-section, .pa-btn, .pa-feature, .pa-logos...) are reused by
the about page (layouts/about/list.html), which adds static/css/about.css.
Plain CSS on purpose: the Hugo image used to serve the site is not the extended
edition, so it can't compile assets/scss and serves the cached CSS in resources/_gen.
*/

:root {
    --pa-red: #d40000;
    --pa-red-dark: #a80000;
    --pa-ink: #2b2b2b;
    --pa-charcoal: #383838;
    --pa-muted: #6b6b6b;
    --pa-surface: #f6f5f4;
    --pa-radius: 10px;
}

.pa-accent {
    color: var(--pa-red);
}

/* Buttons */

.pa-btn {
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 600;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.pa-btn:hover,
.pa-btn:focus {
    transform: translateY(-2px);
    text-decoration: none;
}

.pa-btn--solid {
    background: var(--pa-red);
    color: #fff;
}

.pa-btn--solid:hover,
.pa-btn--solid:focus {
    background: var(--pa-red-dark);
    color: #fff;
}

.pa-btn--ghost {
    background: rgba(0, 0, 0, .25);
    border-color: #fff;
    color: #fff;
}

.pa-btn--ghost:hover,
.pa-btn--ghost:focus {
    background: #fff;
    color: var(--pa-ink);
}

.pa-btn--light {
    background: #fff;
    color: var(--pa-red);
}

.pa-btn--light:hover,
.pa-btn--light:focus {
    background: var(--pa-ink);
    color: #fff;
}

/* Institutional hero, inspired by the original library banner. */

.pa-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 760px;
    min-height: min(900px, 100svh);
    padding: 8rem 0 11rem;
    color: #fff;
    background-color: #171012;
    background-image: linear-gradient(180deg, rgba(18, 9, 12, .28), rgba(18, 9, 12, .12) 60%, rgba(18, 9, 12, .48)),
                      url('../images/home/hero-library.webp');
    background-size: cover;
    background-position: center;
}

.pa-hero__layout { position: relative; text-align: center; }
.pa-hero__copy { max-width: 780px; margin: 0 auto; }

.pa-hero__eyebrow {
    color: #ddd1cf;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .25em;
    margin: 0 0 1.8rem;
}

.pa-hero h1 {
    color: #fff;
    text-transform: uppercase;
    line-height: .95;
    margin: 0 0 2rem;
    text-shadow: 0 3px 24px rgba(0, 0, 0, .25);
}

.pa-hero__portal {
    display: block;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 300;
    letter-spacing: .15em;
    padding-left: .15em;
    margin-bottom: .12em;
}

.pa-hero__action {
    display: block;
    font-size: clamp(4.2rem, 9vw, 8.4rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.pa-hero__headline {
    color: #eee7e5;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 400;
    line-height: 1.6;
    margin: 0 auto 2rem;
    max-width: 35rem;
}

.pa-hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.pa-hero__actions .pa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    border-radius: 3px;
    padding: .85rem 1.65rem;
    font-size: .95rem;
    line-height: 1.4;
    font-weight: 600;
}

.pa-hero__actions .pa-btn--solid { background: #c81018; border-color: #c81018; }
.pa-hero__actions .pa-btn--solid:hover { background: #a90b12; border-color: #a90b12; }
.pa-hero__secondary { color: #fff; border-color: #ffffff80; background: #0d090a38; }
.pa-hero__secondary i { transform: rotate(45deg); font-size: .8rem; }
.pa-hero__secondary:hover { color: #fff; background: #ffffff12; border-color: #fff; }
.pa-hero a:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }

.pa-hero__note { margin: 1.4rem 0 0; color: #d8c9c6; font-size: .75rem; letter-spacing: .03em; }

.pa-hero__down {
    position: absolute;
    left: 50%;
    bottom: -7.5rem;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #ddd1cf;
    font-size: 1rem;
}
.pa-hero__down:hover { color: #fff; }

@media (max-width: 767.98px) {
    .pa-hero { min-height: 720px; padding: 7.5rem 0 10rem; }
    .pa-hero__eyebrow { font-size: .6rem; letter-spacing: .17em; }
    .pa-hero__headline { max-width: 25rem; }
    .pa-hero__actions { gap: .75rem; }
    .pa-hero__actions .pa-btn { padding: .85rem 1.1rem; font-size: .85rem; }
}

@media (max-width: 359.98px) {
    .pa-hero__actions { flex-direction: column; }
    .pa-hero__action { font-size: 3.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .pa-hero .pa-btn { transition: none; }
    .pa-hero .pa-btn:hover { transform: none; }
}

/* Sections */

.pa-section {
    padding: 5rem 0;
    color: var(--pa-ink);
}

.pa-heading {
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.pa-heading--light {
    color: #fff;
}

.pa-lead {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

/* Welcome band */

.pa-welcome {
    background: var(--pa-charcoal);
    color: #fff;
    padding: 4rem 0 9rem;
    border-top: 4px solid var(--pa-red);
}

.pa-welcome__title {
    font-weight: 300;
    font-size: 1.9rem;
    max-width: 52rem;
    margin-bottom: 1rem;
}

.pa-welcome__title b {
    font-weight: 700;
    border-bottom: 3px solid var(--pa-red);
}

.pa-welcome__text {
    max-width: 52rem;
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 1.1rem;
}

/* Feature cards overlapping the welcome band */

.pa-features {
    padding-top: 0;
    background: var(--pa-surface);
}

.pa-features > .container {
    margin-top: -6rem;
}

.pa-feature {
    position: relative;
    display: block;
    height: 100%;
    padding: 2.25rem 2rem 2.5rem;
    background: #fff;
    border-radius: var(--pa-radius);
    border-bottom: 4px solid var(--pa-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    color: var(--pa-ink);
    transition: transform .25s, box-shadow .25s;
}

.pa-feature:hover,
.pa-feature:focus {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    color: var(--pa-ink);
    text-decoration: none;
}

.pa-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: rgba(212, 0, 0, .1);
    color: var(--pa-red);
    font-size: 1.4rem;
    transition: background-color .25s, color .25s;
}

.pa-feature:hover .pa-feature__icon,
.pa-feature:focus .pa-feature__icon {
    background: var(--pa-red);
    color: #fff;
}

.pa-feature__title {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pa-feature__text {
    margin: 0;
    color: var(--pa-muted);
}

.pa-feature__more {
    position: absolute;
    right: 1.5rem;
    bottom: 1.25rem;
    color: var(--pa-red);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .25s, transform .25s;
}

.pa-feature:hover .pa-feature__more,
.pa-feature:focus .pa-feature__more {
    opacity: 1;
    transform: none;
}

/* Action Stat */

.pa-actionstat {
    background: radial-gradient(ellipse at 50% 70%, #4a4a4a 0%, #262626 60%, #1b1b1b 100%);
    color: rgba(255, 255, 255, .85);
}

.pa-actionstat .pa-heading {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.pa-actionstat__image {
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 2.5rem;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5));
}

/* Learning environment + handbook list */

.pa-learning {
    background: #fff;
}

@media (min-width: 992px) {
    .pa-learning__intro {
        position: sticky;
        top: 6rem;
    }
}

.pa-learning__image {
    max-width: 280px;
    margin: .5rem 0 1.5rem;
}

.pa-topics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.pa-topic {
    display: flex;
    align-items: center;
    height: 100%;
    padding: .7rem .9rem;
    border: 1px solid #e6e3e1;
    border-radius: var(--pa-radius);
    background: var(--pa-surface);
    color: var(--pa-ink);
    transition: border-color .2s, background-color .2s, color .2s, transform .2s;
}

.pa-topic:hover,
.pa-topic:focus {
    border-color: var(--pa-red);
    background: #fff;
    color: var(--pa-red);
    text-decoration: none;
    transform: translateX(3px);
}

.pa-topic__num {
    flex: 0 0 2rem;
    height: 2rem;
    margin-right: .75rem;
    border-radius: 50%;
    background: var(--pa-red);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    line-height: 2rem;
    text-align: center;
}

.pa-topic__name {
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .02em;
}

/* Testimonials */

.pa-testimonials {
    background: var(--pa-surface);
}

.pa-quote {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 3.25rem 2rem 2rem;
    background: #fff;
    border-radius: var(--pa-radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.pa-quote::before {
    content: "\201C";
    position: absolute;
    top: -.5rem;
    left: 1.5rem;
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--pa-red);
}

.pa-quote__text {
    flex: 1;
    margin: 0 0 1.5rem;
    font-style: italic;
    color: #4a4a4a;
}

.pa-quote__author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.pa-quote__author span:last-child {
    color: var(--pa-muted);
    font-size: .9rem;
}

.pa-quote__stars {
    color: #f5b400;
    font-size: .8rem;
    margin-bottom: .25rem;
}

/* Services */

.pa-services {
    position: relative;
    background-color: var(--pa-red-dark);
    background-size: cover;
    background-position: center;
    color: rgba(255, 255, 255, .9);
}

.pa-services::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(168, 0, 0, .95) 0%, rgba(212, 0, 0, .85) 100%);
}

.pa-services > .container {
    position: relative;
}

.pa-services__icon {
    font-size: 7rem;
    color: rgba(255, 255, 255, .9);
}

/* Clients */

.pa-clients {
    background: #fff;
}

.pa-logos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pa-logos li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: var(--pa-radius);
}

.pa-logos img {
    max-width: 100%;
    height: auto;
    filter: grayscale(1);
    opacity: .7;
    transition: filter .25s, opacity .25s;
}

.pa-logos li:hover img {
    filter: none;
    opacity: 1;
}

/* About / links / contact */

.pa-info {
    background: #232323;
    color: rgba(255, 255, 255, .75);
    padding: 4rem 0 2rem;
}

.pa-info a {
    color: rgba(255, 255, 255, .85);
}

.pa-info a:hover {
    color: #fff;
}

.pa-info__title {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--pa-red);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.pa-info__brand {
    font-weight: 700;
    letter-spacing: .08em;
}

.pa-info__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pa-info__list li {
    margin-bottom: .6rem;
}

.pa-info__list--icons li {
    display: flex;
}

.pa-info__list--icons i {
    flex: 0 0 1.75rem;
    margin-top: .3rem;
    color: var(--pa-red);
}

/* Docsy footer, toned down to sit under the contact section */

.td-home footer.bg-dark {
    flex-shrink: 0;
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
    background: #1b1b1b !important;
}

/* Scroll reveal (enabled by the script in layouts/home.html) */

.pa-anim .pa-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
    transition-delay: var(--pa-delay, 0ms);
}

.pa-anim .pa-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Responsive */

@media (min-width: 992px) {
    .pa-heading {
        font-size: 2.4rem;
    }
}

@media (max-width: 767.98px) {
    .pa-section {
        padding: 3.5rem 0;
    }

    .pa-welcome {
        padding-bottom: 8rem;
    }

    .pa-welcome__title {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .pa-topics {
        grid-template-columns: 1fr;
    }

    .pa-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
