/* ==========================================
   1. Global Styles & Reset (الأنماط العامة والتصفير)
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", sans-serif;
  color: #142033;
  background: #fff;
  line-height: 1.8;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}


/* ==========================================
   2. Header & Navigation (الشريط العلوي والقائمة)
   ========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 21, 39, .97);
  box-shadow: 0 4px 25px #0002;
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo span {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
}

.logo small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #c9a45c;
  margin-top: 5px;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: .25s;
}

.nav-links a:hover {
  color: #d6b56e;
}

.whatsapp-btn {
  background: #c9a45c;
  color: #091628;
  padding: 9px 17px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 28px;
}


/* ==========================================
   3. Hero Section (قسم الواجهة الرئيسي)
   ========================================== */
.hero {
  min-height: 720px;
  position: relative;
  background: linear-gradient(90deg, #0b2039e8, #0c2442a8), url(./imags/Document.png) center/cover;
}

.hero-content {
  position: relative;
  padding-top: 145px;
  color: #fff;
  max-width: 850px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.eyebrow,
.section-tag {
  color: #c9a45c;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.2;
  margin: 18px 0;
}

.hero p {
  font-size: 19px;
  color: #e5e9ee;
  max-width: 760px;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: .25s;
}

.primary {
  background: #c9a45c;
  color: #071424;
}

.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.outline {
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
}

.outline:hover {
  background: #fff;
  color: #071424;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 45px;
  margin-top: 70px;
}

.stats div {
  display: flex;
  flex-direction: column;
}

.stats strong {
  font-size: 22px;
  color: #d7b970;
}

.stats span {
  font-size: 12px;
  color: #dce2ea;
}


/* ==========================================
   4. General Sections & Layouts (الأقسام العامة والتخطيطات)
   ========================================== */
.section {
  padding: 95px 0;
}

.light {
  background: #f4f6f8;
}

.section-head {
  text-align: center;
  margin-bottom: 45px;
}

.section-head h2,
.about h2,
.foam-hero h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
  margin: 8px 0 12px;
  color: #0b1b30;
}

.section-head p {
  color: #667284;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

.about p {
  margin: 12px 0;
  color: #5c6775;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 25px;
  font-weight: 700;
  color: #24364b;
}

.image-card {
  min-height: 340px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: center/cover;
}

.industrial {
  background-image: linear-gradient(100deg, #3e5d80aa, #f9d99833), url("./imags/20.png");
}
.image-label {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #091628dd;
  color: #fff;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 800;
}


/* ==========================================
   5. Categories & Products Grids (التصنيفات والمنتجات)
   ========================================== */
.category-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: #fff;
  border: 1px solid #e2e7ec;
  border-radius: 15px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: .25s;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px #15223815;
}

.cat-icon {
  font-size: 36px;
  color: #b88d3f;
  margin-bottom: 10px;
}

.category-card h3 {
  margin-bottom: 5px;
}

.category-card p {
  color: #718092;
  font-size: 14px;
}

.product-card {
  background: #fff;
  border: 1px solid #e2e7ec;
  border-radius: 14px;
  overflow: hidden;
  transition: .25s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px #15223814;
}

.product-image {
  height: 210px;
  background: linear-gradient(135deg, #dfe5ea, #f9fafb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #748091;
  font-weight: 800;
  font-size: 22px;
}
.product-image img {
width: 70%;
height: 90%;
/* object-fit: cover;
display: block; */
}

.product-body {
  padding: 20px;
}

.product-body h3 {
  font-size: 19px;
}

.product-body p {
  font-size: 13px;
  color: #687688;
  min-height: 55px;
  margin: 6px 0 12px;
}

.product-meta {
  font-size: 12px;
  color: #8b6b30;
  margin-bottom: 13px;
}

.product-body .btn {
  width: 100%;
  font-size: 13px;
}


/* ==========================================
   6. Foam Section & Swatches (قسم الفوم والألوان)
   ========================================== */
.foam-section {
  background: #091628;
  color: #fff;
}

.foam-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}

.foam-hero h2 {
  color: #fff;
}

.foam-hero p {
  color: #c9d1dc;
  margin-bottom: 25px;
}

.foam-visual {
  height: 390px;
  border-radius: 20px;
  background: linear-gradient(120deg, #0b1725aa, #0b172500), url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1000&q=85") center/cover;
  display: flex;
  align-items: end;
  padding: 25px;
}

.foam-visual span {
  background: #c9a45c;
  color: #071424;
  font-weight: 900;
  padding: 7px 13px;
  border-radius: 5px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 50px 0;
}

.features-grid div {
  border: 1px solid #ffffff18;
  border-radius: 12px;
  padding: 20px;
  background: #ffffff08;
  display: flex;
  flex-direction: column;
}

.features-grid b {
  color: #d8b871;
}

.features-grid span {
  font-size: 13px;
  color: #b7c1ce;
}

.subheading {
  margin: 30px 0 15px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.swatch {
  height: 75px;
  border-radius: 10px;
  display: flex;
  align-items: end;
  padding: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  box-shadow: inset 0 -30px 40px #0003;
}

.white { background: #eee; color: #172236; }
.black { background: #111; }
.gray { background: #777; }
.beige { background: #cbb99a; }
.brown { background: #735039; }
.wood { background: linear-gradient(135deg, #b88652, #6e452a); }
.blue { background: #275a89; }
.red { background: #9c3333; }

.thickness {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.thickness span {
  border: 1px solid #c9a45c;
  padding: 10px 22px;
  border-radius: 8px;
  color: #d9b86f;
}


/* ==========================================
   7. Contact & Footer (التواصل والتذيل والزر العائم)
   ========================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 25px;
}

.contact-card,
.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #e0e5ea;
}

.contact-card p {
  padding: 9px 0;
  border-bottom: 1px solid #edf0f3;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea,
.modal-box input,
.modal-box textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9dfe6;
  border-radius: 8px;
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.modal-box input:focus,
.modal-box textarea:focus {
  border-color: #c9a45c;
}

.full {
  width: 100%;
}

.footer {
  background: #071424;
  color: #c8d0da;
  padding-top: 55px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 12px;
}

.footer a {
  display: block;
  color: #aeb8c5;
  text-decoration: none;
  margin: 5px 0;
}

.footer-logo {
  margin-bottom: 15px;
}

.copyright {
  text-align: center;
  border-top: 1px solid #ffffff12;
  padding: 18px;
  font-size: 12px;
}

.floating-wa {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1fb85b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 28px;
  z-index: 120;
  box-shadow: 0 8px 25px #0004;
}


/* ==========================================
   8. Modals (النوافذ المنبثقة)
   ========================================== */
.modal {
  position: fixed;
  inset: 0;
  background: #061322aa;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-box {
  background: #fff;
  width: min(480px, 100%);
  border-radius: 15px;
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-close {
  position: absolute;
  left: 15px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
}

.modal-box h3 {
  font-size: 24px;
}

.modal-box p {
  color: #b08b43;
  font-weight: 800;
}


/* ==========================================
   9. Responsive Media Queries (التجاوب مع الشاشات المختلفة)
   ========================================== */
@media (max-width: 1050px) {
  .nav-links {
    gap: 10px;
  }
  .nav-links a {
    font-size: 12px;
  }
  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
    margin-right: auto;
  }
  .nav {
    position: relative;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    background: #071424;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 8px 0;
  }
  .whatsapp-btn {
    display: none;
  }
  .hero {
    min-height: 650px;
  }
  .hero-content {
    padding-top: 105px;
  }
  .stats {
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 50px;
  }
  .stats strong {
    font-size: 17px;
  }
  .split,
  .foam-hero,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .image-card {
    min-height: 350px;
  }
  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .color-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 70px 0;
  }
}

@media (max-width: 450px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .color-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 37px;
  }
  .hero p {
    font-size: 16px;
  }
}