/* =========================================
   LARGE LAPTOPS
========================================= */

@media (max-width: 1200px) {

    .rh-header-inner {
        gap: 22px;
    }

    .rh-nav-list {
        gap: 20px;
    }

    .rh-logo img {
        width: 145px;
    }

    .rh-hero-grid {
        gap: 35px;
    }

    .rh-why-grid,
    .rh-about-grid,
    .rh-build-grid {
        gap: 65px;
    }

    .rh-footer-main {
        gap: 35px;
    }

}


/* =========================================
   TABLETS AND SMALL LAPTOPS
========================================= */

@media (max-width: 1024px) {

    :root {
        --rh-header-height: 78px;
    }

    .section-spacing {
        padding-top: 85px;
        padding-bottom: 85px;
    }

    /* HEADER */

    .rh-header-inner {
        width: calc(100% - 40px);
    }

    .rh-logo img {
        width: 135px;
    }

    .rh-nav-list {
        gap: 15px;
    }

    .rh-nav-list > li > a {
        font-size: 11px;
    }

    .rh-header-actions {
        gap: 13px;
    }

    .rh-header-cta {
        padding-inline: 15px;
    }

    /* HERO */

    .rh-hero {
        padding-top: 75px;
    }

    .rh-hero-grid {
        grid-template-columns: 1fr 0.9fr;
        gap: 20px;
    }

    .rh-hero-content h1 {
        font-size: 53px;
    }

    .rh-hero-visual {
        min-height: 400px;
    }

    .rh-visual-main {
        width: 360px;
    }

    .rh-visual-orbit {
        width: 230px;
        height: 230px;
    }

    .rh-floating-top {
        right: -5px;
    }

    .rh-floating-bottom {
        left: -5px;
    }

    /* ROADMAP */

    .rh-heading-split {
        gap: 35px;
    }

    .rh-roadmap-track {
        gap: 18px;
    }

    /* WHY */

    .rh-why-grid,
    .rh-about-grid,
    .rh-build-grid {
        gap: 45px;
    }

    /* DIFFERENTIATORS */

    .rh-difference-card {
        padding: 26px;
        min-height: 300px;
    }

    /* FOOTER */

    .rh-footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 45px;
    }

}


/* =========================================
   MOBILE NAVIGATION AND TABLET
========================================= */

@media (max-width: 900px) {

    .rh-menu-toggle {
        display: block;
        order: 3;
    }

    .rh-header-inner {
        position: relative;
    }

    .rh-navigation {
        position: absolute;

        top: 100%;
        left: -20px;
        right: -20px;

        display: none;

        max-height: calc(100vh - 100px);

        overflow-y: auto;

        margin: 0;

        padding: 20px;

        background: var(--rh-white);

        border-top: 1px solid var(--rh-border);

        box-shadow: var(--rh-shadow-md);
    }

    .rh-navigation.is-open {
        display: block;
    }

    .rh-nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;
    }

    .rh-nav-list > li {
        border-bottom: 1px solid var(--rh-border-light);
    }

    .rh-nav-list > li > a {
        display: flex;
        justify-content: space-between;

        padding: 16px 8px;

        font-size: 14px;
    }

    /* MOBILE DROPDOWN */

    .rh-nav-list .sub-menu,
    .rh-nav-list > li.rh-mega-menu > .sub-menu {
        position: static;

        display: none;

        width: 100%;

        padding: 5px 0 15px;

        border: 0;

        border-radius: 0;

        box-shadow: none;

        background: var(--rh-background-light);

        opacity: 1;
        visibility: visible;

        transform: none;
    }

    .rh-nav-list > li.submenu-open > .sub-menu {
        display: grid;
        grid-template-columns: 1fr;
    }

    .rh-nav-list .sub-menu li a {
        padding: 12px 20px;
    }

    .rh-nav-list .menu-item-has-children:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .rh-header-actions {
        margin-left: auto;
    }

    /* HERO */

    .rh-hero-grid {
        grid-template-columns: 1fr;
    }

    .rh-hero-content {
        max-width: 750px;
    }

    .rh-hero-visual {
        min-height: 450px;
        margin-top: 25px;
    }

    .rh-visual-main {
        width: 410px;
    }

    /* ROADMAP */

    .rh-heading-split {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rh-roadmap-track {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 45px;
    }

    .rh-roadmap-track::before {
        display: none;
    }

    /* WHY AND ABOUT */

    .rh-why-grid,
    .rh-about-grid,
    .rh-build-grid {
        grid-template-columns: 1fr;
    }

    .rh-about-visual {
        min-height: 380px;
    }

    /* DIFFERENTIATORS */

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

    /* PRICING */

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

    .rh-price-card:last-child {
        grid-column: 1 / -1;
    }

    /* BLOG */

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

    .rh-blog-card:last-child {
        grid-column: 1 / -1;
    }

    /* CTA */

    .rh-cta-inner {
        grid-template-columns: 1fr 0.6fr;
    }

}


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

