/* شركة الماس - تصميم نظيف وبسيط */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; direction: rtl; }

body {
  font-family: 'Cairo', sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Top Info Strip ===== */
.top-strip {
  background: #1a1a2e;
  color: #aaa;
  font-size: 13px;
  padding: 7px 0;
}
.top-strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-strip a { color: #ccc; }
.top-strip a:hover { color: #fff; }
.top-strip strong { color: #ddd; }

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.3;
}
.logo-text small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #888;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.main-nav a {
  font-size: 15px;
  font-weight: 700;
  color: #444;
  transition: color .15s;
}
.main-nav a:hover { color: #1a1a2e; }

.nav-cta {
  background: #1a1a2e;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 14px !important;
}
.nav-cta:hover { background: #2d2d4e; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #1a1a2e;
  padding: 4px;
}

/* ===== Hero ===== */
.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid #eee;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 16px;
}
.hero-lead {
  font-size: 17px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.btn-dark {
  background: #1a1a2e;
  color: #fff;
}
.btn-dark:hover { background: #2d2d4e; }
.btn-outline {
  background: #fff;
  border-color: #ccc;
  color: #333;
}
.btn-outline:hover { border-color: #1a1a2e; }

/* Hero side info box */
.hero-aside {
  background: #f7f7f9;
  border: 1px solid #e8e8ec;
  border-radius: 6px;
  padding: 28px 24px;
}
.hero-aside h3 {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}
.aside-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.aside-item:last-child { border-bottom: none; }
.aside-item .k { color: #777; }
.aside-item .v { font-weight: 700; color: #222; }

/* ===== Sections ===== */
.section { padding: 56px 0; }
.section-gray { background: #f8f8fa; }
.section + .section { border-top: 1px solid #eee; }

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.section-sub {
  font-size: 15px;
  color: #666;
  margin-bottom: 32px;
  max-width: 600px;
}

/* ===== About - two column ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.about-grid p {
  font-size: 15px;
  color: #444;
  line-height: 1.85;
  margin-bottom: 12px;
}
.about-grid strong { color: #1a1a2e; }

/* ===== Products Table ===== */
.products-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  color: #555;
  transition: all .15s;
}
.filter-btn:hover, .filter-btn.active {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-row {
  display: grid;
  grid-template-columns: 1fr 140px 120px 100px;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 16px 20px;
  transition: border-color .15s;
}
.product-row:hover { border-color: #bbb; }
.product-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}
.product-brand {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}
.product-origin, .product-temp, .product-pack {
  font-size: 13px;
  color: #666;
}
.product-temp { font-weight: 700; color: #1a1a2e; }

/* ===== Services - simple list ===== */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-item {
  padding: 24px;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fff;
}
.service-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.service-item p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-info h3 {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 15px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.7;
}
.info-row {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.info-row:last-child { border-bottom: none; }
.info-row .lbl {
  font-size: 13px;
  color: #999;
  font-weight: 600;
  margin-bottom: 2px;
}
.info-row .val {
  font-size: 15px;
  font-weight: 700;
  color: #222;
}
.info-row a { color: #222; }
.info-row a:hover { color: #1a1a2e; text-decoration: underline; }

.form-card {
  background: #f7f7f9;
  border: 1px solid #e8e8ec;
  border-radius: 6px;
  padding: 32px;
}
.form-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.form-card .sub {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}
.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.f-group {
  margin-bottom: 16px;
}
.f-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}
.f-input, .f-select, .f-textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  color: #222;
}
.f-input:focus, .f-select:focus, .f-textarea:focus {
  outline: none;
  border-color: #1a1a2e;
}
.f-textarea { resize: vertical; }

/* ===== Footer ===== */
.site-footer {
  background: #1a1a2e;
  color: #bbb;
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-grid p, .footer-grid li {
  font-size: 14px;
  line-height: 1.7;
}
.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-grid a { color: #bbb; }
.footer-grid a:hover { color: #fff; }

/* Legal info block - simple, quiet */
.legal-block {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 32px 0;
}
.legal-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.legal-item .lbl {
  font-size: 12px;
  color: #777;
  font-weight: 600;
}
.legal-item .val {
  font-size: 14px;
  color: #eee;
  font-weight: 700;
}
.legal-item a { color: #eee; text-decoration: underline; text-underline-offset: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
  font-size: 13px;
  color: #666;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  z-index: 999;
  display: none;
}
.toast-ok { background: #065f46; color: #fff; }
.toast-err { background: #991b1b; color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .contact-grid, .footer-grid, .services-list { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 1fr; gap: 4px; }
  .f-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 26px; }
  .main-nav { 
    display: none;
    position: absolute;
    top: 64px;
    right: 0; left: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
  }
  .main-nav.open { display: flex; }
  .menu-btn { display: block; }
  .legal-grid { grid-template-columns: 1fr; }
}
