/* ==========================================================================
   Avadis visual identity — the one place the brand values live (brand guidelines v2).
   Components (css/buttons.css, ...) read ONLY these custom properties: change a colour, the corner
   shape or the motion here and every component follows. Nothing in this file draws anything.

   Colours : deep purple #3f0b79 (main), orange #ff5001 (CTA), light purple #bd4bf8 (accent/hover).
   Shape   : buttons have a small radius; cards and panels use the logo's cut corner.
   ========================================================================== */
:root {
  /* colour */
  --av-purple: #3f0b79;
  --av-purple-800: #540fa2;
  --av-purple-700: #6a12cb;
  --av-purple-100: #f4ecfd;
  --av-purple-50: #faf6fe;
  --av-accent: #bd4bf8;
  --av-orange: #ff5001;
  --av-orange-dark: #d93f00;
  --av-ink: #1a1226;
  --av-text: #2b2633;
  --av-muted: #6b6578;
  --av-line: #ebe5f3;
  --av-white: #fff;
  --av-grad: linear-gradient(135deg, #3f0b79, #bd4bf8 58%, #ff5001);

  /* shape */
  --av-radius-pill: 999px;
  --av-radius-btn: 8px; /* buttons: only slightly rounded */
  --av-radius-card: 18px;
  --av-cut: 16px;

  /* motion + depth */
  --av-ease: cubic-bezier(.2, .7, .2, 1);
  --av-focus: 3px solid var(--av-accent);
  --av-shadow-orange: 0 10px 24px rgba(255, 80, 1, .3);
  --av-shadow-purple: 0 10px 24px rgba(63, 11, 121, .28);

  /* the button's identity: its shape, type and sizes (css/buttons.css) */
  --av-btn-radius: var(--av-radius-btn);
  --av-btn-weight: 800;
  --av-btn-border: 2px;
  --av-btn-gap: 8px;
  --av-btn-lift: -2px;
  --av-btn-h-icon: 44px; /* a square icon button; sm / lg follow --av-btn-h-sm / --av-btn-h-lg */
  --av-btn-h-sm: 40px;
  --av-btn-h-md: 48px;
  --av-btn-h-lg: 56px;
  --av-btn-px-sm: 18px;
  --av-btn-px-md: 24px;
  --av-btn-px-lg: 32px;
  --av-btn-fs-sm: 14px;
  --av-btn-fs-md: 15px;
  --av-btn-fs-lg: 16px;

  /* type scale: ONE size per heading level, phone value here, desktop value in the media query below (css/typography.css applies it) */
  --av-fs-h1: 30px; --av-fs-h2: 23px; --av-fs-h3: 19px; --av-fs-h4: 17px; --av-fs-h5: 16px; --av-fs-h6: 14px;
  --av-lh-h1: 1.5;  --av-lh-h2: 1.7;  --av-lh-h3: 1.75; --av-lh-h4: 1.8;  --av-lh-h5: 1.8;  --av-lh-h6: 1.8;
  --av-heading-weight: 800;
  /* running text: body for paragraphs, small for lists / links / meta, caption for the finest print (never below 13px); Persian wants a tall line */
  --av-fs-body: 16px;    --av-lh-body: 1.9;
  --av-fs-small: 14px;   --av-lh-small: 1.8;
  --av-fs-caption: 13px; --av-lh-caption: 1.7;
  /* weights: the only five in use (headings take --av-heading-weight above) */
  --av-fv-heading: "wght" 800, "DSTY" 3, "KSHD" 100;   /* same weight on the variable-font axis (body sets font-variation-settings, which beats font-weight) */
  --av-fw-regular: 400; --av-fw-medium: 500; --av-fw-semibold: 600; --av-fw-bold: 700; --av-fw-heading: var(--av-heading-weight);

  /* page width: ONE content column for the whole site (css/section-head.css .av-wrap and every page wrap read it); the header and its breadcrumb bar stay wide (1800px) on purpose */
  --av-wrap: 1200px; --av-wrap-narrow: 860px; --av-gutter: 16px;

  /* the form field: ONE look for every input / textarea / select (css/forms.css) */
  --av-field-h: 48px;
  --av-field-px: 14px;
  --av-field-radius: 12px;
  --av-field-bg: #fff;
  --av-field-border: #d8cde8;
  --av-field-border-hover: #b9a7d6;
  --av-field-text: var(--av-ink);
  --av-field-placeholder: #9b95a6;
  --av-field-fs: 16px; /* 16px on purpose: smaller makes iOS zoom the page on focus */
  --av-field-ring: 0 0 0 3px rgba(189, 75, 248, .3);
  --av-label-fs: 13.5px;
  --av-error: #b42318;
  --av-error-bg: #fef3f2;
  --av-success: #067647;
  --av-success-bg: #ecfdf3;
}
@media (min-width: 640px) {
  :root { --av-gutter: 20px; }
}
@media (min-width: 640px) {
  :root { --av-fs-h1: 30px; --av-fs-h2: 24px; --av-fs-h3: 20px; --av-fs-h4: 17px; --av-fs-h5: 16px; --av-fs-h6: 14px; }
}
