/* --------------------------------------------------
   GLOBAL STYLES
-------------------------------------------------- */
: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;
}

html, body {
    overflow-x: hidden;
    font-family: var(--font-serif);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    
    background: var(--brand-dark);
}

h1, h2, h3 {
    font-family: var(--font-serif);
    margin: 0;
}
/* GLOBAL IMAGE CONTROL */
img {
  max-width: 100%;
  height: 220px;
  display: block;
}


/* --------------------------------------------------
   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;
}

@media (max-width: 768px) {
    .nav-contact__icon img {
        width: 70px!important;
        height: 20px;
        display: block;
        margin-right: -40px;
        object-fit: contain;
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.35));
    }
}
@media (max-width: 768px) {
    .nav-contact__icon {
        width: 4px !important;
        min-width: 22px !important;
        transform: translateX(33px);
    }

   .nav-contact__label {
    transform: translateX(23px);
   }
}





/* ========================= */
/*        HERO SECTION       */
/* ========================= */

.hero-simulatedmetal {
    position: relative;
    padding: 7rem 0 6rem;
    min-height: 70vh; /* ← THIS FIXES THE SKINNY IMAGE */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    overflow: hidden;
}


/* Background (parallax) */
.hero-simulatedmetal .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/simulatedpic2.jpg'); /* your metal close-up */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* ← SAME as Green Roof */
    filter: brightness(1.2);
    z-index: 1;
}


/* Overlay (same direction  + strength as Green Roof) */
.hero-simulatedmetal .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.75)
    );
    z-index: 2;
}

/* Content */
.hero-simulatedmetal .hero-content {
    position: relative;
    z-index: 3;
    max-width: 750px;
    padding: 0 2rem;
    color: white;
}
.simulatedmetal-description {
      background-image: url('/images/background\ pic\ 8.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 0;
}

.hero-simulatedmetal .hero-title {
    font-size: 4rem;
    text-align: center;
    font-weight: 800;
    font-family: var(--font-sans);
    color: white;
    margin-bottom: 1.1rem;
    letter-spacing: 0.05em;
}

.hero-title .dark {
    color: var(--brand-lightpurple);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(60vh);
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --------------------------------------------------
   BRAND INTRO
-------------------------------------------------- */
.brand-intro {
    position: relative;
    padding: 86px 4px;
    background: url('/images/headlinepicflip.PNG') center/cover no-repeat;
    background-size: 1200px;
    color: white;
    overflow: hidden;
}

/* Dark overlay ONLY on the image */
.brand-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85); /* adjust darkness here */
    z-index: 1;
}

/* Make sure content sits ABOVE the dark overlay */
.intro-container {
    position: relative;
    z-index: 2;
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 35px;
}

/* LOGO */
.intro-logo {
    height: 200px;
    flex-shrink: 0;
    margin: 0;
    border: 3px solid var(--brand-darkpurple);
    opacity: 0;
    animation: fadeInLeft 1.2s ease-out forwards;
    animation-delay: 0.1s;
}

/* TEXT BLOCK */
.intro-wrapper {
    flex: 1;
    margin: 0;
    width: auto;
    text-align: left;
    line-height: 1.7;
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 1; /* full brightness */
    color: white; /* ensure bright text */
    animation: fadeInLeft 1.4s ease-out forwards;
    animation-delay: 0.3s;

    display: flex;
    align-items: center;
    padding: 20px 25px;
}


.intro-inline-img {
    height: 260px;      /* make them taller */
    width: 260px;       /* give them a consistent shape */
    object-fit: cover;  /* prevents stretching, crops instead */
    border-radius: 6px; /* optional, looks cleaner */
    margin-right: 20px;
    flex-shrink: 0;
}

.intro-text p {
    margin: 0;
}


/* CONTACT BUTTON */
.contact-link {
    display: flex;
    font-weight: 800;
    background: var(--brand-darkpurple);
    padding: 12px;
    width: 100px;
    margin-left: 74px;
    margin-top: -px;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.25s ease;
}

.contact-link:hover {
    color: white;
}

/* DEALER LINK */
.dealer-link {
    display: inline-block;
    margin-top: 20px;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.25s ease;
}

.dealer-link:hover {
    color: var(--brand-darkpurple);
}
/* INLINE CONTACT LINK */
.inline-contact {
    color: white;
    font-weight: 800;

    text-decoration: none;

}

.inline-contact:hover {
    color: var(--brand-darkpurple);
}

/* INTRO PHOTO INSIDE CONTAINER */
.intro-photo {
    height: 260px;
    width: auto;
    border: 3px solid var(--brand-darkpurple);
    object-fit: cover;
    opacity: 0;
    animation: fadeInLeft 1.6s ease-out forwards;
    animation-delay: 0.5s;
}


/* ================================
   BRAND INTRO ANIMATIONS
================================ */
/* ================================
   BRAND INTRO ANIMATIONS (CLEAN)
================================ */

/* IMAGE — drop down */
.intro-inline-img {
    opacity: 0;
    transform: translateY(-60px);
}

.intro-inline-img.visible {
    animation: introImgDown 1s ease-out forwards;
}

/* TEXT BLOCK — slide from left */
.intro-text {
    opacity: 0;
    transform: translateX(-60px);
}

.intro-text.visible {
    animation: introTextLeft 1s ease-out forwards;
    animation-delay: 0.2s;
}

