:root {
    --brand-dark: #0a0a0a;
    --brand-blue: #1e90ff;
    --brand-light: #f8f9fb;
    --brand-lightpurple: #a78ac0;
    --brand-darkpurple: #662382;
    --brand-darkgrey: #5f5b66;
    --brand-text: #333;
    --font-sans: 'Source Sans Pro', sans-serif;
    --font-serif: 'Source Serif 4', serif;
}


/* ========================= */
/*   GLOBAL BRAND STYLING   */
/* ========================= */

body {
  
  margin: 0;
  font-family: 'Source Sans Pro', sans-serif;
  background: black;
  color: white;
  line-height: 1.6;
}
html, body {
    overflow-x: hidden;
}



h1, h2, h3 {
  font-weight: 300;
  letter-spacing: 0.5px;
}

section {
  padding: 80px 4%;
}





/* --------------------------------------------------
   NAVIGATION
-------------------------------------------------- */
.nav {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: black;
    margin-bottom: 40px;
    
    padding: 12px 0;
}

.nav-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
hr {
    border: none;
    height: 35px; /* thickness of the bar */
    width: 100%;
    

    background: linear-gradient(
        to left,
        var(--brand-darkpurple) 0%,
        var(--brand-darkpurple) 50%,
        var(--brand-lightpurple) 100%
    );

    margin-top: -11px;
    padding: 4px;
    border-radius: 0; /* optional */
}


.nav-contact {
    position: absolute;
    top: 14px;
    right: 30px;

    display: flex;
    align-items: center;
    gap: 19px;
    margin-right: -10px;
    
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 900;
}

.nav-contact a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    opacity: 0.9;
    margin-top: -8px;
    transition: opacity 0.25s ease;
}

.nav-contact a:hover {
    opacity: 1;
}

.nav-contact .icon {
    font-size: 1.1rem;
    line-height: 0;
    
}
.nav-contact {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    
}

.nav-contact__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-contact__icon img {
    width: 20px;   /* adjust to your design system */
    height: 20px;
    display: block;
    margin-right: -10px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.35)); /* subtle chrome glow */
}

.nav-contact__label {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--font-sans);
    color: white;
}



.nav-brand img {
    height: 138px;
    margin-right: 18px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
}

.nav-links a {
    
    color: white;
    border-radius: 6px;
    padding: 6px;
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 18px;
    text-decoration: none;
    font-weight: 800;
    
}

.nav-links a:hover {
    opacity: 0.9;
    color: var(--brand-lightpurple);
}

.nav-cta {
    color: #000000;
   

    
    
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-brand img {
    height: 75px; /* adjust as needed */
    width: auto;
    margin-left: -25px;
    animation: LogoSlide 1.4s ease-out forwards;


}



/* Dropdown container */
.nav-links li {
    position: relative;
}
.dropdown ul,
.dropdown li {
    list-style: none;
    margin: 0;
    padding: 0;
}


/* Hide dropdown by default */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -52px;
    background: black;
    border: 1px solid var(--brand-lightpurple);
    border-radius: 6px;
    padding: 10px 0;
    min-width: 180px;
    display: none;
    flex-direction: column;
    z-index: 999;
}

/* Show on hover */
.dropdown:hover .dropdown-menu {
    display: flex;
}

/* Dropdown links */
.dropdown-menu a {
    padding: 10px 18px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--brand-lightpurple);
    color: #000000;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s ease;
}


/* HERO */
.finish-hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
}
.finish-subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    display: block;
    
    color: black;
}

.finish-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/images/networkBackgroundrevised.png') center/contain no-repeat;
    background-size: 100%;
    background-position: center bottom -120%;
    
    
    z-index: 1;
}

.finish-hero-content {
    position: absolute;
    top: 15%;
    left: 10%;  
    text-align: left;
    z-index: 2;
    color: #fff;
    line-height: 1.2;
     animation: FadeInUp 1.4s ease-out forwards;
    
}

.finish-title {
    font-size: 4.4rem;
    font-weight: 700;
    
    
}
.finish-title {
    color: black;
    line-height: 1.4;
}

.finish-subtitle {
    color: var(--brand-darkpurple);
    font-size: 4.5rem;
}

/* ========================= PHOTO GALLERY ========================= */
.dealer-gallery {
    width: 100%;
    padding: 60px 0;
}

.dealer-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}


/* Hidden state (your system requires this) */
.slide-right-kf {
    opacity: 0;
    transform: translateX(60vh); /* start far right */
}

/* Keyframes */
@keyframes slideRightIn {
    0% {
        opacity: 0;
        transform: translateX(60vh);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* When your JS adds .visible → animation fires */
.visible.slide-right-kf {
    animation: slideRightIn 2.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}





/* ============================================================
   IMPERMIFINISH — CINEMATIC PRODUCT PAGE THEME
   Matches IR‑26 / IR‑Eco / ImpermiGrip
============================================================ */



.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   DIVIDER (Matches all pages)
============================ */



.section-divider::before {
     content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90%;
    height: 4px;

    background: linear-gradient(
        to right,
        rgba(167,138,192,0) 0%,
        rgba(167,138,192,0.25) 15%,
        rgba(167,138,192,0.55) 30%,
        rgba(167,138,192,1) 50%,
        rgba(167,138,192,0.55) 70%,
        rgba(167,138,192,0.25) 85%,
        rgba(167,138,192,0) 100%
    );

    box-shadow:
        0 0 22px rgba(167,138,192,0.7),
        0 0 40px rgba(167,138,192,0.45);

    transform: translateY(-50%);
}

.section-divider img {
    height: 55px;
    padding: 0 20px;
    background: #0b0b0d;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(167,138,192,0.45));
    border-radius: 6px;
}

/* ============================
   DEALER DIVIDER (unique but related)
============================ */

.section-divider-dealer {
    position: relative;
    width: 100%;
    height: 70px;
    margin: 40px 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-divider-dealer::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90%;
    height: 3px;

    background: linear-gradient(
        to right,
        transparent,
        var(--brand-darkpurple) 20%,
        var(--brand-lightpurple) 50%,
        var(--brand-darkpurple) 80%,
        transparent
    );

    opacity: 0.35;
    transform: translateY(-50%);
}



/* ============================
   INTRO + TEXT BLOCKS
============================ */

.dealer-intro,
.dealer-why,
.dealer-join {
    padding: 5px 4%;
    padding-bottom: 2px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 50%, var(--brand-darkpurple) 95%);
    color: #e6e6e6;
    
}

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}


