/* Client Logos Grid */
.client-logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  max-width: 700px;
  margin: 32px auto 40px auto;
  align-items: center;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px #22c55e22;
  border: 2px solid #22c55e22;
  padding: 18px 10px;
  min-height: 120px;
}
.client-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
}
/* Brand Logo Scroller */
.brand-area {
  background: #fff;
  padding: 32px 0 24px 0;
  margin-top: 32px;
}
.brand-scroller {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.brand-track {
  display: flex;
  width: max-content;
  animation: brand-scroll 18s linear infinite;
}
.brand-logo {
  flex: 0 0 auto;
  margin: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 8px #22c55e22;
  border: 2px solid #22c55e;
  padding: 8px 18px;
  transition: transform 0.2s;
}
.brand-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  filter: grayscale(0.2) contrast(1.1);
  opacity: 0.9;
  transition: filter 0.2s, opacity 0.2s;
}
.brand-logo:hover img {
  filter: grayscale(0) contrast(1.2);
  opacity: 1;
}
@keyframes brand-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Hero Slideshow Dots */
.top-contact-bar {
  background: #1c1c1c; /* dark background like screenshot */
  color: #fff;
  font-size: 0.95rem;
  padding: 10px 0;
}

.top-contact-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Contact items */
.top-contact-bar span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.top-contact-bar a {
  color: #fff;
  text-decoration: none;
}

.top-contact-bar a:hover {
  text-decoration: underline;
}

/* Social icons */
.top-contact-bar .social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-contact-bar .social-icons a {
  color: #fff;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.top-contact-bar .social-icons a:hover {
  color: #22c55e; /* hover effect green */
}

.top-contact-bar i {
  margin-right: 6px;
  color: #fff;
}
.top-contact-bar a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.2s;
}
.top-contact-bar a:hover {
  color: #1e272e;
}
.slideshow-dots {
  margin-top: 24px;
  text-align: center;
}
.slideshow-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: #fff6;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  border: 2px solid #22c55e;
}
.slideshow-dots .dot.active {
  background: #ffa400;
  transform: scale(1.2);
  background: #22c55e;
}

/* Introduction Highlights */
.intro-highlights {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 32px 0 24px 0;
  flex-wrap: wrap;
}
.intro-highlights .highlight {
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  padding: 14px 24px;
  font-weight: 600;
  color: #1e272e;
  box-shadow: 0 2px 8px #ffa40022;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
}
.intro-highlights .highlight i {
  color: #ffa400;
  font-size: 1.2rem;
  color: #22c55e;
}

