/* =========================================================
   سيوة فارمز — نظام التصميم
   خط العرض: Reem Kufi | خط النص: IBM Plex Sans Arabic
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

:root {
  /* ألوان */
  --ink: #17261B;          /* أخضر نخيل غامق جداً — الأساس الداكن */
  --ink-soft: #21362A;
  --ink-line: rgba(247, 241, 223, 0.14);

  --sand: #EFE6CC;         /* رملي دافئ — خلفية القسم الفاتح */
  --sand-deep: #E4D8B6;
  --paper: #FAF6EA;        /* أفتح درجة، للبطاقات */

  --gold: #C79A45;         /* لون البلح — لون مميز */
  --gold-deep: #A87E34;
  --clay: #8B4A2B;         /* طيني/صحراوي — لون ثانوي دافئ */
  --oasis: #3E6B45;        /* أخضر نخيل حي — روابط وتفاصيل */

  --text-dark: #201A10;
  --text-dim: #55503F;
  --text-light: #F5EFDB;
  --text-light-dim: #CBC3A4;

  --line: rgba(32, 26, 16, 0.14);

  /* الخطوط */
  --font-display: 'Reem Kufi', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', sans-serif;

  /* مقاييس */
  --container: 1160px;
  --radius-s: 3px;
  --radius-m: 6px;
  --ease: cubic-bezier(.16,.8,.24,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-dark);
  direction: rtl;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-deep); }
.btn-outline {
  border-color: var(--ink-line);
  color: var(--text-light);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark {
  border-color: var(--line);
  color: var(--text-dark);
}
.btn-outline-dark:hover { border-color: var(--clay); color: var(--clay); }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   الهيدر
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* background: rgba(23, 38, 27, 0.92); */
  background: #086A3B;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-light);
}
.logo .mark {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.logo .mark path { fill: var(--gold); }
.logo strong { color: var(--gold); }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text-light-dim);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width .25s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text-light); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { padding: 11px 22px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  right: 8px; left: 8px;
  height: 2px;
  background: var(--text-light);
  transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 30px 24px;
    gap: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--ink-line); font-size: 1.05rem; }
  .header-actions .btn-outline { display: none; }
}

/* =========================================================
   نمط الحقول الزراعية — عنصر مميز يُستخدم كخلفيات وفواصل
   ========================================================= */
.furrow-pattern {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(199,154,69,0.16) 0px,
    rgba(199,154,69,0.16) 1px,
    transparent 1px,
    transparent 46px
  );
}
.furrow-divider {
  height: 64px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--gold) 0px,
    var(--gold) 2px,
    transparent 2px,
    transparent 58px
  );
  background-position: bottom;
  background-repeat: repeat-x;
  background-size: 58px 100%;
  opacity: 0.5;
}

/* =========================================================
   الهيرو
   ========================================================= */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 20% -10%, #274a30 0%, var(--ink) 55%) var(--ink);
  color: var(--text-light);
  overflow: hidden;
  padding-top: 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    100grad,
    transparent 0,
    transparent 64px,
    rgba(199,154,69,0.09) 64px,
    rgba(199,154,69,0.09) 66px
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 40px;
  padding-block: 76px 100px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  color: var(--text-light);
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-light-dim);
  max-width: 46ch;
  margin-top: 20px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-stats {
  display: flex;
  gap: 42px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-line);
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold);
}
.hero-stats .stat span {
  font-size: 0.86rem;
  color: var(--text-light-dim);
}

/* =========================================================
   السلايدر
   ========================================================= */