.cta-link {
    color: white;
    font-style: italic;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.6rem;
}
.dealer-map-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    padding-left: 16px;
    margin-top: 10px;
    text-align: left;
}

.dealer-bottom-info {
    font-size: 1.3rem;
    line-height: 1.75;
    color: white;
    margin-top: 30px;
    border-left: 4px solid white;
    padding-left: 16px;
    text-align: left;
}
.dealer-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-align: center;

}

.dealer-subtitle-h3 {
    font-size: 1.9rem;
    color: white;
    margin-bottom: 0;
}

.fade-top {
    opacity: 0;
    transform: translateY(-40px);
}

.fade-top.visible {
    animation: fadeTop 1s ease-out forwards;
}

@keyframes fadeTop {
    0% { opacity: 0; transform: translateY(-40vh); }
    100% { opacity: 1; transform: translateY(0); }
}
.fade-bottom {
    opacity: 0;
    transform: translateY(40px);
}

.fade-bottom.visible {
    animation: fadeBottom 1s ease-out forwards;
}

@keyframes fadeBottom {
    0% { opacity: 0; transform: translateY(40vh); }
    100% { opacity: 1; transform: translateY(0); }
}
.slide-left {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-left.visible {
    animation: slideLeft 1s ease-out forwards;
}

@keyframes slideLeft {
    0% { opacity: 0; transform: translateX(-50vh); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ============================
   WHY IT MATTERS — PREMIUM LAYOUT
============================ */

.dealer-why-section {
    padding: 0 4%;
    padding-bottom: 22px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55), var(--brand-darkpurple) 85%);


}
.dealer-why-section::before {
    content: "";
    position: absolute;
    inset: 0;
 
    z-index: 1;
}
.dealer-why-section > * {
    position: relative;
    z-index: 2;
}


.dealer-why-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    
}

.dealer-why-title {
    font-size: 2.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    text-align: center;
   
}

.dealer-why-text p {
    font-size: 1.2rem;
    line-height: 1.75;
    color: white;
    margin-bottom: 22px;
}
.dealer-description-full {
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 40%, var(--brand-darkpurple) 85%);
    padding: 0 2%;
    padding-bottom:22px;
}

.dealer-description-text-full p{
    font-size: 1.15rem;
    
    line-height: 1.75;
    color: white;
    margin-top: 30px;
    border-left: 4px solid var(--brand-lightpurple);
    padding-left: 16px;
}   

/* ============================
   CUSTOM PINK CHECKMARKS
============================ */

.dealer-why-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.why-text-intro {
        font-size: 1.2rem;
        line-height: 1.75;
        color: white;
        border-left: 4px solid var(--brand-lightpurple);
        padding-left: 16px;

}
.why-text-intro2 {
    font-size: 1.5rem !important;
    line-height: 1.75;
    color: white !important;
    margin-top: 20px;
    text-align: left;
     border-right: 4px solid white;
    padding-right: -66px;

}
.why-text-intro3 {
    font-size: 1.2rem;
    line-height: 1.75;
    color: white;
    margin-top: 30px;
    border-left: 4px solid var(--brand-lightpurple);
    padding-left: 16px;
}
.dealer-title-intro {
    font-size: 1.2rem;
    line-height: 1.75;
    color: white;
    margin-bottom: 30px;
    border-left: 4px solid var(--brand-lightpurple);
    padding-left: 16px;
}

.benefit-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: white;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--brand-lightpurple);
    color: black;
    font-size: 1rem;
    font-weight: 900;

    border-radius: 50%;
    box-shadow: 0 0 6px rgba(167, 138, 192, 0.55);
}

.dealer-why-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.dealer-why-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dealer-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--brand-lightpurple) !important;
    text-align: center !important;
}

.benefit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}
.benifit-row p {
    margin: 0;
    color: white;
    font-size: 1.15rem;
    line-height: 1.65;
}

.benefit-icon {
    font-size: 22px;
    color: black;
}

.dealer-why-image img {
    width: 100%;
    height: 315px;
    object-fit: cover;
    border-radius: 4px;;
}
.fade-right {
    opacity: 0;
    transform: translateX(50px);
}

.fade-right.visible {
    animation: fadeRight 0.9s ease-out forwards;
}

@keyframes fadeRight {
    0% { opacity: 0; transform: translateX(50vh); }
    100% { opacity: 1; transform: translateX(0); }
}
.fade-bottom {
    opacity: 0;
    transform: translateY(40px);
}

.fade-bottom.visible {
    animation: fadeBottom 0.9s ease-out forwards;
}

@keyframes fadeBottom {
    0% { opacity: 0; transform: translateY(40vh); }
    100% { opacity: 1; transform: translateY(0); }
}


/* MOBILE STACK */
@media (max-width: 850px) {
    .dealer-why-wrapper {
        grid-template-columns: 1fr;
    }

    .dealer-why-image img {
        height: 260px;
    }
}


