/* =========================================================
   TufKo homepage
   ========================================================= */

/* Hero */

.hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 45%,
            rgb(255 255 255 / 5%),
            transparent 28%),
        linear-gradient(135deg,
            var(--tufko-black) 0%,
            var(--tufko-grey-900) 68%,
            var(--tufko-steel-dark) 100%);
    color: var(--tufko-white);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
    min-height: 570px;
    padding-block: clamp(4.5rem, 8vw, 7rem);
}

.hero__content {
    max-width: 780px;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6.2vw, 5.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 0.98;
}

.hero__summary {
    max-width: 690px;
    margin: 1.75rem 0 0;
    color: var(--tufko-steel-light);
    font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero__trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    margin: 2rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgb(255 255 255 / 15%);
    color: var(--tufko-steel-light);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    list-style: none;
    text-transform: uppercase;
}

.hero__trust-list li {
    position: relative;
    padding-left: 1rem;
}

.hero__trust-list li::before {
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--tufko-orange);
    content: "";
    transform: rotate(45deg);
}

.hero__brand {
    display: flex;
    justify-content: center;
}

.hero__brand img {
    width: min(100%, 330px);
    height: auto;
    filter: drop-shadow(0 1.75rem 2.5rem rgb(0 0 0 / 40%));
}

/* Section headings */

.section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    align-items: end;
    gap: clamp(2rem, 6vw, 6rem);
    max-width: none;
}

.section-heading__summary {
    max-width: 52ch;
    margin: 0;
    color: var(--tufko-grey-700);
    font-size: 1.05rem;
}

.section--dark .section-heading__summary {
    color: var(--tufko-steel-light);
}

.section-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.section-action--dark {
    justify-content: flex-start;
    margin-top: 3rem;
}

.button--outline-dark {
    border-color: var(--tufko-grey-900);
    color: var(--tufko-grey-900);
}

.button--outline-dark:hover,
.button--outline-dark:focus-visible {
    background: var(--tufko-grey-900);
    color: var(--tufko-white);
}

/* Cards */

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.portal-card {
    position: relative;
    padding: clamp(1.6rem, 3vw, 2.25rem);
    background: var(--tufko-white);
    border: 1px solid var(--tufko-grey-300);
    border-top: 4px solid var(--tufko-orange);
}

.service-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.service-card:hover {
    box-shadow: 0 1rem 2rem rgb(0 0 0 / 8%);
    transform: translateY(-3px);
}

.service-card h3,
.service-card h3 {
    margin: 0 0 0.75rem;
    color: var(--tufko-orange-dark);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.2;
}

.service-card>p:not(.service-card__number),
.portal-card p {
    margin: 0;
    color: var(--tufko-grey-700);
}

.service-card a {
    width: fit-content;
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--tufko-orange-dark);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
}

.service-card a::after {
    content: " →";
}

/* Why TufKo */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
}

.feature-grid article {
    position: relative;
    padding: 1rem 0 0 1.5rem;
    border-left: 3px solid var(--tufko-orange);
}

.feature-grid h3 {
    margin: 0 0 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.45rem;
}

.feature-grid p {
    margin: 0;
    color: var(--tufko-steel-light);
}

/* Process */

.process-section {
    background: var(--tufko-white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    counter-reset: process-step;
    list-style: none;
}

.process-grid li {
    position: relative;
    padding: 2rem;
    border: 1px solid var(--tufko-grey-300);
    border-right: 0;
}

.process-grid li:last-child {
    border-right: 1px solid var(--tufko-grey-300);
}

.process-grid span {
    display: block;
    margin-bottom: 2rem;
    color: var(--tufko-orange);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.process-grid h3 {
    margin: 0 0 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.process-grid p {
    margin: 0;
    color: var(--tufko-grey-700);
}

/* Founder */

.founder {
    display: grid;
    grid-template-columns: minmax(250px, 390px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
}

.founder__portrait {
    position: relative;
}

.founder__portrait::before {
    position: absolute;
    top: -1rem;
    right: -1rem;
    bottom: 1rem;
    left: 1rem;
    border: 1px solid var(--tufko-grey-300);
    content: "";
}

.founder__portrait img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-bottom: 5px solid var(--tufko-orange);
}

.founder__content {
    max-width: 700px;
}

.founder__content h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.05;
}

.founder__identity {
    margin: 1.75rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--tufko-grey-300);
    border-bottom: 1px solid var(--tufko-grey-300);
}

.founder__identity p {
    margin: 0.2rem 0;
}

.founder__name {
    color: var(--tufko-grey-900);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.founder__content>p:not(.eyebrow) {
    max-width: 62ch;
    font-size: 1.05rem;
}

.founder__content .button {
    margin-top: 1rem;
}

/* Platform preview */

.platform-preview {
    border-top: 1px solid var(--tufko-grey-300);
}

.portal-card {
    min-height: 270px;
}

.portal-card img {
    width: 58px;
    height: auto;
    margin-bottom: 1.5rem;
}

.status-label {
    display: inline-block;
    margin-top: 1.75rem;
    color: var(--tufko-orange);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Contact */

.contact-section {
    background:
        linear-gradient(135deg,
            var(--tufko-grey-900),
            var(--tufko-charcoal));
    color: var(--tufko-white);
}

.contact-section__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.contact-section__inner>div {
    max-width: 760px;
}

.contact-section h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.05;
}

.contact-section p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--tufko-steel-light);
    font-size: 1.05rem;
}

/* Responsive homepage */

@media (max-width: 1000px) {
    .hero__grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
    }

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

    .process-grid li:nth-child(2) {
        border-right: 1px solid var(--tufko-grey-300);
    }

    .process-grid li:nth-child(n + 3) {
        border-top: 0;
    }
}

@media (max-width: 900px) {

    .hero__grid,
    .founder,
    .section-heading--split {
        grid-template-columns: 1fr;
    }

    .hero__grid {
        min-height: auto;
    }

    .hero__brand img {
        width: min(62%, 280px);
    }

    .card-grid--three,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section-heading__summary {
        max-width: 64ch;
    }
}

@media (max-width: 700px) {
    .hero h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .hero__trust-list {
        flex-direction: column;
        gap: 0.6rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-grid li {
        border-right: 1px solid var(--tufko-grey-300);
        border-bottom: 0;
    }

    .process-grid li:nth-child(n + 3) {
        border-top: 1px solid var(--tufko-grey-300);
    }

    .process-grid li:last-child {
        border-bottom: 1px solid var(--tufko-grey-300);
    }

    .contact-section__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-action {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero__grid {
        padding-block: 3.75rem;
    }

    .hero__brand img {
        width: min(76%, 250px);
    }

    .service-card,
    .portal-card,
    .process-grid li {
        padding: 1.5rem;
    }

    .founder__portrait::before {
        display: none;
    }
}


.feature-grid__item h3 {
    margin: 0 0 0.75rem;
    color: var(--tufko-orange-bright);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.2;
}

/* Why TufKo feature headings */
.feature-grid h3 {
    color: var(--tufko-orange);
}
