/* ============================================
   STEEL TECH — Template-Adapted Stylesheet
   Palette: Navy Graphite + Industrial Orange
   ============================================ */

:root {
  --primary: #d32f2f;
  --blueMid: #b71c1c;
  --light: #eef1f5;
  --navy: #0d1b2a;
  --ash: #3d4f63;
  --steel-edge: #d1d6dd;
  --steel-blue: #1a2a3e;
}

html {
  scroll-padding-top: 90px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: #eef1f5;
  font-family: "Cairo", "IBM Plex Sans Arabic", "Poppins", Arial, sans-serif;
  overflow-x: hidden;
  width: 100%;
}

.btn {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  transition: 0.3s;
}
.btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

/*header*/
.main-nav .container {
  flex-wrap: nowrap;
}
.logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.main-nav {
  transition: 0.3s ease;
  background: transparent;
}

.main-nav.scrolled {
  background: #0d1b2a;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.navbar-toggler {
  border: none;
  color: #eef1f5 !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}
.nav-link {
  color: #eef1f5 !important;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover {
  color: #d32f2f !important;
}
.brand-logo img {
  height: 44px;
  width: auto;
}
.brand-logo h4 {
  color: #eef1f5 !important;
}

/* Hero Section — Industrial gradient */
.hero-modern {
  padding: 120px 0 90px;
  background: linear-gradient(
    180deg,
    #0d1b2a 0%,
    #1a2a3e 20%,
    #3d4f63 45%,
    #d1d6dd 70%,
    #eef1f5 100%
  );
  border-radius: 0 0 35px 35px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Video background option */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0.85) 0%, rgba(13,27,42,0.6) 40%, rgba(13,27,42,0.9) 100%);
}
.hero-modern .container {
  position: relative;
  z-index: 2;
}

/* TEXT */
.hero-title {
  font-weight: 800;
  font-size: 38px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.hero-desc {
  margin-top: 10px;
  max-width: 480px;
  opacity: 0.9;
  color: #d0d5dc;
  text-shadow: 0 1px 15px rgba(0,0,0,0.5);
}

/* BUTTONS */
.hero-btn {
  background: #d32f2f;
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 4px 24px rgba(211,47,47,0.35);
}
.hero-btn:hover {
  background: #b71c1c;
  color: #fff;
  transform: translateY(-2px);
}

/* IMAGE */
.hero-img {
  padding: 10px 18px;
  position: relative;
  width: 300px;
  left: 80px;
  z-index: 2;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

/* RATING BOX → Safety Record Box */
.hero-rating {
  background: rgba(211,47,47,0.9);
  border-radius: 16px;
  padding: 10px 18px;
  width: max-content;
  margin-top: 12px;
  backdrop-filter: blur(4px);
}

.rating-value {
  font-weight: 800;
  font-size: 20px;
}

.rating-text {
  opacity: 0.9;
  margin-left: 6px;
}

/* Appointment Bar → Quote Bar */
.appointment-bar {
  background: #fff;
  border-radius: 15px;
  padding: 18px 20px;
  margin-top: -50px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 10;
}

/* form fields */
.form-field {
  border-radius: 15px;
  height: 40px;
  border: 1px solid var(--steel-edge);
}

.form-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(211,47,47,0.15);
}

/* make button */
.make-btn {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: #fff;
  font-weight: 600;
  border-radius: 25px;
  transition: 0.2s;
}

.make-btn:hover {
  opacity: 0.9;
  color: #fff;
  transform: translateY(-2px);
}

/* Features Section → Services Overview */
.feature-item {
  text-align: center;
  background: #fff;
  border-radius: 18px;
  padding: 30px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: 0.25s;
  height: 100%;
}
.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 6px;
}

.feature-item h5 {
  font-weight: 700;
  color: var(--navy);
}

.feature-item p {
  color: var(--ash);
}

/* Stats Section */
.stats-box {
  background: linear-gradient(135deg, #0d1b2a, #1a2a3e);
  padding: 28px 35px;
  border-radius: 18px;
  color: #fff;
  gap: 15px;
  border: 1px solid var(--steel-edge);
}

.stats-icon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 8px;
}

