:root {
    --thor-ink: #071b1f;
    --thor-green: #0d342c;
    --thor-blue: #0b1f33;
    --thor-gold: #c9a24a;
    --thor-gold-soft: #f2dfaa;
    --thor-cream: #f7f2e8;
    --thor-muted: #6f766f;
    --thor-line: rgba(201, 162, 74, .28);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--thor-ink);
    background: #fbfaf6;
    font-family: "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

main,
.section,
.site-footer {
    overflow-x: clip;
}

a {
    color: inherit;
}

.thor-navbar {
    background: rgba(7, 27, 31, .94);
    border-bottom: 1px solid rgba(201, 162, 74, .22);
    backdrop-filter: blur(14px);
}

.navbar-brand {
    color: #fff !important;
    font-weight: 800;
    letter-spacing: .08rem;
    text-transform: uppercase;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, .25);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.nav-link {
    color: rgba(255, 255, 255, .78) !important;
    font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--thor-gold-soft) !important;
}

.btn-gold,
.btn-outline-gold:hover {
    background: var(--thor-gold);
    border-color: var(--thor-gold);
    color: #12110c;
    font-weight: 700;
}

.btn-gold:hover,
.btn-gold:focus {
    background: #d9b963;
    border-color: #d9b963;
    color: #12110c;
}