.benefit-row p {
    margin: 0;
    color: white;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 3.3;
}
.dealer-why-features-alt {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dealer-why-features-alt .benefit-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dealer-why-features-alt .benefit-icon {
    font-size: 22px;
    color: black; /* Impermitek accent */
    font-weight: bold;
}

.dealer-why-features-alt p {
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0;
    line-height: 3.3;
}


.dealer-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--brand-darkpurple);
    transition: 0.2s ease;
}

.dealer-close:hover {
    color: white;
    transform: scale(1.2);
}
/* Fade from LEFT */
.fade-left {
    opacity: 0;
    transform: translateX(-50px);
}
.fade-left.visible {
    animation: fadeLeft 1s ease-out forwards;
}
@keyframes fadeLeft {
    0% { opacity: 0; transform: translateX(-50vh); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Fade from BOTTOM */
.fade-bottom {
    opacity: 0;
    transform: translateY(40px);
}
.fade-bottom.visible {
    animation: fadeBottom 1s ease-out forwards;
}
@keyframes fadeBottom {
    0% { opacity: 0; transform: translateY(40vh); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Fade from RIGHT (benefit rows) */
.fade-right {
    opacity: 0;
    transform: translateX(50px);
}
.fade-right.visible {
    animation: fadeRight 0.9s ease-out forwards;
    animation-delay: var(--delay, 0ms);
}
@keyframes fadeRight {
    0% { opacity: 0; transform: translateX(50vh); }
    100% { opacity: 1; transform: translateX(0); }
}



.dealer-map-section {
    padding-top: 30px;
    padding-bottom: 10px;
    background: #0d0d10;
    text-align: center;
}



.dealer-map {
    width: 100%;
    height: 900px;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.dealer-info {
    position: absolute;
    top: 20px;
    right: 10px;
    width: 320px;
    background: black;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    border-left: 4px solid #0077ff; /* dynamically replaced by region color */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease;
    z-index: 9999;
}

.dealer-info.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


.dealer-info h3 {
    margin-top: 0;
    color: var(--brand-lightpurple);
}


.dealer-info {
    border-left: 4px solid #444;
    transition: border-color 0.3s ease;
}
.dealer-map-summary {
    margin-top: 25px;
    font-size: 20px;
    line-height: 1.5;
    color: #e6e6e6;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s ease, transform .4s ease;
}

.dealer-map-summary.visible {
    opacity: 1;
    transform: translateY(0);
}
#dealer-info {
    position: absolute;
    top: 50%;
    font-size: 0.97rem;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    width: 320px;
    max-width: 90%;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* When active, show it */
#dealer-info.active {
    opacity: 1;
    pointer-events: auto;
}

/* Close button */
.dealer-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

/* --------------------------------------------------
   BRAND STATEMENT
-------------------------------------------------- */
.brand-statement {
    padding: 0px 15px;
    text-align: center;
    background: var(--brand-dark);

    opacity: 0;
    transform: translateX(40px);
    z-index: 50; /* 🔥 ensures it sits ABOVE everything */
    position: relative; /* required for z-index to work */
}

/* When visible */
.brand-statement.visible {
    animation: brandSlideRight 0.9s ease-out forwards;
}

/* Small line */
.brand-statement .small {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-darkpurple);
    letter-spacing: 1px;
    font-style: italic;
    font-family: var(--font-sans);

    opacity: 0;
    transform: translateX(40px);
}

.brand-statement .small.visible {
    animation: brandTextRight 0.9s ease-out forwards;
    animation-delay: 0.15s;
}

/* Big line */
.brand-statement .big {
    margin: 5px 0 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    font-style: italic;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;

    opacity: 0;
    transform: translateX(40px);
}

.brand-statement .big.visible {
    animation: brandTextRight 1.4s ease-out forwards;
    animation-delay: 0.3s;
}

/* Animations */
@keyframes brandSlideRight {
    0% { opacity: 0; transform: translateX(40vh); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes brandTextRight {
    0% { opacity: 0; transform: translateX(40vh); }
    100% { opacity: 1; transform: translateX(0); }
}





/* ============================================
   MAIN FOOTER — 3 COLUMN LAYOUT
============================================ */
.impermitek-footer {
    background: #141414;
    color: #ffffff;
    padding: 70px 50px;

    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.footer-bottom p {
        text-align: center;
        margin: 0 auto;
        padding: 14px 0;
        color: white;
        font-size: 0.85rem;
    }
/* ============================================
   CENTER COLUMN — LOGO + DESCRIPTION + SOCIALS
============================================ */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo-img {
    width: 350px;
    margin-bottom: 2px;
}

.footer-logo-wrapper {
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

.footer-logo-wrapper::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-darkpurple), var(--brand-lightpurple));
    border-radius: 2px;
    margin-top: 8px;
}

.footer-desc {
    color: #dcdcdc;
    line-height: 1.6;
    max-width: 360px;
}

.footer-social-center {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-social-center .social-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
}

/* ============================================
   LEFT COLUMN — QUICK LINKS
============================================ */
.footer-links-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
}

.footer-links-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
    padding-left: 50px;
}

.footer-link {
    color: white;
    text-decoration: none;
    padding: 0px 12px;

    text-align: center;
    font-weight: 600;
    font-size: 18px;
    
}
.footer-link-contact {
     color: white;
    background: var(--brand-darkpurple);
    text-decoration: none;
    padding: 5px;
    border-radius: 5px;
    transform: translateY(30px);

    text-align: center;
    font-weight: 600;
    font-size: 18px;
}




.footer-link:hover {
    color: white;
}

/* ============================================
   RIGHT COLUMN — CONTACT ABOVE SOCIALS
============================================ */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 5px;
    
}

.footer-contact-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: left;
    transform: translateY(44px);
}

