
:root {
  --navy: #111c2c;
  --navy-light: #1b2a3d;
  --orange: #1E73BE;
  --text: #252d37;
  --muted: #687383;
  --light: #f4f6f8;
  --white: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Roboto Condensed', sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.container { width: min(1160px, 92%); margin-inline: auto; }

.topbar {
  background: var(--navy);
  color: #d9e0e9;
  font-size: 13px;
}
.topbar-inner {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topbar a { color: #fff; }

.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 18px #101d2c12;
}
.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: 25px; font-weight: 700; line-height: 1.1; flex-shrink: 0; }
.logo b { color: var(--orange); }
.logo small { display: block; font-size: 9px; letter-spacing: 2px; margin-top: 6px; }
.logo-mark {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  background: var(--orange); color: white;
  font-size: 21px; font-weight: 800;
  clip-path: polygon(0 0,100% 0,100% 75%,75% 100%,0 100%);
}
.nav { display: flex; align-items: center; gap: 23px; }
.nav > a { font-size: 15px; font-weight: 600; transition: color .2s; }
.nav > a:hover { color: var(--orange); }
.nav .nav-cta {
  background: var(--orange); color: white;
  padding: 12px 17px; border-radius: 3px;
}
.nav .nav-cta:hover { background: var(--navy); color: white; }
.menu-toggle {
  display: none; background: var(--navy); color: white;
  border: 0; border-radius: 4px; padding: 8px 13px;
  font-size: 23px; cursor: pointer;
}

.hero {
  min-height: 620px;
  position: relative;
  display: flex; align-items: center;
  background: #182434 url('https://images.unsplash.com/photo-1567789884554-0b844b597180?auto=format&fit=crop&w=2000&q=90') center/cover no-repeat;
  color: white;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #101b2bf2 0%, #101b2bd9 48%, #101b2b55 100%);
}
.hero-content { position: relative; z-index: 1; padding-block: 90px; }
.eyebrow {
  display: inline-block; color: #ff9a54;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  margin-bottom: 16px;
}
.eyebrow.dark { color: var(--orange); }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.12; max-width: 800px; font-weight: 800; }
.hero h1 span, .infrastructure h2 span { color: var(--orange); }
.hero-content > p { max-width: 620px; color: #e0e5ec; font-size: 18px; margin-top: 23px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 49px; padding: 12px 23px;
  border: 1px solid transparent; border-radius: 3px;
  font-weight: 700; cursor: pointer; transition: .25s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #c95d15; transform: translateY(-2px); }
.btn-outline { color: #fff; border-color: #ffffff80; }
.btn-outline:hover { background: white; color: var(--navy); }
.hero-note { font-size: 12px; letter-spacing: 2px; color: #c4ceda; margin-top: 55px; }

.trust-strip { background: var(--orange); color: white; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 22px; }
.trust-grid > div { padding: 4px 20px; border-right: 1px solid #ffffff55; }
.trust-grid > div:first-child { padding-left: 0; }
.trust-grid > div:last-child { border: 0; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-size: 18px; }
.trust-grid span { font-size: 13px; opacity: .88; }

.section { padding: 95px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 75px; }
.about-visual { position: relative; padding: 0 25px 25px 0; }
.about-visual::before { content: ""; position: absolute; right: 0; bottom: 0; width: 72%; height: 70%; background: var(--orange); z-index: -1; }
.about-visual img { width: 100%; height: 440px; object-fit: cover; }
.image-label {
  position: absolute; left: 20px; bottom: 45px;
  background: var(--navy); color: white; padding: 16px 24px;
}
.image-label strong, .image-label span { display: block; }
.image-label strong { font-size: 22px; }
.image-label span { color: #d2d9e1; font-size: 13px; }
h2 { font-size: clamp(32px, 3.5vw, 44px); line-height: 1.2; font-weight: 800; }
h2 span { color: var(--orange); }
.about-content > p { color: var(--muted); margin-top: 18px; }
.text-link { display: inline-block; margin-top: 24px; color: var(--orange); font-weight: 700; }

.products-section { background: var(--light); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.section-heading > p { color: var(--muted); max-width: 370px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.product-card { background: white; overflow: hidden; border: 1px solid #e8ebef; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 14px 35px #17233716; }
.product-card > img { width: 100%; height: 205px; object-fit: cover; background: #ddd; }
.product-info { position: relative; padding: 23px 20px 25px; }
.product-number { color: var(--orange); font-size: 12px; letter-spacing: 2px; font-weight: 700; }
.product-info h3 { font-size: 21px; line-height: 1.3; margin: 8px 0; }
.product-info p { font-size: 14px; color: var(--muted); min-height: 72px; }
.product-info a { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--orange); font-size: 14px; }

.cta-band { background: var(--navy); color: white; padding: 55px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.cta-inner .eyebrow { margin-bottom: 8px; }
.cta-inner h2 { font-size: clamp(27px, 3vw, 38px); }
.cta-inner p { color: #c8d0dc; margin-top: 8px; }

.certificates { background: white; }
.certificate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.certificate-card { border: 1px solid #e2e6eb; padding: 27px 23px; border-bottom: 3px solid var(--orange); }
.certificate-card > span { color: var(--orange); font-weight: 700; font-size: 13px; }
.certificate-card h3 { font-size: 22px; margin: 12px 0 6px; }
.certificate-card p, .small-note { color: var(--muted); font-size: 14px; }
.small-note { margin-top: 22px; }

.infrastructure { background: var(--navy); color: white; }
.infra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
.infrastructure h2 { margin-bottom: 20px; }
.infrastructure p { color: #c5ceda; }
.infra-list { list-style: none; margin: 24px 0 30px; }
.infra-list li { padding: 10px 0 10px 27px; border-bottom: 1px solid #ffffff18; position: relative; color: #e3e8ee; }
.infra-list li::before { content: "✓"; color: var(--orange); font-weight: 800; position: absolute; left: 0; }
.infra-image img { width: 100%; height: 480px; object-fit: cover; }

.contact-section { background: var(--light); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 75px; align-items: start; }
.contact-info > p { color: var(--muted); margin: 17px 0 30px; }
.contact-item { padding: 15px 0; border-bottom: 1px solid #dfe4ea; }
.contact-item > span { color: var(--orange); font-size: 12px; letter-spacing: 1.5px; font-weight: 700; display: block; }
.contact-item > a, .contact-item p { display: inline-block; margin-top: 5px; font-weight: 600; }
.contact-form { background: white; padding: 35px; box-shadow: 0 8px 35px #1522380c; }
.contact-form h3 { font-size: 29px; }
.contact-form > p { color: var(--muted); margin-bottom: 20px; }
.contact-form label { display: block; margin: 15px 0 6px; font-size: 14px; font-weight: 700; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; padding: 13px 14px;
  border: 1px solid #dce1e7; background: #fbfcfd; border-radius: 2px;
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--orange); }
.contact-form textarea { resize: vertical; }
.submit-btn { width: 100%; margin-top: 20px; }
.contact-form small { display: block; color: var(--muted); font-size: 12px; margin-top: 12px; }

.footer { background: #0b1420; color: #cbd3dd; padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-logo { color: white; }
.footer-inner > p, .footer-inner > span { font-size: 13px; }

.back-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 43px; height: 43px; display: grid; place-items: center;
  background: var(--orange); color: white; border-radius: 3px; font-size: 22px;
}

@media (max-width: 1050px) {
  .nav { gap: 13px; }
  .nav > a { font-size: 14px; }
  .logo { font-size: 22px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .infra-grid { gap: 40px; }
}

@media (max-width: 800px) {
  .topbar-inner { padding-block: 8px; flex-wrap: wrap; }
  .nav-wrap { min-height: 72px; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: white; padding: 15px 4% 22px;
    box-shadow: 0 12px 18px #101d2c15;
    align-items: stretch; flex-direction: column; gap: 0;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 12px 4px; }
  .nav .nav-cta { text-align: center; margin-top: 8px; }
  .hero { min-height: 550px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div:nth-child(3) { padding-left: 0; }
  .about-grid, .infra-grid, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .about-visual { max-width: 600px; }
  .about-visual img { height: 360px; }
  .section { padding: 70px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .certificate-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-image img { height: 350px; }
  .contact-form { padding: 27px; }
}

@media (max-width: 480px) {
  .topbar-inner { font-size: 12px; }
  .logo { font-size: 21px; }
  .logo-mark { width: 44px; height: 44px; }
  .logo small { font-size: 8px; letter-spacing: 1.4px; }
  .hero { min-height: 520px; }
  .hero-content { padding-block: 65px; }
  .hero h1 { font-size: 39px; }
  .hero-content > p { font-size: 16px; }
  .hero-buttons { flex-direction: column; align-items: stretch; max-width: 290px; }
  .hero-note { margin-top: 35px; font-size: 10px; }
  .trust-grid strong { font-size: 16px; }
  .trust-grid > div { padding-inline: 12px; }
  .product-grid, .certificate-grid { grid-template-columns: 1fr; }
  .product-card > img { height: 230px; }
  .cta-inner { align-items: start; flex-direction: column; }
  .about-visual img { height: 290px; }
  .image-label { left: 12px; bottom: 38px; }
  .infra-image img { height: 280px; }
  .contact-form { padding: 22px 18px; }
  .footer-inner { flex-direction: column; align-items: start; }
}


/* ===== RD Forge Home Carousel ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    background: #171717;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.58) 48%,
        rgba(0, 0, 0, 0.12) 100%
    );
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    width: 650px;
    max-width: 75%;
    color: #fff;
    z-index: 2;
}

.slide-content span {
    display: inline-block;
    color: #f58220;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.slide-content h1 {
    font-size: clamp(34px, 4.2vw, 60px);
    line-height: 1.13;
    margin: 0 0 20px;
    font-weight: 800;
    color: #fff;
}

.slide-content p {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.8;
    color: #eee;
    margin: 0 0 28px;
}

.slide-btn {
    display: inline-block;
    background: #f58220;
    color: #fff;
    padding: 15px 28px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 3px;
    transition: background 0.3s, transform 0.3s;
}

.slide-btn:hover {
    background: #d9670a;
    color: #fff;
    transform: translateY(-2px);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0,0.35);
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s;
}

.carousel-arrow:hover {
    background: #f58220;
    border-color: #f58220;
}

.carousel-arrow.prev {
    left: 25px;
}

.carousel-arrow.next {
    right: 25px;
}

.carousel-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.carousel-dot {
    width: 30px;
    height: 5px;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: rgba(255,255,255,0.55);
    transition: background 0.3s, width 0.3s;
}

.carousel-dot.active {
    width: 45px;
    background: #f58220;
}

/* Tablet */
@media (max-width: 768px) {
    .hero-carousel {
        height: 520px;
    }

    .slide-content {
        left: 8%;
        max-width: 84%;
        width: auto;
    }

    .slide-content h1 {
        font-size: 36px;
    }

    .slide-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-carousel {
        height: 470px;
    }

    .slide-content {
        left: 9%;
        max-width: 82%;
    }

    .slide-content span {
        font-size: 11px;
        letter-spacing: 1.3px;
    }

    .slide-content h1 {
        font-size: 30px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .slide-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}


.product-detail {
    max-width: 1150px;
    margin: 40px auto;
    padding: 20px 25px;
    font-family: Arial, sans-serif;
    color: #222;
}

.product-info h1 {
    font-size: 29px;
    font-weight: 700;
    color: #761c18;
    border-bottom: 1px solid #ddd;
    padding-bottom: 12px;
    margin: 0 0 25px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 35px;
    align-items: start;
}

.product-description h4 {
    font-size: 15px;
    margin: 0 0 8px;
    color: #222;
}

.product-description p {
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 18px;
}

.product-gallery {
    width: 100%;
}

.main-product-image {
    width: 100%;
    height: 270px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.main-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.product-thumbnails img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    border: 1px solid #ddd;
    padding: 3px;
    cursor: pointer;
    background: #fff;
}

.product-thumbnails img:hover,
.product-thumbnails img.selected {
    border: 2px solid #761c18;
}

.product-enquiry {
    display: inline-block;
    margin-top: 5px;
    padding: 11px 22px;
    background: #761c18;
    color: white;
    text-decoration: none;
    font-size: 13px;
}

.product-enquiry:hover {
    background: #9c3029;
}

@media (max-width: 700px) {
    .product-detail {
        margin: 20px auto;
        padding: 15px;
    }

    .product-info h1 {
        font-size: 23px;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-gallery {
        max-width: 100%;
    }

    .main-product-image {
        height: 260px;
    }
}

.contact-wrap {
      max-width: 760px;
      margin: 50px auto;
      padding: 25px;
      font-family: Arial, sans-serif;
    }

    .contact-wrap h1 {
      color: #761c18;
    }

    .contact-wrap label {
      display: block;
      margin: 14px 0 6px;
      font-weight: bold;
    }

    .contact-wrap input,
    .contact-wrap textarea {
      width: 100%;
      box-sizing: border-box;
      padding: 12px;
      border: 1px solid #ccc;
      border-radius: 3px;
    }

    .contact-wrap textarea {
      min-height: 140px;
      resize: vertical;
    }

    .contact-wrap button {
      margin-top: 18px;
      padding: 12px 25px;
      border: 0;
      background: #761c18;
      color: white;
      cursor: pointer;
    }

    .form-success {
      color: #16723a;
    }

    .form-error {
      color: #b42318;
    }

    .form-message {
      padding: 14px 16px;
      margin: 0 0 20px;
      border-radius: 6px;
      font-size: 14px;
      line-height: 1.6;
    }

    .form-success {
      color: #166534;
      background: #dcfce7;
      border: 1px solid #86efac;
    }

    .form-error {
      color: #991b1b;
      background: #fee2e2;
      border: 1px solid #fca5a5;
    }