/* ======================
FOOTER
====================== */
.footer {
    background: #181b21;
    margin-top: 7rem;
    padding-top: 11rem;
    color: var(--light-color);
    position: relative;
}

#footer-form {
    scroll-margin-top: 2rem;
}

/* Pre-footer CTA banner (shared on all pages) */
.footer-cta {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 1.5rem);
    max-width: 82rem;
    z-index: 20;
}

.footer-cta-banner {
    background: var(--primary-color);
    border-radius: 1.75rem;
    padding: 2.75rem 3rem;
    color: var(--light-color);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: 0 12px 40px rgba(34, 39, 51, 0.18);
}

.footer-cta-copy h2 {
    font-size: clamp(1.625rem, 2.8vw, 2.375rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1rem;
    color: var(--light-color);
    text-align: left;
}

.footer-cta-copy p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
    max-width: none;
    color: rgba(248, 249, 250, 0.95);
    text-align: left;
    text-wrap: pretty;
}

.footer-cta-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-cta-contact {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-cta-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.footer-cta-chip:hover {
    opacity: 0.92;
}

.footer-cta-chip-icon {
    width: 2.875rem;
    height: 2.875rem;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.footer-cta-chip-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.footer-cta-chip-text small {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(248, 249, 250, 0.9);
    line-height: 1.2;
}

.footer-cta-chip-text strong {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--light-color);
    line-height: 1.2;
}

.footer-cta-btn {
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 0.875rem 2.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-cta-btn:hover {
    background: var(--light-color);
    color: var(--primary-color);
}
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10rem;
    padding: 4rem 0.9375rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.logo-icon {
    background: var(--orange);
    padding: 0.6rem;
    border-radius: 0.3rem;
}
.footer-about {
    text-align: left;
}
.footer-about h4 {
    font-size: 2.8rem;
    margin: 3rem 0 1rem;
    font-weight: 600;
}
.footer-about p {
    color: var(--light-color);
    font-size: 1.25rem;
    line-height: 1.5;
}
.social {
    margin-top: 3rem;
    display: flex;
    gap: 0.5rem;
}
.social a {
    background: var(--primary-color);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--light-color);
    border-radius: 0.2rem;
    font-size: 1.4rem;
}
.footer-links:nth-child(2) ul {
    column-count: 3;
    column-gap: 2rem;
}
.footer-links--services .footer-services-main,
.footer-links--services .footer-services-other {
    column-count: 1;
}
.footer-links--services .footer-services-other-title {
    margin: 1.25rem 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--light-color);
}
.footer-links--services .footer-services-other li {
    margin-bottom: 0.5rem;
}
.footer-links h5,
.footer-contact h5 {
    margin-bottom: 1.4rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.footer-links ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
}
.footer-links a:hover {
    color: var(--primary-color);
}
.footer-contact p {
    font-size: 0.85rem;
    color: var(--light-color);
    margin-bottom: 0.6rem;
}
.footer-contact p a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.footer-contact p:nth-child(4) {
    margin-bottom: 2.5rem;
}
.footer-contact p i {
    min-width: 0.8rem;
    color: var(--primary-color);
    font-size: 1rem;
}
.quote-btn {
    display: inline-block;
    margin-top: 1rem;
    background: var(--primary-color);
    padding: 0.7rem 1.2rem;
    border-radius: 0.3rem;
    text-decoration: none;
    color: var(--light-color);
    font-size: 0.85rem;
}
.ft-url {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
}
.footer-bottom {
    background: #000;
    padding: 1rem 0;
}
.bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.policies {
    display: flex;
    gap: 1.2rem;
}
.policies a {
    color: var(--light-color);
    text-decoration: none;
}
.policies a:hover {
    color: var(--primary-color);
}
.contact-section {
    width: 100%;
}
.contact-box {
    background: var(--dark-color);
    border-radius: 1.2rem;
    border: 0.1rem solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 2rem;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.3);
}
.contact-box h2 {
    text-align: center;
    color: var(--light-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.contact-box .form-heading-subtext {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0 0 1rem;
}
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-form .form-group input,
.footer-form .form-group textarea,
.footer-form .form-group select {
    width: 100%;
    background: #242e41;
    border: none;
    border-radius: 0.8rem;
    padding: 1rem 1.2rem;
    color: var(--light-color);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}
.footer-form .form-group textarea {
    height: 7rem;
    resize: none;
}
.footer-form .form-group input::placeholder,
.footer-form .form-group textarea::placeholder {
    color: #9aa4b2;
}
.footer-form .form-group input:focus,
.footer-form .form-group textarea:focus,
.footer-form .form-group select:focus {
    border: 0.12rem solid var(--light-color);
    box-shadow: 0 0 0.3rem rgba(255, 255, 255, 0.5);
    background: var(--dark-color);
    color: var(--light-color);
}
.footer-form .select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}
.footer-form .submit-btn {
    background: var(--primary-color);
    border: none;
    padding: 1rem;
    border-radius: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-color);
    cursor: pointer;
    transition: all 0.3s ease;
}
.footer-form .submit-btn:hover {
    background: var(--light-color);
    color: var(--light-color);
}
/* Fixed */
/* Sample body content wrapper */
.content-wrapper {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Fixed contact rail (email + phone + quote on mobile) --- */
.contact-rail {
    display: contents;
}

.fixe-btns {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    transform: translateY(calc(-50% - 1.75rem));
    padding-right: env(safe-area-inset-right, 0px);
    pointer-events: none;
}

.fixe-btn {
    pointer-events: auto;
    flex-shrink: 0;
    align-self: flex-end;
}

.fixe-btn__link {
    display: block;
    width: 3.125rem;
    min-height: var(--touch-min, 44px);
    overflow: hidden;
    text-decoration: none;
    background: var(--light-color);
    border-top-left-radius: 0.3125rem;
    border-bottom-left-radius: 0.3125rem;
    box-shadow: 0 0 0.9375rem rgba(0, 0, 0, 0.42);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.fixe-btn__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: max-content;
    min-height: var(--touch-min, 44px);
}

.fixe-btn__label {
    flex-shrink: 0;
    padding-left: 0.35rem;
    padding-right: 0.875rem;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.fixe-btn__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.125rem;
    min-height: var(--touch-min, 44px);
    padding: 0.625rem;
}

@media (prefers-reduced-motion: reduce) {
    .fixe-btn__link {
        transition: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    .fixe-btn:hover .fixe-btn__link,
    .fixe-btn:focus-within .fixe-btn__link {
        width: max-content;
        max-width: min(18rem, calc(100vw - 4rem));
        box-shadow: 0 0 1.125rem rgba(0, 0, 0, 0.35);
    }
}

@media (max-width: 1023px) {
    .contact-rail {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
        position: fixed;
        right: max(0.5rem, env(safe-area-inset-right, 0px));
        bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
        z-index: 999;
        width: max-content;
        max-width: calc(100vw - 1rem);
        pointer-events: none;
    }

    .contact-rail .fixe-btns,
    .contact-rail .quote-trigger-btn {
        position: static;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        transform: none;
        pointer-events: auto;
    }

    .contact-rail .fixe-btns {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
    }

    .contact-rail .quote-trigger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        padding: 0.625rem 0.75rem;
        font-size: 0.6875rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        overflow: visible;
        box-sizing: border-box;
    }

    .contact-rail .quote-trigger-btn.hidden {
        display: none;
    }

    .fixe-btn__link {
        width: 3rem;
        min-height: 3rem;
        border-radius: 0.3125rem;
    }

    .fixe-btn__icon {
        width: 3rem;
        min-height: 3rem;
        padding: 0.5rem;
    }

    .fixe-btn__label {
        display: none;
    }
}

@media (max-width: 479px) {
    .contact-rail {
        gap: 0.5rem;
        right: max(0.375rem, env(safe-area-inset-right, 0px));
    }

    .contact-rail .quote-trigger-btn {
        padding: 0.5625rem 0.625rem;
        font-size: 0.625rem;
    }

    .contact-rail .fixe-btns {
        gap: 0.375rem;
    }

    .fixe-btn__link {
        width: 2.75rem;
        min-height: 2.75rem;
    }

    .fixe-btn__icon {
        width: 2.75rem;
        min-height: 2.75rem;
    }

    .fixe-btn__icon svg {
        transform: scale(0.9);
    }
}

/* --- Fixed Trigger Button --- */
.quote-trigger-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right bottom;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    z-index: 999;
    box-shadow: -2px -4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, right 0.3s ease;
}