/* PARAGRAPH — slide from left */
.intro-text p {
    opacity: 0;
    transform: translateX(-60px);
}

.intro-text p.visible {
    animation: introTextLeft 1s ease-out forwards;
    animation-delay: 0.35s;
}

/* KEYFRAMES */
@keyframes introImgDown {
    0% { opacity: 0; transform: translateY(-60vh); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes introTextLeft {
    0% { opacity: 0; transform: translateX(-60vh); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ========================= */
/*   GLOBAL TITLE SYSTEM     */
/* ========================= */

.white {
  color: white;
  
}

.purple {
  background: var(--brand-darkpurple);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Universal title container */
.grp-title,
.adv-title,
.standards-title,
.gallery-title {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-bottom: 3rem;
  font-family: var(--font-sans);
}

/* Universal title text */
.grp-title span,
.adv-title span,
.standards-title span,
.gallery-title span {
  font-size: 3.1rem;
  font-weight: 800;
  display: inline-block;
}
/* SECTION WRAPPER */
.metal-grp-section {
    position: relative;
    padding: 80px 20px;
    overflow: hidden;
}

/* BACKGROUND IMAGE + OVERLAY */
.metal-grp-bg {
    position: absolute;
    inset: 0;
    background: url('/images/headlinepicflip.PNG') center/cover no-repeat;
    z-index: 1;
}

.metal-grp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2;
}

/* INNER CONTENT */
.metal-grp-inner {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

/* HEADER */
.metal-grp-header h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: white;
    letter-spacing: 1px;
    font-family: var(--font-sans);
}

.metal-grp-header p {
    max-width: 1300px !important;
    margin: 0 auto 50px;
    color: #e8e8e8;
    font-size: 1.3rem;
    line-height: 1.6;
    text-align: left;
    border-left: 4px solid var(--brand-darkpurple);
    padding-left: 14px;
}

/* GRID */
.metal-grp-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* CARDS */
.grp-card {
    width: 300px;
    text-align: center;
}

.grp-img-wrap {
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.grp-img-wrap img {
    width: 100%;
    border-radius: 8px;
}

.grp-label {
    margin-top: 14px;
    font-size: 1.05rem;
    color: white;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ================================
   ANIMATIONS
================================ */

/* PARAGRAPH — slide from left */
.metal-grp-description p.visible {
  animation: grpTextLeft 1s ease-out forwards;
}

/* CARD UP — slide from bottom */
.card-up {
  transform: translateY(60px);
}

.card-up.visible {
  animation: grpCardUp 1s ease-out forwards;
  animation-delay: 0.2s;
}

/* CARD DOWN — slide from top */
.card-down {
  transform: translateY(-60px);
}

.card-down.visible {
  animation: grpCardDown 1s ease-out forwards;
  animation-delay: 0.35s;
}

/* KEYFRAMES */
@keyframes grpTextLeft {
  0% { opacity: 0; transform: translateX(-60vh); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes grpCardUp {
  0% { opacity: 0; transform: translateY(60vh); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes grpCardDown {
  0% { opacity: 0; transform: translateY(-60vh); }
  100% { opacity: 1; transform: translateY(0); }
}
.metal-grp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px; /* spacing between text and image */
}

/* Left column */
.metal-grp-header {
    flex: 1;
    max-width: 550px;
}

/* Right column */
.metal-grp-grid {
    flex: 1;
    display: flex;
    justify-content: center;
}




/* ========================= */
/*   ADVANTAGES SECTION      */
/* ========================= */

.metal-advantages-section {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/headlinepic.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.9);
  z-index: 1;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.75)
  );
  z-index: 2;
}

/* Content wrapper */
.metal-advantages-inner {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

/* Title */
.adv-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;

  opacity: 0;
  transform: translateX(-60px);
}

/* ADV LIST */
.adv-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 2rem;
}

/* ADV ITEM */
.adv-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: white;
  opacity: 0;
}

.adv-check {
  font-size: 1.8rem;
  color: var(--brand-darkpurple);
  flex-shrink: 0;
}

.adv-item p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}






/* 3‑IMAGE ROW */
.adv-image-row {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.adv-thumb {
  width: 32%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .3s ease, opacity .3s ease;
}

.adv-thumb:hover {
  transform: scale(1.03);
  opacity: .85;
}

/* MODAL */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 45px;
  color: #fff;
  cursor: pointer;
  transition: opacity .3s ease;
}

.modal-close:hover {
  opacity: .6;
}





/* ================================
   ANIMATIONS
================================ */

/* TITLE — slide from left */
.adv-title.visible {
  animation: advTitleLeft 1s ease-out forwards;
}

/* LEFT ITEMS — slide from left */
.adv-left {
  transform: translateX(-60px);
}

.adv-left.visible {
  animation: advItemLeft 1s ease-out forwards;
  animation-delay: 0.2s;
}

/* RIGHT ITEMS — slide from right */
.adv-right {
  transform: translateX(60px);
}

.adv-right.visible {
  animation: advItemRight 1s ease-out forwards;
  animation-delay: 0.3s;
}

/* KEYFRAMES */
@keyframes advTitleLeft {
  0% { opacity: 0; transform: translateX(-60vh); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes advItemLeft {
  0% { opacity: 0; transform: translateX(-60vh); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes advItemRight {
  0% { opacity: 0; transform: translateX(60vh); }
  100% { opacity: 1; transform: translateX(0); }
}




/* ========================= */
/*   EXCEEDING STANDARDS     */
/* ========================= */

.metal-standards-section {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

/* Flowing background */
.metal-standards-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/flip2.JPG'); /* replace with your background */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.2);
  z-index: 1;
}

/* Cinematic overlay */
.metal-standards-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.8)
  );
  z-index: 2;
}

/* Inner content */
.metal-standards-inner {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.metal-standards-inner .section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

/* DESCRIPTION — slide from right using VH */
.section-description {
    color: white;
    font-size: 1.15rem;
    line-height: 1.75;
    width: 900px;
    max-width: 90%;
    margin: 0 auto 3rem auto;
    text-align: left;
    border-left: solid 4px var(--brand-darkpurple);
    padding-left: 12px;

    /* animation initial state */
    opacity: 0;
    transform: translateX(60vh);
}

.section-description.visible {
    animation: standardsDescRight 1s ease-out forwards;
    animation-delay: 0.2s;
}


/* Strength image */
.standards-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0; /* remove padding so border aligns perfectly */
  background: none; /* no backdrop */
  width: fit-content;
  border: none; /* no border on wrapper */
}

.standards-image-wrap img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  border: 2px solid var(--brand-darkpurple); /* thin border directly on photo */
  border-radius: 12px;
  object-fit: cover;
  box-sizing: border-box !important; /* ensures border is part of image dimensions */
}








/* ========================= */
/*   STRENGTH VISUAL         */
/* ========================= */

.metal-strength-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

/* Flowing background */
.strength-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/flip1.JPG'); /* replace with your chosen background */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.9);
  z-index: 1;
}

/* Cinematic overlay */
.strength-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.75)
  );
  z-index: 2;
}

