/* =========================================================
   MAIN PAGE — HERO
   ========================================================= */

.insgeo-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 82px);
    padding: 70px 0 220px;
    overflow: hidden;

    background-color: #f7f3e9;
    background-image:
        linear-gradient(
            90deg,
            rgba(247, 243, 233, 1) 0%,
            rgba(247, 243, 233, 0.98) 27%,
            rgba(247, 243, 233, 0.86) 42%,
            rgba(247, 243, 233, 0.48) 59%,
            rgba(247, 243, 233, 0.08) 76%,
            rgba(247, 243, 233, 0) 88%
        ),
        url("/wp-content/uploads/2026/07/insgeo-hero.webp");

    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
}


/* =========================================================
   HERO CONTAINER
   ========================================================= */

.insgeo-hero__container {
    position: static;
    width: 100%;
}

.insgeo-hero__content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 720px;
}


/* =========================================================
   HERO TEXT
   ========================================================= */

.insgeo-hero__eyebrow {
    margin: 0 0 20px;

    color: #9b7430;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.insgeo-hero__title {
    max-width: 720px;
    margin: 0 0 24px;

    color: #17231c;

    font-size: clamp(44px, 4.5vw, 72px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.insgeo-hero__title-line,
.insgeo-hero__title-accent {
    display: block;
}

.insgeo-hero__title-accent {
    margin-top: 10px;

    color: #a4782c;

    font-size: 0.5em;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.insgeo-hero__description {
    max-width: 620px;
    margin: 0 0 32px;

    color: #46524b;

    font-size: 19px;
    font-weight: 400;
    line-height: 1.65;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.insgeo-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.insgeo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 56px;
    padding: 16px 30px;

    border: 1px solid transparent;
    border-radius: 6px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1;

    text-align: center;
    text-decoration: none;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.insgeo-button:hover {
    transform: translateY(-2px);
}

.insgeo-button:focus-visible {
    outline: 3px solid rgba(164, 120, 44, 0.42);
    outline-offset: 3px;
}

.insgeo-button--primary {
    background-color: #1f392c;
    color: #ffffff;

    box-shadow: 0 9px 24px rgba(31, 57, 44, 0.18);
}

.insgeo-button--primary:hover {
    background-color: #142b20;
    color: #ffffff;

    box-shadow: 0 13px 30px rgba(31, 57, 44, 0.24);
}

.insgeo-button--secondary {
    border-color: rgba(31, 57, 44, 0.32);

    background-color: rgba(255, 255, 255, 0.62);
    color: #1f392c;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.insgeo-button--secondary:hover {
    border-color: #1f392c;

    background-color: rgba(255, 255, 255, 0.88);
    color: #1f392c;
}


/* =========================================================
   FEATURES PANEL
   ========================================================= */

.insgeo-hero__features {
    position: absolute;
    right: 24px;
    bottom: 58px;
    left: 24px;
    z-index: 3;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    margin: 0;
    padding: 24px 20px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(8, 55, 41, 0.98),
            rgba(13, 77, 56, 0.96)
        );

    box-shadow:
        0 20px 48px rgba(17, 38, 29, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.insgeo-feature {
    position: relative;

    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 16px;

    min-width: 0;
    padding: 4px 24px;
}

.insgeo-feature:not(:last-child)::after {
    content: "";

    position: absolute;
    top: 3px;
    right: 0;
    bottom: 3px;

    width: 1px;

    background: rgba(255, 255, 255, 0.2);
}

.insgeo-feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.09);
    color: #e0aa3e;

    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.insgeo-feature__body {
    min-width: 0;
}

.insgeo-feature__title {
    margin: 0 0 6px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 650;
    line-height: 1.25;
}

.insgeo-feature__text {
    margin: 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .insgeo-hero {
        min-height: auto;
        padding: 70px 0 330px;

        background-image:
            linear-gradient(
                90deg,
                rgba(247, 243, 233, 1) 0%,
                rgba(247, 243, 233, 0.98) 38%,
                rgba(247, 243, 233, 0.74) 62%,
                rgba(247, 243, 233, 0.15) 86%
            ),
            url("/wp-content/uploads/2026/07/insgeo-hero.webp");

        background-position: 68% center;
    }

    .insgeo-hero__content {
        max-width: 620px;
    }

    .insgeo-hero__title {
        font-size: clamp(48px, 7vw, 68px);
    }

    .insgeo-hero__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px 18px;
    }

    .insgeo-feature {
        padding: 18px 22px;
    }

    .insgeo-feature:nth-child(2)::after,
    .insgeo-feature:nth-child(4)::after {
        display: none;
    }

    .insgeo-feature:nth-child(-n + 2)::before {
        content: "";

        position: absolute;
        right: 22px;
        bottom: 0;
        left: 22px;

        height: 1px;

        background: rgba(255, 255, 255, 0.15);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .insgeo-hero {
        display: block;

        min-height: auto;

        /*
         * Великий верхній відступ потрібен через прозорий
         * хедер, який знаходиться поверх hero.
         */
        padding: 118px 0 28px;

        background-color: #f7f3e9;

        /*
         * Карта залишається легкою фоновою текстурою,
         * але не створює окрему порожню область.
         */
        background-image:
            linear-gradient(
                180deg,
                rgba(247, 243, 233, 0.98) 0%,
                rgba(247, 243, 233, 0.96) 32%,
                rgba(247, 243, 233, 0.90) 58%,
                rgba(247, 243, 233, 0.82) 78%,
                rgba(247, 243, 233, 0.88) 100%
            ),
            url("/wp-content/uploads/2026/07/insgeo-hero.webp");

        background-repeat: no-repeat;
        background-position: center center;
        background-size: auto 78%;
    }

    .insgeo-hero__container {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    .insgeo-hero__content {
        width: 100%;
        max-width: 100%;

        /*
         * Старий padding-bottom: 285px створював
         * велику порожню зону. Він більше не потрібен.
         */
        padding-bottom: 0;
    }

    .insgeo-hero__eyebrow {
        max-width: 290px;
        margin: 0 0 14px;

        font-size: 10px;
        line-height: 1.45;
        letter-spacing: 0.13em;
    }

    .insgeo-hero__title {
        max-width: 100%;
        margin: 0 0 18px;

        font-size: clamp(36px, 10.5vw, 48px);
        line-height: 1.01;
        letter-spacing: -0.04em;

        overflow-wrap: normal;
        word-break: normal;
    }

    .insgeo-hero__title-accent {
        margin-top: 7px;

        font-size: 0.56em;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .insgeo-hero__description {
        max-width: 100%;
        margin: 0 0 24px;

        color: #46524b;

        font-size: 16px;
        line-height: 1.55;
    }

    .insgeo-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;

        width: 100%;
    }

    .insgeo-button {
        width: 100%;
        min-height: 52px;
        padding: 14px 18px;

        border-radius: 6px;

        font-size: 15px;
        line-height: 1.2;
    }

    .insgeo-button:hover {
        transform: none;
    }

    .insgeo-hero__features {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;

        grid-template-columns: 1fr;

        width: 100%;
        margin: 28px 0 0;
        padding: 6px 16px;

        border-radius: 14px;

        box-shadow:
            0 14px 32px rgba(17, 38, 29, 0.20),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .insgeo-feature {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 13px;

        padding: 15px 2px;
    }

    .insgeo-feature:not(:last-child)::after {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;

        width: auto;
        height: 1px;
    }

    .insgeo-feature:nth-child(-n + 2)::before {
        display: none;
    }

    .insgeo-feature__icon {
        width: 42px;
        height: 42px;

        font-size: 19px;
    }

    .insgeo-feature__title {
        margin-bottom: 4px;

        font-size: 14px;
        line-height: 1.3;
    }

    .insgeo-feature__text {
        font-size: 12px;
        line-height: 1.45;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .insgeo-hero {
        padding-top: 108px;
        padding-bottom: 22px;

        background-position: center 58%;
        background-size: auto 68%;
    }

    .insgeo-hero__container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .insgeo-hero__eyebrow {
        margin-bottom: 12px;

        font-size: 9px;
        letter-spacing: 0.11em;
    }

    .insgeo-hero__title {
        margin-bottom: 16px;

        font-size: clamp(33px, 10vw, 39px);
        line-height: 1.02;
    }

    .insgeo-hero__title-accent {
        margin-top: 6px;
        font-size: 0.58em;
    }

    .insgeo-hero__description {
        margin-bottom: 22px;

        font-size: 15px;
        line-height: 1.5;
    }

    .insgeo-button {
        min-height: 50px;
        padding: 13px 16px;

        font-size: 14px;
    }

    .insgeo-hero__features {
        margin-top: 24px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .insgeo-feature {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;

        padding-top: 14px;
        padding-bottom: 14px;
    }

    .insgeo-feature__icon {
        width: 40px;
        height: 40px;

        font-size: 18px;
    }
}
/* =========================================================
   HOME PAGE — CONTACT FORM SECTION
   ========================================================= */

.insgeo-home-form {
    padding: 80px 0;
    background-color: #f7f3e9;
}

.insgeo-home-form__container {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
}

@media (max-width: 900px) {
    .insgeo-home-form {
        padding: 64px 0;
    }

    .insgeo-home-form__container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 767px) {
    .insgeo-home-form {
        padding: 48px 0;
    }
}