/* REGULAR ZOOM (100%) SCALING WITH PHONE SUPPORT */

:root {
    --responsive_500_space_margin_left: auto !important;
    --responsive_500_space_margin_right: auto !important;
}

/* Base scaling adjustments - Regular zoom */
body {
    font-size: 16px !important; /* Standard base size */
    line-height: 1.5 !important;
}

/* Container scaling - Regular width */
.container {
    max-width: 1200px !important; /* Standard container width */
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Font scaling - Regular sizes */
h1 {
    font-size: 3rem !important; /* 48px */
    line-height: 1.1 !important;
}

h2 {
    font-size: 2.25rem !important; /* 36px */
}

h3 {
    font-size: 1.5rem !important; /* 24px */
}

/* Text size scaling - Regular sizes */
.text-5xl {
    font-size: 3rem !important;
}

/* 48px */
.text-4xl {
    font-size: 2.25rem !important;
}

/* 36px */
.text-3xl {
    font-size: 1.875rem !important;
}

/* 30px */
.text-2xl {
    font-size: 1.5rem !important;
}

/* 24px */
.text-xl {
    font-size: 1.25rem !important;
}

/* 20px */
.text-lg {
    font-size: 1rem !important;
}

/* 18px */
.text-base {
    font-size: 1rem !important;
}

/* 16px */
.text-sm {
    font-size: 0.875rem !important;
}

/* 14px */
.text-xs {
    font-size: 0.75rem !important;
}

/* 12px */

/* Spacing scaling - Regular spacing */
.p-8 {
    padding: 2rem !important;
}

/* 32px */
.p-6 {
    padding: 1.5rem !important;
}

/* 24px */
.p-4 {
    padding: 1rem !important;
}

/* 16px */
.p-3 {
    padding: 0.75rem !important;
}

/* 12px */
.p-2 {
    padding: 0.5rem !important;
}

/* 8px */

.py-16 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.py-12 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.py-8 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.py-6 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.px-8 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-3 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.mb-12 {
    margin-bottom: 3rem !important;
}

.mb-10 {
    margin-bottom: 2.5rem !important;
}

.mb-8 {
    margin-bottom: 2rem !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

/* Gap scaling - Regular gaps */
.gap-8 {
    gap: 2rem !important;
}

.gap-6 {
    gap: 1.5rem !important;
}

.gap-4 {
    gap: 1rem !important;
}

.gap-3 {
    gap: 0.75rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.space-y-6 > * + * {
    margin-top: 1.5rem !important;
}

.space-y-4 > * + * {
    margin-top: 1rem !important;
}

.space-y-3 > * + * {
    margin-top: 0.75rem !important;
}

.space-y-2 > * + * {
    margin-top: 0.5rem !important;
}

/* Button and element size scaling - Regular */
.logo-image-picture {
    height: 3.25rem !important; /* Original size */
    width: auto !important;
}

.menu-toggle-btn {
    width: 44px !important; /* Original size */
    height: 44px !important;
}

.menu-toggle-btn i {
    font-size: 1.25rem !important; /* Original size */
}

/* Hero section scaling - Regular */
.h-\[88\.5vh\] {
    height: 88.5vh !important; /* Original height */
    min-height: 600px !important;
}

/* Card scaling - Regular */
.h-64 {
    height: 16rem !important; /* 256px */
}

/* Map container scaling - Regular */
.h-96 {
    height: 24rem !important; /* 384px */
}

/* Icon scaling in info boxes - Regular */
.w-12 {
    width: 48px !important;
    height: 48px !important;
}

.w-12 i {
    font-size: 1.25rem !important;
}

/* Footer logo scaling - Regular */
.w-14 {
    width: 56px !important;
    height: 56px !important;
}

.w-10 {
    width: 40px !important;
    height: 40px !important;
}

/* TRUSTED INDUSTRY LEADER GRID - Regular */
#stats .grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
}

#stats .text-center {
    padding: 0 0.5rem !important;
}

#stats .card-hover {
    padding: 1.5rem 1rem !important;
    min-height: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

#stats .text-5xl {
    font-size: 2.5rem !important;
    line-height: 1 !important;
    margin-bottom: 0.25rem !important;
}

#stats .text-blue-200 {
    font-size: 0.875rem !important;
    line-height: 1.3 !important;
}

#stats .h-1 {
    margin-top: 0.75rem !important;
    width: 48px !important;
    height: 2px !important;
}

#stats h2 {
    font-size: 2rem !important;
    margin-bottom: 0.75rem !important;
}

#stats p {
    font-size: 1rem !important;
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Process Segments improvements - Regular */
.process-card {
    min-height: 450px !important;
}