.btn-outline-gold {
    border-color: var(--thor-gold);
    color: var(--thor-gold-soft);
    font-weight: 700;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 86vh;
    padding: 8rem 0 4rem;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(7, 27, 31, .95), rgba(13, 52, 44, .82)),
        radial-gradient(circle at 78% 25%, rgba(201, 162, 74, .28), transparent 28%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.home-hero {
    background:
        linear-gradient(115deg, rgba(7, 27, 31, .98), rgba(13, 52, 44, .92)),
        radial-gradient(circle at 78% 25%, rgba(201, 162, 74, .2), transparent 30%);
}

.direct-home {
    min-height: 78vh;
}

.hero-racing {
    background:
        linear-gradient(110deg, rgba(4, 10, 18, .96), rgba(11, 31, 51, .76)),
        url("../img/racing.jpg") center / cover no-repeat;
}

.hero-cafe {
    min-height: 60vh;
    padding: 6.5rem 0 3.25rem;
    background:
        linear-gradient(90deg, rgba(7, 27, 31, .9) 0%, rgba(7, 27, 31, .72) 44%, rgba(7, 27, 31, .28) 100%),
        url("https://cdn.pixabay.com/photo/2021/01/18/12/45/coffee-beans-5928038_1280.jpg") center top / cover no-repeat;
}

.hero-cafe .hero-title {
    font-size: clamp(2.1rem, 5vw, 4rem);
}

.hero-chocolate {
    min-height: 60vh;
    padding: 6.5rem 0 3.25rem;
    background:
        linear-gradient(112deg, rgba(43, 20, 15, .95), rgba(92, 50, 29, .72)),
        url("https://images.pexels.com/photos/16961590/pexels-photo-16961590.jpeg?auto=compress&cs=tinysrgb&w=1600") center / cover no-repeat;
}

.hero-chocolate .hero-title {
    font-size: clamp(2.1rem, 5vw, 4rem);
}

.eyebrow {
    color: var(--thor-gold-soft);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .16rem;
    text-transform: uppercase;
}

.hero-title {
    max-width: 780px;
    font-size: clamp(2.5rem, 7vw, 5.6rem);
    font-weight: 850;
    line-height: .98;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 660px;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.section {
    padding: 5rem 0;
}

.portal-section {
    padding-top: 6.25rem;
}

.home-institutional {
    padding: 2.5rem 0;
}

.text-gold {
    color: var(--thor-gold);
}

.institutional-note {
    color: var(--thor-muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

.section-dark {
    background: var(--thor-ink);
    color: #fff;
}

.section-green {
    background: var(--thor-green);
    color: #fff;
}

.section-chocolate {
    background: linear-gradient(135deg, #2b140f, #6a3d25);
    color: #fff;
}

.section-chocolate-dark {
    background: #20100c;
}

.section-title {
    font-size: clamp(1.6rem, 2.6vw, 2.35rem);
    font-weight: 820;
    line-height: 1.05;
}

.section-lead {
    color: var(--thor-muted);
    font-size: 1.08rem;
}

.section-dark .section-lead,
.section-green .section-lead,
.section-chocolate .section-lead,
.section-chocolate-dark .section-lead {
    color: rgba(255, 255, 255, .72);
}

.segment-card,
.feature-card,
.product-card,
.contact-panel {
    height: 100%;
    border: 1px solid rgba(7, 27, 31, .1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(7, 27, 31, .08);
}

.segment-card {
    overflow: hidden;
    color: var(--thor-ink);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.segment-button {
    display: flex;
    min-height: 300px;
    height: 100%;
    padding: 1.25rem;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    color: var(--thor-ink);
    text-decoration: none;
    border: 1px solid rgba(242, 223, 170, .32);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 54px rgba(0, 0, 0, .2);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.segment-button:hover,
.segment-button:focus {
    transform: translateY(-4px);
    border-color: var(--thor-gold);
    box-shadow: 0 30px 68px rgba(0, 0, 0, .28);
}

.segment-logo {
    display: flex;
    width: 100%;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid rgba(7, 27, 31, .08);
    border-radius: 8px;
    background: #fff;
}

.segment-logo-card {
    margin: 0;
    width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 8px 8px 0 0;
    transition: transform .22s ease, background .22s ease;
}

.home-segment-card .segment-body {
    min-height: 190px;
}

.home-segment-card {
    position: relative;
    isolation: isolate;
    transition: color .22s ease, transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.home-segment-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--home-card-hover-bg);
    opacity: 0;
    transition: opacity .22s ease;
}

.home-cafe-card {
    --home-card-hover-bg: var(--thor-green);
}

.home-chocolate-card {
    --home-card-hover-bg: #4b2418;
}

.home-racing-card {
    --home-card-hover-bg: var(--thor-blue);
}

.home-segment-card:hover,
.home-segment-card:focus {
    color: #fff;
    background: transparent;
    transform: translateY(-6px);
    box-shadow: 0 28px 64px rgba(7, 27, 31, .2);
}

.home-segment-card:hover::before,
.home-segment-card:focus::before {
    opacity: 1;
}

.home-segment-card:hover .segment-logo-card,
.home-segment-card:focus .segment-logo-card {
    transform: translateY(-6px);
}

.home-segment-card:hover .kicker,
.home-segment-card:focus .kicker {
    color: var(--thor-gold-soft);
}

.home-segment-card:hover p,
.home-segment-card:focus p {
    color: rgba(255, 255, 255, .78);
}

.home-segment-card .segment-logo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.segment-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.racing-logo {
    background: #fff;
}

.chocolate-logo {
    color: var(--thor-gold-soft);
    background:
        linear-gradient(135deg, rgba(42, 19, 13, .84), rgba(86, 48, 29, .82)),
        url("https://images.pexels.com/photos/16961590/pexels-photo-16961590.jpeg?auto=compress&cs=tinysrgb&w=900") center / cover no-repeat;
}

.chocolate-logo span {
    display: inline-flex;
    width: 72%;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(242, 223, 170, .64);
    border-radius: 999px;
    color: var(--thor-gold-soft);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 850;
    text-transform: uppercase;
}

.segment-name {
    display: block;
    min-height: 3.2rem;
    color: var(--thor-ink);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.15;
}

.segment-action {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: .7rem .9rem;
    border-radius: 6px;
    color: #12110c;
    background: var(--thor-gold);
    font-weight: 800;
}

.segment-card:hover,
.segment-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(7, 27, 31, .16);
}

.segment-card.home-segment-card:hover,
.segment-card.home-segment-card:focus {
    color: #fff;
    background: transparent;
    transform: translateY(-6px);
    box-shadow: 0 28px 64px rgba(7, 27, 31, .2);
}

.segment-media {
    min-height: 220px;
    background: linear-gradient(135deg, var(--thor-green), var(--thor-blue));
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    color: #fff;
}

.segment-media.cafe {
    background: linear-gradient(180deg, rgba(7, 27, 31, .08), rgba(7, 27, 31, .86)), url("../img/cafe.png") center / cover no-repeat;
}

.segment-media.chocolate {
    background: linear-gradient(135deg, #2a130d, #56301d 56%, #c9a24a);
}

.segment-media.racing {
    background: linear-gradient(180deg, rgba(4, 10, 18, .05), rgba(4, 10, 18, .9)), url("../img/racing.jpg") center / cover no-repeat;
}

.segment-body,
.feature-card,
.product-card,
.contact-panel {
    padding: 1.5rem;
}

.kicker {
    color: var(--thor-gold);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .11rem;
}

.image-panel {
    min-height: 320px;
    border-radius: 8px;
    background-position: center;
    background-size: cover;
    box-shadow: 0 24px 60px rgba(7, 27, 31, .18);
}

.image-panel.cafe {
    min-height: 0;
    aspect-ratio: 3 / 2;
    background-image: url("../../logocafe.png");
    background-size: 92% auto;
    background-repeat: no-repeat;
    background-color: #565a22;
}

.image-panel.chocolate {
    min-height: 0;
    aspect-ratio: 3 / 2;
    background-image:
        linear-gradient(180deg, rgba(43, 20, 15, .1), rgba(43, 20, 15, .28)),
        url("https://images.pexels.com/photos/16961590/pexels-photo-16961590.jpeg?auto=compress&cs=tinysrgb&w=1200");
}

.image-panel.racing {
    background-image: url("../img/racing.jpg");
}

.feature-card {
    border-color: var(--thor-line);
}

.feature-card,
.product-card {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.feature-card:hover,
.feature-card:focus-within,
.product-card:hover,
.product-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 74, .42);
    box-shadow: 0 24px 54px rgba(7, 27, 31, .14);
}

.feature-card strong,
.product-card strong {
    display: block;
    margin-bottom: .5rem;
    font-size: 1.08rem;
}

.product-card {
    background: #fff;
}

.product-card.chocolate {
    color: #fff;
    background: linear-gradient(135deg, #2b140f, #6a3d25);
    border-color: rgba(242, 223, 170, .2);
}

.contact-panel {
    background: linear-gradient(135deg, var(--thor-green), var(--thor-blue));
    color: #fff;
}

.contact-panel.chocolate-contact {
    background: linear-gradient(135deg, #2b140f, #6a3d25);
    border-color: rgba(242, 223, 170, .22);
}

.contact-panel p {
    color: rgba(255, 255, 255, .75);
}

.racing-band {
    background: repeating-linear-gradient(135deg, #07121f 0 18px, #0b1f33 18px 36px);
    color: #fff;
}

.site-footer {
    padding: 2rem 0;
    color: rgba(255, 255, 255, .72);
    background: #061316;
}

.site-footer strong {
    display: block;
    margin-bottom: .35rem;
    color: #fff;
}

.footer-company {
    max-width: 680px;
}

.footer-company-info {
    color: rgba(255, 255, 255, .58);
    font-size: .92rem;
    line-height: 1.55;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.footer-social a {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(242, 223, 170, .36);
    border-radius: 999px;
    color: var(--thor-gold-soft);
    background: rgba(255, 255, 255, .04);
    font-size: 1.85rem;
    line-height: 1;
    text-decoration: none !important;
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.footer-social i {
    display: block;
    line-height: 1;
}

.footer-social a:hover,
.footer-social a:focus {
    border-color: var(--thor-gold);
    color: #12110c;
    background: var(--thor-gold);
    box-shadow: 0 12px 26px rgba(201, 162, 74, .24);
    text-decoration: none !important;
    transform: translateY(-4px) scale(1.04);
}

@media (max-width: 991.98px) {
    .page-hero {
        min-height: auto;
        padding: 7rem 0 3.5rem;
    }

    .image-panel {
        min-height: 300px;
    }

    .segment-button {
        min-height: 260px;
    }

}

@media (min-width: 992px) and (max-width: 1599.98px) {
    .hero-cafe {
        min-height: 42vh;
        padding: 5.25rem 0 2.25rem;
        background:
            linear-gradient(90deg, rgba(7, 27, 31, .92) 0%, rgba(7, 27, 31, .78) 52%, rgba(7, 27, 31, .38) 100%),
            url("https://cdn.pixabay.com/photo/2021/01/18/12/45/coffee-beans-5928038_1280.jpg") center 8% / 115% auto no-repeat;
    }

    .hero-chocolate {
        min-height: 42vh;
        padding: 5.25rem 0 2.25rem;
    }
}

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

    .segment-media {
        min-height: 190px;
    }
}