.footer-social-right {
    align-items: flex-start !important;   /* ← finally moves left */
    text-align: left;
    margin-left: 0;                       /* reset your earlier test */
}



.footer-social-right .social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}


.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-contact-item p {
    margin: 0;
    line-height: 1.15;
}

.footer-icon-svg {
    width: 20px;
    height: 20px;
    fill: var(--brand-darkpurple);
}

.footer-heading {
    font-size: 1.35rem;
    margin-bottom: 3px;
    font-weight: 700;
    text-align: center;
}

.footer-heading::after {
    content: "";
    width: 35px;
    height: 3px;
    background: #6a4dfc;
    margin-top: 6px;
    border-radius: 2px;
}

/* ============================================
   SOCIAL ICON CIRCLES
============================================ */
.social-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.social-icon-circle.facebook {
    background: #1877F2;
}

.social-icon-circle.linkedin {
    background: #0A66C2;
}

.social-icon-circle.instagram-bg {
    background: radial-gradient(circle at 30% 30%, #fdf497, #fd5949, #d6249f, #285AEB);
}

.social-icon-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: 0.25s ease;
}

.social-icon-circle:hover .social-icon-img {
    transform: translateY(-3px);
    opacity: 0.85;
}
.footer-follow-inline {
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--font-sans);
    font-style: italic;
}

.footer-contact-right .footer-title {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  text-decoration: none;
  pointer-events: none;
  cursor: default;

  /* Positioning */
  align-self: flex-start;     /* keeps it aligned with info */
  margin-left: 4px;           /* subtle left alignment tweak */
  margin-top: -8px;           /* moves it closer to info block */
}

     .footer-links-left .footer-heading, .footer-links-left .footer-link {
        text-align: left !important;
        margin-left: 0 !important;
    }


/* ============================================================
   GLOBAL
============================================================ */
.nav-toggle {
    display: none;
}


/* ============================================================
   NAVIGATION
============================================================ */

/* ---------- Desktop (1400px+) ---------- */
@media (min-width: 1400px) {

    .nav-links a {
        font-size: 22px;
        padding: 10px 14px;
    }

    .nav-contact__label {
        font-size: 1.25rem;
    }

    .nav-brand img {
        height: 95px;
    }

    .nav-links {
        gap: 16px;
    }
}

/* ============================================================
   MOBILE NAVIGATION — FULL LEFT SLIDE PANELS
============================================================ */

@media (max-width: 600px) {

    /* NAV CONTAINER */
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
        position: relative;
        width: 90%;
        margin: auto;
    }

    /* HAMBURGER */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 9999;
        order: 1;
        margin-right: 10px;
    }

    .nav-toggle span {
        width: 28px;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: 0.3s ease;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }

    /* LOGO */
    .nav-brand img {
        height: 75px;
        order: 2;
        margin-left: -5px;
    }

    /* CONTACT INFO */
    .nav-contact {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 20px;
        position: absolute;
        top: 20px;
        right: 42px;
        z-index: 9999;
    }

    .nav-contact__label {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* MAIN MOBILE MENU */
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: black;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        display: none;
        z-index: 9999;
        overflow: visible !important;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 18px;
        padding: 12px 0;
        width: 100%;
        text-align: center;
    }

    /* ============================================================
       FULL-SCREEN LEFT SLIDE PANEL FOR ALL DROPDOWNS
    ============================================================ */

    .dropdown-menu {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;

        background: #000;
        padding: 90px 30px 40px;

        display: flex;
        flex-direction: column;
        gap: 28px;

        z-index: 999999;

        /* Start hidden off-screen */
        transform: translateX(-100%);
        opacity: 0;

        /* Smooth premium animation */
        transition:
            transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
            opacity 0.35s ease;
    }

    /* Slide in when open */
    .dropdown.open > .dropdown-menu {
        transform: translateX(0);
        opacity: 1;
    }

    /* Close button */
    .dropdown-menu .close-panel {
        position: absolute;
        top: 22px;
        
        font-size: 2.2rem;
        color: var(--brand-darkpurple);
        cursor: pointer;
    }
    /* Center all dropdown content inside the slide panel */
.dropdown-menu {
    justify-content: center;      /* vertical centering */
    align-items: center;          /* horizontal centering */
    text-align: center;           /* center text */
}

/* Center each link */
.dropdown-menu li a {
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
}


/* =========================================================
   PURPLE ARROW — TOP CENTER
   ========================================================= */
.menu-arrow {
    position: absolute;
    top: 20px;                /* distance from top edge */
    left: 50%;                /* center horizontally */
    transform: translateX(-50%) rotate(180deg); /* rotate if needed */
    font-size: 2rem;          /* adjust size */
    color: var(--brand-lightpurple); /* your purple tone */
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 10;
}

}

/* =========================================================
   DEALER NETWORK HERO — PHONE MEDIA
   ========================================================= */
