/* =====================================================================
   XY Partners — Zero Block class system for Tilda
   Type scale v2: matched to the client's approved page
   (Incubatorul de Inovații Alimentare landing page).

   Paste into: Site Settings → Insert Code → Custom CSS-code → Edit CSS
   (plain CSS, no  tags). Save changes, then republish all pages.

   How it works: in Zero Block, right-click an element → Add CSS class name
   (several classes: separate with commas). Tilda puts the class on the
   element's wrapper; the visible content is inside .tn-atom, so every rule
   targets ".class .tn-atom". !important is required: Tilda writes sizes and
   line heights inline on the element.

   IMPORTANT: put xy-t-* and xy-c-* classes on TEXT elements only — never on
   a group or the artboard. Each class sets its own case, so a stray class
   on a group cannot force caps on body text.

   Font names must match Site Settings → Fonts exactly: 'Anton' and
   'RethinkSans' (no space).

   Tilda breakpoints: ≥1200 · 960–1199 · 640–959 · 480–639 · <480
   Responsive values are the client's clamp() sizes measured at
   1440 / 1024 / 768 / 560 / 375 px; fixed sizes are fixed in the client page too.
   ===================================================================== */

/* ---------- 1. Scale: one source of truth ---------- */
:root {
  --xy-display: 120px; --xy-h1: 99px; --xy-h2: 54px; --xy-h2-sm: 48px; --xy-subtitle: 35px;
  --xy-red: #E81C2E; --xy-red-text: #C41424; --xy-black: #202020; --xy-muted: #4A4A4A;
}
@media screen and (max-width: 1199px) { :root { --xy-display: 102px; --xy-h1: 72px; --xy-h2: 41px; --xy-h2-sm: 36px; --xy-subtitle: 27px; } }
@media screen and (max-width: 959px)  { :root { --xy-display: 77px;  --xy-h1: 54px; --xy-h2: 35px; --xy-h2-sm: 32px; --xy-subtitle: 22px; } }
@media screen and (max-width: 639px)  { :root { --xy-display: 64px;  --xy-h1: 48px; --xy-h2: 35px; --xy-h2-sm: 32px; --xy-subtitle: 22px; } }
@media screen and (max-width: 479px)  { :root { --xy-display: 56px;  --xy-h1: 48px; --xy-h2: 35px; --xy-h2-sm: 32px; --xy-subtitle: 22px; } }

/* ---------- 2. Anton classes — always UPPERCASE ----------
   Line height 1.2 minimum: Romanian diacritics (marks on Â/Î, commas under
   Ș/Ț) collide with the next line at 1.0. xy-t-num is single-line numerals. */
.xy-t-display .tn-atom, .xy-t-h1 .tn-atom, .xy-t-h2 .tn-atom, .xy-t-h2-sm .tn-atom, .xy-t-subtitle .tn-atom,
.xy-t-h3 .tn-atom, .xy-t-day .tn-atom, .xy-t-stat .tn-atom, .xy-t-num .tn-atom, .xy-t-num-sm .tn-atom {
  font-family: 'Anton', Impact, sans-serif !important;
  font-weight: 400 !important; text-transform: uppercase !important; letter-spacing: 0 !important;
}
.xy-t-display .tn-atom  { font-size: var(--xy-display) !important;  line-height: 1.2 !important; }
.xy-t-h1 .tn-atom       { font-size: var(--xy-h1) !important;       line-height: 1.22 !important; } /* hero title */
.xy-t-h2 .tn-atom       { font-size: var(--xy-h2) !important;       line-height: 1.2 !important; }  /* section title */
.xy-t-h2-sm .tn-atom    { font-size: var(--xy-h2-sm) !important;    line-height: 1.2 !important; }  /* smaller section title (two-column sections) */
.xy-t-subtitle .tn-atom { font-size: var(--xy-subtitle) !important; line-height: 1.25 !important; } /* Anton line under the hero title */
.xy-t-day .tn-atom      { font-size: 30px !important; line-height: 1.2 !important; }  /* agenda day: "VINERI, 27 NOIEMBRIE" */
.xy-t-h3 .tn-atom       { font-size: 26px !important; line-height: 1.2 !important; }  /* step titles, facts values, small Anton headings */
.xy-t-stat .tn-atom     { font-size: 52px !important; line-height: 1.2 !important; }  /* "5 COMPANII", "10+ SPECIALIȘTI" */
.xy-t-num .tn-atom      { font-size: 40px !important; line-height: 1 !important; }    /* card numbers 01–04 */
.xy-t-num-sm .tn-atom   { font-size: 22px !important; line-height: 1.2 !important; }  /* list numbers "01."–"05." (benefits) */

