/* The WordPress additions to the stair (spec 06-tehnic-tema.md §3.6). Loaded right after the prototype's own
   assets/scara/style.css, which stays a copy of the prototype; this file touches nothing but what is listed here. */

/* 1. Poppins, served by the site: the five weights style.css uses, each one file (Google's latin subset plus the
      Romanian letters ă â î ș ț, also with cedilla), the same glyphs the prototype gets from Google Fonts. The
      fallback is Arial resized to Poppins' metrics (ascent 1050, descent 350, line gap 100 at 1000 units), so the
      swap moves nothing. 600 and 400 are preloaded (inc/assets.php); the URLs here must stay the bare ones. A changed
      font file gets a new name: these URLs carry no version, and browsers may keep them for a year. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/poppins-300.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0102-0103, U+0131, U+0152-0153, U+015E-015F, U+0162-0163, U+0218-021B, 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: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0102-0103, U+0131, U+0152-0153, U+015E-015F, U+0162-0163, U+0218-021B, 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: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0102-0103, U+0131, U+0152-0153, U+015E-015F, U+0162-0163, U+0218-021B, 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: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0102-0103, U+0131, U+0152-0153, U+015E-015F, U+0162-0163, U+0218-021B, 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: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0102-0103, U+0131, U+0152-0153, U+015E-015F, U+0162-0163, U+0218-021B, 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; }
/*    The rest of Google's latin-ext subset (ő ű č ř ł ğ ż …), for a firm named at step 5 such as "Erdős Fűtés": a
      browser fetches these files only when such a letter is on the page. Their unicode-range leaves out every letter
      the files above already have, so a Romanian page never asks for them. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/poppins-300-ext.woff2) format("woff2");
  unicode-range: U+0100-0101, U+0104-0107, U+010A-011B, U+011E-0123, U+0128-0130, U+0136-0137, U+0139-0148, U+014C-0151, U+0154-015B, U+0160-0161, U+0164-0165, U+0168-017E, U+018F, U+0192, U+01FC-01FD, U+0259, U+02C7, U+02C9, U+02DD, U+1E80-1E85, U+1EF2-1EF3, U+1EF8-1EF9, U+20A8, U+20B9-20BA, U+20BD, U+2113; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400-ext.woff2) format("woff2");
  unicode-range: U+0100-0101, U+0104-0107, U+010A-011B, U+011E-0123, U+0128-0130, U+0136-0137, U+0139-0148, U+014C-0151, U+0154-015B, U+0160-0161, U+0164-0165, U+0168-017E, U+018F, U+0192, U+01FC-01FD, U+0259, U+02C7, U+02C9, U+02DD, U+1E80-1E85, U+1EF2-1EF3, U+1EF8-1EF9, U+20A8, U+20B9-20BA, U+20BD, U+2113; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500-ext.woff2) format("woff2");
  unicode-range: U+0100-0101, U+0104-0107, U+010A-011B, U+011E-0123, U+0128-0130, U+0136-0137, U+0139-0148, U+014C-0151, U+0154-015B, U+0160-0161, U+0164-0165, U+0168-017E, U+018F, U+0192, U+01FC-01FD, U+0259, U+02C7, U+02C9, U+02DD, U+1E80-1E85, U+1EF2-1EF3, U+1EF8-1EF9, U+20A8, U+20B9-20BA, U+20BD, U+2113; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600-ext.woff2) format("woff2");
  unicode-range: U+0100-0101, U+0104-0107, U+010A-011B, U+011E-0123, U+0128-0130, U+0136-0137, U+0139-0148, U+014C-0151, U+0154-015B, U+0160-0161, U+0164-0165, U+0168-017E, U+018F, U+0192, U+01FC-01FD, U+0259, U+02C7, U+02C9, U+02DD, U+1E80-1E85, U+1EF2-1EF3, U+1EF8-1EF9, U+20A8, U+20B9-20BA, U+20BD, U+2113; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700-ext.woff2) format("woff2");
  unicode-range: U+0100-0101, U+0104-0107, U+010A-011B, U+011E-0123, U+0128-0130, U+0136-0137, U+0139-0148, U+014C-0151, U+0154-015B, U+0160-0161, U+0164-0165, U+0168-017E, U+018F, U+0192, U+01FC-01FD, U+0259, U+02C7, U+02C9, U+02DD, U+1E80-1E85, U+1EF2-1EF3, U+1EF8-1EF9, U+20A8, U+20B9-20BA, U+20BD, U+2113; }
@font-face { font-family: "Poppins Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 113.73%; ascent-override: 92.33%; descent-override: 30.78%; line-gap-override: 8.79%; }
:root { --font-display: "Poppins", "Poppins Fallback", sans-serif; --font-body: "Poppins", "Poppins Fallback", sans-serif; }

/* 2. The words of the foot of the stair are on screen from the first paint (plan §6.2: the H1 is the LCP element),
      instead of waiting for the scene's intro; the other stops keep their entrance. Only before app.js has touched the
      block (it sets an inline style on every .copy in its first frame) and during the intro: when the visitor comes back
      to the foot later, its lines arrive one by one, as in the prototype. (0,4,2) beats style.css's
      `.anim body.intro .copy.hero > *` (0,4,1). */
html.anim body .copy.hero:not([style]) > *, html.anim body.intro .copy.hero > * { opacity: 1; transform: none; transition: none; }

/* 3. No scene (data saver, ≤ 2 GB of memory, no WebGL, app.js failed): the foot of the stair shows a still picture of
      it, made from the prototype. Only here: anywhere else it would become the largest element of the first screen. */
