:root {
  --primary: #e3a327;
  --primary-dark: #1b2635;
  --accent: #e3a327;
  --bg: #f4f6f9;
  --white: #ffffff;
  --text: #1b2631;
  --muted: #5f6f81;
  --shadow: 0 10px 30px rgba(27, 38, 53, 0.1);
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Tajawal", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--bg);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
}

.section-head .contact-wa-hint {
  margin-top: 10px;
  font-size: 0.98rem;
  line-height: 1.65;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6ebf2;
  box-shadow: 0 8px 30px rgb(227 163 39 / 11%);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 75px;
  height: 75px;
  object-fit: contain;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #f5a623);
  color: var(--white);
  font-size: 1.1rem;
}

.logo strong {
  display: block;
  color: var(--primary);
  font-size: 1.2rem;
}

.logo small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
}

.nav-links a {
  font-weight: 600;
  color: #223243;
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.is-active {
  color: var(--accent);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.btn-apply-now{
    padding: 10px 20px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(227, 163, 39, 0.35);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.hero {
  padding: 90px 0 70px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef3f9 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-factory-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(227, 163, 39, 0.14);
  border: 1px solid rgba(227, 163, 39, 0.35);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 12px;
  box-shadow: 0 10px 22px rgba(227, 163, 39, 0.12);
}

.hero-factory-badge i {
  color: var(--accent);
  font-size: 1.05rem;
}

.hero h1 {
  color: var(--primary-dark);
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero p {
  color: var(--muted);
  max-width: 580px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image img {
  border-radius: 22px;
  box-shadow: var(--shadow);
  height: 100%;
  object-fit: cover;
}

.about-cards,
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.card:hover,
.feature:hover,
.product-card:hover,
.testimonial:hover,
.partner:hover,
.gallery-card:hover {
  transform: translateY(-6px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(227, 163, 39, 0.16);
  color: var(--accent);
  margin-bottom: 14px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.feature i {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product-card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.product-card h3,
.product-card p {
  padding-inline: 18px;
}

.product-card h3 {
  margin-top: 16px;
}

.product-card p {
  color: var(--muted);
  margin: 8px 0 18px;
}

.stats-section {
  background: linear-gradient(rgba(27, 38, 53, 0.84), rgba(27, 38, 53, 0.84)),
    url("https://images.unsplash.com/photo-1621905252472-943afaa20e23?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: var(--white);
}

.section-head.light h2,
.section-head.light p {
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 24px;
}

.stat h3 {
  font-size: 2rem;
  color: #ffc28e;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sector-card {
  background: var(--white);
  border: 1px solid #e5ebf3;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.sector-card:hover {
  transform: translateY(-6px);
}

.sector-card i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.department-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(27, 38, 53, 0.09);
  border: 1px solid #e8edf5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.department-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(27, 38, 53, 0.13);
}

.department-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.department-card h3,
.department-card p {
  padding-inline: 18px;
}

.department-card h3 {
  margin-top: 14px;
  color: var(--primary-dark);
}

.department-card p {
  margin: 8px 0 18px;
  color: var(--muted);
}

/* —— Product gallery —— */
.product-gallery .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.gallery-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #e8edf5;
  height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(27, 38, 53, 0.14);
}

.gallery-card__trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-card:hover .gallery-card__img {
  transform: scale(1.08);
}

.gallery-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(
    to top,
    rgba(27, 38, 53, 0.72) 0%,
    rgba(27, 38, 53, 0.2) 55%,
    transparent 100%
  );
  color: var(--white);
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-card__overlay {
  opacity: 1;
}

.gallery-card__overlay i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(227, 163, 39, 0.92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

/* Lightbox / modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 22, 32, 0.92);
  backdrop-filter: blur(6px);
}

.gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.gallery-lightbox__figure {
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.gallery-lightbox__img {
  max-width: 100%;
  max-height: calc(92vh - 56px);
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.gallery-lightbox__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: #e7edf6;
  font-weight: 600;
}

.gallery-lightbox__counter {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(227, 163, 39, 0.25);
  color: #ffc28e;
  font-size: 0.9rem;
}

.gallery-lightbox__close {
  position: absolute;
  top: -8px;
  inset-inline-start: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

.gallery-lightbox__close:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.gallery-lightbox__nav {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-lightbox__nav:hover {
  background: var(--accent);
  transform: scale(1.06);
}

body.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .gallery-lightbox {
    padding: 12px;
  }

  .gallery-lightbox__panel {
    flex-direction: column;
    max-height: 96vh;
  }

  .gallery-lightbox__nav {
    position: absolute;
    bottom: 72px;
    z-index: 2;
  }

  .gallery-lightbox__nav--prev {
    inset-inline-end: 56px;
  }

  .gallery-lightbox__nav--next {
    inset-inline-start: 56px;
  }

  .gallery-lightbox__close {
    top: 8px;
    inset-inline-end: 8px;
    inset-inline-start: auto;
  }

  .gallery-lightbox__img {
    max-height: calc(96vh - 120px);
  }
}

.partner-swiper {
  padding: 8px 6px 42px;
}

.partner-logo {

  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.partner-logo img {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.partner-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

.swiper-pagination-bullet-active {
  background: var(--accent);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 0.3s ease;
}

.testimonial p {
  color: var(--muted);
}

.cta-section {
  padding-top: 20px;
}

.cta-box {
  background: linear-gradient(135deg, rgba(227, 163, 39, 0.14), rgba(227, 163, 39, 0.28));
  border: 1px solid rgba(227, 163, 39, 0.35);
  border-radius: 22px;
  padding: 34px;
  text-align: center;
}

.cta-box h2 {
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.cta-box p {
  color: #3a4a5b;
  max-width: 760px;
  margin: 0 auto 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.contact-form,
.contact-info {
  background: var(--white);
  border: 1px solid #e5ebf3;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form--whatsapp {
  grid-template-columns: 1fr;
}

.btn-whatsapp-send {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-whatsapp-send i {
  font-size: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  color: #2a3b4f;
}

input,
select,
textarea {
  font: inherit;
  border: 1px solid #ced7e3;
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(227, 163, 39, 0.16);
}

.contact-info ul {
  list-style: none;
  margin-bottom: 14px;
}

.contact-info li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.contact-info i {
  margin-top: 4px;
  color: var(--accent);
}

.contact-info iframe {
  width: 100%;
  border: 0;
  border-radius: 10px;
  min-height: 240px;
}

.footer {
  background: var(--primary-dark);
  color: #e7edf6;
  padding-top: 55px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
  padding-bottom: 35px;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 10px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer .socials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footer .socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
}

.footer-logo-img {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.footer-logo-link {
  align-items: flex-start;
  gap: 16px;
  max-width: 100%;
}

.footer-logo-link:hover .footer-brand-name {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 22rem;
  padding-top: 4px;
}

.footer-brand-name {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.footer-brand-desc {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 16px;
  color: #c5d0de;
}

.footer-address {
  font-size: 0.92rem;
  color: #c5d0de;
  margin-top: 6px;
  line-height: 1.5;
}

.whatsapp-float {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 1100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.85rem;
  box-shadow: 0 10px 28px #e3a32757;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  color: var(--primary);
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .products-grid,
  .testimonials-grid,
  .stats-grid,
  .sectors-grid,
  .departments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid,
  .about-cards,
  .cert-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
    .btn-apply-now{
       
        display: none;
    }
  .navbar {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    width: 100%;
    order: 3;
    flex-direction: column;
    border-top: 1px solid #e6ebf2;
    padding-top: 10px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .features-grid,
  .products-grid,
  .testimonials-grid,
  .stats-grid,
  .contact-form,
  .sectors-grid,
  .departments-grid {
    grid-template-columns: 1fr;
  }

  .logo-img,
  .footer-logo-img {
    width: 60px;
    height: 60px;
  }

  .section {
    padding: 68px 0;
  }
}