/* Extra Categories */
.categories-extra {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.categories-extra .extra-card {
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 600;
  color: #1e272e;
  box-shadow: 0 2px 8px #ffa40022;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.categories-extra .extra-card i {
  color: #ffa400;
  font-size: 1.1rem;
  color: #22c55e;
}

/* Testimonial CTA */
.testimonial-cta {
  margin-top: 32px;
  text-align: center;
  font-size: 1.08rem;
}
.testimonial-cta a {
  color: #ffa400;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
  color: #22c55e;
}
.testimonial-cta a:hover {
  color: #e69500;
  color: #16a34a;
}

/* CTA Icons */
.cta-icons {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-size: 1.08rem;
  color: #1e272e;
}
.cta-icons i {
  color: #ffa400;
  font-size: 1.2rem;
  margin-right: 6px;
  color: #22c55e;
}
/*
 * Custom stylesheet for National Scrap Solutions
 *
 * A clean, modern design using a neutral colour palette with
 * metallic undertones to reflect the recycling and scrap‑management
 * business. The layout is responsive and optimised for desktop
 * and mobile devices. Icons are provided via Font Awesome and
 * additional decorative imagery is located in the assets/images
 * folder.
 */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ef 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Navigation */
header {
  background: linear-gradient(90deg, #1e272e 60%, #ffa400 100%);
  color: #ffffff;
  padding: 18px 0 15px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(30,39,46,0.08);
  backdrop-filter: blur(6px);
  background: linear-gradient(90deg, #22223b 60%, #22c55e 100%);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.navbar h1 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #22c55e 30%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar ul {
  display: flex;
  align-items: center;
}

.navbar ul li a {
  color: #ffffff;
  padding: 8px 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  color: #22c55e;
  text-shadow: 0 2px 8px #22c55e44;
}

/* Mobile menu icon hidden by default */
.menu-icon {
  display: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero section */


.hero {
  position: relative;
  min-height: 60vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 32px rgba(30,39,46,0.12);
  animation: fadeInHero 1.2s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transition: opacity 1s ease-in-out;
}

.hero.fade {
  opacity: 0;
}


@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}


.hero .content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  z-index: 1;
  background: rgba(30,39,46,0.32);
  border-radius: 18px;
  padding: 40px 36px 36px 36px;
  box-shadow: 0 8px 32px rgba(30,39,46,0.10);
  backdrop-filter: blur(2px);
  animation: fadeInUp 1.2s 0.2s cubic-bezier(.4,0,.2,1) both;
  text-align: center;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

.hero h2 {
  font-size: 3.2rem;
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffa400 30%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 24px #0004;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Hero style changes new */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-bg.fade-in {
  opacity: 1;
  z-index: 2;
}

.hero .content {
  position: relative;
  z-index: 3; /* keep text above images */
  padding: 2rem;
  color: white;
}




.btn {
  display: inline-block;
  background: linear-gradient(90deg, #22c55e 60%, #bbf7d0 100%);
  color: #1e272e;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px #ffa40033;
  border: none;
  letter-spacing: 0.5px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  cursor: pointer;
}

.btn:hover {
  background: linear-gradient(90deg, #16a34a 60%, #bbf7d0 100%);
  color: #fff;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 32px #ffa40044;
}

/* Section generic styles */

.section {
  padding: 70px 20px 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeInSection 1.2s cubic-bezier(.4,0,.2,1);
}

@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

.section h3 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  color: #1e272e;
  font-weight: 700;
}

/* Process section */
.process {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}


.process .step {
  flex: 1 1 250px;
  background: rgba(255,255,255,0.7);
  padding: 32px 22px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(30,39,46,0.10);
  backdrop-filter: blur(2px);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeInUp 1.2s cubic-bezier(.4,0,.2,1);
}

.process .step:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 48px #ffa40033;
}

.process .step h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #1e272e;
  font-weight: 600;
}

.process .step p {
  font-size: 1rem;
  color: #555555;
  line-height: 1.4;
}

/* Categories section */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}


.categories .card {
  background: rgba(255,255,255,0.7);
  padding: 32px 22px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(30,39,46,0.10);
  backdrop-filter: blur(2px);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeInUp 1.2s cubic-bezier(.4,0,.2,1);
}

.categories .card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 48px #ffa40033;
}

.categories .card i {
  /* Placeholder for font icons removed */
}

/* Icon images for categories and feature blocks */
.categories .card img.icon {
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
}

.process .step img.icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.step i {
  /* Remove default styles for i when using inline icons */
}

.categories .card h4 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #1e272e;
  font-weight: 600;
}

.categories .card p {
  font-size: 1rem;
  color: #555555;
  line-height: 1.4;
}

/* Testimonials section */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}


.testimonials .testimonial {
  flex: 1 1 300px;
  background: rgba(255,255,255,0.7);
  padding: 32px 22px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(30,39,46,0.10);
  backdrop-filter: blur(2px);
  animation: fadeInUp 1.2s cubic-bezier(.4,0,.2,1);
}

.testimonials .testimonial p {
  font-style: italic;
  margin-bottom: 15px;
  color: #555555;
  line-height: 1.5;
}

.testimonials .testimonial h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e272e;
  margin-bottom: 5px;
}

.testimonials .testimonial span {
  font-size: 0.9rem;
  color: #777777;
}

/* Footer */

