/* ============================================================
   Mohamed Alarbi — Global Stylesheet
   Modify variables in :root to restyle the entire site
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Cormorant+Garamond:ital,wght@0,600;1,500&display=swap');

/* ── VARIABLES (edit here to restyle everything) ── */
:root {
  /* Brand Colors */
  --g-darkest:  #0d3320;
  --g-dark:     #1a5c38;
  --g-mid:      #2D7D4F;
  --g-base:     #3a9e66;
  --g-light:    #4CAF50;
  --g-pale:     #e4f5eb;
  --g-ultra:    #f2fbf5;

  /* Neutrals */
  --white:      #ffffff;
  --off-white:  #f8faf9;
  --border:     #daeae2;
  --border-mid: #c2dccb;
  --gray-light: #f0f4f2;
  --gray:       #6b7a72;
  --gray-dark:  #3d4a42;
  --dark:       #111916;
  --text:       #1c2b22;

  /* Typography */
  --font-ar:    'Tajawal', sans-serif;
  --font-en:    'Cormorant Garamond', serif;

  /* Spacing */
  --section-py: 90px;
  --container:  1160px;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(26,92,56,0.07);
  --shadow-md:  0 8px 32px rgba(26,92,56,0.11);
  --shadow-lg:  0 20px 60px rgba(26,92,56,0.15);

  /* Transitions */
  --t-fast:     0.18s ease;
  --t-mid:      0.3s ease;
  --t-slow:     0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ar);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── CONTAINER ── */
.container {
  width: 92%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ── SECTION BASE ── */
.section { padding: var(--section-py) 0; }

/* ── SECTION HEADER ── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--g-mid);
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--g-mid);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--g-dark), var(--g-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-body {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.85;
  max-width: 540px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  transition: transform var(--t-mid), box-shadow var(--t-mid), background var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--g-dark) 0%, var(--g-base) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(45,125,79,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(45,125,79,0.45);
}

.btn-outline {
  border: 1.5px solid var(--g-mid);
  color: var(--g-mid);
  background: transparent;
}
.btn-outline:hover {
  background: var(--g-pale);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--g-mid);
  padding: 10px 0;
  font-weight: 600;
  font-size: 14px;
}
.btn-ghost:hover { color: var(--g-dark); }
.btn-ghost svg { transition: transform var(--t-fast); }
.btn-ghost:hover svg { transform: translateX(-4px); }

.btn-white {
  background: var(--white);
  color: var(--g-dark);
  font-weight: 800;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.2);
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}
.site-nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--g-dark), var(--g-base));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}
.nav-logo-role {
  font-size: 11px;
  color: var(--gray);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}
.nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-dark);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--g-mid);
  background: var(--g-pale);
}
.nav-links .nav-cta {
  background: var(--g-mid);
  color: white !important;
  padding: 8px 18px;
  font-weight: 600;
}
.nav-links .nav-cta:hover {
  background: var(--g-dark) !important;
  color: white !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--t-mid);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: white;
  z-index: 999;
  padding: 24px 5%;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--t-mid), opacity var(--t-mid);
  pointer-events: none;
}
.nav-mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-fast);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { background: var(--g-pale); color: var(--g-mid); }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 48px 5% 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.footer-brand .nav-logo-mark { margin-bottom: 14px; }
.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 240px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--g-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
}
.footer-bottom a { color: var(--g-light); }

/* ── TAGS ── */
.tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--g-pale);
  color: var(--g-dark);
  border: 1px solid rgba(45,125,79,0.15);
}

/* ── PLACEHOLDER IMG ── */
.img-placeholder {
  background: linear-gradient(135deg, var(--g-pale) 0%, var(--g-ultra) 100%);
  border: 2px dashed var(--border-mid);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--g-mid);
  font-size: 13px;
  font-weight: 500;
}
.img-placeholder-icon { font-size: 32px; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 768px) {
  :root { --section-py: 60px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  :root { --section-py: 48px; }
}