.slider {
  position: relative;
  background: var(--ink-soft);
  color: var(--text-light);
  overflow: hidden;
}
.slider-track {
  display: flex;
  transition: transform .6s var(--ease);
}
.slide {
  min-width: 100%;
  padding: 90px 24px;
  display: flex;
  justify-content: center;
}
.slide-inner {
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slide-media {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-m);
  margin-bottom: 30px;
  background: linear-gradient(135deg, #2c4a34, #1c2f22);
  border: 1px solid var(--ink-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-dim);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}
.slide-media svg { width: 46px; height: 46px; opacity: .55; }
.slide h3 { font-size: 1.6rem; color: var(--text-light); margin-bottom: 12px; }
.slide p { color: var(--text-light-dim); font-size: 1.02rem; }

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding-bottom: 40px;
}
.slider-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  background: transparent;
  color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
}
.slider-arrow:hover { border-color: var(--gold); background: rgba(199,154,69,0.1); }
.slider-dots { display: flex; gap: 9px; }
.slider-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--ink-line);
  padding: 0;
  transition: background .2s, width .2s;
}
.slider-dots button.active { background: var(--gold); width: 22px; border-radius: 5px; }

/* =========================================================
   الأقسام العامة
   ========================================================= */
section { padding-block: 88px; }
.section-sand { background: var(--sand); }
.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--text-dim); margin-top: 16px; font-size: 1.05rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-copy p { color: var(--text-dim); font-size: 1.04rem; margin-bottom: 18px; }
.about-media {
  aspect-ratio: 4/3;
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, var(--oasis), var(--ink));
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.about-media::after {
  content: "ضع صورة المزرعة هنا";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light-dim);
  font-size: 0.85rem;
  background-image: repeating-linear-gradient(45deg, rgba(199,154,69,0.12) 0 2px, transparent 2px 16px);
}

/* مميزات — قائمة مرقّمة حقيقية من كتيب المشروع */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.feature {
  background: var(--paper);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature .num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature .num::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--gold);
}
.feature .icon {
  width: 40px; height: 40px;
  color: var(--oasis);
}
.feature h4 { font-size: 1.08rem; }
.feature p { color: var(--text-dim); font-size: 0.94rem; margin: 0; }

/* حاسبة المزرعة — العنصر التفاعلي المميز */
.calculator {
  background: var(--ink);
  color: var(--text-light);
  border-radius: var(--radius-m);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.calculator::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(199,154,69,0.08) 0 1px, transparent 1px 40px);
  pointer-events: none;
}
.calc-controls { position: relative; }
.calc-controls label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.calc-controls .hint { color: var(--text-light-dim); font-size: 0.88rem; margin-bottom: 22px; }
.calc-range {
  width: 100%;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--ink-line);
  outline: none;
  margin: 18px 0 8px;
}
.calc-range::-webkit-slider-thumb {
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ink);
  cursor: pointer;
}
.calc-range::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ink);
  cursor: pointer;
}
.calc-value { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); }
.calc-value span { font-size: 1.1rem; color: var(--text-light-dim); font-family: var(--font-body); }

.calc-output { position: relative; }
.plot-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-bottom: 24px;
}
.plot-grid .cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--ink-line);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.plot-grid .cell.on {
  background: var(--gold);
}
.calc-facts { display: grid; gap: 12px; }
.calc-facts div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink-line);
  padding-bottom: 10px;
  font-size: 0.96rem;
  color: var(--text-light-dim);
}
.calc-facts div b { color: var(--text-light); font-weight: 600; }

@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .about-grid, .calculator { grid-template-columns: 1fr; }
  .calc-output { order: -1; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}

