/* ==========================================================================
   Solid Crown — Design Tokens
   --------------------------------------------------------------------------
   Source of truth: Figma file Ay2uDLnIlMOWJCKYRkw3Q2, frame "solid crown"
   (node 222:508, 1440 × 5546). The file defines no Figma variables, so the
   values below were read from layer properties via Figma MCP.

   Legend in comments:
     [F]  exact Figma value
     [D]  derived design decision (responsive scale, states, etc.) —
          not in Figma, chosen to stay consistent with [F] values
   ========================================================================== */

:root {
  /* Direction-aware gradient angle: "towards the inline end" (RTL overrides). */
  --grad-to-end: 90deg;

  /* ------------------------------------------------------------------ */
  /* Color — surfaces                                                    */
  /* ------------------------------------------------------------------ */
  --color-bg: #282a2e; /* [F] page / section background */
  --color-bg-hero: #080b10; /* [F] hero section base */
  --color-surface: rgba(22, 25, 29, 0.36); /* [F] feature (why-us) card */
  --color-surface-strong: rgba(21, 22, 26, 0.59); /* [F] CTA banner */
  --color-surface-caption: rgba(40, 42, 46, 0.61); /* [F] division card caption bar */
  --color-surface-glass: rgba(255, 255, 255, 0.12); /* [F] outline / secondary button fill */
  --color-surface-icon: rgba(52, 45, 34, 0.44); /* [F] 80px icon tile */
  --color-overlay-hero: linear-gradient(
    var(--grad-to-end),
    rgba(8, 11, 16, 0.85) 0%,
    rgba(8, 11, 16, 0.35) 55%,
    rgba(8, 11, 16, 0) 100%
  ); /* [D] keeps hero copy legible on all crops */

  /* ------------------------------------------------------------------ */
  /* Color — brand                                                       */
  /* ------------------------------------------------------------------ */
  --color-gold: #f4b66c; /* [F] accent: eyebrows, highlights, links, icons */
  --color-gold-cta: #edbe78; /* [F] primary CTA fill */
  --color-gold-icon: #f3c15d; /* [F] fill used in some Figma icons (layers, trend) */
  --color-gold-hover: #f7c88b; /* [D] hover tint of --color-gold */
  --color-gold-cta-hover: #f2cc93; /* [D] hover tint of --color-gold-cta */
  --gradient-gold-stroke: linear-gradient(
    165deg,
    rgba(167, 167, 167, 0.55) 0%,
    rgba(167, 167, 167, 0.3) 45%,
    #f4b66c 100%
  );
  /* [D] approximation of Figma style "stroke lin" (grey → gold, as rendered in the PDF export) */

  /* ------------------------------------------------------------------ */
  /* Color — text                                                        */
  /* ------------------------------------------------------------------ */
  --color-text: #ffffff; /* [F] headings, primary text */
  --color-text-soft: #dedede; /* [F] hero subtitle, footer blurb */
  --color-text-muted: #a8a6a6; /* [F] body / secondary text */
  --color-text-subtle: #bfbfbf; /* [F] footer links & contact rows */
  --color-text-on-gold: #000000; /* [F] text/icon on primary CTA */

  /* ------------------------------------------------------------------ */
  /* Color — lines                                                       */
  /* ------------------------------------------------------------------ */
  --color-border: #a7a7a7; /* [F] card / panel border (1px) */
  --color-border-light: #eaeaea; /* [F] header bottom divider (0.5px) */
  --color-border-button: #ffffff; /* [F] button border (0.5px) */
  --color-divider: #8c8c8c; /* [F] stat dividers */
  --color-divider-panel: #868686; /* [F] contact panel vertical divider */

  /* ------------------------------------------------------------------ */
  /* Color — focus                                                       */
  /* ------------------------------------------------------------------ */
  --color-focus: #f4b66c; /* [D] focus ring = brand gold */

  /* ------------------------------------------------------------------ */
  /* Typography                                                          */
  /* ------------------------------------------------------------------ */
  /* Poppins for Latin glyphs; Cairo (Arabic subset only, via unicode-range) for Arabic. */
  --font-family-base:
    "Poppins", "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;

  --font-weight-medium: 500; /* [F] */
  --font-weight-semibold: 600; /* [F] */
  --font-weight-bold: 700; /* [F] */

  /* Fluid sizes: max = Figma desktop value [F]; min = mobile value [D].
     Fluid range 375px → 1440px viewport. */
  --fs-display: clamp(2.25rem, 1.81rem + 1.878vw, 3.5rem); /* 36 → 56  hero H1 */
  --fs-h2: clamp(2rem, 1.648rem + 1.502vw, 3rem); /* 32 → 48  section title */
  --fs-h3: clamp(1.5rem, 1.324rem + 0.751vw, 2rem); /* 24 → 32  stats, phone, footer headings */
  --fs-lead: clamp(1.125rem, 0.905rem + 0.939vw, 1.75rem); /* 18 → 28  lead paragraphs */
  --fs-eyebrow: clamp(1.125rem, 0.993rem + 0.563vw, 1.5rem); /* 18 → 24  eyebrow labels */
  --fs-title: clamp(1.125rem, 1.037rem + 0.376vw, 1.375rem); /* 18 → 22  card titles */
  --fs-nav: 1.25rem; /* [F] 20  nav links, stat labels */
  --fs-body-lg: 1.25rem; /* [F] 20  footer contact rows, QR caption */
  --fs-body: 1.125rem; /* [F] 18  body, buttons */
  --fs-small: 1rem; /* [F] 16  language switch, footer blurb */
  --fs-xs: 0.875rem; /* [D] 14  legal / meta text */

  --lh-tight: 1.2; /* [D] Figma uses "normal" (~1.5 for Poppins) on headings; 1.2 reads closer to render */
  --lh-heading: 1.5; /* [F] "normal" line-height on 48/56px headings (72/84px boxes) */
  --lh-body: 1.4; /* [F] */

  --tracking-normal: 0;

  /* ------------------------------------------------------------------ */
  /* Spacing — 4px base. Values observed in Figma auto-layout [F]        */
  /* ------------------------------------------------------------------ */
  --space-1: 0.25rem; /*  4 */
  --space-2: 0.5rem; /*  8 */
  --space-3: 1rem; /* 16 */
  --space-4: 1.5rem; /* 24 */
  --space-5: 2rem; /* 32 */
  --space-6: 2.5rem; /* 40 */
  --space-7: 3rem; /* 48 */
  --space-8: 4rem; /* 64 */
  --space-9: 5rem; /* 80 */

  /* Section rhythm [D, based on F 48/64/80 section paddings] */
  --section-pad-block: clamp(3rem, 2.296rem + 3.005vw, 5rem); /* 48 → 80 */
  --section-head-gap: clamp(2rem, 1.824rem + 0.751vw, 2.5rem); /* heading block → content */

  /* ------------------------------------------------------------------ */
  /* Layout                                                              */
  /* ------------------------------------------------------------------ */
  --container-max: 1327px; /* [F] content width at 1440 */
  --container-gutter: clamp(1rem, 0.098rem + 3.85vw, 3.5625rem); /* 16 → 57 [F at desktop] */
  --header-height: 87px; /* [F] desktop */
  --header-height-sm: 72px; /* [D] mobile/tablet */
  --grid-gap-cards: clamp(1rem, 0.098rem + 3.85vw, 3.5625rem); /* division cards: 57px [F] */
  --grid-gap-features: clamp(1rem, 0.714rem + 1.221vw, 1.8125rem); /* feature cards: 29px [F] */

  /* Breakpoints (reference — CSS custom props can't be used in @media)
     sm 576 · md 768 · lg 1024 · xl 1280 · design 1440                    */

  /* ------------------------------------------------------------------ */
  /* Radius [F]                                                          */
  /* ------------------------------------------------------------------ */
  --radius-sm: 16px; /* buttons, cards, panels, icon tiles, contact rows */
  --radius-md: 20px; /* 40px circular icon buttons */
  --radius-lg: 24px; /* about image, CTA banner */
  --radius-xl: 31px; /* QR card */
  --radius-hero: 29px; /* hero top corners */
  --radius-feature: 140px; /* projects image bottom-left curve */
  --radius-pill: 999px;

  /* ------------------------------------------------------------------ */
  /* Borders [F]                                                         */
  /* ------------------------------------------------------------------ */
  --border-hairline: 0.5px solid var(--color-border-button); /* buttons */
  --border-card: 1px solid var(--color-border); /* cards, panels */
  --border-header: 0.5px solid var(--color-border-light); /* header bottom */

  /* ------------------------------------------------------------------ */
  /* Components [F]                                                      */
  /* ------------------------------------------------------------------ */
  --btn-height: 59px;
  --btn-pad: 16px;
  --btn-gap: 8px;
  --btn-icon-size: 40px; /* circular arrow badge */
  --icon-sm: 24px;
  --icon-md: 32px;
  --icon-lg: 48px;
  --icon-xl: 56px;
  --icon-tile: 80px;
  --eyebrow-line: 46px; /* line after eyebrow label */
  --eyebrow-gap: 9px;
  --nav-gap: 24px;

  /* ------------------------------------------------------------------ */
  /* Effects [D] — Figma has no shadows; these are interaction states   */
  /* ------------------------------------------------------------------ */
  --shadow-glow: 0 0 0 1px rgba(244, 182, 108, 0.35), 0 12px 32px -12px rgba(244, 182, 108, 0.35);
  --shadow-lift: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  --focus-ring: 0 0 0 3px var(--color-bg), 0 0 0 5px var(--color-focus);

  /* ------------------------------------------------------------------ */
  /* Motion [D]                                                          */
  /* ------------------------------------------------------------------ */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 600ms;

  /* ------------------------------------------------------------------ */
  /* Layers [D]                                                          */
  /* ------------------------------------------------------------------ */
  --z-base: 1;
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
  }
}

[dir="rtl"] {
  --grad-to-end: 270deg;
}
