/* ============================================================
   JIVAA GROUP
   Ultra Minimal Dark Theme
============================================================ */

:root {
    --bg: #050505;
    --bg-soft: #0B0B0C;
    --bg-lighter: #111113;

    --text: #F4F1EA;
    --text-secondary: #A6A39D;
    --text-muted: #66645F;

    --border: rgba(255, 255, 255, 0.10);
    --border-hover: rgba(255, 255, 255, 0.20);

    --container-width: 1240px;

    --transition: 300ms ease;
}

/* ============================================================
   RESET
============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* ============================================================
   COMMON
============================================================ */

.container {
    width: min(
        calc(100% - 64px),
        var(--container-width)
    );

    margin: 0 auto;
}

.section-label {
    display: block;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: var(--text-muted);
}

.section-number {
    display: block;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;

    color: var(--text-muted);
}


/* ============================================================
   HEADER
============================================================ */

.site-header {
    height: 82px;

    border-bottom: 1px solid var(--border);
    background: var(--bg);

    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ============================================================
   BRAND
============================================================ */

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.brand-suffix {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;

    color: var(--text-muted);
}


/* ============================================================
   NAVIGATION
============================================================ */

.main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.main-nav a {
    position: relative;

    font-size: 13px;
    font-weight: 500;

    color: var(--text-muted);

    transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

.main-nav a.active::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;

    height: 1px;

    background: var(--text);
}


/* ============================================================
   HERO
============================================================ */

.hero {
    position: relative;

    min-height: calc(100vh - 82px);

    overflow: hidden;

    background: #080808;

    border-bottom: 1px solid var(--border);
}


/* ------------------------------------------------------------
   Hero Background Image
------------------------------------------------------------ */

.hero-background {
    position: absolute;
    inset: 0;

    background-image: url("/images/jivaa-hero-bg.png");

    background-repeat: no-repeat;

    /*
       Keep the JIVAA form predominantly on the right.
    */
    background-position: 72% center;

    /*
       Slightly enlarge the image so the composition
       feels immersive without making the form dominant.
    */
    background-size: 108% auto;

    z-index: 0;

    pointer-events: none;
}


/* ------------------------------------------------------------
   Hero Overlay
------------------------------------------------------------ */

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8, 8, 8, 0.98) 0%,
            rgba(8, 8, 8, 0.92) 25%,
            rgba(8, 8, 8, 0.58) 48%,
            rgba(8, 8, 8, 0.12) 72%,
            rgba(8, 8, 8, 0.04) 100%
        );

    z-index: 1;

    pointer-events: none;
}


/* ------------------------------------------------------------
   Hero Content
------------------------------------------------------------ */

.hero-inner {
    position: relative;
    z-index: 2;

    min-height: calc(100vh - 82px);

    display: flex;
    flex-direction: column;

    justify-content: center;

    padding: 90px 0 80px;
}

.hero-kicker {
    margin-bottom: 35px;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;

    color: var(--text-muted);
}

.hero-grid {
    display: block;
}

.hero-copy {
    position: relative;

    z-index: 3;

    max-width: 760px;
}

.hero h1 {
    max-width: 950px;

    font-size: clamp(
        58px,
        8vw,
        112px
    );

    line-height: 0.98;

    letter-spacing: -0.065em;

    font-weight: 500;
}

.hero h1 span {
    display: block;

    color: var(--text-secondary);
}


/* ------------------------------------------------------------
   Hero Bottom
------------------------------------------------------------ */

.hero-bottom {
    max-width: 600px;

    margin-top: 65px;

    display: flex;
    align-items: flex-end;

    justify-content: space-between;

    gap: 50px;
}

.hero-description {
    max-width: 560px;

    font-size: 17px;
    line-height: 1.7;

    color: var(--text-secondary);
}

.hero-description span {
    color: var(--text);
}


/* ------------------------------------------------------------
   Explore Link
------------------------------------------------------------ */

