/* ================================================================
   THANYA SOFTWARE SOLUTIONS — MAIN STYLESHEET
   ----------------------------------------------------------------
   This is the ONLY stylesheet a page needs to link. It pulls the
   cascade in a deliberate order:

     1. variables.css   design tokens
     2. reset.css       normalise + base typography
     3. components.css  reusable pieces (buttons, cards, mockups)
     4. sections.css    page sections (navbar, hero, footer, …)
     5. responsive.css  breakpoint overrides
     6. footer.css      footer row/col grid — always last

   Load Bootstrap 5 and Bootstrap Icons BEFORE this file so our
   tokens win without needing !important.
   ================================================================ */

@import url("variables.css");
@import url("reset.css");
@import url("components.css");
@import url("sections.css");
@import url("responsive.css");
@import url("footer.css");

/* ================================
   PAGE-LEVEL UTILITIES
================================ */
.u-mt-0 { margin-top: 0 !important; }
.u-mb-0 { margin-bottom: 0 !important; }
.u-center { text-align: center; }
.u-muted { color: var(--muted); }
.u-red { color: var(--thanya-red); }
.u-blue { color: var(--thanya-blue); }
.u-lead { font-size: var(--fs-lead); }
.u-sm { font-size: var(--fs-sm); }
.u-nowrap { white-space: nowrap; }
.u-relative { position: relative; }
.u-maxw-60 { max-width: 60ch; }

.stack-4 > * + * { margin-top: var(--sp-4); }
.stack-5 > * + * { margin-top: var(--sp-5); }
.stack-6 > * + * { margin-top: var(--sp-6); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.about-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: center;
}
.about-row--3 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 260px;
}
@media (max-width: 1200px) {
  .about-row--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about-row--3 > :last-child { grid-column: 1 / -1; }
  .about-row--3 .highlight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); display: grid; }
}
@media (max-width: 992px) {
  .about-row { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .about-row--3 .highlight-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Ensure Bootstrap's container doesn't fight our own */
.t-nav .container-x,
.section .container-x { position: relative; }


  html.t-loading, html.t-loading body{ overflow:hidden; }

  .t-preloader{
    position:fixed;
    inset:0;
    z-index:99999;
    display:flex;
    align-items:center;
    justify-content:center;
    background:
      radial-gradient(115% 85% at 50% 45%, #ffffff 0%, #f7f8fb 60%, #eceff6 100%);
    transition:opacity .55s ease, visibility .55s ease;
  }
  .t-preloader.is-done{ opacity:0; visibility:hidden; }

  .t-preloader__mark{ width:clamp(120px,26vw,168px); height:auto; overflow:visible; }

  /* Every shape pivots on the centre of the mark, so it assembles out of
     itself. Coordinates are in the SVG's own viewBox units. */
  .t-pre-base, .t-pre-swoosh, .t-pre-globe, .t-pre-figure{
    transform-box:view-box;
    transform-origin:339px 304px;
  }

  /* The globe rises and settles first */
  .t-pre-globe{ animation:tPreGlobe .8s cubic-bezier(.2,.9,.25,1) .1s both; }
  @keyframes tPreGlobe{
    from{ opacity:0; transform:scale(.55) translateY(44px); }
    to  { opacity:1; transform:none; }
  }

  /* Then the swoosh sweeps across the top, like a brush stroke */
  .t-pre-swoosh{ animation:tPreSwoosh .85s cubic-bezier(.16,.84,.3,1) .42s both; }
  @keyframes tPreSwoosh{
    from{ opacity:0; transform:translateX(-105px) rotate(-15deg); }
    60% { opacity:1; }
    to  { opacity:1; transform:none; }
  }

  /* The white backing appears with the globe so the T never flickers */
  .t-pre-base{ animation:tPreFade .5s ease .1s both; }
  @keyframes tPreFade{ from{ opacity:0; } to{ opacity:1; } }

  /* Once assembled, the whole mark breathes */
  .t-pre-figure{ animation:tPreBreathe 3.2s ease-in-out 1.5s infinite; }
  @keyframes tPreBreathe{
    0%,100%{ transform:scale(1); }
    50%    { transform:scale(1.045); }
  }

  @media (prefers-reduced-motion:reduce){
    .t-pre-base,.t-pre-swoosh,.t-pre-globe,.t-pre-figure{
      animation:none !important; opacity:1; transform:none;
    }
  }

 #tPreloader{
    --tpre-blue:#253C88;
    --tpre-red:#EB1C3B;
    --tpre-bg:#ffffff;
    --tpre-spin:3.4s;
 
    position:fixed; inset:0; z-index:2000;
    display:grid; place-items:center; align-content:center;
    background:var(--tpre-bg);
    transition:opacity .55s ease, transform .55s ease, filter .55s ease;
  }
  #tPreloader.is-done{ opacity:0; transform:scale(1.06); filter:blur(6px); pointer-events:none; }
 
  html.t-loading, html.t-loading body{ overflow:hidden; }
 
  /* stage supplies the depth for the turn */
  #tPreloader .t-pre-stage{ width:min(56vw,260px); perspective:1100px; }
 
  /* the turning object; both faces live inside it */
  #tPreloader .t-preloader__mark{
    position:relative; display:block;
    width:100%; aspect-ratio:673 / 596;
    transform-style:preserve-3d;
    animation:tpreTurn var(--tpre-spin) cubic-bezier(.62,0,.38,1) infinite 1.5s;
  }
 
  /* each face hides its own reverse, so you never see a mirrored logo */
  #tPreloader .t-pre-face{
    position:absolute; inset:0; width:100%; height:100%; overflow:visible;
    backface-visibility:hidden; -webkit-backface-visibility:hidden;
    filter:drop-shadow(0 12px 24px rgba(11,16,38,.14));
  }
  #tPreloader .t-pre-face--back{ transform:rotateY(180deg); }
 
  /* every piece swings around the logo's own centre and locks into place */
  #tPreloader .t-pre-part{
    opacity:0;
    transform-box:view-box;
    transform-origin:336px 298px;
    animation:tpreJoin .95s cubic-bezier(.22,1,.34,1) forwards;
  }
  #tPreloader .t-pre-p1{ --a:-165deg; --s:1.75; animation-delay:0s   }
  #tPreloader .t-pre-p2{ --a: 155deg; --s:1.70; animation-delay:.14s }
  #tPreloader .t-pre-p3{ --a:-120deg; --s:1.55; animation-delay:.30s }
  #tPreloader .t-pre-p4{ --a: 110deg; --s:1.55; animation-delay:.44s }
 
  @keyframes tpreJoin{
    from{ opacity:0; transform:rotate(var(--a)) scale(var(--s)) }
    60% { opacity:1 }
    to  { opacity:1; transform:rotate(0deg) scale(1) }
  }
  @keyframes tpreTurn{
    0%  { transform:rotateY(0deg) }
    45% { transform:rotateY(360deg) }
    100%{ transform:rotateY(360deg) }
  }
 
  @media (prefers-reduced-motion:reduce){
    #tPreloader .t-preloader__mark{ animation:none }
    #tPreloader .t-pre-part{ opacity:1; transform:none; animation:none }
    #tPreloader{ transition:opacity .3s ease }
    #tPreloader.is-done{ transform:none; filter:none }
  }