@media (max-width: 767px) {

    .rh-container,
    .rh-container-wide {
        width: calc(100% - 36px);
    }

    .section-spacing {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    /* HEADER */

    .rh-header-inner {
        min-height: 72px;
        width: calc(100% - 36px);
        gap: 10px;
    }

    .rh-logo img {
        width: 125px;
        max-height: 62px;
    }

    .rh-header-actions {
        gap: 10px;
    }

    .rh-login-link {
        display: none;
    }

    .rh-header-cta {
        min-height: 40px;
        padding: 0 12px;
        font-size: 11px;
    }

    .rh-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .rh-navigation {
        left: -18px;
        right: -18px;
    }

    /* HERO */

    .rh-hero {
        min-height: auto;
        padding: 75px 0 35px;
    }

    .rh-hero-content h1 {
        font-size: clamp(40px, 10vw, 56px);
        letter-spacing: -2px;
    }

    .rh-hero-description {
        font-size: 14px;
    }

    .rh-hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .rh-hero-buttons .rh-button {
        width: 100%;
    }

    .rh-hero-visual {
        min-height: 360px;
        margin-top: 20px;
    }

    .rh-visual-main {
        width: min(100%, 340px);
        padding: 18px;
        border-radius: 22px;
    }

    .rh-visual-orbit {
        width: 205px;
        height: 205px;
    }

    .rh-orbit-core {
        width: 78px;
        height: 78px;
        border-radius: 20px;
        font-size: 45px;
    }

    .rh-orbit-node {
        width: 49px;
        height: 49px;
        border-radius: 13px;
        font-size: 10px;
    }

    .rh-floating-label {
        padding: 10px 12px;
        font-size: 9px;
    }

    .rh-floating-top {
        top: 12px;
        right: 0;
    }

    .rh-floating-bottom {
        bottom: 5px;
        left: 0;
    }

    .rh-hero-bottom {
        width: calc(100% - 36px);
        margin-top: 45px;
    }

    .rh-hero-bottom > span {
        max-width: 230px;
        font-size: 8px;
    }

    /* HEADINGS */

    .rh-section-heading {
        margin-bottom: 38px;
    }

    .rh-section-heading h2 {
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    /* ROADMAP */

    .rh-roadmap-track {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 45px;
    }

    .rh-roadmap-item {
        display: grid;
        grid-template-columns: 55px 1fr;
        column-gap: 15px;
    }

    .rh-step-number {
        grid-row: span 2;
        width: 48px;
        height: 48px;
        margin-bottom: 0;
    }

    .rh-roadmap-item h3 {
        margin-bottom: 5px;
    }

    .rh-roadmap-item p {
        max-width: none;
    }

    /* SERVICES */

    .rh-service-row {
        grid-template-columns: 38px 1fr 35px;
        gap: 10px;
        padding: 27px 5px;
    }

    .rh-service-row:hover {
        padding-left: 10px;
        padding-right: 10px;
    }

    .rh-service-content h3 {
        font-size: 17px;
    }

    .rh-service-content p {
        font-size: 12px;
    }

    .rh-service-link {
        width: 35px;
        height: 35px;
        font-size: 17px;
    }

    .rh-service-number {
        font-size: 11px;
    }

    /* WHY */

    .rh-why-intro h2 {
        font-size: 39px;
    }

    .rh-why-item {
        grid-template-columns: 38px 1fr;
        gap: 12px;
    }

    .rh-why-item h3 {
        font-size: 17px;
    }

    /* DIFFERENTIATORS */

    .rh-difference-grid {
        grid-template-columns: 1fr;
    }

    .rh-difference-card {
        min-height: auto;
        padding: 28px;
    }

    /* ABOUT */

    .rh-about-visual {
        min-height: 320px;
        border-radius: 20px;
    }

    .rh-about-content h2 {
        font-size: 36px;
    }

    .rh-graphic-letter {
        font-size: 130px;
    }

    /* BUILD */

    .rh-build-heading h2 {
        font-size: 53px;
    }

    .rh-build-content h3 {
        font-size: 21px;
    }

    /* PRICING */

    .rh-pricing-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .rh-price-card:last-child {
        grid-column: auto;
    }

    .rh-price-card {
        padding: 32px 25px;
    }

    /* BLOG */

    .rh-insights-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .rh-blog-grid {
        grid-template-columns: 1fr;
    }

    .rh-blog-card:last-child {
        grid-column: auto;
    }

    .rh-blog-image {
        height: 230px;
    }

    /* CTA */

    .rh-final-cta {
        padding: 75px 0;
    }

    .rh-cta-inner {
        grid-template-columns: 1fr;
    }

    .rh-cta-content h2 {
        font-size: 39px;
    }

    .rh-cta-decoration {
        min-height: 230px;
    }

    .rh-cta-decoration > span {
        width: 130px;
        height: 130px;
        font-size: 80px;
    }

    .rh-cta-decoration > div {
        width: 180px;
        height: 180px;
    }

    .rh-cta-decoration > div:last-child {
        width: 220px;
        height: 220px;
    }

    /* FOOTER */

    .rh-footer {
        padding-top: 65px;
    }

    .rh-footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 45px;
    }

    .rh-footer-brand > p {
        max-width: 100%;
    }

    .rh-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        gap: 15px;

        padding: 25px 0;
    }

    .rh-footer-legal {
        flex-wrap: wrap;
        gap: 15px;
    }

}


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

@media (max-width: 390px) {

    .rh-container {
        width: calc(100% - 30px);
    }

    .rh-logo img {
        width: 105px;
    }

    .rh-header-cta {
        padding: 0 9px;
        font-size: 10px;
    }

    .rh-hero-content h1 {
        font-size: 38px;
    }

    .rh-visual-main {
        width: 290px;
    }

    .rh-visual-orbit {
        width: 180px;
        height: 180px;
    }

    .rh-orbit-node {
        width: 43px;
        height: 43px;
    }

    .rh-service-row {
        grid-template-columns: 28px 1fr 32px;
        gap: 8px;
    }

    .rh-service-content h3 {
        font-size: 15px;
    }

    .rh-section-heading h2 {
        font-size: 32px;
    }

    .rh-cta-content h2 {
        font-size: 34px;
    }

}