.scroll-link {
    position: relative;
    z-index: 3;

    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    gap: 14px;

    padding-bottom: 6px;

    border-bottom: 1px solid var(--text-muted);

    font-size: 12px;
    font-weight: 500;

    transition:
        gap var(--transition),
        border-color var(--transition);
}

.scroll-link:hover {
    gap: 20px;

    border-color: var(--text);
}

.scroll-arrow {
    font-size: 16px;
    line-height: 1;
}


/* ============================================================
   BUSINESSES
============================================================ */

.businesses-section {
    padding: 150px 0 160px;
}

.section-header {
    display: grid;

    grid-template-columns: 100px 1fr;

    gap: 30px;

    margin-bottom: 80px;
}

.section-header h2 {
    max-width: 700px;

    margin-top: 18px;

    font-size: clamp(
        40px,
        5vw,
        64px
    );

    line-height: 1.02;

    letter-spacing: -0.05em;

    font-weight: 500;
}

.section-header h2 span {
    display: block;

    color: var(--text-secondary);
}


/* ============================================================
   BUSINESS LIST
============================================================ */

.business-list {
    border-top: 1px solid var(--border);
}

.business-row {
    min-height: 185px;

    display: grid;

    grid-template-columns:
        80px
        minmax(250px, 1.1fr)
        minmax(260px, 0.8fr)
        50px;

    align-items: center;

    gap: 30px;

    border-bottom: 1px solid var(--border);

    transition:
        padding var(--transition),
        background-color var(--transition);
}

.business-row:hover {
    padding-left: 16px;
    padding-right: 16px;

    background: var(--bg-soft);
}

.business-index {
    align-self: start;

    padding-top: 30px;

    font-size: 11px;

    color: var(--text-muted);
}

.business-main h3 {
    font-size: clamp(
        30px,
        4vw,
        48px
    );

    line-height: 1;

    letter-spacing: -0.045em;

    font-weight: 500;
}

.business-main p {
    margin-top: 10px;

    font-size: 12px;

    color: var(--text-muted);
}

.business-description {
    max-width: 400px;

    font-size: 13px;
    line-height: 1.7;

    color: var(--text-secondary);
}

.business-arrow {
    justify-self: end;

    font-size: 25px;

    color: var(--text-muted);

    transition:
        transform var(--transition),
        color var(--transition);
}

.business-row:hover .business-arrow {
    transform: translate(5px, -5px);

    color: var(--text);
}


/* ============================================================
   APPROACH
============================================================ */

