/* ==========================================================================
   The original public site ('glass': app/Views/_Public) - structure only.
   Loaded after public.css by _Public/_Header. Nothing here changes how the
   site looks: it carries the skip link, the <main> landmark, the look of
   headings that were moved to their proper level, the narrow-screen reflow
   fixes, and the not-found page.
   ========================================================================== */

/* -- Skip link: the first stop in the tab order, out of sight until it is
      focused (WCAG 2.4.1 Bypass Blocks). It jumps to <main id="main-content">. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  color: #1d273b;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid #206bc4;
  outline-offset: 2px;
  color: #1d273b;
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .skip-link { transition: top .15s ease-out; }
}

/* -- <main> stands where the page's blocks used to sit directly inside .page,
      a flex column: it is one too, and takes the room .page-wrapper took, so
      every block keeps its place, its width and its (uncollapsed) margins. */
.glass-main {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}
/* focused only by the skip link (tabindex="-1"), never by Tab */
.glass-main:focus { outline: none; }

/* -- Headings moved to their proper level keep the look of the level they had.
      `glass-hN` names the level an element used to be. The selectors weigh
      what an element selector weighs (0,0,1), so - exactly like the old tag -
      they lose to every class rule the element carries. */
:is(h1, h2, h3, h4, h5, h6):where(.glass-h1) { line-height: var(--tblr-line-height-h1); }
:is(h1, h2, h3, h4, h5, h6):where(.glass-h2) { line-height: var(--tblr-line-height-h2); }
:is(h1, h2, h3, h4, h5, h6):where(.glass-h3) { line-height: var(--tblr-line-height-h3); }
:is(h1, h2, h3, h4, h5, h6):where(.glass-h4) { line-height: var(--tblr-line-height-h4); }
:is(h1, h2, h3, h4, h5, h6):where(.glass-h5) { line-height: var(--tblr-line-height-h5); }
:is(h1, h2, h3, h4, h5, h6):where(.glass-h6) { line-height: var(--tblr-line-height-h6); }

/* An element that only looked like a heading (the header's brand and social
   links, a tagline) is no longer one; it keeps what the heading tag gave it
   (tabler's h-rules, then public.css's h1-h6 rule). */
:is(div, p):where(.glass-h1, .glass-h2, .glass-h3, .glass-h4, .glass-h5, .glass-h6) {
  display: block;
  margin: 0;
  font-size: 16px;
  font-weight: var(--tblr-font-weight-bold);
  color: #43485c;
  font-family: 'Poppins', sans-serif;
  text-transform: capitalize;
}
:is(div, p):where(.glass-h1) { line-height: var(--tblr-line-height-h1); }
:is(div, p):where(.glass-h2) { line-height: var(--tblr-line-height-h2); }
:is(div, p):where(.glass-h3) { line-height: var(--tblr-line-height-h3); }
:is(div, p):where(.glass-h4) { line-height: var(--tblr-line-height-h4); }
:is(div, p):where(.glass-h5) { line-height: var(--tblr-line-height-h5); }
:is(div, p):where(.glass-h6) { line-height: var(--tblr-line-height-h6); }

/* Text that always was the page's title but sat in a <div> (the home page's
   company name, the identity check's line) is the <h1> now, and looks exactly
   as the <div> did: every heading rule is undone, back to what it inherits.
   (0,0,2) so it outweighs the element rules of pages' own <style> blocks
   (h1,h2,h3,h4 { font-family } on the home page) but never a class. */
main :is(h1, h2):where(.glass-h-plain) {
  display: block;
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

/* Context rules of public.css that named the old tag, carried to the new one. */
.section-header h1.glass-h3,
.section-header h2.glass-h3 {
  font-size: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.product-item .down-content h2.glass-h4 {
  font-size: 22px;
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 25px;
}
.slider .single-slider h2.glass-h1 {
  color: #2C2D3F;
  font-size: 38px;
  font-weight: 700;
  margin: 0;
  padding: 0;
  line-height: 42px;
}
.slider .single-slider h2.glass-h1 span { color: #1a76d1; }
.owl-item.active .single-slider h2.glass-h1 { animation: fadeInUp 1s both 0.6s; }

/* -- Reflow at 320px (= 1280px at 400% zoom, WCAG 1.4.10). Below 576px a
      container keeps 8px of side padding while a .g-4 row pulls 12px outside
      it, so /login, /careers and /terms scrolled sideways by 4px. What sticks
      out is only the columns' own empty gutter, so the container clips it -
      nothing visible moves. The contact map is as wide as its 'auto' width
      (300px) until the form is wider; it now never outgrows the form. */
@media (max-width: 575.98px) {
  :is(.container, .container-xl, .container-normal):has(> .row.g-4) { overflow-x: clip; }
}
.frm-contact iframe { max-width: 100%; }

/* -- Not-found page (PublicController::glass_not_found) */
.glass-notfound { max-width: 720px; margin: 0 auto; }
.glass-notfound p { font-size: 16px; }
.glass-notfound .glass-notfound-code {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #667382;
  margin-bottom: 12px;
}
.glass-notfound .btn-list { gap: 12px; }
