/* ===========================================================================
   VEROX — Design System (base.css)
   Shared tokens, reset, typography, and core components.
   Used by: marketing website + accounting system + booking system.
   RTL-first (Arabic). Deep forest green + gold brand.
   =========================================================================== */

/* ---- Fonts ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

/* ---- Design tokens -------------------------------------------------------- */
:root {
  /* Brand greens */
  --green-900: #16241b;   /* near-black forest (deepest bg / headers) */
  --green-800: #1c2e22;
  --green-700: #223a2b;   /* sidebar / dark panels */
  --green-600: #2d4a34;
  --green-500: #3a6042;
  --green-400: #6fae5f;   /* primary action green */
  --green-300: #8cc47c;
  --green-200: #c9e3bf;
  --green-100: #e7f1e2;
  --green-050: #f2f7ef;

  /* Gold accents (from logo) */
  --gold-700: #9a7b1e;
  --gold-500: #c9a227;
  --gold-400: #d4af37;
  --gold-300: #e6cd7a;
  --gold-100: #f7efd6;

  /* Neutrals */
  --ink:      #17231b;    /* primary text */
  --ink-soft: #45564c;    /* secondary text */
  --muted:    #7a887f;    /* tertiary text */
  --line:     #e4e9e3;    /* borders */
  --line-soft:#eef2ec;
  --bg:       #f6f8f4;    /* page background */
  --surface:  #ffffff;    /* cards */
  --surface-2:#fbfcfa;

  /* States */
  --danger:   #e0524f;
  --danger-bg:#fdecec;
  --warn:     #e0a53a;
  --warn-bg:  #fcf3e2;
  --info:     #3d8bcd;
  --ok:       #4a9d5b;
  --ok-bg:    #e8f3ea;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(22,36,27,.06), 0 1px 3px rgba(22,36,27,.05);
  --sh-md: 0 6px 18px rgba(22,36,27,.08), 0 2px 6px rgba(22,36,27,.05);
  --sh-lg: 0 18px 45px rgba(22,36,27,.13), 0 6px 16px rgba(22,36,27,.07);
  --sh-gold: 0 10px 30px rgba(201,162,39,.25);

  /* Layout */
  --container: 1200px;
  --header-h: 76px;

  --font: 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --ease: cubic-bezier(.4,.14,.3,1);
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; color: var(--ink); }
:focus-visible { outline: 3px solid var(--green-300); outline-offset: 2px; border-radius: 6px; }

/* ---- Layout helpers ------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 8vw, 108px); }
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stack { display: flex; flex-direction: column; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---- Typography ----------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-500);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-400); border-radius: 2px; }
.display { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.01em; }
.h-lead { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.gold-text { color: var(--gold-500); }
.grad-text {
  background: linear-gradient(120deg, var(--green-500), var(--green-400) 60%, var(--gold-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: var(--r-pill); font-weight: 700; font-size: 1rem;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  white-space: nowrap; border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--green-400); color: #fff; box-shadow: 0 8px 20px rgba(111,174,95,.3); }
.btn-primary:hover { background: var(--green-500); box-shadow: 0 12px 26px rgba(111,174,95,.4); transform: translateY(-2px); }
.btn-dark { background: var(--green-700); color: #fff; }
.btn-dark:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-gold { background: linear-gradient(120deg, var(--gold-400), var(--gold-500)); color: #2c2408; box-shadow: var(--sh-gold); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(201,162,39,.36); }
.btn-ghost { background: #fff; color: var(--green-700); border-color: var(--line); box-shadow: var(--sh-sm); }
.btn-ghost:hover { border-color: var(--green-300); color: var(--green-600); transform: translateY(-2px); }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.32); }
.btn-wa:hover { background: #1ebe5a; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---- Cards & surfaces ----------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
.card-pad { padding: 26px; }
.hover-lift { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

/* ---- Badges / chips ------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 700;
}
.badge-green { background: var(--green-100); color: var(--green-600); }
.badge-gold { background: var(--gold-100); color: var(--gold-700); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }

/* ---- Forms ---------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.field > label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); background: var(--surface); font-size: .98rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--green-400);
  box-shadow: 0 0 0 4px rgba(111,174,95,.14);
}
.textarea { resize: vertical; min-height: 90px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a887f' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-inline-start: 40px; }

/* ---- Divider / misc ------------------------------------------------------- */
.divider { height: 1px; background: var(--line); border: 0; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); }

/* ---- Animations ----------------------------------------------------------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
[data-reveal] { opacity: 0; }
[data-reveal].in { animation: riseIn .7s var(--ease) forwards; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; }
}

/* ---- Scrollbar ------------------------------------------------------------ */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--green-200); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--green-300); }