@media (max-width: 600px) {

    .finish-hero {
        position: relative;
        height: 110vh;              /* shorter for mobile */
        overflow: hidden;
    }

    .finish-hero-bg {
        position: absolute;
        inset: 0;
        background: url('/images/dealerpic4.jpeg') center/cover no-repeat;
        background-size: cover ;    /* fill screen properly */
        z-index: 1;
    }

    .finish-hero-content {
        position: absolute;
        top: 25%;
        left: 50%;
        transform: translate(-50%, -50%); /* center text */
        text-align: center;
        z-index: 2;
        color: #fff;
        line-height: 1.2;
        animation: FadeInUp 1.2s ease-out forwards;
        padding: 0 20px;           /* prevent edge clipping */
    }

    .finish-title {
        font-size: 3.1rem;
        font-weight: 700;
        color: black;
        margin-bottom: 10px;
    }

    .finish-subtitle {
        font-size: 3.1rem;
        color: var(--brand-darkpurple);
        display: block;
        opacity: 0.95;
    }

    /* Animation adjustments for mobile */
    .slide-right-kf {
        opacity: 0;
        transform: translateX(40vw); /* smaller offset for phone */
    }

    @keyframes slideRightIn {
        0% {
            opacity: 0;
            transform: translateX(40vw);
        }
        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .visible.slide-right-kf {
        animation: slideRightIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    /* =========================================================
   NEXT SECTION SPACING FIX
   ========================================================= */
.finish-section,
.network-section {
    margin-top: 0 !important;     /* remove extra gap */
    padding-top: 40px;            /* keep a little breathing room */
}

/* If the hero pushes space below itself */
.finish-hero {
    margin-bottom: 0 !important;
}

/* Optional: tighten title spacing */
.finish-title,
.network-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

}
/* =========================================================
   DEALER NETWORK — PHONE MEDIA (max-width: 600px)
   ========================================================= */
@media (max-width: 600px) {

    /* GLOBAL FIXES */
    html, body {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    /* SECTION DIVIDERS */
    .section-divider,
    .section-divider-dealer {
        height: 50px;
        margin: 25px 0 10px;
    }

    .section-divider img {
        height: 38px;
        padding: 0 12px;
    }

    .section-divider::before,
    .section-divider-dealer::before {
        left: 8%;
        width: 84%;
        height: 2px;
    }

    /* INTRO + TEXT BLOCKS */
    .dealer-intro,
    .dealer-why,
    .dealer-join {
        padding: 20px 6%;
        padding-bottom: 10px;
        text-align: left;
    }

    .dealer-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .dealer-subtitle-h3 {
        font-size: 1.4rem;
    }

    .dealer-bottom-info {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-top: 20px;
        padding-left: 12px;
    }

    /* WHY SECTION */
    .dealer-why-section {
        padding: 20px 6%;
        padding-bottom: 30px;
    }

    .dealer-why-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .dealer-why-grid,
    .dealer-why-wrapper {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .dealer-why-text p {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .dealer-description-full {
        padding: 0 6%;
        padding-bottom: 20px;
    }

    .dealer-description-text-full p {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-top: 20px;
        padding-left: 12px;
    }

    /* BENEFIT ROWS */
    .benefit-row {
        gap: 10px;
        align-items: flex-start;
    }

    .benefit-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
        font-size: 0.85rem;
    }

    .benefit-row p,
    .dealer-why-features-alt p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .why-text-intro,
    .why-text-intro3,
    .dealer-title-intro {
        font-size: 1.05rem;
        padding-left: 12px;
    }

    .why-text-intro2 {
        font-size: 1.3rem !important;
        padding-right: 0;
        border-right: none;
        text-align: left;
    }

    /* IMAGES */
    .dealer-why-image img {
        height: 200px;
        object-fit: cover;
    }

    /* MAP SECTION */
    .dealer-map-section {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .dealer-map-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
        padding-left: 0;
        text-align: center;
    }

    .dealer-map {
        height: 450px;
        border-radius: 8px;
    }

    .dealer-info {
        width: 90%;
        right: 5%;
        top: 10px;
        padding: 14px 16px;
    }

    .dealer-map-summary {
        font-size: 1rem;
        max-width: 90%;
        margin-top: 20px;
    }

    /* ANIMATIONS — MOBILE TUNING */
    .fade-left,
    .fade-right {
        transform: translateX(20px);
    }

    .fade-bottom {
        transform: translateY(20px);
    }

    @keyframes fadeLeft {
        0% { opacity: 0; transform: translateX(-20vw); }
        100% { opacity: 1; transform: translateX(0); }
    }

    @keyframes fadeRight {
        0% { opacity: 0; transform: translateX(20vw); }
        100% { opacity: 1; transform: translateX(0); }
    }

    @keyframes fadeBottom {
        0% { opacity: 0; transform: translateY(20vw); }
        100% { opacity: 1; transform: translateY(0); }
    }
/* PHONE ONLY — lock info box in center */
@media (max-width: 768px) {
    .dealer-info {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;

        width: 90%;
        max-width: 360px;

        background: rgba(0,0,0,0.92);
        border-left: 4px solid #444;
        border-radius: 12px;
        padding: 18px 20px;

        z-index: 99999;
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
    }

    .dealer-info.active {
        opacity: 1;
        pointer-events: auto;
    }
}


}

/* ============================================================
   FOOTER (LAST SECTION)
============================================================ */
@media (max-width: 600px) {

    /* Make footer a vertical flexbox */
    .impermitek-footer {
        display: flex;
        flex-direction: column;
        align-items: center;   /* CENTER EVERYTHING */
        text-align: center;
        gap: 28px;
        padding: 32px 20px;
        flex-wrap: wrap;
    }
    .brand-statement .big {
    font-size: 0.58rem;
    font-weight: 700;
    color: white;
    font-style: italic;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;

    opacity: 0;
    transform: translateX(40px); /* slide from right */
}

    /* ============================
       FORCE MOBILE ORDER
       ============================ */

    /* LOGO FIRST */
    .footer-brand {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* CENTER LOGO + TEXT */
    }

    /* QUICK LINKS SECOND (BOTTOM LEFT BUTTON) */
    .footer-col:first-child {
        order: 2;
        width: 50%;
        display: flex;
        flex-direction: column;
        align-items: center; /* CENTER BUTTON */
    }

    /* CONTACT THIRD (BOTTOM RIGHT BUTTON) */
    .footer-right {
        order: 3;
        width: 50%;
        display: flex;
        flex-direction: column;
        align-items: center; /* CENTER BUTTON */
    }

    /* ============================
       TURN QUICK LINKS + CONTACT INTO BUTTONS
       ============================ */

    /* Hide desktop content */
    .footer-links-left .footer-link,
    .footer-contact-right .footer-contact-item,
    .footer-contact-right .footer-link-contact {
        display: none;
        text-align: center;
    }
    .footer-links-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
    padding-left: 0;
}

    /* BUTTON STYLE */
    .footer-heading {
        width: 140px;
        padding: 12px 0;
        background: var(--brand-darkpurple);
        border-radius: 5px;
        font-size: 1rem;
        font-weight: 700;
        text-align: center;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.35);
        transition: all 0.25s ease;
        letter-spacing: 0.4px;
        margin: 0 auto; /* CENTER BUTTON */
    }

    .footer-heading:hover {
        background: var(--brand-lightpurple);
        transform: translateY(-2px);
    }

    /* ============================
       SHOW DROPDOWN CONTENT WHEN ACTIVE
       ============================ */
    .footer-links-left.active .footer-link {
        display: block;
        margin-top: 6px;
        text-align: center;
    }

    .footer-contact-right.active .footer-contact-item,
    .footer-contact-right.active .footer-link-contact {
        display: block;
        margin-top: 6px;
    }

    /* ============================
       LOGO + SOCIALS
       ============================ */
    .footer-logo-wrapper img {
        width: 160px;
        margin: 0 auto;
    }

    .footer-desc {
        max-width: 90%;
        margin: 10px auto 18px;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 14px;
        margin-top: 8px;
    }

    /* ============================
       BOTTOM BAR
       ============================ */
    .footer-bottom p {
        text-align: center;
        margin: 0 auto;
        padding: 14px 0;
    }
}
/* ============================================
   FOOTER — CENTERED LAYOUT FOR LARGE SCREENS
============================================ */
@media (min-width: 1600px) {

  .impermitek-footer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    padding: 70px 100px;
    text-align: center;
  }

  .footer-col,
  .footer-brand,
  .footer-right {
    flex: 1;
    max-width: 420px;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-links-left {
    align-items: left;
    text-align: left;
    padding-left: 0;
  }

  .footer-right {
    align-items: center;
    text-align: center;
  }

  .footer-contact-right {
    align-items: flex-start;
    transform: translateY(99px);
    text-align: left;
  }

  /* 🚫 Hide ONLY the stray underlined link */
  .footer-contact-right a[href="/DealerPage/ContactUs.html"]:not(.footer-link-contact):not(.footer-title) {
    display: none !important;
  }

  /* ✅ CONTACT title — match QUICK LINKS */
  .footer-contact-right .footer-title {
    display: block !important;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    text-decoration: none;
    pointer-events: none;   /* not clickable */
    cursor: default;
    text-align: left;
    align-self: flex-start;
  }

  /* ✅ Purple Contact button */
  .footer-link-contact {
    display: inline-block !important;
    margin-top: 14px;
    background: var(--brand-darkpurple);
    color: white;
    text-align: center;
    font-weight: 700;
    padding: 12px 0;
    border-radius: 5px;
    width: 140px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    transition: all 0.25s ease;
    letter-spacing: 0.4px;
    text-decoration: none;
  }

  .footer-link-contact:hover {
    background: var(--brand-lightpurple);
    
  }
}
@media (min-width: 1600px) {
  .footer-links-left {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    transform: translateX(160px);
  }

  .footer-links-left .footer-heading,
  .footer-links-left .footer-link {
    text-align: left !important;
    margin-left: 0 !important;
  }
}

/* ============================================================
   FOOTER (LAST SECTION)
============================================================ */
@media (max-width: 600px) {

    /* Make footer a vertical flexbox */
    .impermitek-footer {
        display: flex;
        flex-direction: column;
        align-items: center;   /* CENTER EVERYTHING */
        text-align: center;
        gap: 28px;
        padding: 32px 20px;
        flex-wrap: wrap;
    }
    .brand-statement .big {
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
    font-style: italic;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;

    opacity: 0;
    transform: translateX(40px); /* slide from right */
}

    /* ============================
       FORCE MOBILE ORDER
       ============================ */

    /* LOGO FIRST */
    .footer-brand {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* CENTER LOGO + TEXT */
    }

    /* QUICK LINKS SECOND (BOTTOM LEFT BUTTON) */
    .footer-col:first-child {
        order: 2;
        width: 50%;
        display: flex;
        flex-direction: column;
        align-items: center; /* CENTER BUTTON */
    }

    /* CONTACT THIRD (BOTTOM RIGHT BUTTON) */
    .footer-right {
        order: 3;
        width: 50%;
        display: flex;
        flex-direction: column;
        align-items: center; /* CENTER BUTTON */
    }

    /* ============================
       TURN QUICK LINKS + CONTACT INTO BUTTONS
       ============================ */

    /* Hide desktop content */
    .footer-links-left .footer-link,
    .footer-contact-right .footer-contact-item,
    .footer-contact-right .footer-link-contact {
        display: none;
        text-align: center;
    }
    .footer-links-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
    padding-left: 0;
}
.footer-title {
    width: 140px;
    padding: 12px 0;
    background: var(--brand-darkpurple);
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    transition: all 0.25s ease;
    letter-spacing: 0.4px;
    margin: 0 auto;
    color: white;
    text-decoration: none;
    display: block;
}

.footer-title:hover {
    background: var(--brand-lightpurple);
    transform: translateY(-2px);
}


    /* BUTTON STYLE */
    .footer-heading {
        width: 140px;
        padding: 12px 0;
        background: var(--brand-darkpurple);
        border-radius: 5px;
        font-size: 1rem;
        font-weight: 700;
        text-align: center;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.35);
        transition: all 0.25s ease;
        letter-spacing: 0.4px;
        margin: 0 auto; /* CENTER BUTTON */
    }

    .footer-heading:hover {
        background: var(--brand-lightpurple);
        transform: translateY(-2px);
    }

    /* ============================
       SHOW DROPDOWN CONTENT WHEN ACTIVE
       ============================ */
    .footer-links-left.active .footer-link {
        display: block;
        margin-top: 6px;
        text-align: center;
    }

    @media (max-width: 600px) {
    .footer-contact-right.active .footer-link-contact {
        display: block !important;
        margin-top: 10px;
        pointer-events: auto !important;
        z-index: 999;
    }
}


    /* ============================
       LOGO + SOCIALS
       ============================ */
    .footer-logo-wrapper img {
        width: 160px;
        margin: 0 auto;
    }

    .footer-desc {
        max-width: 50%;
        margin: 10px auto 18px;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 14px;
        margin-top: 8px;
    }

    /* ============================
       BOTTOM BAR
       ============================ */
    .footer-bottom p {
        text-align: center;
        margin: 0 auto;
        padding: 14px 0;
    }
    .footer-contact-right .footer-title {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 22px;
    text-decoration: none;
    pointer-events: none;
    cursor: default;
    align-self: flex-start;
    margin-left: 4px;
    margin-top: -70px;
}
}