.quote-trigger-btn:hover {
    background-color: var(--dark-color);
}

.quote-trigger-btn.hidden {
    right: -100px; /* Slides off-screen gracefully when panel opens */
}

/* Mobile/tablet quote pill: styled inside .contact-rail stack above */
@media (max-width: 1023px) {
    .quote-trigger-btn {
        letter-spacing: 0.02em;
        border-radius: 0.5rem;
        box-shadow: 0 4px 14px rgba(34, 39, 51, 0.22);
    }
}

/* --- Sidebar Form Panel --- */
.form-sidebar {
    position: fixed;
    top: 0;
    right: -450px; /* Default hidden off-screen */
    width: 450px;
    height: 100vh;
    background-color: var(--light-color);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1000001;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 50px 35px 40px 35px;
    display: flex;
    flex-direction: column;
}

.form-sidebar.active {
    right: 0; /* Slides into view */
}
.form-sidebar form {
    gap: 0;
}
/* Backdrop Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Inside Side Panel Layout --- */
.close-btn {
    position: absolute;
    top: max(0.75rem, env(safe-area-inset-top, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    left: auto;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: var(--touch-min, 44px);
    min-height: var(--touch-min, 44px);
    padding: 0;
    background: var(--card-surface, #ffffff);
    border: 1px solid rgba(34, 39, 51, 0.12);
    border-radius: 0.5rem;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--secondary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(34, 39, 51, 0.12);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.close-btn:hover {
    color: var(--primary-color);
    border-color: rgba(226, 107, 69, 0.35);
}

.form-container h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}
.form-container .form-heading-subtext {
    font-size: 15px;
    color: #555;
    line-height: 1.3;
    margin: 0 0 1.25rem;
}

/* --- Form Control Elements --- */
.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-family);
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #ffffff;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(241, 77, 12, 0.1);
}

/* Placeholders styling */
::placeholder {
    color: #9aa0a6;
    opacity: 1;
}

/* Custom Select Arrow Styling */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
    pointer-events: none;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

/* Form Group Modifications */
.form-group textarea {
    resize: none;
}

/* --- Submit Button --- */
.form-sidebar .submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px; /* Pill shape matching your image layout */
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(241, 77, 12, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-sidebar .submit-btn:hover {
    background-color: var(--dark-color);
}

.submit-btn:active {
    transform: scale(0.98);
}

body.quote-form-open {
    overflow: hidden;
}

body.quote-form-open .mobile-menu-btn {
    visibility: hidden;
    pointer-events: none;
}

/* --- Responsive Adjustments Breakpoints --- */

/* Laptops / Smaller Desktops (Max 1024px) */
@media (max-width: 1024px) {
    .form-sidebar {
        width: 400px;
        right: -400px;
        padding: 45px 25px 30px 25px;
    }
}

/* Tablets (Max 768px) */
@media (max-width: 768px) {
    .form-sidebar {
        width: 380px;
        right: -380px;
    }
    .form-container h2 {
        font-size: 22px;
    }
}

@media (min-width: 481px) {
    .close-btn {
        left: 1.25rem;
        right: auto;
    }
}

/* Mobile Phones (Max 480px) */
@media (max-width: 480px) {
    .form-sidebar {
        width: 100%;
        right: -100%;
        padding: max(3.5rem, calc(env(safe-area-inset-top, 0px) + 2.75rem)) 1.25rem 1.25rem;
    }

    .form-container h2 {
        font-size: 20px;
        text-align: center;
        margin-top: 20px;
    }
}
/* RESPONSIVE */
@media (max-width: 1024px) {
    .ft-url {
        gap: 0rem;  
    }
    footer .primary-btn{
        font-size: 0.65rem;
    }
    .footer-cta {
        width: calc(100% - 1rem);
    }
    .footer-cta-banner {
        padding: 2.25rem 2rem;
    }
    .footer-cta-actions {
        flex-wrap: wrap;
        gap: 1.25rem;
    }
    .footer-cta-contact {
        gap: 1.5rem;
    }
    .footer-about h4 {
        font-size: 1.8rem;
        margin: 10px 0;
    }
    .footer-links:nth-child(2) ul:not(.footer-services-main):not(.footer-services-other) {
        column-count: 2;
        column-gap: 2rem;
    }
}
@media (max-width: 767px) {
    .footer-main,
    .ft-url {
        grid-template-columns: 1fr;
    }
    .ft-url {
        padding: 2rem 0;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .footer-links:first-child,
    .footer-links:nth-child(2) {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    .footer-links h5, 
    .footer-contact h5 {
        margin-bottom: 0.6rem;
        text-align: left;
    }
    .footer-links li {
        text-align: left;
    }
    .bottom-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .footer-cta-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .footer-links:nth-child(2) ul:not(.footer-services-main):not(.footer-services-other) {
        column-count: 1;
        column-gap: 2rem;
    }
    .footer-contact p a {
        justify-content: flex-start;
    }
    .footer-cta {
        position: relative;
        top: 0;
        left: auto;
        transform: none;
        width: calc(100% - 1.5rem);
        max-width: 100%;
        margin: 0 auto 2rem;
    }
    .footer {
        margin-top: 0;
        padding-top: 2rem;
    }
    .footer-cta-banner {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        border-radius: 1.25rem;
    }
    .footer-cta-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }
    .footer-cta-btn {
        width: 100%;
        text-align: center;
    }
    .footer-cta-copy h2 {
        font-size: 1.5rem;
    }
    .contact-box {
        padding: 2rem 1.5rem;
    }
    .contact-box h2 {
        font-size: 1.8rem;
    }
    .submit-btn {
        font-size: 1rem;
        padding: 0.9rem;
    }
    .footer-main {
        gap: 40px !important;
    }
    .footer-about p {
        font-size: 1rem;
    }
    .social {
        justify-content: left;
        margin: 1rem 0;
    }
    .logo {
        justify-content: left;
    }
}