.counter {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

.stats-label {
  color: #a0aab5;
  font-size: 14px;
}

/* Testimonial Section → About Section */
.testimonial-box {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.testimonial-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.testimonial-content {
  padding: 35px;
  text-align: center;
}

.tag {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.quote-icon {
  font-size: 32px;
  color: var(--primary);
  margin: 10px 0;
}

.testimonial-text {
  color: var(--ash);
  font-style: italic;
  max-width: 420px;
  margin: auto;
  line-height: 1.8;
}

.review-person {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

/* Blog Section → Projects Gallery */
.blog-card {
  border-radius: 18px;
  padding: 12px;
  gap: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: 0.25s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.blog-img {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
}

.blog-content p {
  color: var(--ash);
  margin: 6px 0;
}

.blog-tag {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.read-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.read-link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.faq-tag {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.accordion-button {
  font-weight: 600;
  background: #fff;
}

.accordion-button:not(.collapsed) {
  color: #d32f2f;
  background: #eef1f5;
}

.accordion-item {
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--steel-edge) !important;
}

/* CTA Section */
.cta-box {
  background: linear-gradient(135deg, #0d1b2a, #1a2a3e);
  padding: 28px 35px;
  border-radius: 18px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--steel-edge);
}

.cta-btn {
  background: #d32f2f;
  color: #fff;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 25px;
  transition: 0.2s;
}

.cta-btn:hover {
  background: #b71c1c;
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cta-box {
    flex-direction: column;
    text-align: center;
  }
  .hero-modern {
    padding: 100px 15px 60px;
    border-radius: 0 0 20px 20px;
    overflow-x: hidden;
  }
  .hero-title {
    font-size: 26px;
    word-wrap: break-word;
  }
  .hero-desc {
    font-size: 0.95rem;
    max-width: 100%;
  }
  .hero-rating .rating-value {
    font-size: 1.5rem;
  }
  .hero-rating {
    width: 100%;
  }
  .main-nav {
    background: #0d1b2a;
  }
  .main-nav.scrolled {
    background: #0d1b2a;
  }
  .navbar-toggler {
    color: #fff !important;
  }
  .navbar-toggler i {
    color: #fff;
  }
  .appointment-bar {
    margin-top: 20px;
    padding: 15px;
  }
}

/* Mobile offcanvas menu styling */
.offcanvas .nav-link {
  color: #eef1f5 !important;
  font-size: 1.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.offcanvas .nav-link:hover {
  color: #d32f2f !important;
}
.offcanvas .btn {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: #fff;
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.partner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--steel-edge);
  border-radius: 14px;
  transition: all 0.3s;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.3;
}
.partner-card i {
  color: var(--primary);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.partner-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(211,47,47,0.12);
  transform: translateY(-3px);
}
.partner-card:hover i {
  color: var(--blueMid);
}

@media (max-width: 640px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-card { font-size: 0.8rem; padding: 14px 10px; gap: 8px; }
  .partner-card i { font-size: 1.1rem; }
}

/* Gallery Section — Modern Masonry */
.gallery-section {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #eef1f5 0%, #e2e6ec 100%);
}
.gallery-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.gallery-heading {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.gallery-subtitle {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--steel-edge);
  flex-wrap: wrap;
}
.gallery-tab {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ash);
  padding: 12px 28px;
  position: relative;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.gallery-tab.active { color: var(--primary); }
.gallery-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}
.gallery-tab:hover { color: var(--navy); }

.gallery-panel { display: none; }
.gallery-panel.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.gallery-masonry {
  column-count: 4;
  column-gap: 14px;
  padding: 0 12px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  margin-bottom: 14px;
  break-inside: avoid;
  display: block;
  box-shadow: 0 2px 12px rgba(13,27,42,0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}
.gallery-item:hover {
  box-shadow: 0 8px 30px rgba(13,27,42,0.2);
  transform: translateY(-3px);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13,27,42,0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

@media (max-width: 992px) {
  .gallery-masonry { column-count: 3; }
}
@media (max-width: 768px) {
  .gallery-masonry { column-count: 2; column-gap: 10px; }
  .gallery-heading { font-size: 1.5rem; }
  .gallery-tab { padding: 10px 18px; font-size: 0.9rem; }
}
@media (max-width: 480px) {
  .gallery-masonry { column-count: 1; }
}

/* Enhanced Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13,27,42,0.95);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 85vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 8px 12px;
  color: #fff;
  background: rgba(211,47,47,0.9);
  border: none;
  cursor: pointer;
  font-size: 24px;
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 10;
}
.lightbox-close:hover { background: var(--primary); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.lightbox-nav:hover { background: var(--primary); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #a0aab5;
  font-size: 0.9rem;
  background: rgba(13,27,42,0.8);
  padding: 6px 16px;
  border-radius: 20px;
}
@media (max-width: 768px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 18px; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox img { max-width: 92vw; max-height: 75vh; }
}

/* Footer Styles */
.footer-section {
  background: #0d1b2a;
  color: #a0aab5;
}

.footer-section h6 {
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  text-decoration: none;
  color: #a0aab5;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #a0aab5;
}

.footer-contact i {
  color: var(--primary);
  margin-right: 6px;
}

.newsletter-box input {
  border-radius: 8px;
}

.newsletter-box button {
  border-radius: 8px;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: #fff;
  border: none;
}

.social-icons i {
  font-size: 18px;
  cursor: pointer;
  color: #a0aab5;
  transition: color 0.2s;
}

.social-icons i:hover {
  color: var(--primary);
}

.logo {
  color: #fff !important;
}
.logo img {
  height: 40px;
  width: auto;
}

.footer-section hr {
  border-color: rgba(255,255,255,0.1);
}

/* Section label */
.section-label {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

/* Back to top */
.back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.back-top.visible { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--blueMid); }

/* RTL adjustments */
html[dir="rtl"] body {
  font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
}
html[dir="rtl"] .hero-img {
  left: auto;
  right: 80px;
}
html[dir="rtl"] .hero-title {
  font-family: "Cairo", sans-serif;
}
html[dir="rtl"] .nav-link {
  font-family: "Cairo", sans-serif;
}
html[dir="rtl"] .back-top { right: auto; left: 1.5rem; }
html[dir="rtl"] .feature-item h5,
html[dir="rtl"] .testimonial-content h3,
html[dir="rtl"] .blog-content h5,
html[dir="rtl"] .accordion-button,
html[dir="rtl"] .cta-box h3,
html[dir="rtl"] .footer-section h6 {
  font-family: "Cairo", sans-serif;
}