.footer {
  background: linear-gradient(90deg, #1e272e 60%, #ffa400 100%);
  color: #ffffff;
  padding: 48px 20px 40px 20px;
  margin-top: 70px;
  box-shadow: 0 -4px 24px rgba(30,39,46,0.08);
  backdrop-filter: blur(6px);
  background: linear-gradient(90deg, #22223b 60%, #22c55e 100%);
}

.footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.footer .col {
  flex: 1 1 200px;
}

.footer h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #22c55e;
}

.footer a {
  display: block;
  color: #ffffff;
  margin-bottom: 8px;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer a:hover {
  color: #22c55e;
}

/* Contact form */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 24px;
  background: rgba(255,255,255,0.7);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(30,39,46,0.10);
  backdrop-filter: blur(2px);
  animation: fadeInUp 1.2s cubic-bezier(.4,0,.2,1);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1rem;
  width: 100%;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form button {
  background-color: #22c55e;
  color: #ffffff;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #16a34a;
}

/* Responsive styles */
@media (max-width: 900px) {
  .hero .content {
    max-width: 98vw;
    padding: 24px 4vw;
  }
}

@media (max-width: 768px) {
  #nav-list li:last-child{
    margin:0 !important;
  }
  .navbar h1 a{
    font-size: 1.0rem !important;
  }
  .navbar ul {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: black;
    display: none;
    box-shadow: 0 8px 32px rgba(30,39,46,0.10);
    border-radius: 0 0 18px 18px;
  }

  .navbar ul.show {
    display: flex;
  }

  .navbar .menu-icon {
    display: block;
  }

  .navbar ul li a {
    padding: 16px 20px;
  }

  .hero {
    min-height: 40vh;
    width: 100%;
    justify-content: center;
  }

  .hero .content {
    margin: 0 auto;
    text-align: center;
    padding: 0 6px;
    max-width: 99vw;
  }

  .process .step {
    flex: 1 1 100%;
  }

  .testimonials .testimonial {
    flex: 1 1 100%;
  }
}

/* Hide submenu by default */
.navbar ul li ul {
    display: none;
    position: absolute; 
    background: #fff;   /* adjust background */
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;   /* keeps submenu wide enough */
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Show submenu on hover */
.navbar ul li.dropdown:hover > ul {
    display: block;
}

/* Submenu links styling */


.navbar ul li ul li a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
}

.navbar ul li ul li a:hover {
    background: #f0f0f0;
    color: #000;
}


/* Map Section */
/* Map Section - Full Screen Width, 600x600 */
.map-section {
    width: 100vw;
    height: 600px;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.map-section iframe {
    width: 100vw;
    height: 600px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    display: block;
}

/* Hero Slideshow Images / Intro section */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* behind content */
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  opacity: 0;
  animation: slideAnimation 12s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }

@keyframes slideAnimation {
  0% { opacity: 0; transform: scale(1.05); }
  8% { opacity: 1; transform: scale(1); }
  33% { opacity: 1; transform: scale(1); }
  41% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(0.95); }
}


        /* Hero Slideshow Overrides */
        .hero {
            position: relative;
            min-height: 60vh;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            overflow: hidden;
        }
        .hero .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: opacity 1.2s ease-in-out;
            opacity: 0;
        }
        .hero .content {
            position: relative;
            z-index: 1;
            text-align: center;
            max-width: 700px;
            margin: 0 auto;
            padding: 40px 36px 36px 36px;
            background: rgba(30,39,46,0.32);
            border-radius: 18px;
            box-shadow: 0 8px 32px rgba(30,39,46,0.10);
            backdrop-filter: blur(2px);
        }
  

    /* Gallery Card Grid and Photo card*/
/* Gallery Card Grid */
#gallery {
    text-align: center;
    margin: 60px auto;
    max-width: 1400px;
    padding: 0 16px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Image styling */
.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Transparent overlay effect */


.card h4 {
    margin: 16px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Hover Effects */
.card:hover {
    transform: translateY(-6px);
}

.card:hover img {
    transform: scale(1.05);
}



/* --- Product card hover overlay --- */
.card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:16px;
}

.card{
  position:relative;
  overflow:hidden;
  border-radius:14px;
  background:#fff;
  box-shadow:0 6px 22px rgba(0,0,0,.08);
  transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform:translateY(-3px); box-shadow:0 14px 38px rgba(0,0,0,.12); }

.card img{
  display:block;
  width:100%;
  height:220px;
  object-fit:cover;
  transition: transform .45s ease;
}
.card:hover img{ transform:scale(1.06); }

/* overlay */
.card .overlay{
  position:absolute; inset:0;
  background:linear-gradient( to top, rgba(0,0,0,.65) 15%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:14px;
  transform:translateY(100%);
  transition:transform .35s cubic-bezier(.22,.61,.36,1);
}
.card:hover .overlay,
.card:focus-within .overlay{ transform:translateY(0); }

.card .title{
  color:#fff; font-weight:700; font-size:1.05rem; margin:0 0 6px;
  text-shadow:0 1px 2px rgba(0,0,0,.25);
}
.card .desc{
  color:#e8e8e8; font-size:.9rem; line-height:1.35; margin:0 0 10px;
}

/* button */
.card .btn{
  display:inline-block;
  background:#f4a701;
  color:#1a1a1a;
  font-weight:700;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  transition:filter .2s ease, transform .2s ease;
}
.card .btn:hover{ filter:brightness(0.95); transform:translateY(-1px); }
.card .btn:active{ transform:translateY(0); }

/* Touch devices: show a compact overlay by default */
@media (hover: none){
  .card .overlay{ transform:translateY(0); background:linear-gradient( to top, rgba(0,0,0,.55) 10%, rgba(0,0,0,.2) 55%, rgba(0,0,0,0) 100%); }
}
