/* ================= RESET / SAFE BASE ================= */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ❗ IMPORTANT: DO NOT ADD transform ON body/html */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ================= ROOT ================= */
:root {
  --brand: #ffd700;
}

/* ================= HERO SECTION ================= */
.hero {
  position: relative;
  min-height: 450px;
  padding: 140px 0;
  color: #fff;
  background: url('../assets/images/hero-motorised-gate.webp') 50% 70% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero > * {
  position: relative;
  z-index: 2;
}

/* ================= PRODUCT / APPLICATION ================= */
.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.application img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

/* ================= CARD ================= */
.card {
  background: #fff;
  border-radius: 10px;
}

.card h5 {
  color: #111;
  padding-bottom: 5px;
  border-bottom: 2px solid #ffc107;
}

.card ul li {
  padding: 3px 0;
}

/* ================= SIDEBAR ================= */
@media (min-width: 992px) {
  .sidebar {
    position: sticky;
    top: 20px;
  }
}

/* ================= FOOTER ================= */
.footer-dark {
  background: #3d3b3c;
  color: #cfcfcf;
  font-size: 14px;
  padding: 60px 20px;
}

.footer-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-text {
  color: #bdbdbd;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ================= QUICK LINKS ================= */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #fff;             /* White text */
  text-decoration: none;    /* Remove underline */
  transition: 0.3s;
}

.footer-links a:hover {
  color: #ffc107;           /* Gold on hover */
  text-decoration: underline;
}

/* ================= FOOTER DIVIDER ================= */
.footer-divider {
  border-color: #444;
  margin: 30px 0;
}

/* ================= SOCIAL ICONS ================= */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  background: #3b3b3b;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s;
}

.social-icon:hover {
  background: #0d6efd;
  color: #fff;
}

/* ================= FOOTER COPYRIGHT ================= */
.footer-copy {
  color: #aaa;
  font-size: 13px;
  text-align: center;
  margin-top: 20px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .footer-dark {
    text-align: center;
  }

  .footer-links li {
    display: inline-block;
    margin: 5px 10px;
  }

  .social-icon {
    margin: 0 5px;
  }
}


/* ================= FLOATING / BACK TO TOP ================= */
#backToTop {
  position: fixed;
  right: 20px;
  bottom: 90px;   /* 👈 pehle 20px tha */
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #212529;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 2147483647;
}

#backToTop:hover {
  background: #000;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0;
  }

  #backToTop {
    right: 15px;
    bottom: 15px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* ================= Breadcrumbs ================= */
.breadcrumb-section {
  background: #f8f9fa;
}
.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: #6c757d;
  font-weight: 500;
}

/* ================= newsletter-form ================= */
.footer-newsletter {
  background: #1f1f1f;   /* charcoal, not black */
  padding: 50px 15px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-newsletter .newsletter-title {
  color: #ffc107;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-newsletter .newsletter-text {
  color: #d1d1d1;
  font-size: 14px;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletter-form input {
  min-width: 280px;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 4px;
  border: none;
  outline: none;
}

.newsletter-form button {
  background: #ffc107;
  color: #000;
  border: none;
  padding: 10px 26px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s ease;
}

.newsletter-form button:hover {
  background: #ffca2c;
}


/* Navbar Styling */
.navbar {
    background-color: #1c1c1c;
}
.navbar-brand {
    font-weight: 700;
    color: #ffc107 !important;
}
.nav-link {
    color: #fff !important;
    font-weight: 500;
}
.nav-link:hover {
    color: #ffc107 !important;
}

/* Mega Menu Styling - Compact */
.position-static .dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    padding: 25px 20px; /* thoda kam padding */
    border-top: 3px solid #ffc107;
    background: #f8f9fa;
    display: none;
}
.navbar-nav .dropdown:hover>.dropdown-menu {
    display: block;
}
.mega-menu .menu-title {
    font-weight: 700;
    font-size: 15px;        /* slightly smaller */
    margin-bottom: 6px;     /* reduced gap */
    color: #333;
}
.mega-menu .dropdown-item {
    padding: 2px 0;          /* reduced gap */
    font-size: 14px;         /* slightly smaller */
    color: #333 !important;
}
.mega-menu .dropdown-item:hover {
    color: #ffc107 !important;
}

/* CTA Button */
.cta-btn {
    background: #ffc107;
    color: #000;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
}
.cta-btn:hover {
    background: #e0a800;
    color: #000;
}

/* Mobile Mega Menu Fix */
@media (max-width: 991px) {
    .position-static .dropdown-menu {
        position: static !important;
    }
}
</style>