/* Homepage hero */
.hero {
    height: 631px;
    background: url("../images/homepage-hero.webp") center center / cover no-repeat;
}

.hero-row {
    height: 631px;
    padding-top: 90px;
    padding-left: 5px;
}

.hero-copy {
    width: 763px;
}

.hero-copy h1 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 28px;
    font-weight: 400;
    line-height: 40px;
}

.hero-copy h3 {
    margin: 0 0 30px;
    color: var(--ink);
    font-size: 36px;
    font-weight: 700;
    line-height: 43.56px;
}

/* Homepage services */
.services {
    height: 860px;
    margin-top: 1px;
    padding: 70px 20px 40px;
    background: var(--light-gray);
}

.services-wrap {
    width: min(100%, 1160px);
    margin: 0 auto;
}

.services-title {
    margin: 0 0 9px;
    color: var(--ink);
    font-size: 36px;
    font-weight: 700;
    line-height: 43.56px;
    text-transform: uppercase;
}

.services-split-grid {
    display: grid;
    grid-template-columns: 660px 476px;
    gap: 24px;
}

.services-stack {
    display: grid;
    gap: 20px;
}

.offering-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(18, 28, 45, .08);
}

.featured-card {
    height: 652px;
    padding: 42px;
    border: 1px solid rgba(47, 93, 169, .1);
    background: radial-gradient(circle at bottom right, rgba(37, 99, 235, .1), transparent 34%), linear-gradient(135deg, #fff 0%, #f4f9ff 100%);
}

.featured-card img {
    width: 574px;
    height: 361px;
    margin: 0;
    object-fit: cover;
}

.offering-card h3 {
    margin: 0 0 12px;
    color: var(--card-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 21.25px;
    text-transform: uppercase;
}

.featured-card h3 {
    margin: 0 0 18px;
    font-size: 38px;
    line-height: 41.8px;
}

.offering-card p {
    margin: 0 0 18px;
    color: #4a556d;
    font-size: 16px;
    line-height: 25.6px;
}

.featured-card p {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 29.7px;
}

.minicard {
    padding: 26px 28px;
    border-top: 4px solid transparent;
}

.minicard:nth-child(1),
.minicard:nth-child(3) {
    height: 212px;
}

.minicard:nth-child(2) { height: 187px; }

.minicard-a { border-top-color: var(--orange); }
.minicard-b { border-top-color: var(--green); }
.minicard-c { border-top-color: var(--purple); }

.card-link {
    color: var(--card-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.card-link::after {
    margin-left: 8px;
    content: "→";
}

/* Homepage reasons */
.reasons {
    height: 1045px;
    padding-top: 80px;
    padding-bottom: 80px;
    background: url("../images/secondary-banner.webp") center center / cover no-repeat;
}

.reasons-row {
    padding-left: 5px;
}

.reasons-panel {
    width: 66%;
    min-height: 870px;
    padding: 40px 25px 30px;
    border-radius: 10px 30px 10px 30px;
    background: #ffffff;
    box-shadow: rgba(0, 0, 0, .1) 0 8px 32px;
}

.reasons-panel h3 {
    margin: 0 0 29px;
    color: var(--ink);
    font-size: 30px;
    font-weight: 700;
    line-height: 36.3px;
}

.reasons-panel h3 span {
    color: var(--orange);
}

/* Homepage managed IT copy and pillars */
.content {
    min-height: 1568px;
    margin-top: -1px;
    padding: 35px 0 14px;
    background: var(--light-gray);
}

.content > .container {
    padding: 0 5px;
}

.content h2 {
    margin: 0 0 15px;
    color: var(--ink);
    font-size: 30px;
    font-weight: 400;
    line-height: 42.86px;
}

.pillar-card {
    padding: 20px;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: rgba(0, 0, 0, .1) 0 8px 32px;
}

.content .pillars-title {
    margin-top: 30px;
    margin-bottom: 15px;
}

.pillar-row {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.pillar-card {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
}

.pillar-row-two {
    margin-top: 16px;
}

.pillar-card h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 24px;
    font-weight: 400;
    line-height: 34.29px;
}

.pillar-card p {
    margin: 0 0 8px;
}

.pillar-card p:last-child {
    margin-bottom: 0;
}

/* Homepage about */
.about {
    display: grid;
    height: 534px;
    margin-top: 20px;
    grid-template-columns: 1fr 1fr;
    background: var(--light-gray);
}

.about-image {
    height: 534px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-copy {
    width: 398px;
    margin-left: 117.5px;
    padding-top: 80px;
}

.about-copy h3 {
    width: 398px;
    margin: 0 0 15px;
    color: var(--ink);
    font-size: 36px;
    font-weight: 700;
    line-height: 43.56px;
    text-transform: uppercase;
}

.about-copy p {
    margin-bottom: 15px;
}

/* Homepage entrance motion */
.reveal {
    opacity: 0;
    transition: opacity .8s ease, transform .8s ease;
}

.reveal-left { transform: translateX(-80px); }
.reveal-right { transform: translateX(80px); }
.reveal-up { transform: translateY(60px); }

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 1024px) {
    .services-split-grid { grid-template-columns: 1.2fr .9fr; }
    .featured-card,
    .featured-card img { width: 100%; }
}

@media (max-width: 991px) {
    .hero {
        height: auto;
        min-height: 0;
        background-image: none;
        background-position: 62% center;
    }

    .hero-row {
        height: auto;
        min-height: 0;
        padding: 55px 5px 120px;
    }

    .hero-copy { width: 100%; }
    .hero-copy h1 { font-size: 22px; line-height: 32px; }
    .hero-copy h3 { font-size: 28px; line-height: 35px; }

    .services { height: auto; padding: 60px 15px 40px; }
    .services-split-grid { grid-template-columns: 1fr; }
    .services-stack { grid-template-columns: 1fr; }
    .featured-card { height: auto; padding: 24px; }
    .featured-card h3 { font-size: 28px; line-height: 34px; }
    .featured-card p { font-size: 16px; }
    .minicard:nth-child(n) { height: auto; }

    .reasons {
        height: auto;
        min-height: 0;
        padding: 50px 0;
        background-position: 70% center;
    }

    .reasons-panel { width: 100%; min-height: 0; padding: 30px 20px; }
    .reasons-panel h3 { font-size: 26px; line-height: 33px; }

    .content { min-height: 0; padding: 45px 0; }
    .content h2 { font-size: 27px; line-height: 36px; }
    .pillar-row-three { flex-wrap: wrap; }
    .pillar-row-three,
    .pillar-row-two { flex-direction: column; }
    .pillar-row-three .pillar-card,
    .pillar-row-three .pillar-card:last-child { flex-basis: auto; }

    .about {
        height: auto;
        grid-template-columns: 1fr;
    }

    .about-image { height: 350px; }
    .about-copy { width: auto; margin: 0; padding: 45px 25px 55px; }
    .about-copy h3 { width: auto; font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