/* بانر تحميل الكتيب */
.brochure {
  background: linear-gradient(120deg, var(--clay), #6a3620);
  color: var(--text-light);
  border-radius: var(--radius-m);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.brochure h3 { font-size: 1.5rem; max-width: 30ch; }
.brochure p { color: rgba(245,239,219,0.85); margin-top: 10px; }

/* =========================================================
   صفحة موضوعات تهمك
   ========================================================= */
.page-hero {
  background: var(--ink);
  color: var(--text-light);
  padding: 150px 0 70px;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--text-light); max-width: 20ch; }
.page-hero p { color: var(--text-light-dim); max-width: 50ch; margin-top: 16px; font-size: 1.05rem; }

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.topic-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.topic-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.topic-media {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--sand-deep), var(--sand));
  position: relative;
}
.topic-media::after {
  content: "صورة المقال";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 0.8rem;
}
.topic-body { padding: 26px; }
.topic-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--oasis);
  background: rgba(62,107,69,0.1);
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 14px;
}
.topic-body h3 { font-size: 1.18rem; margin-bottom: 10px; }
.topic-body p { color: var(--text-dim); font-size: 0.95rem; margin: 0 0 16px; }
.topic-more { font-size: 0.9rem; font-weight: 600; color: var(--clay); display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 900px) { .topics-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .topics-grid { grid-template-columns: 1fr; } }

/* =========================================================
   صفحة صورنا (المعرض)
   ========================================================= */
.gallery-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}
.gallery-filter button {
  padding: 9px 20px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all .2s;
}
.gallery-filter button.active, .gallery-filter button:hover {
  background: var(--ink);
  color: var(--text-light);
  border-color: var(--ink);
}
.gallery-grid {
  columns: 3 220px;
  column-gap: 18px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: zoom-in;
  position: relative;
  background: linear-gradient(155deg, var(--sand-deep), var(--sand));
}
.gallery-item[data-h="1"] { aspect-ratio: 4/5; }
.gallery-item[data-h="2"] { aspect-ratio: 1/1; }
.gallery-item[data-h="3"] { aspect-ratio: 3/4; }
.gallery-item::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  color: var(--text-dim); font-size: 0.82rem;
}
.gallery-item:hover::after { color: var(--clay); }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(23,38,27,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox-box {
  max-width: 720px;
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(155deg, var(--ink-soft), var(--ink));
  border-radius: var(--radius-m);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light-dim);
  border: 1px solid var(--ink-line);
  position: relative;
}
.lightbox-close {
  position: absolute; top: -50px; left: 0;
  color: var(--text-light);
  background: none; border: none;
  font-size: 1rem;
  display: flex; align-items: center; gap: 8px;
}

/* =========================================================
   صفحة اتصل بنا
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact-info { display: grid; gap: 26px; align-content: start; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--oasis);
}
.info-row .icon svg { width: 20px; height: 20px; }
.info-row h4 { font-size: 1rem; margin-bottom: 4px; }
.info-row p, .info-row a { color: var(--text-dim); font-size: 0.95rem; }
.info-row a:hover { color: var(--clay); }

.map-box {
  margin-top: 10px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-m);
  background: linear-gradient(150deg, var(--sand-deep), var(--sand));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 0.85rem;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 13px 14px;
  background: #fff;
  font-size: 0.96rem;
  color: var(--text-dark);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--oasis);
}
.field textarea { resize: vertical; min-height: 110px; }
.field small.error {
  color: #A5341F;
  font-size: 0.8rem;
  display: none;
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #A5341F; }
.field.invalid small.error { display: block; }

.form-note { font-size: 0.85rem; color: var(--text-dim); margin-top: 14px; }
.form-success {
  display: none;
  background: rgba(62,107,69,0.1);
  color: var(--oasis);
  border: 1px solid rgba(62,107,69,0.3);
  padding: 16px 20px;
  border-radius: var(--radius-s);
  font-size: 0.94rem;
  margin-bottom: 20px;
}
.form-success.show { display: block; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   الواتساب العائم
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #2B9950;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* =========================================================
   فوتر
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--text-light-dim);
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--ink-line);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; font-size: 0.92rem; }
.footer-col h5 {
  font-family: var(--font-body);
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.9rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--gold); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   حركات الظهور عند التمرير
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* وصول لوحة المفاتيح */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* أزرار عامة صغيرة */
.skip-link {
  position: absolute;
  right: 12px; top: -60px;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-s);
  font-weight: 600;
  z-index: 1000;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