@media (max-width: 600px) {
  /* Ensure CONTACT button is clickable */
  .footer-contact-right  {
    display: block !important;
    pointer-events: auto !important;
    z-index: 999 !important;
    position: relative;
  }
  .footer-links-left .footer-heading,
  .footer-links-left .footer-link {
    text-align: center !important;
    margin-left: 0 !important;
  }

  /* Prevent parent containers from blocking clicks */
  .footer-contact-right,
  .footer-contact-right * {
    pointer-events: auto !important;
  }

  /* Optional: keep dropdown reveal logic */
  .footer-contact-right.active .footer-link-contact {
    display: block !important;
  }
}
/* ============================================
   FOOTER — CENTERED LAYOUT FOR LARGE SCREENS
============================================ */
@media (min-width: 1600px) {

  .impermitek-footer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    padding: 70px 100px;
    text-align: center;
  }

  .footer-col,
  .footer-brand,
  .footer-right {
    flex: 1;
    max-width: 420px;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-links-left {
    align-items: left;
    text-align: left;
    padding-left: 0;
  }

  .footer-right {
    align-items: center;
    text-align: center;
  }

  .footer-contact-right {
    align-items: flex-start;
    transform: translateY(99px);
    text-align: left;
  }

  /* 🚫 Hide ONLY the stray underlined link */
  .footer-contact-right a[href="/DealerPage/ContactUs.html"]:not(.footer-link-contact):not(.footer-title) {
    display: none !important;
  }
  .footer-links-left .footer-heading, .footer-links-left .footer-link {
    text-align: center !important;
    margin-left: 0 !important;
}



  /* ✅ CONTACT title — match QUICK LINKS */
  .footer-contact-right .footer-title {
    display: block !important;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    text-decoration: none;
    pointer-events: none;   /* not clickable */
    cursor: default;
    text-align: left;
    align-self: flex-start;
  }

  /* ✅ Purple Contact button */
  .footer-link-contact {
    display: inline-block !important;
    margin-top: 14px;
    background: var(--brand-darkpurple);
    color: white;
    text-align: center;
    font-weight: 700;
    padding: 12px 0;
    border-radius: 5px;
    width: 140px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    transition: all 0.25s ease;
    letter-spacing: 0.4px;
    text-decoration: none;
  }

  .footer-link-contact:hover {
    background: var(--brand-lightpurple);
    
  }
}
@media (min-width: 1600px) {
  .footer-links-left {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    transform: translateX(160px);
  }

  .footer-links-left .footer-heading,
  .footer-links-left .footer-link {
    text-align: left !important;
    margin-left: 0 !important;
  }
}