/* Inner container */
.strength-inner {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

/* Image frame */
.strength-image-frame {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.strength-image-frame img {
  width: 100%;
  display: block;
}
/* ================================
   EXCEEDING STANDARDS ANIMATIONS
================================ */

/* TITLE — slide from left */
.standards-title {
    opacity: 0;
    transform: translateX(-60px);
}

.standards-title.visible {
    animation: standardsTitleLeft 1s ease-out forwards;
}



.section-description.visible {
    animation: standardsDescRight 1s ease-out forwards;
    animation-delay: 0.2s;
}

/* SHIELD — drop down */
.standards-image-wrap img {
    opacity: 0;
    transform: translateY(-60px);
}

.standards-image-wrap img.visible {
    animation: standardsImgDown 1s ease-out forwards;
    animation-delay: 0.35s;
}
/* SHIELD — drop down */
.shield-img {
    opacity: 0;
    transform: translateY(-60vh) scale(1);
}

.shield-img.visible {
    animation: 
        shieldDrop 1.1s ease-out forwards,
        shieldGrow 0.6s ease-out forwards 1.1s; /* starts AFTER drop */
}

/* DROP ANIMATION */
@keyframes shieldDrop {
    0% { 
        opacity: 0; 
        transform: translateY(-60vh) scale(1);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

/* GROW AFTER LANDING */
@keyframes shieldGrow {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(0) scale(1.15);
    }
}





/* KEYFRAMES — FIXED (NO VH ANYWHERE) */
@keyframes standardsTitleLeft {
    0% { opacity: 0; transform: translateX(-60vh); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes standardsDescRight {
    0% { opacity: 0; transform: translateX(60vh); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes standardsImgDown {
    0% { opacity: 0; transform: translateY(-60vh); }
    100% { opacity: 1; transform: translateY(0); }
}



/* 3D Circle Gallery */
.metal-3d-gallery {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}
/* SYSTEM GALLERY BACKGROUND */
.system-gallery-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/practice16.avif'); /* ← change this */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.4);
  z-index: 1;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.85)
  );
  z-index: 2;
}


.gallery-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/flip1.JPG');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.55);
  z-index: 1;
}



.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.85));
  z-index: 2;
}

.section-title {
  position: relative;
  z-index: 3;
  color: white;
  text-align: center;
  font-size: 4.4rem;
  font-weight: 700;
  margin-bottom: 3rem;
}



/* ========================= */
/*   WHY CHOOSE US SECTION   */
/* ========================= */

.why-choose-us {
  position: relative;
  padding-top: 10px;
  overflow: hidden;
  font-family: sans-serif;
}

/* Flowing background */
.why-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/flip2.JPG');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.5);
  z-index: 1;
}

/* Cinematic overlay */
.why-overlay {
  position: absolute;
  inset: 0;
 
  z-index: 2;
}

/* Title with white + purple */
.why-title {
  position: relative;
  z-index: 3;
  font-size: 4.6rem;
  font-weight: 800;
  text-align: center;
  font-family: var(--font-sans);
  margin-bottom: 1rem;
  color: white;
}

