*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #222222;
  line-height: 1.7;
}

/* Helpers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.narrow {
  max-width: 750px;
}

/* Header */
.main-header {
  position: sticky;      /* sticky على الديسكتوب */
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #ececec;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 1.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.company-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #003466;
}

.main-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: #444444;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background-color: #f3f3f3;
  color: #b38b00;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at right, rgba(0,0,0,0.8), rgba(0,0,0,0.95));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  padding: 3rem 0;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.hero-content p {
  max-width: 500px;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.primary-btn {
  background: linear-gradient(135deg, #d4af37, #c3951a);
  color: #ffffff;
}

.primary-btn:hover {
  background: linear-gradient(135deg, #c3951a, #a97c12);
}

.ghost-btn {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.85);
}

.ghost-btn:hover {
  background-color: rgba(255,255,255,0.16);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.padding-section {
  padding: 3.5rem 0 3rem;
}

.light-section {
  background-color: #faf7ef;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #b38b00;
}

.section-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: #666666;
  margin: 0 auto 2rem;
  max-width: 700px;
}

/* Products main grid */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.brand-card {
  border-radius: 1rem;
  border: 1px solid #f0e6cc;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.03);
  overflow: hidden;
}

.brand-header {
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  background: linear-gradient(135deg, #ffffff, #faf7ef);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.brand-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #003466;
}

.brand-subtext {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #999999;
}

.toggle-icon {
  font-size: 1.25rem;
  color: #b38b00;
}

.brand-products {
  padding: 0 1.25rem 1rem;
  display: none;
  border-top: 1px solid #f3ead7;
}

.brand-product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed #f0e6cc;
}

.brand-product-item:last-child {
  border-bottom: none;
}

.small-link {
  font-size: 0.8rem;
  color: #b38b00;
  text-decoration: none;
}

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

/* Product detail sections */
.product-detail {
  background-color: #ffffff;
}

.product-detail.alt-bg {
  background-color: #fafafa;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
}

.product-image img {
  width: 100%;
  max-width: 320px;
  display: block;
  border-radius: 1rem;
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
  margin-inline: auto;
}

.product-info h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #003466;
}

/* Contact */
.contact-section {
  background-color: #faf7ef;
}

.contact-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #f0e6cc;
  background-color: #ffffff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  text-align: center;
}

.whatsapp-btn {
  background-color: #25D366;
  color: #ffffff;
  border-color: #1ebe57;
  margin-bottom: 1rem;
}

.whatsapp-btn:hover {
  background-color: #1ebe57;
}

.contact-details p {
  margin: 0.15rem 0;
  font-size: 0.9rem;
}

.contact-details a {
  color: #003466;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Footer */
.main-footer {
  background-color: #ffffff;
  border-top: 1px solid #ececec;
  padding: 1rem 0;
  font-size: 0.8rem;
  color: #777777;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.back-to-top {
  text-decoration: none;
  color: #b38b00;
}

.back-to-top:hover {
  text-decoration: underline;
}

/* Responsive: mobile & tablets */
@media (max-width: 900px) {
  /* على الموبايل: الهيدر عادي، يتحرك مع الصفحة ويختفي عند النزول */
  .main-header {
    position: static;
  }

  body {
    padding-top: 0;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .brands-grid {
    grid-template-columns: 1fr;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 60vh;
  }

  .hero-content {
    text-align: right;
  }
}

/* Extra small screens */
@media (max-width: 600px) {
  .logo-img {
    height: 40px;
  }

  .company-name {
    font-size: 0.85rem;
  }

  .main-nav {
    font-size: 0.8rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }
}
