/* ─────────────────────────────────────────────────────────────
   PSEU "Dr. Maria Montessori" — Design Tokens
   ────────────────────────────────────────────────────────────
   Colors, type and foundational variables extracted from the
   Figma file (ACTIVE pages: HOME, ABOUT-US, ADMISSIONS,
   CURRICULUM, BLOG). Use these tokens on every new surface to
   keep the identity consistent.
   ───────────────────────────────────────────────────────────── */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,600&family=Nunito+Sans:ital,wght@0,400;0,500;0,600;0,700;0,900;1,900&family=Playball&display=swap');

:root {
  /* ─── CORE PALETTE ───────────────────────────────────────── */

  /* Navy — primary brand. Used for header, headings, deep CTAs,
     the big hero-card and footer. Several tiny hue variants
     appear in the Figma file; we standardize on one Navy. */
  --navy-900: #2D3E81;        /* canonical navy — most usage */
  --navy-800: #2C396C;        /* slightly cooler */
  --navy-950: #07185A;        /* darkest — rarely used accent */
  --navy-ink: #081219;        /* body text on white */
  --navy-ink-2: #0C141A;      /* deep card fills */

  /* Accent — signature warm pink/magenta. Used for hover
     chips, tiny decorative icons, accent circles. */
  --pink-500: #EA6697;

  /* Green — the CTA color. "Admissions" pill and all primary
     action buttons ride on this green. */
  --green-500: #3AB54B;
  --green-600: #2FA040;       /* pressed/hover */
  --green-100: #E3F4E5;       /* soft tint */

  /* Sun yellow — the little "sun" icons and highlights that
     peek through the site (like tiny ornaments). */
  --sun-500:   #FFA617;
  --sun-400:   #F29F1D;
  --sun-300:   #FFD800;

  /* Category chip colors (news cards). */
  --chip-news:    var(--green-500);   /* "NEWS" */
  --chip-event:   var(--sun-400);     /* "EVENT" */
  --chip-announcement: var(--pink-500);/* "ANNOUNCEMENT" */

  /* Neutrals */
  --white:      #FFFFFF;
  --off-white:  #FCFCFC;
  --cream:      #FBF6EE;     /* warm cream — newsletter strip */
  --surface:    #F4F5F6;     /* soft gray surface — info panels */
  --border:     #CCCDCE;
  --muted-500:  #3A3D46;     /* body on light */
  --muted-400:  #3E445C;     /* secondary */
  --muted-300:  #62445C;     /* tertiary */

  /* ─── SEMANTIC ──────────────────────────────────────────── */
  --bg:           var(--white);
  --bg-inverse:   var(--navy-900);
  --bg-soft:      var(--surface);

  --fg-1:         var(--navy-ink);   /* primary body */
  --fg-2:         var(--muted-500);  /* secondary body */
  --fg-3:         var(--muted-400);  /* labels, metadata */
  --fg-muted:     var(--border);     /* disabled, dividers */
  --fg-on-dark:   var(--white);
  --fg-on-dark-2: rgba(255,255,255,0.80);

  --brand:        var(--navy-900);
  --brand-accent: var(--pink-500);
  --action:       var(--green-500);
  --action-hover: var(--green-600);

  --link:         var(--green-500);
  --divider:      rgba(8,18,25,0.08);

  /* ─── TYPE ──────────────────────────────────────────────── */
  --font-display: 'Nunito', system-ui, sans-serif;            /* big bold headlines */
  --font-body:    'Nunito Sans', system-ui, sans-serif;       /* paragraphs & UI */
  --font-accent:  'Playball', 'Nunito', cursive;              /* decorative script — sparingly */
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;  /* not present in brand; fallback only */

  /* Scale — mirrors the Figma (16/18/24/27/30/36/44 + 55 quote). */
  --fs-xs:     14px;
  --fs-sm:     15px;
  --fs-base:   16px;
  --fs-md:     18px;
  --fs-lg:     21px;
  --fs-xl:     24px;
  --fs-2xl:    27px;
  --fs-3xl:    30px;
  --fs-4xl:    36px;
  --fs-5xl:    44px;
  --fs-quote:  55px;

  --lh-tight:  1.15;
  --lh-snug:   1.25;
  --lh-normal: 1.5;

  --tracking-cap: 0.02em;       /* 2% — used for ALL-CAPS labels */

  /* ─── SPACING / RADII / ELEVATION ───────────────────────── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  80px;
  --space-10: 128px;            /* page side padding on 1600w */

  --radius-xs:    4px;           /* tiny chips */
  --radius-sm:    8px;           /* small cards */
  --radius-md:    12px;
  --radius-lg:    16px;          /* standard card */
  --radius-xl:    24px;          /* hero card / large section */
  --radius-pill:  999px;         /* ALL buttons and tags */

  --shadow-xs:  0 1px 2px rgba(8,18,25,0.06);
  --shadow-sm:  0 2px 6px rgba(8,18,25,0.08);
  --shadow-md:  0 6px 20px rgba(8,18,25,0.10);
  --shadow-lg:  0 18px 48px rgba(45,62,129,0.18);

  /* image overlay gradients used across cards */
  --overlay-card:    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 100%);
  --overlay-hero:    linear-gradient(180deg, rgba(45,62,129,0.45), rgba(45,62,129,0.45));

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast:   140ms;
  --dur-base:   240ms;
  --dur-slow:   420ms;
}

/* ─── SEMANTIC TYPE ─── */
html, body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--fg-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* предотвратява хоризонтален scroll от overflow на дъщерни елементи */
  max-width: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
/* iframe-ите остават без max-width, защото hero video използва нарочно overflow за 16:9 covering */

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.005em;
  color: var(--fg-1);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  color: var(--brand);
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
  color: var(--brand);
}
h4, .h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  color: var(--brand);
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--brand);
}
.script {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 28px;
  color: var(--white);
}
p, .p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--fg-2);
}
.meta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-xs);
  color: var(--fg-3);
}
a {
  color: var(--link);
  text-decoration: none;
  font-weight: 700;
}
a:hover { color: var(--action-hover); }

/* Buttons — the brand has exactly one shape: a pill. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px 8px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 24px;
  text-align: center;
  border: 0;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn-primary   { background: var(--action); color: var(--white); }
.btn-primary:hover,
.btn-primary:focus,
a.btn-primary:hover,
a.btn-primary:focus { background: var(--action-hover); color: var(--white); }
.btn-primary:active{ transform: translateY(1px); }
.btn-secondary { background: var(--white); color: var(--brand); border: 1px solid var(--brand); }
.btn-secondary:hover,
.btn-secondary:focus,
a.btn-secondary:hover,
a.btn-secondary:focus { background: var(--surface); color: var(--brand); }
.btn-ghost     { background: transparent; color: var(--brand); }
.btn-ghost:hover,
.btn-ghost:focus,
a.btn-ghost:hover,
a.btn-ghost:focus { color: var(--action); }
