:root {
  --brand-blue: #0b5594;
  --brand-green: #16a34a;
  --brand-cyan: #3bc1c6;
  --milk: #f9fafb;
  --cream: #fff7ed;
  --ink: #020617;
  --muted: #64748b;
  --accent: #facc15;
  --border-soft: #e2e8f0;

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;

  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.26);
  --shadow-light: 0 14px 30px rgba(15, 23, 42, 0.13);

  --transition-fast: 0.2s ease-out;
}

/* ========== FONTS (حط الملفات في assets/fonts) ========== */
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/Tajawal-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/Tajawal-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/Tajawal-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/Poppins-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/Poppins-SemiBold.woff2") format("woff2");
}

/* ========== RESET بسيط ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  direction: rtl;
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(59, 193, 198, 0.23), transparent 60%),
    radial-gradient(circle at bottom left, rgba(22, 163, 74, 0.18), transparent 55%),
    var(--cream);
  color: var(--ink);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ========== HEADER / NAVBAR ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0.96),
    rgba(248, 250, 252, 0.88)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 18px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, #ffffff 0, #e0f2fe 30%, #3bc1c6 100%);
  box-shadow: var(--shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text .name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand-blue);
}

.brand-text .tagline {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 14px;
  font-size: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: background var(--transition-fast), color var(--transition-fast), transform 0.12s ease-out;
}

.nav-link:hover {
  background: rgba(11, 85, 148, 0.08);
  color: var(--brand-blue);
  transform: translateY(-1px);
}

.nav-link--active {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #f9fafb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

.nav-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px dashed rgba(148, 163, 184, 0.85);
  color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.9);
}

/* ========== HERO HOME (SLIDER BACKGROUND) ========== */

.hero-home {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: #f9fafb;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.7s ease-out, transform 0.9s ease-out;
}

.hero-bg--active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.85)),
    radial-gradient(circle at top left, rgba(59, 193, 198, 0.5), transparent 55%);
  mix-blend-mode: multiply;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 32px 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 3.1fr) minmax(0, 2.3fr);
  gap: 26px;
  align-items: center;
}

.hero-heading {
  font-size: 2.4rem;
  margin-bottom: 6px;
  font-weight: 800;
}

.hero-heading span {
  color: var(--accent);
}

.hero-lead {
  font-size: 1rem;
  max-width: 36rem;
  opacity: 0.96;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-badge {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 0, #bbf7d0 40%, #16a34a 100%);
}

.hero-drops {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 16px;
}

.drop {
  width: 9px;
  height: 16px;
  border-radius: 999px 999px 999px 999px / 75% 75% 35% 35%;
  background: linear-gradient(145deg, #ffffff, #e5f9f0);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 4px 9px rgba(15, 23, 42, 0.4);
}

.drop:nth-child(2),
.drop:nth-child(4) {
  height: 18px;
}
.drop:nth-child(3) {
  height: 20px;
}

.hero-drops-label {
  font-size: 0.9rem;
  margin-right: 8px;
  opacity: 0.95;
}

.hero-cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-primary {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary span {
  font-size: 1.1rem;
}

.btn-secondary {
  border-radius: 999px;
  border: 1px dashed rgba(226, 232, 240, 0.9);
  padding: 9px 14px;
  background: rgba(15, 23, 42, 0.18);
  font-size: 0.86rem;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-side-card {
  background: rgba(248, 250, 252, 0.96);
  border-radius: var(--radius-xl);
  padding: 18px 18px 16px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-side-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 4px;
}

.hero-side-text {
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.hero-side-pill {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 8px 10px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 0.8rem;
}

.hero-side-pill strong {
  display: block;
  color: var(--brand-blue);
  margin-bottom: 2px;
}

/* hero controls (dots) */
.hero-controls {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  inset-block-end: 12px;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.hero-dots {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.8);
  display: inline-flex;
  gap: 6px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(15, 23, 42, 0.15);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.hero-dot--active {
  background: linear-gradient(135deg, var(--brand-blue), var(--accent));
  border-color: transparent;
  transform: scale(1.35);
}

/* ========== GENERIC SECTION ========== */

main {
  flex: 1;
  padding: 12px 0 40px;
}

.section {
  padding: 20px 0 8px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  box-shadow: 0 0 0 6px rgba(11, 85, 148, 0.18);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ========== PRODUCT CARDS ========== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.product-card::before {
  content: "";
  position: absolute;
  inset-inline-start: -40px;
  inset-block-start: -40px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at 0 0, rgba(59, 193, 198, 0.24), transparent 60%);
  opacity: 0.8;
  z-index: -1;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(11, 85, 148, 0.65);
}

.product-tag {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  font-size: 0.76rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.85);
  color: var(--brand-blue);
}

.product-image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
}

.product-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.product-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.product-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.product-desc {
  font-size: 0.86rem;
  color: var(--ink);
}

.product-list {
  font-size: 0.84rem;
  color: var(--muted);
  list-style: none;
  margin-top: 4px;
}

.product-list li::before {
  content: "•";
  margin-left: 4px;
  color: var(--brand-green);
}

.product-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* sub hero for inner pages */

.hero-sub {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #f9fafb;
  padding: 28px 0 24px;
  box-shadow: var(--shadow-soft);
}

.hero-sub-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-sub-title {
  font-size: 1.6rem;
  font-weight: 800;
}

.hero-sub-text {
  font-size: 0.9rem;
  opacity: 0.95;
}

.breadcrumb {
  font-size: 0.82rem;
  opacity: 0.9;
}

.breadcrumb a {
  text-decoration: underline;
}

/* story / about */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 3.1fr) minmax(0, 2.2fr);
  gap: 22px;
}

.story-card {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 228, 196, 0.98));
  border-radius: var(--radius-xl);
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: var(--shadow-light);
  font-size: 0.94rem;
  color: var(--ink);
}

.highlights {
  display: grid;
  gap: 10px;
}

.highlight {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  font-size: 0.86rem;
  color: var(--ink);
}

.highlight-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(11, 85, 148, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--brand-blue);
}

.highlight-text strong {
  display: block;
  margin-bottom: 2px;
  color: var(--brand-blue);
}

/* stats section */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-light);
  text-align: center;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-blue);
}

.stat-label {
  font-size: 0.84rem;
  color: var(--muted);
}

/* contact page */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 2.2fr);
  gap: 22px;
}

.contact-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-light);
}

.contact-group {
  margin-bottom: 12px;
}

.contact-group label {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 4px;
  color: var(--brand-blue);
}

.contact-input,
.contact-textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 8px 12px;
  font-size: 0.86rem;
  font-family: inherit;
}

.contact-textarea {
  border-radius: 16px;
  min-height: 120px;
  resize: vertical;
}

.contact-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.contact-actions {
  margin-top: 10px;
}

.btn-outline {
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid var(--brand-blue);
  background: #ffffff;
  color: var(--brand-blue);
  font-size: 0.86rem;
  cursor: pointer;
}

/* contact info box */

.contact-info-box {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #f9fafb;
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.contact-info-item {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.contact-info-item span {
  font-weight: 600;
}

/* footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.92);
  padding: 12px 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-side-card {
    margin-top: 12px;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-inner {
    padding-top: 22px;
  }
  .hero-heading {
    font-size: 1.9rem;
  }
  .products-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