/* ---------- 3. Rethink Sans classes ---------- */
.xy-t-lead .tn-atom, .xy-t-h4 .tn-atom, .xy-t-callout .tn-atom, .xy-t-title .tn-atom,
.xy-t-body .tn-atom, .xy-t-base .tn-atom, .xy-t-base-strong .tn-atom, .xy-t-text .tn-atom, .xy-t-event .tn-atom, .xy-t-small .tn-atom,
.xy-t-overline .tn-atom, .xy-t-label .tn-atom, .xy-t-tag .tn-atom {
  font-family: 'RethinkSans', 'Rethink Sans', sans-serif !important;
}
.xy-t-lead .tn-atom     { font-size: 22px !important; line-height: 1.45 !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; } /* bold intro in hero */
.xy-t-h4 .tn-atom       { font-size: 24px !important; line-height: 1.3 !important;  font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; } /* "Te regăsești…", "Incubatorul în cifre" */
.xy-t-callout .tn-atom  { font-size: 20px !important; line-height: 1.45 !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; } /* dark callout box, key sentence */
.xy-t-title .tn-atom    { font-size: 19px !important; line-height: 1.35 !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; } /* card titles */
.xy-t-body .tn-atom     { font-size: 19px !important; line-height: 1.55 !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; } /* section intro paragraphs */
.xy-t-base .tn-atom     { font-size: 17px !important; line-height: 1.55 !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; } /* list items, default body size of the client page */
.xy-t-base-strong .tn-atom { font-size: 17px !important; line-height: 1.55 !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; font-variant-numeric: tabular-nums !important; } /* agenda times and key sessions */
.xy-t-text .tn-atom     { font-size: 16px !important; line-height: 1.55 !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; } /* card text, step text */
.xy-t-small .tn-atom    { font-size: 14px !important; line-height: 1.45 !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; } /* form hints, notes */
.xy-t-tag .tn-atom      { font-size: 14px !important; line-height: 1.2 !important;  font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; } /* pill/badge text: "Înscrieri deschise" */
.xy-t-event .tn-atom    { font-size: 19px !important; line-height: 1.4 !important;  font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0 !important; }
.xy-t-overline .tn-atom { font-size: 14px !important; line-height: 1.3 !important;  font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.12em !important; } /* "01 / DE CE ACEST PROGRAM?" */
.xy-t-label .tn-atom    { font-size: 13px !important; line-height: 1.3 !important;  font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.08em !important; } /* "CÂND", "PASUL 1", "ZIUA 1" */

/* Case modifier: keep the text as typed (e.g. Anton values in lowercase, as in
   the client page: "27–28 noiembrie 2026", "5 companii"). Use together with an
   Anton class: xy-t-h3, xy-t-nocaps. Must stay after the type classes. */
.xy-t-nocaps .tn-atom   { text-transform: none !important; }

/* ---------- 4. Colour modifiers (xy-c-*) ---------- */
.xy-c-red .tn-atom      { color: var(--xy-red) !important; }      /* Primary Red — 24px and up */
.xy-c-red-text .tn-atom { color: var(--xy-red-text) !important; } /* red text under 24px (client: #C41424) */
.xy-c-black .tn-atom    { color: var(--xy-black) !important; }
.xy-c-muted .tn-atom    { color: var(--xy-muted) !important; }    /* grey body text (client: #4A4A4A) */
.xy-c-subtle .tn-atom   { color: #6B6B6B !important; }            /* de-emphasised text, e.g. "Pauză" (client: #6B6B6B) */
.xy-c-white .tn-atom    { color: #FFFFFF !important; }
.xy-c-light .tn-atom    { color: #DDDDDD !important; }            /* body text on dark backgrounds (client: #DDDDDD) */
.xy-c-light-muted .tn-atom { color: #BDBDBD !important; }        /* secondary text on dark backgrounds (client: #BDBDBD) */
.xy-c-turquoise .tn-atom { color: #1CE9D7 !important; }           /* only on dark backgrounds */

/* ---------- 5. Interaction classes (xy-hover-*) ---------- */
.xy-hover-lift .tn-atom {
  transition: transform .12s ease-out, box-shadow .12s ease-out, background-color .12s, color .12s;
}
.xy-hover-lift .tn-atom:hover  { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--xy-black); }
.xy-hover-lift .tn-atom:active { transform: none; box-shadow: none; transition-duration: .05s; }
.xy-hover-lift-red .tn-atom:hover { box-shadow: 4px 4px 0 var(--xy-red); }

.xy-hover-card, .xy-hover-card > .tn-atom { transition: transform .14s ease-out, box-shadow .14s ease-out; }
.xy-hover-card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--xy-red); }
.xy-hover-card.xy-hover-dark:hover { box-shadow: 8px 8px 0 var(--xy-black); }
.xy-hover-card:active { transform: none; box-shadow: none; }

/* On dark backgrounds (Carbon Black sections): add xy-hover-on-dark next to
   xy-hover-lift or xy-hover-card — the black shadow would be invisible there. */
.xy-hover-lift.xy-hover-on-dark .tn-atom:hover { box-shadow: 4px 4px 0 #FFFFFF; }
.xy-hover-card.xy-hover-on-dark:hover { box-shadow: 8px 8px 0 #FFFFFF; }

@media (hover: none), (prefers-reduced-motion: reduce) {
  .xy-hover-lift .tn-atom:hover, .xy-hover-card:hover { transform: none; }
}