
/* =========================
   HERO VIDEO
========================= */
.hero {
  background: rgba(32, 32, 32, 0.046);
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}



/* Video */
#heroVideo {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: opacity 1s ease;
}

/* Content */
.hero-content {
   max-width: 1000px;
  padding: 40px 24px;
  z-index: 1;
}

.hero-content h1 {
   font-size: clamp(28px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
 
}

.hero-content p {
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 300;
  color: #e0e0e0;
  line-height: 1.6;
  margin-top: 30px;
  
}


@media (max-width: 1024px) {
  .hero {
    height: 50vh; /* tablet */
    margin-top: -60px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 45vh; /* mobile */
       margin-top: -60px;
       text-align: left;
  }
}



/* =========================
   HERO 2 / ABOUT
========================= */
.hero2 {
  background: #fafafa;
}

.section-hero2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding: 64px 60px;
}

.div-1 {
  flex: 1 1 420px;
  min-width: 0;
}

.div-2 {
  flex: 1 1 340px;
  text-align: center;
  min-width: 0;
}

.div-1 h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  margin-bottom: 14px;
  line-height: 1.35;
  color: #111;
}

.div-1 h4 {
  font-size: clamp(16px, 1.8vw, 21px);
  margin-bottom: 14px;
  color: #555;
  line-height: 1.4;
}

.div-1 p {
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.75;
  margin-bottom: 14px;
  color: #333;
}

.home-img1 {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 4px;
}

.btn-1 {
  display: inline-block;
  padding: 11px 28px;
  border: 2px solid #000;
  border-radius: 25px;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 15px;
  margin-top: 18px;
  transition: all 0.3s ease;
}

.btn-1:hover {
  background: #000;
  color: #fff;
}

/* =========================
   HERO 3
========================= */
.hero3 {
  padding: 60px 60px 40px;
  text-align: left;
  max-width: 1400px;
  margin: 0 auto;
}

.hero3 h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  margin-bottom: 18px;
  color: #111;
  line-height: 1.3;
}

.hero3 p {
  font-size: clamp(14px, 1.2vw, 17px);
  margin-bottom: 12px;
  color: #333;
  line-height: 1.75;
}

.home-img2 {
  width: 90%;
  max-width: 960px;
  margin: 40px auto 30px;
  display: block;
}

.hero3 hr {
  border: none;
  border-top: 1px solid #ddd;
  margin-top: 20px;
}


/* =========================
   PRODUCTS (PREMIUM GRID)
========================= */
.hero4 {
  background: #ffffff;
  text-align: center;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 60px);
}

.hero4 h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  margin-bottom: clamp(25px, 4vw, 50px);
  color: #111;
}

/* GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* smaller width */
  gap: 120px;
  max-width: 1100px; /* controls overall width */
  margin: 0 auto;
}

/* CARD */
.product1 {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

/* LINK */
.product1 a {
  text-decoration: none;
  color: #fff;
  display: block;
  position: relative;
}

/* IMAGE */
.product1 img {
  width: 100%;
  height: clamp(220px, 25vw, 300px); /* responsive box height */
  object-fit: contain; /* IMPORTANT: no crop */
  background: #ffffff; /* fills empty space nicely */
  padding: 10px; /* breathing space */
  display: block;
  transition: transform 0.4s ease;
}

/* ZOOM ON HOVER */
.product1:hover img {
  transform: scale(1.08);
}

/* CURTAIN OVERLAY */
.product1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.5s ease;
  z-index: 1;
}

/* SHOW CURTAIN */
.product1:hover::before {
  transform: translateY(0);
}

/* TEXT */
.product1 h4 {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 40px);
  width: 90%;
  text-align: center;
  font-size: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
}

/* TEXT APPEAR */
.product1:hover h4 {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* MOBILE FIX */
@media (max-width: 600px) {
  .product1 h4 {
    font-size: 14px;
    padding: 10px;
  }
}


/* =========================
   APPLICATIONS
========================= */
.hero5 {
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.62)),
    url("../RM-images/home-page-images/home-application-backgro-img1.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 70px 48px;
}

.hero5 h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  margin-bottom: 44px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.item img {
  width: 120px;
  margin: 0 auto 12px;
}

.item h4 {
  font-size: 15px;
  font-weight: 500;
}


/* ===== FOOTER ===== */
.site-footer {
    background-color: #000000;
    color: white;
    padding: 40px 40px 20px;
}

.company-name {
    font-size: clamp(22px, 3vw, 38px);
    margin-bottom: 10px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    font-size: 14px;
    width: 100%;
}

.footer-col { min-width: 0; }

.footer-col h4 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-col a,
.footer-col p {
    display: block;
    margin: 6px 0;
    color: white;
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.6;
}