.process-card .p-8 {
    padding: 1.5rem !important;
}

.process-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem !important;
}

.process-card p {
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
}

/* Border radius scaling - Regular */
.rounded-lg {
    border-radius: 0.5rem !important;
}

.rounded-xl {
    border-radius: 0.75rem !important;
}

.rounded-full {
    border-radius: 9999px !important;
}

/* Line height adjustments - Regular */
.leading-tight {
    line-height: 1.1 !important;
}

.leading-relaxed {
    line-height: 1.625 !important;
}

/* Grid column adjustments - Regular */
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(250px, 1fr)) !important;
    gap: 1rem !important;
}

.md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

.lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2rem !important;
}

.lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
}

/* Max width constraints - Regular */
.max-w-3xl {
    max-width: 48rem !important; /* 768px */
}

.max-w-2xl {
    max-width: 42rem !important; /* 672px */
}

.max-w-lg {
    max-width: 32rem !important; /* 512px */
}

/* Hero section improvements - Regular */
.hero-content h1 {
    font-size: 3rem !important;
    line-height: 1.1 !important;
}

.hero-content h1 span.block {
    font-size: 2.5rem !important;
}

.hero-content p {
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
    max-width: 650px !important;
}

.hero-buttons a {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
}

/* ========================================= */
/* PHONE SCREEN SUPPORT (Mobile-first) */
/* ========================================= */

/* Tablet and below (768px and below) */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Typography for tablets/phones */
    h1 {
        font-size: 2.25rem !important; /* 36px */
    }

    h2 {
        font-size: 1.75rem !important; /* 28px */
    }

    /* Hero section for tablets */
    .hero-content h1 {
        font-size: 2.25rem !important;
    }

    .hero-content h1 span.block {
        font-size: 2rem !important;
    }

    .hero-content p {
        font-size: 1rem !important;
    }

    /* Grid layouts for tablets */
    .md\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem !important;
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem !important;
    }

    .lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Stats section for tablets */
    #stats .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem !important;
    }

    #stats .text-5xl {
        font-size: 2rem !important;
    }
}

/* Phone screens (480px and below) */
@media (max-width: 480px) {
    body {
        font-size: 14px !important; /* Slightly smaller base for phones */
    }

    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Typography for phones */
    h1 {
        font-size: 1.75rem !important; /* 28px */
        margin-bottom: 0.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important; /* 24px */
        margin-bottom: 0.5rem !important;
    }

    h3 {
        font-size: 1.125rem !important; /* 18px */
    }

    /* Hero section for phones */
    .h-\[88\.5vh\] {
        height: 70vh !important;
        min-height: 400px !important;
    }

    .hero-content h1 {
        font-size: 1.75rem !important;
    }

    .hero-content h1 span.block {
        font-size: 1.5rem !important;
    }

    .hero-content p {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .hero-buttons a {
        width: 100% !important;
        text-align: center !important;
        padding: 0.75rem 1rem !important;
    }

    /* Single column layouts for phones */
    .grid-cols-2,
    .md\:grid-cols-2,
    .md\:grid-cols-3,
    .md\:grid-cols-4,
    .lg\:grid-cols-2,
    .lg\:grid-cols-5 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Stats section for phones */
    #stats .grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    #stats .card-hover {
        padding: 1rem !important;
        min-height: 120px !important;
    }

    #stats .text-5xl {
        font-size: 1.75rem !important;
    }

    /* Process cards for phones */
    .process-card {
        min-height: auto !important;
    }

    .h-64 {
        height: 12rem !important; /* 192px */
    }

    /* Map section for phones */
    .h-96 {
        height: 18rem !important; /* 288px */
    }

    /* Navigation for phones */
    .nav-content {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .logo-container {
        text-align: center !important;
        justify-content: center !important;
    }

    .logo-image-picture {
        height: 2.5rem !important;
    }

    /* Top banner for phones */
    .top-banner .flex {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }

    /* Footer for phones */
    footer .grid {
        gap: 1.5rem !important;
    }

    footer .flex.items-center {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }

    footer .w-14 {
        width: 48px !important;
        height: 48px !important;
    }

    footer h4 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }

    footer ul.space-y-3 li a {
        font-size: 0.875rem !important;
    }

    /* Buttons and interactive elements */
    a, button, input, select {
        font-size: 0.875rem !important;
        min-height: 44px !important; /* Apple HIG minimum touch target */
    }

    .menu-toggle-btn {
        width: 44px !important;
        height: 44px !important;
    }

    /* Spacing adjustments for phones */
    .py-16, .py-12, .py-8 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .mb-12, .mb-10, .mb-8 {
        margin-bottom: 1.5rem !important;
    }

    .mb-6, .mb-4 {
        margin-bottom: 1rem !important;
    }

    /* Hide desktop elements on phones */
    .hidden.md\\:flex {
        display: none !important;
    }

    /* Show mobile-only elements */
    .lg\\:hidden {
        display: block !important;
    }
}

