/* =========================================================
   DHAB RESPONSIVE
   Desktop / Laptop / Tablet / Mobile
========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
svg,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

/* LARGE SCREENS */
@media (min-width: 1440px) {
    .wrap {
        width: min(1380px, calc(100% - 96px));
    }

    .hero {
        min-height: 720px;
    }
}

/* LAPTOP */
@media (max-width: 1280px) {
    .wrap {
        width: min(1180px, calc(100% - 48px));
    }

    nav {
        gap: 20px;
    }

    nav a {
        font-size: 12px;
    }

    .hero {
        min-height: 650px;
    }

    .hero h1 {
        font-size: clamp(42px, 5vw, 64px);
    }

    .feature-card {
        padding: 30px 24px;
    }
}

/* TABLET */
@media (max-width: 1024px) {
    .wrap {
        width: calc(100% - 38px);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding-block: 75px;
    }

    .hero-content {
        grid-column: 1;
        width: min(640px, 100%);
    }

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

    .image-story-grid {
        grid-template-columns: 1fr;
    }

    .image-story-copy {
        padding: 52px 42px;
    }

    .story-grid,
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(52,56,44,.12);
    border-radius: 50%;
    background: rgba(251,248,241,.95);
    color: var(--olive-950, #34382c);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 23px;
}

/* MOBILE */
@media (max-width: 768px) {
    .wrap {
        width: calc(100% - 26px);
    }

    body {
        font-size: 15px;
    }

    header {
        position: relative;
    }

    header .wrap {
        min-height: 68px;
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    header nav {
        position: absolute;
        top: 68px;
        right: 13px;
        left: 13px;
        z-index: 9999;

        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 9px;

        background: rgba(251,248,241,.98);
        border: 1px solid rgba(52,56,44,.10);
        border-radius: 18px;

        box-shadow: 0 20px 60px rgba(40,39,32,.15);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);

        transition:
            opacity .28s ease,
            visibility .28s ease,
            transform .28s ease;
    }

    header nav.mobile-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    header nav a {
        display: block;
        width: 100%;
        padding: 14px 13px;

        border-bottom: 1px solid rgba(52,56,44,.07);

        text-align: right;
        font-size: 14px;
    }

    header nav a:last-child {
        border-bottom: 0;
    }

    header nav a::before,
    header nav a::after {
        display: none !important;
    }

    /* HERO */
    .hero {
        min-height: 650px;
        background-position: 35% center !important;
    }

    .hero::before {
        background:
            linear-gradient(
                0deg,
                rgba(46,50,39,.97) 0%,
                rgba(46,50,39,.75) 44%,
                rgba(46,50,39,.15) 100%
            );
    }

    .hero-grid {
        display: block;
        padding-top: 215px;
        padding-bottom: 48px;
    }

    .hero-content {
        width: 100%;
        max-width: none;
    }

    .hero h1 {
        font-size: clamp(34px, 10vw, 43px);
        line-height: 1.55;
    }

    .hero p {
        margin-top: 17px;
        font-size: 15px;
        line-height: 2;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 9px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* SECTIONS */
    .section {
        padding-block: 55px;
    }

    .section-head {
        margin-bottom: 25px;
    }

    .section-head h2,
    .split-heading h2 {
        font-size: 28px;
        line-height: 1.65;
    }

    /* CARDS */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
        padding: 27px 22px;

        border-left: 0;
        border-bottom: 1px solid rgba(52,56,44,.10);
    }

    .feature-card:last-child {
        border-bottom: 0;
    }

    .feature-icon {
        width: 53px;
        height: 53px;
    }

    /* ABOUT */
    .image-story {
        border-radius: 20px;
    }

    .image-story-grid {
        display: flex;
        flex-direction: column;
    }

    .image-story-copy {
        order: 2;
        padding: 38px 23px;
    }

    .image-story-copy h2 {
        font-size: 28px;
    }

    .image-story-copy p {
        font-size: 15px;
    }

    /* STATS */
    .stats,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat,
    .stat-card {
        border-left: 0;
        border-bottom: 1px solid rgba(52,56,44,.10);
        padding: 18px 0;
    }

    /* OTHER CARDS */
    .story-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .story-card img,
    .content-card img {
        height: 220px;
    }

    /* FORMS */
    input,
    textarea,
    select {
        max-width: 100%;
        font-size: 16px !important;
    }

    /* TABLES */
    .table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 700px;
    }

    /* FOOTER */
    footer {
        padding: 24px 0 12px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .wrap {
        width: calc(100% - 22px);
    }

    .hero {
        min-height: 625px;
    }

    .hero-grid {
        padding-top: 190px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 14px;
    }

    .section {
        padding-block: 48px;
    }

    .section-head h2,
    .split-heading h2 {
        font-size: 25px;
    }

    .image-story-copy {
        padding: 32px 20px;
    }

    .story-card img,
    .content-card img {
        height: 200px;
    }
}