/* ============================================================
   FOOTER (LAST SECTION)
============================================================ */
@media (max-width: 600px) {

    /* Make footer a vertical flexbox */
    .impermitek-footer {
        display: flex;
        flex-direction: column;
        align-items: center;   /* CENTER EVERYTHING */
        text-align: center;
        gap: 28px;
        padding: 32px 20px;
        flex-wrap: wrap;
    }
 .brand-statement .big {
    margin: 18px auto 1;     /* auto centers it */
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    font-style: italic;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;

    opacity: 0;
    transform: none;        /* remove the right shift */
    text-align: center;     /* ensure text is centered */
    animation: fadeIn 1.2s ease forwards;
}

    /* ============================
       FORCE MOBILE ORDER
       ============================ */

    /* LOGO FIRST */
    .footer-brand {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* CENTER LOGO + TEXT */
    }

    /* QUICK LINKS SECOND (BOTTOM LEFT BUTTON) */
    .footer-col:first-child {
        order: 2;
        width: 50%;
        display: flex;
        flex-direction: column;
        align-items: center; /* CENTER BUTTON */
    }

    /* CONTACT THIRD (BOTTOM RIGHT BUTTON) */
    .footer-right {
        order: 3;
        width: 50%;
        display: flex;
        flex-direction: column;
        align-items: center; /* CENTER BUTTON */
    }

    /* ============================
       TURN QUICK LINKS + CONTACT INTO BUTTONS
       ============================ */

    /* Hide desktop content */
    .footer-links-left .footer-link,
    .footer-contact-right .footer-contact-item,
    .footer-contact-right .footer-link-contact {
        display: none;
        text-align: center;
    }
    .footer-links-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
    padding-left: 0;
}
.footer-title {
    width: 140px;
    padding: 12px 0;
    background: var(--brand-darkpurple);
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    transition: all 0.25s ease;
    letter-spacing: 0.4px;
    margin: 0 auto;
    color: white;
    text-decoration: none;
    display: block;
}

