/* ==========================================================================
   tokens.css - the single source of every colour, type size, radius, shadow, spacing and motion value.
   Values come from the Figma brand guide (frame 3:43) and the page frames (docs: figma/dokum-20261020.txt).
   No raw colour / size values anywhere else: components.css and pages.css only use these custom properties.
   ========================================================================== */

/* ---- fonts (self-hosted, SIL OFL 1.1: licence texts next to the files in assets/fonts/<family>/OFL.txt) ---- */
/* Turkish needs Ğ ğ İ Ş ş (U+011E-011F / U+0130 / U+015E-015F), which are not in the latin files. Those five letters come from tiny `-tr` subsets
   (2-4 KB, Google Fonts `text=` subsets of the same OFL fonts); the big latin-ext files are only fetched when a page really uses another
   extended letter, so a normal Turkish page never loads them (about 100 KB less). */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed/barlow-condensed-700-tr.woff2") format("woff2");
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed/barlow-condensed-800-tr.woff2") format("woff2");
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter/inter-var-tr.woff2") format("woff2");
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed/barlow-condensed-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-011D, U+0120-012F, U+0132-015D, U+0160-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed/barlow-condensed-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed/barlow-condensed-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-011D, U+0120-012F, U+0132-015D, U+0160-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed/barlow-condensed-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter ships as one variable file per subset (weights 400-700 in a single file). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter/inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-011D, U+0120-012F, U+0132-015D, U+0160-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- colour: brand palette (brand guide 3:43) ---- */
  --color-navy-900: #0b2545;       /* primary: headings, header text, footer and hero background */
  --color-navy-800: #13315c;       /* cards on navy, icon tiles, badges on navy, hairlines on navy */
  --color-navy-700: #1a3e70;       /* lighter stop of the service-image placeholder gradient */
  --color-navy-200: #b9c6da;       /* muted text on navy */
  --color-orange-500: #ff8a00;     /* safety orange: call buttons, accents, active marks */
  --color-orange-600: #e07000;     /* hover / pressed of orange surfaces, large orange text */
  --color-surface: #f4f6fa;        /* section background, input background */
  --color-white: #ffffff;
  --color-ink: #0f172a;            /* body text on light */
  --color-grey-600: #5b6b82;       /* secondary text on light */
  --color-grey-400: #8a96a8;       /* neutral (logo sheet) */
  --color-border: #e2e7ef;         /* card / header hairline */
  --color-border-input: #d5dce6;   /* input border */
  --color-border-soft: #e6ebf2;    /* quiet dividers */
  --color-border-check: #b5c0cf;   /* checkbox border */
  --color-danger: #b42318;         /* validation errors (not in Figma: AA on white and on #f4f6fa) */
  --color-danger-soft: #fef3f2;
  --color-success: #1a7f4b;        /* form success (not in Figma) */
  --color-success-soft: #ecfdf3;

  /* ---- colour: semantic aliases (components use these) ---- */
  --text: var(--color-ink);
  --text-muted: var(--color-grey-600);
  --text-on-navy: var(--color-white);
  --text-on-navy-muted: var(--color-navy-200);
  --heading: var(--color-navy-900);
  --accent: var(--color-orange-500);
  --accent-text: var(--color-orange-600);  /* Figma #e07000 for small orange text on light grounds (owner decision: fidelity over AA, see tools/axe-check.mjs) */
  --bg: var(--color-white);
  --bg-soft: var(--color-surface);
  --bg-navy: var(--color-navy-900);
  --line: var(--color-border);
  --focus-ring: var(--color-orange-500);

  /* translucent surfaces */
  --overlay: rgb(11 37 69 / 0.62);                  /* drawer / dialog scrim (navy at 62 %) */
  --line-on-navy: var(--color-navy-800);            /* hairlines on navy surfaces */
  --line-on-navy-strong: rgb(185 198 218 / 0.32);   /* outline buttons on navy */
  --hover-on-navy: rgb(255 255 255 / 0.08);         /* hover of ghost controls on navy */
  --tint-orange-soft: rgb(255 138 0 / 0.12);        /* tip box / active table-of-contents row (Figma #ff8a00 at 12 %) */
  --tint-orange: rgb(255 138 0 / 0.14);             /* soft orange wash (focus halo, success pulse) */

  /* image placeholder (Figma "Kapak Görseli": gradient + two translucent circles + orange bottom bar) */
  --placeholder-gradient: linear-gradient(122deg, var(--color-navy-800) -8%, var(--color-navy-900) 88%);
  --placeholder-gradient-hero: linear-gradient(122deg, var(--color-navy-700) -8%, var(--color-navy-800) 52%, var(--color-navy-900) 100%);
  --placeholder-circle-1: rgb(255 255 255 / 0.06);
  --placeholder-circle-2: rgb(255 255 255 / 0.05);

  /* ---- typography ---- */
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* fluid type scale: min (phone) ... max (Figma desktop value) */
  --fs-hero: clamp(2.5rem, 1.7rem + 3.9vw, 3.75rem);          /* 40 -> 60: below 1024 (single column); from 1024 pages.css takes over up to 76 */
  --fs-page-title: clamp(2.5rem, 1.7rem + 3.6vw, 4.25rem);    /* H1 of inner pages: 40 -> 68 */
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);              /* section heading: 32 -> 52 */
  --fs-h3: clamp(1.5rem, 1.35rem + 0.6vw, 1.75rem);           /* card / step title: 24 -> 28 */
  --fs-h4: 1.0625rem;                                          /* 17: item titles in lists */
  --fs-service-title: clamp(2.5rem, 1.7rem + 3.9vw, 4.5rem);   /* service page H1: 40 -> 72 */
  --fs-post-title: clamp(2.125rem, 1.5rem + 3.1vw, 4rem);     /* post H1: 34 -> 64 */
  --fs-block-title: clamp(1.75rem, 1.4rem + 1.7vw, 2.625rem); /* service block / similar posts heading: 28 -> 42 */
  --fs-article-h2: clamp(1.625rem, 1.35rem + 1.2vw, 2.25rem); /* numbered headings inside an article: 26 -> 36 */
  --fs-form-title: clamp(1.75rem, 1.5rem + 1vw, 2.125rem);    /* 28 -> 34 */
  --fs-number: clamp(2.5rem, 1.71rem + 3.23vw, 4.5rem);       /* step numbers: 40 -> 72 */
  --fs-stat: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);            /* hero stats: 32 -> 44 */
  --fs-cta: clamp(1.875rem, 1.3rem + 2.4vw, 2.875rem);        /* call band headline: 30 -> 46 */
  --fs-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);      /* hero intro: 17 -> 19 */
  --fs-intro: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);        /* section intro: 16 -> 17 */
  --fs-body: 0.9375rem;                                        /* 15 */
  --fs-small: 0.875rem;                                        /* 14 */
  --fs-label: 0.8125rem;                                       /* 13 */
  --fs-micro: 0.75rem;                                         /* 12: never smaller on screen */
  --fs-note: 0.6875rem;                                        /* 11: form footnote only (Figma) */
  --lh-tight: 1;
  --lh-heading: 1.05;
  --lh-snug: 1.2;
  --lh-body: 1.55;
  --lh-relaxed: 1.65;
  --ls-eyebrow: 0.12em;
  --ls-caps: 0.08em;

  /* ---- spacing (4 px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --section-pad: clamp(3.5rem, 2.4rem + 4.6vw, 6rem);   /* vertical padding of a page section: 56 -> 96 */

  /* ---- layout ---- */
  --container: 75rem;                                   /* 1200 */
  --gutter: 1.25rem;                                    /* side padding, raised by breakpoints in layout.css */
  --header-h: 4.25rem;                                  /* compact header bar (< 1024) */

  /* ---- radius ---- */
  --radius-xs: 4px;     /* checkbox */
  --radius-sm: 8px;
  --radius-md: 10px;    /* inputs */
  --radius-lg: 12px;    /* buttons, search */
  --radius-xl: 16px;    /* icon tiles, small cards */
  --radius-2xl: 20px;   /* cards */
  --radius-3xl: 24px;   /* hero form card, featured post */
  --radius-4xl: 28px;   /* call band */
  --radius-pill: 999px;
  --radius-tile: 14px;  /* trust-strip icon tile */

  /* ---- shadow ---- */
  --shadow-card-hero: 0 24px 48px rgb(0 0 0 / 0.28);    /* hero form card */
  --shadow-raised: 0 8px 20px rgb(10 38 69 / 0.3);      /* contact map card */
  --shadow-hover: 0 10px 28px rgb(11 37 69 / 0.1);      /* service card hover (not in Figma: a quiet lift) */
  --shadow-drawer: -24px 0 48px rgb(0 0 0 / 0.28);

  /* ---- motion (emil-design-eng: strong ease-out, short) ---- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 150ms;     /* hovers, press */
  --dur-base: 220ms;     /* menu, small panels */
  --dur-slow: 260ms;     /* drawer */
  --dur-reveal: 400ms;   /* scroll reveal */

  /* ---- icon ---- */
  --icon-stroke: 2;

  /* ---- z-index ---- */
  --z-header: 50;
  --z-overlay: 90;
  --z-drawer: 100;
  --z-toast: 120;
}