.why-title .purple {
  background: var(--brand-darkpurple);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Description */
.why-description {
  position: relative;
  z-index: 3;
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
  border-left: solid 4px var(--brand-darkpurple);
  padding-left: 12px;
}

/* Grid */
.why-grid {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

/* Cards with constant glow */
.why-card {
  background: black;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(1px);

 box-shadow:
        0 0 18px rgba(255,255,255,0.25),   /* chrome glow */
        inset 0 0 12px rgba(255,255,255,0.08); /* inner chrome reflection */

  animation: pulseGlow 4s ease-in-out infinite;
}



/* H3 white + purple gradient */
.why-card h3 span {
  background: var(--brand-lightpurple);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  text-align: center;
}

.why-summary {
  position: relative;
  z-index: 3;
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  text-align: left;
  max-width: 900px;
  margin: 3.5rem auto 0 auto;
  line-height: 1.7;
  padding: 0 2rem;
  border-left: solid 4px var(--brand-darkpurple);
  padding-left: 10px;

  /* subtle glow to match the cards */
  text-shadow: 0 0 12px rgba(122, 60, 255, 0.35);
}


/* Checkmark row */
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 1rem;
}

/* Purple checkmark in circle */
.check-circle {
  width: 26px;
  height: 26px;
  
  
 
  color: white;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

.why-item p {
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin: 0;
}

/* ========================= */
/* WHY CHOOSE US ANIMATIONS */
/* ========================= */

.why-choose-us {
    position: relative;
    padding: 80px 20px;
    color: white;
}

.why-bg {
    position: absolute;
    inset: 0;
    background: url('/images/background.jpg') center/cover no-repeat;
    z-index: 1;
}

.why-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2;
}

.why-choose-us > * {
    position: relative;
    z-index: 3;
}

/* Title */
.why-title {
    text-align: center;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Description */
.why-description {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Cards */
.why-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-darkpurple);
}

/* Check icon */
.check-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-darkpurple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 10px;
}

/* Summary */
.why-summary {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.6;
}
/* ======================================= */
/* FINAL ROTATOR VISIBILITY CONTROL        */
/* ======================================= */

/* Hide mobile rotator on desktop */
.why-rotate-mobile,
.why-rotate-dots {
    display: none !important;
}

/* Mobile only */
@media (max-width: 768px) {

    /* Hide desktop grid */
    .why-grid {
        display: none !important;
    }

    /* Show mobile rotator */
    .why-rotate-mobile,
    .why-rotate-dots {
        display: block !important;
    }

    .why-rotate-mobile .why-card {
        display: none; /* JS will show one at a time */
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        margin-bottom: 20px;
    }
}
/* =============================== */
/* FIX DOTS ORIENTATION (MOBILE)   */
/* =============================== */
@media (max-width: 768px) {
  .why-rotate-dots {
    display: flex !important;
    flex-direction: row !important; /* force horizontal layout */
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
  }

  .why-rotate-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a855f7;
    opacity: 0.3;
    transition: opacity 0.3s ease;
  }

  .why-rotate-dots .dot.active {
    opacity: 1;
  }
}


/* --------------------------------------------------
   BRAND STATEMENT
-------------------------------------------------- */
.brand-statement {
    padding: 20px 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;
    }



/* ========================= */
/*       RESPONSIVE FIX      */
/* ========================= */

@media (max-width: 768px) {
    .hero-simulatedmetal .hero-title {
        font-size: 2.2rem;
    }
}

/* ============================================================
   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;
}




}
/* ========================= */
/* MOBILE HERO FIX (Green Roof + Low Slope) */
/* ========================= */

/* MOBILE — Raise the hero image */
@media (max-width: 600px) {

  .hero-greenroof .hero-bg,
  .hero-lowslope .hero-bg {
      background-size: cover !important;

      /* This pulls the image UP */
      background-position: center 8% !important;

      /* Prevents mobile browsers from cropping the bottom */
      background-attachment: scroll !important;

      filter: brightness(1.1);
  }

  .hero-greenroof,
  .hero-lowslope {
      min-height: 100vh;
      padding: 0 10px;
      text-align: center;
  }

  .hero-greenroof .hero-content,
  .hero-lowslope .hero-content {
      max-width: 90%;
      padding: 0;
  }

  .hero-greenroof .hero-title,
  .hero-lowslope .hero-title {
      font-size: 2.2rem;
      line-height: 1.1;
      margin-bottom: 1rem;
  }

  .hero-title .dark {
      color: var(--brand-lightpurple);
  }
}
@media (max-width: 600px) {
  .hero-greenroof .hero-bg,
  .hero-lowslope .hero-bg {
      background-position: center 90% !important; /* pulls image UP */
      background-attachment: scroll !important;  /* fixes mobile cropping */
      background-size: cover !important;
  }
}


