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

:root {
  color-scheme: light;
  --font-sans: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --emerald: #10b981;
  --emerald-600: #059669;
  --forest: #064e3b;
  --forest-700: #053f32;
  --navy: #0f3d4c;
  --navy-900: #082f49;
  --gold: #d6a33d;
  --gold-100: #fff6d7;
  --ink: #10231f;
  --muted: #64748b;
  --line: rgba(15, 61, 76, 0.12);
  --surface: #ffffff;
  --surface-soft: #f4fbf8;
  --surface-strong: #e6f7ef;
  --background: #f7fbf9;
  --shadow-sm: 0 12px 30px rgba(6, 78, 59, 0.08);
  --shadow-md: 0 20px 55px rgba(6, 78, 59, 0.13);
  --shadow-lg: 0 30px 90px rgba(6, 78, 59, 0.18);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --container: 1180px;
  --nav-height: 78px;

  /* Typography controls; admin settings can override these live. */
  --font-size-body: 16px;
  --font-size-header: 15px;
  --font-size-brand: 19px;
  --font-size-brand-tagline: 12px;
  --font-size-hero-title: clamp(2.5rem, 6vw, 5.6rem);
  --font-size-page-title: clamp(2.2rem, 5vw, 4.4rem);
  --font-size-section-title: clamp(2rem, 4vw, 3.2rem);
  --font-size-lead: 16.5px;
  --font-size-card-title: 17.5px;
  --font-size-card-text: 15px;
  --font-size-button: 15px;
  --font-size-footer: 14.5px;
  --font-size-rich-content: 16px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7f8f0;
  --muted: #a7c1b6;
  --line: rgba(187, 247, 208, 0.14);
  --surface: #0c1f1a;
  --surface-soft: #071713;
  --surface-strong: #103a2f;
  --background: #06120f;
  --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 20px 55px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 34rem),
    linear-gradient(180deg, var(--background), var(--surface-soft));
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(16, 185, 129, 0.28);
  color: var(--forest);
}

:focus-visible {
  outline: 3px solid rgba(214, 163, 61, 0.72);
  outline-offset: 4px;
}

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

/* --- Minimal preflight (replaces Tailwind base reset used by the Next.js build) --- */
h1,h2,h3,h4,h5,h6,p,figure,blockquote,dl,dd { margin: 0; }
h1,h2,h3,h4,h5,h6 { font-size: inherit; font-weight: inherit; }
ul,ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
hr { height: 0; color: inherit; border-top-width: 1px; }
table { border-collapse: collapse; border-spacing: 0; }
button,input,optgroup,select,textarea { color: inherit; margin: 0; padding: 0; background: transparent; border: 0; }
b,strong { font-weight: bolder; }
small { font-size: 80%; }
[hidden] { display: none !important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
