/* ============================================================
   style.css - ملف التصميم (مش لازم تعدل فيه غير لو عايز)
   ============================================================ */

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

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

:root {
  --k-green: #1a472a;
  --k-green-dark: #0d2b18;
  --k-gold: #c9a84c;
  --k-gold-light: #e0c878;
  --k-white: #ffffff;
  --k-gray-bg: #f8f8f8;
  --k-gray-border: #e5e5e5;
  --k-text: #1a1a1a;
  --k-text-secondary: #555555;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--k-text);
  background: var(--k-white);
  line-height: 1.6;
  direction: rtl;
}

html { scroll-behavior: smooth; }

/* ===== HEADER ===== */
.k-header {
  background: var(--k-green);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.k-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.k-logo-oval {
  width: 52px; height: 32px;
  background: var(--k-green);
  border: 2px solid var(--k-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.k-logo-k {
  width: 18px; height: 24px;
  background: var(--k-gold);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--k-green);
  font-weight: 700;
  font-size: 14px;
  position: absolute;
  top: -8px;
}

.k-logo-text {
  color: var(--k-gold);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}

.k-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.k-nav a {
  color: var(--k-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.k-nav a:hover { color: var(--k-gold); }

/* ===== HERO ===== */
.k-hero {
  background: linear-gradient(135deg, var(--k-green) 0%, var(--k-green-dark) 100%);
  padding: 70px 24px;
  text-align: center;
  color: var(--k-white);
}

.k-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--k-gold);
}

.k-hero p {
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 36px;
}

.k-hero-products {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.k-hero-product {
  width: 140px;
  height: 200px;
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(201,168,76,0.25);
  transition: all 0.3s;
  cursor: pointer;
}

.k-hero-product:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.14);
  border-color: rgba(201,168,76,0.5);
}

.k-hero-product svg { width: 70px; height: 100px; }
.k-hero-product span { font-size: 14px; color: var(--k-gold); font-weight: 600; }

/* ===== HOTLINE BAR ===== */
.k-hotline {
  background: var(--k-gold);
  color: var(--k-green);
  text-align: center;
  padding: 14px 24px;
  font-size: 17px;
  font-weight: 700;
}

/* ===== SECTIONS ===== */
.k-section {
  padding: 56px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.k-section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--k-green);
  margin-bottom: 32px;
  text-align: center;
  position: relative;
}

.k-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--k-gold);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ===== TABS ===== */
.k-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.k-tab {
  padding: 10px 28px;
  border-radius: 8px;
  border: 1px solid var(--k-gray-border);
  background: transparent;
  color: var(--k-text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Cairo', sans-serif;
}

.k-tab.active {
  background: var(--k-green);
  color: var(--k-white);
  border-color: var(--k-green);
}

.k-tab:hover:not(.active) { background: var(--k-gray-bg); }

/* ===== PRODUCTS GRID ===== */
.k-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.k-product-card {
  background: var(--k-white);
  border: 1px solid var(--k-gray-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  animation: fadeIn 0.4s ease-out;
}

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

.k-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

.k-product-img {
  height: 240px;
  background: var(--k-gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.k-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.k-product-card:hover .k-product-img img {
  transform: scale(1.05);
}

.k-product-img svg {
  width: 120px;
  height: 160px;
  opacity: 0.6;
}

.k-product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--k-gold);
  color: var(--k-green);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  z-index: 2;
}

.k-product-info { padding: 20px; }

.k-product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--k-text);
  margin-bottom: 6px;
}

.k-product-spec {
  font-size: 13px;
  color: var(--k-text-secondary);
  margin-bottom: 12px;
}

.k-product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--k-green);
}

/* ===== ABOUT ===== */
.k-about { background: var(--k-gray-bg); }

.k-about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.k-about-text p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--k-text-secondary);
  margin-bottom: 16px;
}

.k-about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.k-stat {
  background: var(--k-white);
  padding: 28px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--k-gray-border);
  transition: transform 0.2s;
}

.k-stat:hover { transform: scale(1.03); }

.k-stat-num {
  font-size: 38px;
  font-weight: 700;
  color: var(--k-green);
}

.k-stat-label {
  font-size: 13px;
  color: var(--k-text-secondary);
  margin-top: 6px;
}

/* ===== CONTACT ===== */
.k-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.k-contact-card {
  background: var(--k-white);
  border: 1px solid var(--k-gray-border);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.k-contact-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }

.k-contact-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--k-green);
  margin-bottom: 14px;
}

.k-contact-card p {
  font-size: 14px;
  color: var(--k-text-secondary);
  line-height: 1.8;
}

.k-contact-card .k-phone {
  font-size: 26px;
  font-weight: 700;
  color: var(--k-gold);
  margin-top: 10px;
}

/* ===== FOOTER ===== */
.k-footer {
  background: var(--k-green);
  color: var(--k-white);
  padding: 44px 24px;
  text-align: center;
}

.k-footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--k-gold);
  margin-bottom: 14px;
}

.k-footer p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.k-footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.k-footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .k-about-content { grid-template-columns: 1fr; }
  .k-header { flex-direction: column; padding: 16px; }
  .k-nav { justify-content: center; gap: 16px; }
  .k-hero h1 { font-size: 28px; }
  .k-hero p { font-size: 15px; }
  .k-products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .k-section { padding: 36px 16px; }
  .k-product-img { height: 180px; }
  .k-hero-product { width: 120px; height: 170px; }
}
