/*
Theme Name: Nature Talent Academy
Theme URI: https://ngaeco.org
Author: NGAECO Development
Author URI: https://ngaeco.org
Description: ثيم احترافي متكامل لأكاديمية موهبة الطبيعة — تعليم الأطفال القائم على الطبيعة. يدعم العربية والإنجليزية، الوضع الليلي، نموذج تسجيل الطلاب، ولوحة تحكم كاملة. A premium bilingual theme for nature-based early childhood education.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.4
Requires PHP: 7.2
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nta
Tags: education, children, rtl-language-support, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   متغيرات الجذر — Design Tokens
   ========================================================================== */
:root {
  /* الألوان الأساسية */
  --c-forest: #1B4332;       /* أخضر الغابة الداكن */
  --c-primary: #2D5A3D;      /* الأخضر الرئيسي */
  --c-soft: #5BA998;         /* الأخضر الناعم */
  --c-gold: #E8C547;         /* الذهبي المكمّل */
  --c-mint: #D8F3DC;         /* نعناعي فاتح */
  --c-cream: #F0FAF4;        /* خلفية كريمية */

  /* ألوان وظيفية - الوضع النهاري */
  --bg: #FCFDFB;
  --bg-alt: var(--c-cream);
  --bg-card: #FFFFFF;
  --surface: #FFFFFF;
  --text: #18271F;
  --text-soft: #4A5D52;
  --text-muted: #7A8C81;
  --border: #E3EDE6;
  --header-bg: rgba(252, 253, 251, 0.85);
  --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.06);
  --shadow-md: 0 8px 30px rgba(27, 67, 50, 0.10);
  --shadow-lg: 0 20px 60px rgba(27, 67, 50, 0.15);
  --shadow-gold: 0 10px 30px rgba(232, 197, 71, 0.35);

  /* الخطوط */
  --font-display: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Tajawal', 'Segoe UI', system-ui, sans-serif;

  /* المقاسات */
  --maxw: 1240px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  /* الحركة */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s;
  --t: 0.4s;
  --t-slow: 0.7s;
}

/* الوضع الليلي */
[data-theme="dark"] {
  --bg: #0F1C16;
  --bg-alt: #14241B;
  --bg-card: #18291F;
  --surface: #1C2F24;
  --text: #EAF3EE;
  --text-soft: #B9CcC0;
  --text-muted: #8AA294;
  --border: #2A3F33;
  --header-bg: rgba(15, 28, 22, 0.85);
  --c-mint: #1E3328;
  --c-cream: #14241B;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 1.05rem;
  font-weight: 400;
  overflow-x: hidden;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   أدوات مساعدة — Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 5vw, 3rem);
}
.section { padding-block: var(--section-y); }
.bg-alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* شارة علوية للأقسام */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-soft);
  background: var(--c-mint);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}
[data-theme="dark"] .eyebrow { color: var(--c-gold); }

.section-title {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  margin-bottom: 1rem;
  line-height: 1.12;
}
.section-title .accent { color: var(--c-soft); }
.section-lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--text-soft);
  max-width: 60ch;
  line-height: 1.8;
}
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }

/* ==========================================================================
   الأزرار — Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 2rem;
  border-radius: 100px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.btn-primary {
  background: var(--c-gold);
  color: var(--c-forest);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 40px rgba(232, 197, 71, 0.5); }
.btn-solid {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-solid:hover { transform: translateY(-3px); background: var(--c-forest); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-ghost:hover { border-color: var(--c-soft); color: var(--c-soft); transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.08rem; }

/* ==========================================================================
   حركات الكشف عند التمرير — Scroll Reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