.footer-title:hover {
    background: var(--brand-lightpurple);
    transform: translateY(-2px);
}


    /* BUTTON STYLE */
    .footer-heading {
        width: 140px;
        padding: 12px 0;
        background: var(--brand-darkpurple);
        border-radius: 5px;
        font-size: 1rem;
        font-weight: 700;
        text-align: center;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.35);
        transition: all 0.25s ease;
        letter-spacing: 0.4px;
        margin: 0 auto; /* CENTER BUTTON */
    }

    .footer-heading:hover {
        background: var(--brand-lightpurple);
        transform: translateY(-2px);
    }

    /* ============================
       SHOW DROPDOWN CONTENT WHEN ACTIVE
       ============================ */
    .footer-links-left.active .footer-link {
        display: block;
        margin-top: 6px;
        text-align: center;
    }
    /* Base gallery layout */
.dealer-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-items: center;
  align-items: start;
  padding: 40px 20px;
}

/* Image styling */
.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* Mobile optimization */
@media (max-width: 600px) {
  .dealer-gallery-grid {
    grid-template-columns: 1fr; /* one image per row */
    gap: 20px;
    padding: 30px 15px;
  }

  .gallery-item img {
    border-radius: 10px;
  }
}


    @media (max-width: 600px) {
    .footer-contact-right.active .footer-link-contact {
        display: block !important;
        margin-top: 10px;
        pointer-events: auto !important;
        z-index: 999;
    }
}


    /* ============================
       LOGO + SOCIALS
       ============================ */
    .footer-logo-wrapper img {
        width: 160px;
        margin: 0 auto;
    }

    .footer-desc {
        max-width: 50%;
        margin: 10px auto 18px;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 14px;
        margin-top: 8px;
    }

    /* ============================
       BOTTOM BAR
       ============================ */
    .footer-bottom p {
        text-align: center;
        margin: 0 auto;
        padding: 14px 0;
    }
    .footer-contact-right .footer-title {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 22px;
    text-decoration: none;
    pointer-events: none;
    cursor: default;
    align-self: flex-start;
    margin-left: 4px;
    margin-top: -70px;
}
}

@media (max-width: 600px) {
  /* Ensure CONTACT button is clickable */
  .footer-contact-right  {
    display: block !important;
    pointer-events: auto !important;
    z-index: 999 !important;
    position: relative;
  }
  .footer-links-left .footer-heading,
  .footer-links-left .footer-link {
    text-align: center !important;
    margin-left: 0 !important;
  }

  /* Prevent parent containers from blocking clicks */
  .footer-contact-right,
  .footer-contact-right * {
    pointer-events: auto !important;
  }

  /* Optional: keep dropdown reveal logic */
  .footer-contact-right.active .footer-link-contact {
    display: block !important;
  }
}
@media (max-width: 600px) {
  .footer-contact-right .footer-link-contact {
    display: none !important;
  }
}
@media (max-width: 600px) {
  footer a[href="/DealerPage/ContactUs.html"] {
    display: none !important;
  }
}



/* ============================================
   FOOTER — CENTERED LAYOUT FOR LARGE SCREENS
============================================ */
@media (min-width: 1600px) {

  .impermitek-footer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    padding: 70px 100px;
    text-align: center;
  }
   .finish-hero {
        position: relative;
        height: 90vh;              /* shorter for mobile */
        overflow: hidden;
    }

  .footer-col,
  .footer-brand,
  .footer-right {
    flex: 1;
    max-width: 420px;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-links-left {
    align-items: left;
    text-align: left;
    padding-left: 0;
  }

  .footer-right {
    align-items: center;
    text-align: center;
  }

  .footer-contact-right {
    align-items: flex-start;
    transform: translateY(99px);
    text-align: left;
  }

  /* 🚫 Hide ONLY the stray underlined link */
  .footer-contact-right a[href="/DealerPage/ContactUs.html"]:not(.footer-link-contact):not(.footer-title) {
    display: none !important;
  }
  .footer-links-left .footer-heading, .footer-links-left .footer-link {
    text-align: left !important;
    margin-left: 0 !important;
}



  /* ✅ CONTACT title — match QUICK LINKS */
  .footer-contact-right .footer-title {
    display: block !important;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    text-decoration: none;
    pointer-events: none;   /* not clickable */
    cursor: default;
    text-align: left;
    align-self: flex-start;
  }

  /* ✅ Purple Contact button */
  .footer-link-contact {
    display: inline-block !important;
    margin-top: 14px;
    background: var(--brand-darkpurple);
    color: white;
    text-align: center;
    font-weight: 700;
    padding: 12px 0;
    border-radius: 5px;
    width: 140px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    transition: all 0.25s ease;
    letter-spacing: 0.4px;
    text-decoration: none;
  }

  .footer-link-contact:hover {
    background: var(--brand-lightpurple);
    
  }
}
@media (min-width: 1600px) {
  .footer-links-left {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    transform: translateX(160px);
  }

  .footer-links-left .footer-heading,
  .footer-links-left .footer-link {
    text-align: left !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 600px) {
    .footer-links-left .footer-heading {
        display: none !important;
    }
     .footer-bottom p { 
        text-align: center; 
        margin: 0 auto; 
        padding: 14px 0;
        color: white; 
    }
}