/* Small phone screens (360px and below) */
@media (max-width: 360px) {
    .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    h1 {
        font-size: 1.5rem !important; /* 24px */
    }

    h2 {
        font-size: 1.25rem !important; /* 20px */
    }

    .hero-content h1 {
        font-size: 1.5rem !important;
    }

    .hero-content h1 span.block {
        font-size: 1.25rem !important;
    }

    /* Even tighter spacing */
    .gap-4, .gap-3, .gap-2 {
        gap: 0.5rem !important;
    }

    .space-y-6 > * + *,
    .space-y-4 > * + *,
    .space-y-3 > * + *,
    .space-y-2 > * + * {
        margin-top: 0.5rem !important;
    }
}

/* Ensure all elements are visible and clickable on phones */
@media (max-width: 480px) {
    * {
        max-width: 100% !important; /* Prevent horizontal overflow */
    }

    img, video, iframe {
        max-width: 100% !important;
        height: 100% !important;
    }

    /* Prevent text from being too small */
    p, span, a, li {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    /* Improve touch targets */
    button, .btn, a[role="button"] {
        padding: 12px 16px !important;
        min-height: 44px !important;
    }
}

@media (max-width: 375px) {
    .banner-scroll-indicator {
        display: none !important;
    }
}

.fma_joomla6_tp_contact_area_section {
    /*border: 1px solid red;*/
}

#contact_grid_map_banner {
    /*border: 1px solid red;*/
    display: none;
}

#searchDialogSearchIcon {
    /*border: 1px solid red;*/
    display: block;
    margin: 0;
    top: 12px;
}

#searchDialogSearchSubmitBtn {
    /*border: 1px solid red;*/
    margin-left: 0;
    margin-top: 10px;
    display: block;
}

#searchDialogSearchEl {
    /*border: 1px solid red;*/
    /*margin-left: 0;*/
    margin: 0 auto;
}

body.fma_j6_theme-com_finder-component button[type="submit"] .icon-search {
    /*border: 1px solid red;*/
    display: none;
}

body.fma_j6_theme-com_finder-component #search-form {
    /*border: 1px solid red;*/
    padding: 5px !important;
}

body.fma_j6_theme-com_finder-component div.com-finder {
    /*border: 1px solid red;*/
    padding: 5px !important;
}

button#fma-search-button-desktop_button {
    margin-left: 20px
}

#fma_joomla6_logo_inner {
    font-size: 17px !important;
}

#fma_joomla6_footer_columns_outer {
    /*border: 1px solid red;*/
    padding-top: 15px !important;
}

#fma_joomla6_theme_footer_logo_picture {
    /*border: 1px solid red;*/
    height: 68px !important;
    width: auto;
}

#fma_joomla6_theme_footer_logo_outer {
    /*border: 1px solid red;*/
    height: initial !important;
    width: initial !important;
}

#fma_joomla6_theme_footer_logo_text_outer {
    /*border: 1px solid red;*/
    margin-left: 0px;
}

.fma_joomla6_tp_contact_item-details {
    /*border: 1px solid red;*/
    --responsive_500_space_margin_left: 20px !important;
    ----responsive_500_space_margin_right: 0px !important;
}

.space-x-4 > :not([hidden]) ~ :not([hidden]) {
    /*border: 1px solid red;*/
    margin-left: var(--responsive_500_space_margin_left);
    margin-right: var(--responsive_500_space_margin_right);
}

#fma_joomla6_theme_top_banner_container {
    /*border: 1px solid red;*/
    display: block !important;
}

#fma_joomla6_theme_top_banner_text {
    /*border: 1px solid red;*/
    margin-left: 10px !important;
}

#mod-finder-search_input-dialog_search {
    /*border: 1px solid red;*/
    font-size: 16px !important;
}

#fma_joomla6_footer_columns_inner {
    /*border: 1px solid red;*/
    display: block;
}

#footer_site_icons {
    /*border: 1px solid red;*/
    margin-bottom: 10px;
}

#footer_site_icons > a {
    /*border: 1px solid red;*/
    margin-left: 0;
    margin-right: 15px;
}

.hero-picture-evap-img {
    /*border:1px solid red;*/
    margin-left: 0rem;
}