html.no-scene #baza { background: #06051a url(../still/scara-desktop.webp) 70% 50% / cover no-repeat; }
/* T0 only (data saver, ≤ 2 GB): the terrace's world is the light poster, the one app.js itself picks under Save-Data
   (terasa/bg-*.webp, 17–27 KB), not the prototype's no-WebGL fallback in style.css (lume-desktop-1600.jpg, 155 KB, with
   the desktop framing even on a phone). A browser fetches only the background that wins, so the jpg is never asked for
   by the visitors who asked to save data; without WebGL (no-scene alone) the sharper still stays. */
html.scene-still #sus { background-image: url(../scara/terasa/bg-desktop.webp); }
@media (max-width: 899px), (max-aspect-ratio: 9/10) {   /* the phone layout, the same switch as app.js */
  html.no-scene #baza { background-image: url(../still/scara-telefon.webp); background-position: 50% 50%; }
  html.scene-still #sus { background-image: url(../scara/terasa/bg-telefon.webp); }
}
html.no-scene .next, html.no-scene .hint, html.no-scene .cursor { display: none; }

/* 4. The skip link: out of sight until it has the keyboard's focus, then above the menu. */
.pu-skip { position: fixed; z-index: 60; left: 16px; top: 12px; padding: 10px 18px; border-radius: 999px; background: var(--coral); color: #1d0e08; font-size: 15px; font-weight: 600;
  transform: translateY(calc(-100% - 24px)); transition: transform .2s; }
.pu-skip:focus, .pu-skip:focus-visible { transform: none; outline-offset: 2px; }

/* 5. The small footer under the terrace (spec §2.5): on the cream of the world past the door. The scroll is limited
      to the terrace by app.js, and settling never pulls back from below it, so this can be reached and read. */
.pu-subsol { position: relative; z-index: 10; background: #fbf4ed; color: #1b1026; border-top: 1px solid rgba(27, 16, 38, .08);
  padding: 26px var(--pad) 30px; font-size: 14px; line-height: 1.55; }
.pu-subsol-in { max-width: 1340px; margin: 0 auto; display: grid; gap: 8px; }
.pu-subsol-r { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; }
.pu-subsol-r li:not(:last-child)::after { content: "·"; margin: 0 10px; color: rgba(27, 16, 38, .4); }   /* after, not before: a wrapped line never starts with a dot */
.pu-subsol a { color: #1b1026; text-decoration: underline; text-decoration-color: rgba(27, 16, 38, .3); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.pu-subsol a:hover { color: #c4471a; text-decoration-color: currentColor; }
.pu-subsol-mic { margin-top: 4px; font-size: 13px; color: rgba(27, 16, 38, .72); }
.pu-subsol-c { white-space: nowrap; }
/* the cookie preferences (WebToffee binds every .wcc-preference-btn): a button that reads like the links around it */
.pu-subsol .pu-subsol-btn { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: #1b1026; cursor: pointer; text-decoration: underline;
  text-decoration-color: rgba(27, 16, 38, .3); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.pu-subsol .pu-subsol-btn:hover { color: #c4471a; text-decoration-color: currentColor; }
@media (max-width: 899px), (max-aspect-ratio: 9/10) {
  .pu-subsol { padding: 24px 16px 96px; font-size: 13.5px; }   /* the call bar ("Cere un apel gratuit") must not cover the links */
  .pu-subsol-r { row-gap: 6px; }
}

/* 6. The cookie banner (WebToffee) on the phone layout. While it is open it covers the lower half of the screen, where
      the stair keeps its own buttons: a tap meant for "Pasul următor" landed on "Respinge tot" and refused the
      analytics and ads consent. So, while it is open, those buttons step aside (plan §2.3: until the visitor answers,
      only the banner). After the choice, its floating "revisit" button would sit on the left end of the terrace's call
      bar and on the firm-name field at step 5: it is hidden, and the footer's "Preferințe cookie" does the same job. */
@media (max-width: 899px), (max-aspect-ratio: 9/10) {
  body:has(.wcc-consent-container:not(.wcc-hide)) .next, body:has(.wcc-consent-container:not(.wcc-hide)) .call-bar { visibility: hidden; }
  .wcc-btn-revisit-wrapper { display: none !important; }   /* WebToffee prints its own CSS after this file */
}

/* 7. Every stop's words stay in the rendered page until the visitor first touches it (the head script sets
      html.pu-atins on the first wheel, finger, key or scroll). app.js hides the words of the stops away from the one
      in view; a crawler renders the page without scrolling and would read the H1 and one sentence. At load the other
      stops are below the fold, so a visitor sees no difference; from the first touch app.js decides, as before. */
html:not(.pu-atins) .copy { opacity: 1 !important; visibility: visible !important; }
html.anim:not(.pu-atins) .copy > *, html.anim:not(.pu-atins) .copy .arrive { opacity: 1 !important; transform: none !important; }

/* The hero has no click/scroll instruction. Keep the hook used by later stations. */
body[data-step="0"] .hint { display: none; }

/* The next-step control shares the approved P silhouette at every station.
   Keep its fixed footprint, scene-controlled visibility and native hover. */
body[data-step] .next { border-radius: 0 34px 34px 28px; }
body[data-step] .next svg { border-radius: 0 21px 21px 18px; }

/* 8. Without JavaScript the form cannot send: the line above it gives the phone number and the address. */
.pu-noscript { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 132, 81, .14); color: var(--t-ink, #1b1026); font-size: 14.5px; line-height: 1.45; }
.pu-noscript a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
