/* =========================================================
   MOBILE OVERRIDES
   Base styles remain in styles.css.
   Only layout and sizing that needs to change on smaller
   screens is overridden here.
   ========================================================= */

@media (max-width: 48em) {

    /* =====================================================
       GLOBAL
       ===================================================== */

    section {
        min-height: auto;
    }


    /* =====================================================
       TYPOGRAPHY
       ===================================================== */

    h1 {
        font-size: clamp(3.6rem, 17vw, 5.2rem);
        line-height: 0.9;
        margin-left: -0.03em;
    }

    h2 {
        font-size: 0.7rem;
        letter-spacing: 2px;
        line-height: 1.4;
        margin-top: 1.1em;
    }

    h3 {
        font-size: clamp(3.5rem, 15vw, 5rem);
        line-height: 1.1;
        width: 100%;
    }

    h4 {
        font-size: clamp(3.5rem, 15vw, 5rem);
        line-height: 1.1;
        margin-bottom: 3vh;
        width: 100%;
    }

    .narrow_heading {
        font-size: clamp(2.8rem, 12vw, 4rem);
    }

    .small_h4 {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .tall {
        line-height: 1.05;
    }

    h5 {
        font-size: clamp(7rem, 10vw, 10rem);
        line-height: 0.9;
        width: 100%;
    }

    h6 {
        font-size: clamp(3.5rem, 15vw, 5rem);
        line-height: 1.1;
    }


    /* =====================================================
       STANDARD SECTIONS
       ===================================================== */

    .section,
    .section.long,
    .section.superlong,
    .section.megalong {
        height: auto;
        padding: 14vh 0;
        width: 84%;
    }


    /* =====================================================
       NAVIGATION
       ===================================================== */

    .nav {
        padding: 3vh 6vw;
    }

    .nav_list {
        gap: 0.7rem;
    }

    .nav_list a,
    .nav_name {
        font-size: 0.68rem;
        letter-spacing: 0.4px;
    }

    .nav_name {
        left: 0;
        top: 2px;
    }


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

    .cover_box {
        height: 100svh;
    }

    .cover_image {
        height: 100svh;
    }

    .claim_box {
        left: 0;
        margin: 0 auto;
        max-width: 90%;
        width: 90%;
        align-items: center;
        transform: translateY(-6vh);
    }

    .hero_title {
        text-align: center;
    }

    .hero_top {
        font-size: 0.82em;
    }

    .hero_bottom {
        font-size: 0.88em;
    }

    .hero_subtitle {
        text-align: center;
        width: 100%;
    }

    .cover_cta {
        bottom: 24vh;
        width: 88%;
        display: flex;
        justify-content: center;
        gap: 1rem;
    }


    /* =====================================================
       STRIP IMAGE
       ===================================================== */

    .strip_image {
        height: 100%;
    }


    /* =====================================================
       CTA LAYOUT
       ===================================================== */

    .offer_cta {
        align-items: center;
        flex-direction: column;
        width: 100%;
    }

    .compact_items .icon_item .offer_cta {
        width: 90%;
    }

    .compact_items .icon_item .offer_cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 90%;
        box-sizing: border-box;
    }

    .compact_items .icon_item .offer_cta {
        margin-top: 0.5rem;
    }

    .icon_container.compact_items > .icon_item {
        width: 85%;
        max-width: none;
    }

    .icon_container.compact_items {
        align-items: center;
    }

    .cta_button_6,
    .cta_button_7 {
        max-width: 320px;
        width: 100%;
    }

    .cta_top_spacing {
        margin-top: 10vh !important;
    }


    /* =====================================================
       FEATURE LISTS
       ===================================================== */

    .features,
    .small_features {
        align-items: center;
        flex-direction: column;
        gap: 0.7rem;
        width: 100%;
    }

    .features li,
    .small_features li {
        text-align: center;
        white-space: normal;
    }

    .features li:not(:last-child)::after,
    .small_features li:not(:last-child)::after {
        content: none;
    }


    /* =====================================================
       ICON-BASED SECTIONS
       ===================================================== */

    .icon_intro {
        margin: 5vh auto 6vh;
        width: 100%;
    }

    .icon_container {
        align-items: center;
        flex-direction: column;
        gap: 3.5rem;
        width: 100%;
    }

    .icon_item {
        margin: 0;
        max-width: 320px;
        width: 100%;
    }


    /* =====================================================
       CONTENT GRID
       ===================================================== */

    .content_grid_section {
        padding: 12vh 8vw;
    }

    .content_grid {
        gap: 5rem;
        grid-template-columns: 1fr;
    }

    .content_grid_item {
        width: 100%;
    }

    .content_grid_title {
        margin-top: 0;
    }


    /* =====================================================
       PRICING / WIDE ROW
       ===================================================== */

    .wide_row {
        gap: 5rem;
        width: 100%;
    }

    .wide_row .icon_item {
        max-width: 320px;
        width: 100%;
    }

    .huge_title {
        font-size: 7rem;
    }

    .narrow_text {
        width: 100%;
    }

    .bordered_item::before {
        inset: -1.5rem -1rem;
    }

    .four_grid {
        gap: 3rem;
        grid-template-columns: 1fr;
        margin-top: 5rem;
    }


    /* =====================================================
       EDITORIAL: STEPS
       ===================================================== */

    .editorial_section {
        padding: 12vh 8vw;
    }

    .editorial_inner {
        gap: 5rem;
        grid-template-columns: 1fr;
    }

    .editorial_heading {
        position: static;
    }

    .editorial_heading h3 {
        font-size: clamp(3.5rem, 15vw, 5rem);
    }

    .editorial_fact {
        gap: 1rem;
    }


    /* =====================================================
       EDITORIAL: ABOUT
       ===================================================== */

    .editorial_split {
        padding: 12vh 8vw;
    }

    .editorial_split_inner {
        gap: 5rem;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .editorial_split_heading {
        align-items: flex-start;
    }

    .editorial_split_heading h3 {
        font-size: clamp(3.5rem, 15vw, 5rem);
    }

    .editorial_split_content {
        align-items: flex-start;
        max-width: none;
        width: 100%;
    }

    .editorial_split_lead {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
        margin-bottom: 5vh;
    }


    /* =====================================================
       CONTACT
       ===================================================== */

    .contact_layout {
        flex-direction: column;
        gap: 8vh;
        padding: 12vh 8vw;
    }

    .contact_left p {
        margin: 4vh 0 5vh;
        width: 100%;
    }

    .contact_left a {
        font-size: 1.25rem;
    }

    .contact_right {
        align-items: stretch;
        width: 100%;
    }

    .consultation_form {
        width: 100%;
    }

    .heading_box {
        max-width: 100%;
        width: 100%;
    }

    .paragraph_lead,
    .paragraph_text,
    .paragraph_detail {
        width: 100%;
    }

    .second_paragraph {
        width: 90%;
    }


    /* =====================================================
       BUSINESS CHOICE
       ===================================================== */

    .business_choice {
        flex-direction: column;
        height: 100svh;
    }

    .business_choice_option,
    .business_choice:has(.business_choice_jdg:hover) .business_choice_jdg,
    .business_choice:has(.business_choice_jdg:hover) .business_choice_company,
    .business_choice:has(.business_choice_company:hover) .business_choice_company,
    .business_choice:has(.business_choice_company:hover) .business_choice_jdg {
        height: 50%;
        width: 100%;
    }

    .business_choice_content {
        gap: 1.5rem;
        width: 75%;
    }

    .business_choice_content h1 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    /* =====================================================
       PROFILE
       ===================================================== */

    .profile_section {
        min-height: 100svh;
        padding: 14vh 12vw 10vh;
    }

    .profile_layout {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        justify-content: center;
        width: 100%;
    }

    .profile_layout_item {
        max-width: 500px;
        width: 100%;
    }

    .profile_photo {
        display: flex;
        justify-content: flex-start;
        margin: 0;
        width: 100%;
    }

    .profile_photo img {
        height: 150px;
        width: 150px;
    }

    .profile_layout_item:last-child p {
        margin-left: 0;
        text-align: left;
    }

    .profile_section .offer_cta {
        display: flex;
        justify-content: flex-start;
        margin-top: 2rem;
        width: 100%;
    }

    .profile_layout_item:last-child p {
        margin-left: 0.6rem;
        text-align: left;
    }

    .profile_section .offer_cta {
        display: flex;
        justify-content: flex-start;
        margin-top: 2.5rem;
        width: 100%;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    footer {
        justify-content: flex-start;
        min-height: auto;
        padding: 10vh 8vw;
    }
}