.footer-col a:hover { color: #aaaaaa; }

.line, .line2 {
    border: none;
    border-top: 1px solid #333;
    margin-bottom: 14px;
}

/* Contact form */
.contact-form h4 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-form input {
    width: 100%;
    padding: 9px 12px;
    margin-bottom: 10px;
    background: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
}

.contact-form input:focus { border-color: #666; }
.contact-form ::placeholder { color: #888; }

.contact-form button {
    width: 65%;
    font-size: 0.95rem;
    padding: 8px 10px;
    border-radius: 5px;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.contact-form button:hover { opacity: 0.8; }

/* Social icons */
.footer-socials2 {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.whatsapp-icon1,
.linkedin-icon1,
.facebook-icon1,
.instagram-icon1 {
    font-size: 26px;
    background: #000000;
    color: #fff;
    padding: 8px;
    border-radius: 8px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-icon1:hover,
.linkedin-icon1:hover,
.facebook-icon1:hover,
.instagram-icon1:hover {
    transform: scale(1.1);
    background: #222;
}

.whatsapp-icon2 {
    position: fixed;
    bottom: 30px; right: -10px;
    font-size: 44px;
    color: #ffffff;
    background-color: #25D366;
    padding:  10px 30px 10px 20px;
    border-radius: 10px;
    z-index: 999;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    transition: transform 0.2s;
}

.whatsapp-icon2:hover { transform: scale(1.1); }

/* Footer bottom */
.site-footer2 {
    background: #ffffff;
    color: #000000;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.site-footer2 p { font-size: 13px; line-height: 1.5; margin: 0; }

/* ==============================
   TABLET (769px – 1100px)
   ============================== */
@media (max-width: 1100px) and (min-width: 769px) {

    .column-a { padding: 0 24px 0 36px; }

    .column-b { flex: 0 0 240px; width: 240px; }

    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

    .image-grid { grid-template-columns: repeat(2, 1fr); }

    .hero3 { padding: 40px 36px 50px; }

    .contact-form input {
      width: 90%;
    }
}

/* ==============================
   MOBILE (≤ 768px)
   ============================== */
@media (max-width: 768px) {

    /* Top bar */
    .header-1 {
        gap: 10px;
        padding: 6px 16px;
    }

    .mail-link1 { font-size: 11.5px; }

    /* Header */
    header.header {
        justify-content: space-between;
        padding: 0 18px;
        height: 56px;
    }

    .navbar { display: none; }
    .hamburger { display: flex; }

    /* Sub header */
    .sub-header { padding: 5px 16px; }
    .sub-header-text1 { font-size: 10.5px; line-height: 1.5; }

    /* Hero 1 */
    .hero1 { height: 200px; }

    /* Hero 2 — stack columns */
    .hero2 { padding: 24px 0 30px; }

    .forge-fitting-page {
        flex-direction: column;
    }

    .column-a {
        padding: 0 20px;
        width: 100%;
    }

    .column-a p { font-size: 14.5px; margin-top: 16px; }

    .column-a img {
        max-width: 100%;
        margin-left: 0;
    }

    /* Product sidebar collapses to accordion */
    .column-b {
        flex: none;
        width: 100%;
        border-left: none;
        border-top: 2px solid #e0e0e0;
        position: static;
        max-height: none;
        overflow: visible;
        padding: 20px 20px 10px;
        background: #f7f7f7;
    }

    .hero2 hr { margin: 24px 20px 0; }

    /* Hero 3 */
    .hero3 { padding: 30px 20px 50px; }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .image-grid img { height: 160px; }

    /* Footer */
    .site-footer { padding: 28px 18px 20px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-col { width: 100%; }

    .contact-form { width: 90%; }

    .contact-form button { width: 60%; }

    .site-footer2 {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 18px;
    }

    .site-footer2 p { font-size: 12px; }
}

/* ===== SMALL PHONES (≤ 420px) ===== */
@media (max-width: 420px) {

    .hero1 h2 { font-size: 22px; }

    .image-grid { grid-template-columns: 1fr; }

    .image-grid img { height: 200px; }

    .mobile-menu { width: 88%; }

    .column-b a { font-size: 12px; }
}

/* ===== DESKTOP ONLY ===== */
@media (min-width: 769px) {
    .mobile-menu,
    .hamburger {
        display: none !important;
    }
}




/* ===== TABLETS (iPad, 768px – 1024px) ===== */
@media (max-width: 1024px) {
    .hero3 {
        padding: 40px 40px 50px;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 20px;
    }

    .image-grid img {
        height: 200px;
        width: 170px;
        margin-top: 20px;
    }
}


/* ===== MOBILE DEVICES (below 768px) ===== */
@media (max-width: 768px) {
    .hero3 {
        padding: 30px 20px 40px;
    }

    .hero3 h3 {
        text-align: center;
        margin-bottom: 20px;
    }

    .image-grid {
        grid-template-columns: 1fr; /* single column */
        gap: 18px;
    }

    .image-grid img {
        height: 200px;
    }

    .image-grid p {
        font-size: 13px;
    }
}


/* ===== SMALL MOBILE (below 480px) ===== */
@media (max-width: 480px) {
    .hero3 {
        padding: 25px 15px 30px;
    }

    .image-grid img {
        height: 180px;
        border-radius: 6px;
    }

    .image-grid p {
        font-size: 12px;
    }
}