@media (max-width: 600px) {
    /* ========================= */
    /* BRAND INTRO               */
    /* ========================= */

    .brand-intro {
        padding: 50px 10px;
        background-size: cover;
        text-align: center;
    }

    .intro-container {
        flex-direction: column;
        gap: 20px;
        width: 92%;
        text-align: center;
    }

    .intro-logo {
        height: 140px;
        margin: 0 auto;
    }

    .intro-wrapper {
        flex-direction: column;
        padding: 10px;
        font-size: 1rem;
        text-align: center;
    }

    .intro-inline-img {
        height: 280px;
        width: 360px;
        margin: 0 auto 15px auto;
    }

    .intro-text p {
        text-align: center;
    }

    .intro-photo {
        height: 180px;
        width: 100%;
        margin: 0 auto;
    }

    .contact-link {
        margin: 20px auto 0 auto;
        width: 140px;
    }
  }
  @media (max-width: 600px) {

    /* ========================= */
    /* DEALER + INLINE CONTACT   */
    /* ========================= */

    .dealer-link {
        font-size: 1rem;
        margin-top: 14px;
        display: block;
        text-align: center;
    }

    .inline-contact {
        font-size: 1rem;
        display: inline-block;
        margin-top: 10px;
    }

    /* ========================= */
    /* INTRO PHOTO               */
    /* ========================= */

    .intro-photo {
        height: 160px;
        width: 100%;
        object-fit: cover;
        margin: 0 auto;
        border-width: 2px;
    }

    /* ========================= */
    /* GLOBAL TITLES             */
    /* ========================= */

    .grp-title span,
    .adv-title span,
    .standards-title span,
    .gallery-title span {
        font-size: 2rem;
        text-align: center;
    }

    .grp-title,
    .adv-title,
    .standards-title,
    .gallery-title {
        margin-bottom: 1.8rem;
    }










/* ========================= */
/* EXCEEDING STANDARDS — BASE */
/* ========================= */

.metal-standards-section {
    position: relative;
    overflow: hidden;
}

.metal-standards-inner {
    padding: 80px 40px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.standards-title {
    font-size: 2.6rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.15rem;
    margin-top: 20px;
    color: white;
    max-width: 700px;
    margin-left: 4px;
    margin-right: auto;
}

.standards-image-wrap {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.standards-image-wrap img {
    width: 320px;
    height: auto;
}

/* Background layers */
.metal-standards-bg,
.metal-standards-overlay {
    background-position: center;
    background-size: cover;
    z-index: 1;
}
/* Center "Exceeding Construction Standards" title perfectly */
.standards-title {
  display: flex !important;
  
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.standards-title span {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  padding-left: 22px;
}



/* ========================= */
/* MOBILE FIXES (max 768px)  */
/* ========================= */

@media (max-width: 768px) {

    .metal-standards-section {
        overflow: visible;
    }

    .metal-standards-inner {
        padding: 40px 20px;
        z-index: 3;
    }

    .standards-title {
        font-size: 1.9rem;
    }

    .section-description {
        font-size: 1rem;
        margin-top: 15px;
        z-index: 3;
        position: relative;
    }

    .standards-image-wrap {
        margin-top: 25px;
        z-index: 2;
        position: relative;
        transform: translateX(-20px);
    }

    .standards-image-wrap img {
        width: 740px;
        max-width: 85%;
        padding-left: 0;
        
    }
    .metal-grp-description p {
    font-size: 1.25rem;
    line-height: 1.55;
    color: #fff;
    text-align: left;
    max-width: 900px;          /* wider paragraph */
    margin: 0 auto;            /* centers it */
    border-left: 4px solid var(--brand-darkpurple);
    padding: 20px 40px;        /* more breathing room */
    background: rgba(0, 0, 0, 0.25); /* subtle backdrop for contrast */
    border-radius: 8px;
}


    .metal-standards-bg,
    .metal-standards-overlay {
        z-index: 1;
    }
}
@media (max-width: 768px) {
  .section-description.animate-on-scroll {
      opacity: 1 !important;
      transform: none !important;
      transition: opacity 0.8s ease, transform 0.8s ease;
  }
  @media (max-width: 768px) {
  .section-description {
      opacity: 0;
      transform: translateY(20);
      animation: standardsFadeUp 0.8s ease-out 0.2s forwards;
  }
}


@keyframes standardsFadeUp {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

}


  }
  /* FIX: Center the entire Exceeding Standards section on mobile */
@media (max-width: 768px) {

  .metal-standards-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 3px !important;
    padding: 0 1px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .standards-title {
    text-align: center !important;
    width: 100% !important;
  }

  .section-description {
    text-align: left;
    font-size: 1.2rem;
    width: 100% !important;
  }

  .standards-image-wrap {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .shield-img {
    max-width: 180px;
    height: auto;
  }
}
/* FIX: Prevent text clipping and center content on mobile */
@media (max-width: 768px) {
  .metal-standards-section {
    overflow: visible !important; /* allow text to extend */
  }

  .metal-standards-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .section-description {
    width: 80% !important;
    text-align: left !important;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
  }

  .metal-standards-bg,
  .metal-standards-overlay {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
}
/* FINAL OVERRIDE — move title left */
@media (max-width: 768px) {
  .standards-title {
    align-items: flex-start !important;
    text-align: left !important;
    padding-left: 10px !important; /* adjust as needed */
  }

  .standards-title span {
    text-align: left !important;
    padding-left: 0 !important;
  }
}



@media (max-width: 768px) {

    /* Stack layout vertically */
    .brand-intro .intro-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    /* Inline image scaling */
    .brand-intro .intro-inline-img {
        width: 100%;
        max-width: 340px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    /* Text block full width */
    .brand-intro .intro-text {
        width: 100%;
        padding: 0 20px;
        text-align: center;
    }

    /* MOBILE TOGGLE BUTTON — visible only on phone */
    .mobile-toggle-desc {
        display: block !important;
        width: 100%;
        padding: 12px 16px;
        background: var(--brand-darkpurple);
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 14px;
        text-align: center;
    }

    /* Description collapsed by default */
    .intro-description {
        display: none;
        margin-top: 10px;
        text-align: left;
        background: none;
        padding: 16px;
        color: white;
        border-radius: 8px;
        line-height: 1.55;
    }

    /* When JS toggles it */
    .intro-description.active {
        display: block;
    }

    /* Contact link styling */
    .inline-contact {
        display: inline-block;
        margin-top: 12px;
        font-weight: 700;
        color: white;
    }
}
@media (min-width: 1024px) {
  .mobile-toggle-desc {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .intro-description {
    max-height: none !important;
    display: block !important;
    opacity: 1 !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;
    }




@media (max-width: 768px) {

    /* Turn list into horizontal slider */
    .mobile-rotator {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 40px 0;
    }

    /* Each item becomes a slide */
    .mobile-rotator .adv-item {
        min-width: 95%;
        scroll-snap-align: center;
        padding: 18px;
        background: white;
        color: black;
        border-radius: 4px;
        
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        text-align: left;
    }

    /* Remove left/right animation offsets on mobile */
    .adv-left,
    .adv-right {
        transform: none !important;
        opacity: 1 !important;
    }

    /* Center title on mobile */
    .adv-title {
        text-align: center;
        padding: 0 20px;
    }

    /* Checkmark styling */
    .adv-check {
        font-size: 22px;
        margin-bottom: 10px;
        color: #6a2cff;
    }
}
@media (max-width: 768px) {

    /* Hide all items by default */
    .adv-list .adv-item {
        display: none;
    }

    /* Show the active one */
    .adv-list .adv-item.active {
        display: block;
    }

    /* Center and clean up mobile layout */
    .adv-list {
        text-align: center;
        padding: 0 20px;
    }

    .adv-check {
        font-size: 26px;
        margin-bottom: 10px;
        color: #6a2cff;
    }
}
@media (max-width: 768px) {

    /* Make each rotating item a horizontal row */
    .adv-list .adv-item {
        display: none; /* hidden by default */
        flex-direction: row;
        align-items: center; /* vertically center checkmark */
        gap: 14px;
        text-align: left;
    }

    /* The active one shows */
    .adv-list .adv-item.active {
        display: flex;
    }

    /* Checkmark styling */
    .adv-check {
        font-size: 26px;
        flex-shrink: 0;
        color: #6a2cff;
        line-height: 1;
        margin: 0;
    }

    /* Text paragraph */
    .adv-item p {
        margin: 0;
        line-height: 1.45;
    }
}

@media (max-width: 768px) {
    .adv-list .adv-item.active {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        
       
        padding: 20px;
        margin: 22px;
        width: 100%;
        max-width: 820px;
        margin: 10px auto;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        box-sizing: border-box; /* keeps text inside */
        word-wrap: break-word;  /* prevents overflow */
    }

    .adv-check {
        font-size: 26px;
        flex-shrink: 0;
        color: #6a2cff;
        line-height: 1;
        margin: 0;
    }

    .adv-item p {
        margin: 0;
        line-height: 1.45;
        flex: 1; /* allows text to wrap properly */
        text-align: left;
    }
  }




    /* ============================
       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;
        height:100px;
        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;
    }
}
/* ============================
   WHY CHOOSE US — MOBILE MODE
============================ */
@media (max-width: 768px) {

  /* Hide desktop grid */
  .why-grid {
    display: none !important;
  }

  /* Show mobile rotator */
  .why-rotate-mobile {
    display: block !important;
    width: 100%;
  }

  /* Mobile cards */
  .why-rotate-mobile .why-card {
    display: none; /* JS will show one */
    width: 90%;
    margin: 0 auto 20px auto;
    padding: 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #fff;
    text-align: center;
    transform: translateX(-10px);
  }

  /* Dots */
  .why-rotate-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }

  .why-rotate-dots .dot {
    width: 10px;
    height: 10px;
    background: var(--brand-purple);
    border-radius: 50%;
    opacity: 0.4;
  }

  .why-rotate-dots .dot.active {
    opacity: 1;
  }
}
@media (max-width: 768px) {
  /* Hide the desktop grid */
  .why-grid {
    display: none !important;
  }

  /* Show the mobile rotator */
  .why-rotate-mobile {
    display: block !important;
    width: 100%;
  }

  /* Style each card for mobile */
  .why-rotate-mobile .why-card {
    display: none; /* JS will show one at a time */
    width: 90%;
    margin: 0 auto 20px;
    padding: 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #fff;
    text-align: center;
  }

  /* Dots below the cards */
  .why-rotate-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }

  .why-rotate-dots .dot {
    width: 10px;
    height: 10px;
    background: var(--brand-purple);
    border-radius: 50%;
    opacity: 0.4;
  }

  .why-rotate-dots .dot.active {
    opacity: 1;
  }
}
/* ============================
   WHY CHOOSE US — SMALLER PHONES
============================ */
@media (max-width: 480px) {

  .why-rotate-mobile .why-card {
    width: 95%;
    margin: 0 auto 16px;
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .why-rotate-dots {
    gap: 6px;
    margin-top: 10px;
  }

  .why-rotate-dots .dot {
    width: 8px;
    height: 8px;
  }

  .why-title span {
    display: block;
    font-size: 3.5rem;
  }

  .why-description,
  .why-summary {
    font-size: 0.9rem;
    padding: 0 10px;
  }
}
/* ============================
   WHY CHOOSE US — ULTRA SMALL SCREENS
============================ */
@media (max-width: 480px) {
  .why-grid {
    display: none !important;
  }

  .why-rotate-mobile {
    display: block !important;
    width: 100%;
    padding: 0 8px;
  }

  .why-rotate-mobile .why-card {
    display: none; /* JS will show one */
    width: 100%;
    margin: 0 auto 14px;
    padding: 14px;
    font-size: 0.85rem;
    line-height: 1.35;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff;
    text-align: center;
  }

  .why-rotate-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
  }

  .why-rotate-dots .dot {
    width: 8px;
    height: 8px;
    background: var(--brand-purple);
    border-radius: 50%;
    opacity: 0.4;
  }

  .why-rotate-dots .dot.active {
    opacity: 1;
  }

  .why-title span {
    display: block;
    font-size: 3.3rem;
  }

  .why-description,
  .why-summary {
    font-size: 0.85rem;
    padding: 0 8px;
  }
  /* Summary */
.why-summary {
    text-align: left;
    max-width: 900px;
    margin: 22px auto;
    font-size: 1.15rem;
    line-height: 1.6;
}
}
/* ============================
   WHY CHOOSE US — STANDARD PHONES (Galaxy S9, iPhone 12 Mini)
============================ */
@media (max-width: 600px) {
  .why-grid {
    display: none !important;
  }

  .why-rotate-mobile {
    display: block !important;
    width: 100%;
    padding: 0 12px;
  }

  .why-rotate-mobile .why-card {
    display: none; /* JS will show one */
    width: 95%;
    margin: 0 auto 18px;
    padding: 18px;
    font-size: 0.95rem;
    line-height: 1.45;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #fff;
    text-align: center;
  }

  .why-rotate-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }

  .why-rotate-dots .dot {
    width: 9px;
    height: 9px;
    background: var(--brand-purple);
    border-radius: 50%;
    opacity: 0.4;
  }

  .why-rotate-dots .dot.active {
    opacity: 1;
  }

  .why-title span {
    display: block;
    font-size: 3.5rem;
  }

  .why-description,
  .why-summary {
    font-size: 1.1rem;
    padding: 0 12px;
  }
  /* Description */
.why-description {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 90px auto;
    font-size: 1.1rem;
    line-height: 1.6;
}
}
/* =============================== */
/* WHY CHOOSE US — ARROWS (MOBILE) */
/* =============================== */

/* Default: hide on desktop */
.why-arrows {
  display: none;
}

/* Mobile: show arrows */
@media (max-width: 768px) {
  .why-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    margin: 10px auto -100px;
    z-index: 10;
  }

  .why-arrow {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--brand-lightpurple);
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease;
  }

  .why-arrow:active {
    transform: scale(1.2);
  }
}
/* MOBILE: force slider mode */
@media (max-width: 768px) {
 

  .why-card.active {
    display: block !important; /* only the active one shows */
  }
}
@media (max-width: 768px) {
  .why-dot {
    width: 10px;
    height: 10px;
    background: #777;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    transition: background 0.3s ease;
  }

  .why-dot.active {
    background: var(--brand-lightpurple);
  }
  .brand-statement .big {
    font-size: 0.69rem;
    font-weight: 700;
    color: white;
    font-style: italic;
    font-family: var(--font-sans);
}
}

/* ============================================
   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;
    }

    @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;
  }

  .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;
  }
}

/* ========================= */
/*   MOBILE — CLEAN + VISIBLE */
/* ========================= */
@media (max-width: 600px) {
  .metal-grp-row {
    display: flex;
    flex-direction: column; /* stack text above image */
    align-items: center;
    gap: 30px; /* spacing between text and image */
  }

  .metal-grp-header {
    text-align: center;
    padding: 0 20px;
  }

  .metal-grp-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .metal-grp-header p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .metal-grp-grid {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .grp-card {
    max-width: 320px;
  }

  .grp-img-wrap img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .grp-label {
    text-align: center;
    font-size: 0.95rem;
    margin-top: 10px;
  }

  .metal-grp-section {
    padding: 50px 0;
  }
}

@media (max-width: 768px) {

  /* Section must not clip content */
  .metal-advantages-section {
    padding: 3rem 0;
    overflow: visible !important;
    position: relative;
  }
  .purple {
  background: white;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

  /* Disable parallax on mobile */
  .hero-bg {
    background-attachment: scroll !important;
  }

  /* Ensure content sits ABOVE overlays */
  .metal-advantages-inner {
    position: relative;
    z-index: 5 !important;
    padding: 0 1.5rem;
    text-align: left;
  }

  /* Title always visible */
  .adv-title {
    opacity: 1 !important;
    transform: none !important;
    font-size: 2rem;
    text-align: left;
    margin-bottom: 1.5rem;
  }

  /* LIST — always visible, stacked, readable */
  .adv-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
    margin-top: 1rem;
    opacity: 1 !important;
    transform: none !important;
    height: auto !important;
    z-index: 10 !important;
  }

  /* EACH ITEM — visible, aligned, readable */
  .adv-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0.7rem !important;
    opacity: 1 !important;
    transform: none !important;
    color: rgba(255,255,255,0.95) !important;
  }

  .adv-check {
    font-size: 1.4rem !important;
    flex-shrink: 0;
  }

  .adv-item p {
    font-size: 1rem !important;
    line-height: 1.45 !important;
    margin: 0;
  }

  /* IMAGE ROW — tighter spacing for mobile */
  .adv-image-row {
    margin-top: 2rem !important;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem !important;
  }
  

  .adv-thumb {
    width: 32% !important;
    border-radius: 8px;
  }

  /* Disable ALL animations on mobile */
  .animate-on-scroll,
  .adv-left,
  .adv-right {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
/* ========================= */
/*   MOBILE — EXCEEDING STANDARDS */
/* ========================= */

@media (max-width: 768px) {
  .metal-standards-section {
    position: relative;
    padding: 3rem 0 2rem;
    overflow: visible;
  }

  .metal-standards-bg {
    background-attachment: scroll !important;
    filter: brightness(0.85);
  }

  .metal-standards-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.8)
    );
  }

  .metal-standards-inner {
    position: relative;
    z-index: 5;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 1.2rem;
    text-align: left;
  }

  .standards-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    opacity: 1 !important;
    transform: none !important;
  }

  .section-description {
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    opacity: 1 !important;
    transform: none !important;
  }

  .standards-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
  }

  .shield-img {
    width: 85%;
    max-width: 360px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    border: 2px solid var(--brand-darkpurple);
    opacity: 1 !important;
    transform: none !important;
  }

  /* Disable scroll animations on mobile */
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ========================= */
/*   MOBILE ROTATOR FIX      */
/* ========================= */

@media (max-width: 768px) {

  /* Hide desktop grid */
  .why-grid {
    display: none !important;
  }

  /* Show mobile rotator */
  .why-rotate-mobile,
  .why-rotate-dots,
  .why-arrows {
    display: block !important;
  }

  /* Make sure rotator has height */
  .why-rotate-mobile {
    width: 100%;
    min-height: 220px;
    position: relative;
    z-index: 5;
  }

  /* Ensure arrows appear */
  .why-arrows {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0 1rem;
    z-index: 10;
  }

  .why-arrow {
    font-size: 2rem;
    color: white;
    opacity: 0.8;
  }

  /* Ensure dots appear */
  .why-rotate-dots {
    display: flex !important;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
  }

  .why-rotate-dots div {
    width: 10px;
    height: 10px;
    background: white;
    opacity: 0.4;
    border-radius: 50%;
  }

  .why-rotate-dots .active {
    opacity: 1;
    background: var(--brand-darkpurple);
  }
}

/* ========================= */
/*   MOBILE ROTATOR          */
/* ========================= */

@media (max-width: 768px) {

  /* Hide desktop grid */
  .why-grid {
    display: none !important;
  }

  /* Show mobile slider */
  .why-rotate-mobile {
    display: block !important;
    width: 100%;
    min-height: 240px;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
  }

  /* Each card inside slider */
  .why-rotate-mobile .why-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 1.4rem;
    border-radius: 12px;
    width: 90%;
    margin: 0 auto;
    color: white;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }

  /* Arrows */
  .why-arrows {
    display: flex !important;
    justify-content: space-between;
    padding: 0 1.5rem;
    margin-top: 1rem;
  }

  .why-arrow {
    font-size: 2.2rem;
    color: white;
    opacity: 0.8;
  }

  /* Dots */
  .why-rotate-dots {
    display: flex !important;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
  }

  .why-rotate-dots div {
    width: 10px;
    height: 10px;
    background: white;
    opacity: 0.4;
    border-radius: 50%;
  }

  .why-rotate-dots .active {
    opacity: 1;
    background: var(--brand-darkpurple);
  }
}
@media (max-width: 768px) {
  .why-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    padding: 0 1rem;
    z-index: 20;
  }

@media (max-width: 768px) {
  .why-arrows {
    position: absolute;
    top: 65%; /* LOWER the arrows */
    left: 0;
    right: 0;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    padding: 0 1rem;
    z-index: 20;
  }

  .why-arrow {
    font-size: 3.2rem;
    color: white;
    opacity: 0.8;
    background: rgba(0,0,0,0.25);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }

  .why-rotate-mobile {
    position: relative; /* required for absolute arrows */
  }
}


  .why-arrow:hover {
    opacity: 1;
    background: var(--brand-darkpurple);
  }

  /* Ensure the rotator container allows absolute positioning */
  .why-rotate-mobile {
    position: relative;
  }
}
@media (max-width: 768px) {
  .standards-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
  }

  .shield-img {
    width: 92%;
    max-width: 360px;
    border-radius: 10px;

    /* Thinner border that hugs the photo */
    border: 0.6px solid var(--brand-darkpurple);

    /* Remove any extra padding or spacing */
    padding: 0;
    margin: 0;

    /* Softer shadow for depth without heaviness */
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);

    object-fit: cover;
    display: block;
  }
}

/* MOBILE: hide toggle button and force description visible */
@media (max-width: 768px) {
    .mobile-toggle-desc {
        display: none !important;
    }

    .intro-description {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
    }
}

@media (max-width: 600px) {
    .standards-title span {
        display: block !important;
        text-align: left !important; /* changed from center */
        width: 100% !important;
        padding-left: 22px;
    }
}
@media (max-width: 600px) {
  .standards-title {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .standards-title span {
    text-align: left !important;
    padding-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; 
    }
}