@charset "UTF-8";
@import url("fonts.css");

/* ==========================================================================
   شركة الفلاحين الحديثة لصناعة الأعلاف — الأساسيات ونظام التصميم
   ========================================================================== */

:root {
  color-scheme: light;

  /* ------------------------------------------------------------- الألوان */
  /* ألوان الهوية: القمح الذهبي الداكن، الكحلي الصناعي الرصين، وخلفيات طبيعية */
  --primary: #0e1726;
  --primary-surface: #152238;
  --primary-light: #223450;
  
  --gold: #d49a24;
  --gold-hover: #b88219;
  --gold-light: #f7cb6b;
  --gold-surface: #fef8eb;
  --gold-border: rgba(212, 154, 36, 0.35);

  --green: #236338;
  --green-surface: #edf7f0;

  --paper: #faf8f5;
  --paper-card: #ffffff;
  --paper-sand: #f2eee5;
  --paper-border: rgba(14, 23, 38, 0.08);

  --ink: #141b24;
  --ink-soft: #4b5665;
  --ink-muted: #738092;

  --white: #ffffff;
  --hair: rgba(14, 23, 38, 0.09);
  --hair-on-dark: rgba(255, 255, 255, 0.12);

  /* ----------------------------------------------------------- الخطوط */
  --font-base: "GE SS Two", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---------------------------------------------------------- المسافات */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* --------------------------------------------------------- التدرج المطبعي */
  --step--1: clamp(0.8125rem, 0.8rem + 0.1vw, 0.875rem);
  --step-0: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --step-2: clamp(1.35rem, 1.25rem + 0.6vw, 1.6rem);
  --step-3: clamp(1.65rem, 1.5rem + 0.9vw, 2.1rem);
  --step-4: clamp(2rem, 1.8rem + 1.4vw, 2.75rem);
  --step-5: clamp(2.45rem, 2.1rem + 2vw, 3.5rem);

  /* ----------------------------------------------------------- الأبعاد */
  --container-max: 76rem;
  --header-h: 4.75rem;
  --tabbar-h: 3.9rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-pill: 9999px;

  /* ------------------------------------------------------------ الظلال */
  --shadow-sm: 0 1px 3px rgba(14, 23, 38, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(14, 23, 38, 0.08), 0 2px 6px -1px rgba(14, 23, 38, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(14, 23, 38, 0.1), 0 4px 12px -2px rgba(14, 23, 38, 0.05);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --------------------------------------------------------- إعادة الضبط */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ------------------------------------------------------------- الحاويات */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.container--narrow {
  max-width: 52rem;
}

.container--wide {
  max-width: 86rem;
}

/* ----------------------------------------------------------- شريط التخطي */
.skip-link {
  position: absolute;
  top: -10rem;
  right: var(--sp-4);
  z-index: 9999;
  background: var(--gold);
  color: var(--primary);
  font-weight: 700;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: var(--sp-4);
}

/* ------------------------------------------------------------- العناوين */
h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p {
  color: var(--ink-soft);
}

/* ------------------------------------------------------ شارات ولواحق */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--gold-hover);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
}

/* ------------------------------------------------------- الأقسام العامة */
.section {
  padding-block: clamp(3.5rem, 6vw, 6.5rem);
}

.section--sand {
  background-color: var(--paper-sand);
}

.section--dark {
  background-color: var(--primary);
  color: #f0f4f8;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #ffffff;
}

.section--dark p {
  color: rgba(240, 244, 248, 0.75);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 44rem;
}

.section-head h2 {
  margin-top: var(--sp-2);
}

.section-head p {
  margin-top: var(--sp-3);
  font-size: var(--step-1);
}

/* ------------------------------------------------------------- الحركات */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