.approach-section {
    padding: 150px 0;

    background: var(--bg-soft);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.approach-grid {
    display: grid;

    gap: 30px;
}

.approach-label {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.approach-content {
    max-width: 850px;
}

.approach-content h2 {
    font-size: clamp(
        42px,
        5vw,
        68px
    );

    line-height: 1;

    letter-spacing: -0.055em;

    font-weight: 500;
}

.approach-content h2 span {
    display: block;

    color: var(--text-secondary);
}

.approach-content p {
    max-width: 650px;

    margin-top: 38px;

    font-size: 16px;
    line-height: 1.8;

    color: var(--text-secondary);
}


/* ============================================================
   CLOSING
============================================================ */

.closing-section {
    padding: 170px 0;
}

.closing-content {
    max-width: 900px;
}

.closing-content h2 {
    margin-top: 25px;

    font-size: clamp(
        52px,
        7vw,
        96px
    );

    line-height: 0.98;

    letter-spacing: -0.06em;

    font-weight: 500;
}

.closing-content h2 span {
    display: block;

    color: var(--text-secondary);
}

.closing-link {
    display: inline-flex;
    align-items: center;

    gap: 14px;

    margin-top: 50px;

    padding-bottom: 8px;

    border-bottom: 1px solid var(--text-muted);

    font-size: 13px;
    font-weight: 500;

    transition:
        gap var(--transition),
        border-color var(--transition);
}

.closing-link:hover {
    gap: 21px;

    border-color: var(--text);
}


/* ============================================================
   FOOTER
============================================================ */

.site-footer {
    padding: 70px 0 25px;

    border-top: 1px solid var(--border);

    background: #030303;
}

.footer-top {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr;

    gap: 80px;

    padding-bottom: 70px;
}

.footer-brand p {
    max-width: 330px;

    margin-top: 20px;

    font-size: 12px;
    line-height: 1.7;

    color: var(--text-muted);
}

.footer-column {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 10px;
}

.footer-heading {
    margin-bottom: 10px;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    color: var(--text-muted);
}

.footer-column a {
    font-size: 12px;

    color: var(--text-secondary);

    transition: color var(--transition);
}

.footer-column a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    padding-top: 22px;

    border-top: 1px solid var(--border);

    font-size: 10px;

    color: var(--text-muted);
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 900px) {

    .container {
        width: min(
            calc(100% - 48px),
            var(--container-width)
        );
    }


    /* Hero */

    .hero-background {
        background-position: 68% center;
        background-size: cover;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(8, 8, 8, 0.97) 0%,
                rgba(8, 8, 8, 0.88) 38%,
                rgba(8, 8, 8, 0.42) 70%,
                rgba(8, 8, 8, 0.10) 100%
            );
    }

    .hero h1 {
        max-width: 750px;

        font-size: clamp(
            54px,
            9vw,
            82px
        );
    }


    /* Businesses */

    .business-row {
        grid-template-columns:
            60px
            1fr
            50px;
    }

    .business-description {
        display: none;
    }


    /* Footer */

    .footer-top {
        grid-template-columns:
            1.5fr
            1fr
            1fr;

        gap: 40px;
    }
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 640px) {

    .container {
        width: calc(100% - 32px);
    }


    /* Header */

    .site-header {
        height: 70px;
    }

    .main-nav {
        gap: 18px;
    }

    .main-nav a {
        font-size: 11px;
    }


    /* Hero */

    .hero {
        min-height: calc(100vh - 70px);
    }

    .hero-background {
        /*
           Keep the sculpture on the right/bottom
           so it doesn't interfere with the headline.
        */
        background-position: 72% center;

        background-size: auto 100%;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(8, 8, 8, 0.98) 0%,
                rgba(8, 8, 8, 0.92) 42%,
                rgba(8, 8, 8, 0.55) 75%,
                rgba(8, 8, 8, 0.20) 100%
            );
    }

    .hero-inner {
        min-height: calc(100vh - 70px);

        padding: 80px 0;
    }

    .hero-kicker {
        margin-bottom: 28px;
    }

    .hero-grid {
        display: block;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero h1 {
        max-width: 100%;

        font-size: 52px;

        line-height: 0.98;
    }

    .hero-bottom {
        max-width: 100%;

        margin-top: 50px;

        flex-direction: column;

        align-items: flex-start;

        gap: 35px;
    }

    .hero-description {
        max-width: 440px;

        font-size: 15px;
    }


    /* Businesses */

    .businesses-section {
        padding: 100px 0;
    }

    .section-header {
        grid-template-columns: 1fr;

        gap: 18px;

        margin-bottom: 55px;
    }

    .section-header h2 {
        font-size: 42px;
    }

    .business-row {
        min-height: 145px;

        grid-template-columns:
            38px
            1fr
            30px;

        gap: 12px;
    }

    .business-row:hover {
        padding-left: 8px;
        padding-right: 8px;
    }

    .business-index {
        padding-top: 23px;
    }

    .business-main h3 {
        font-size: 30px;
    }

    .business-main p {
        font-size: 10px;
        line-height: 1.4;
    }

    .business-arrow {
        font-size: 20px;
    }


    /* Approach */

    .approach-section {
        padding: 100px 0;
    }

    .approach-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .approach-content h2 {
        font-size: 44px;
    }

    .approach-content p {
        margin-top: 28px;

        font-size: 15px;
    }


    /* Closing */

    .closing-section {
        padding: 110px 0;
    }

    .closing-content h2 {
        font-size: 54px;
    }


    /* Footer */

    .footer-top {
        grid-template-columns: 1fr;

        gap: 45px;

        padding-bottom: 50px;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 6px;
    }
}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


.approach-section {
    background: #0A0A0B;
}