/* Termo Albi — Design tokens (mirror of src/app/globals.css) */
:root {
  --ta-background: #f8f9fa;
  --ta-surface: #f8f9fa;
  --ta-surface-bright: #f8f9fa;
  --ta-surface-dim: #d9dadb;
  --ta-surface-variant: #e1e3e4;
  --ta-surface-container: #edeeef;
  --ta-surface-container-low: #f3f4f5;
  --ta-surface-container-high: #e7e8e9;
  --ta-surface-container-highest: #e1e3e4;
  --ta-surface-container-lowest: #ffffff;

  --ta-primary: #041627;
  --ta-primary-container: #1a2b3c;
  --ta-primary-fixed: #d2e4fb;
  --ta-primary-fixed-dim: #b7c8de;
  --ta-on-primary: #ffffff;
  --ta-on-primary-container: #8192a7;

  --ta-secondary: #b7102a;
  --ta-secondary-container: #db313f;
  --ta-secondary-fixed: #ffdad8;
  --ta-secondary-fixed-dim: #ffb3b1;
  --ta-on-secondary: #ffffff;

  --ta-on-surface: #191c1d;
  --ta-on-surface-variant: #44474c;
  --ta-outline: #74777d;
  --ta-outline-variant: #c4c6cd;

  --ta-error: #ba1a1a;
  --ta-error-container: #ffdad6;
  --ta-on-error: #ffffff;

  --radius: 0.25rem;
  --font-manrope: 'Manrope', system-ui, sans-serif;
  --font-work-sans: '"Work Sans"', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--ta-background); color: var(--ta-on-surface); font-family: 'Work Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

::selection { background-color: #db313f; color: #fff; }

.font-headline { font-family: 'Manrope', system-ui, sans-serif; }
.font-body { font-family: 'Work Sans', system-ui, sans-serif; }
.editorial-shadow { box-shadow: 0 20px 40px rgba(25, 28, 29, 0.06); }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Brands marquee — seamless auto-scrolling logo strip */
@keyframes brandsMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.brands-marquee-track { width: max-content; animation: brandsMarquee 40s linear infinite; }
.brands-marquee:hover .brands-marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .brands-marquee-track { animation: none; } }

/* Reveal-on-scroll utility (FadeIn) */
/* Reveals start offset horizontally (left/right), which widens the page until
   they fire — on a phone that is a 26 px sideways scroll on the homepage.
   `clip` contains it without making <main> a scroll container, so sticky
   children and the fixed navbar are unaffected. */
main { overflow-x: clip; }

.ta-reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.ta-reveal[data-from="up"]    { transform: translate3d(0, 18px, 0); }
.ta-reveal[data-from="left"]  { transform: translate3d(-18px, 0, 0); }
.ta-reveal[data-from="right"] { transform: translate3d(18px, 0, 0); }
.ta-reveal.is-visible { opacity: 1 !important; transform: translate3d(0, 0, 0) !important; }
@media (prefers-reduced-motion: reduce) {
  .ta-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Pillar fade in (about section) */
.ta-pillar { opacity: 0; }
.ta-pillar.is-visible { animation: fadeSlideIn 0.4s ease forwards; }

/* Legal pages — long-form typography */
.legal-content h2 {
  font-family: 'Manrope', system-ui, sans-serif;
  color: #041627;
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: 'Manrope', system-ui, sans-serif;
  color: #041627;
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.legal-content p { margin-bottom: 1rem; color: #293039; }
.legal-content ul { margin: 0.75rem 0 1.25rem; padding-left: 1.25rem; list-style: disc; }
.legal-content ul li { margin-bottom: 0.5rem; color: #293039; }
.legal-content a { color: #b7102a; text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: #8a0a20; }
.legal-content strong { color: #041627; font-weight: 700; }

/* Mobile nav open state */
#mobile-nav.is-open { display: flex; }

/* Dropdown open state (desktop) */
.ta-nav-item.has-dropdown:hover .ta-dropdown,
.ta-nav-item.has-dropdown.is-open .ta-dropdown {
  opacity: 1; visibility: visible; transform: translate3d(0, 0, 0); pointer-events: auto;
}
.ta-nav-item.has-dropdown:hover .ta-chev,
.ta-nav-item.has-dropdown.is-open .ta-chev { transform: rotate(180deg); }

/* Language menu */
#ta-lang.is-open .ta-lang-menu { display: block; animation: fadeSlideDown 0.18s ease forwards; }
#ta-lang.is-open .ta-chev { transform: rotate(180deg); }

/* Gallery lightbox */
.ta-lightbox { animation: fadeIn 0.2s ease; }

/* Tabular nums for count-up */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* Field error animation */
.ta-field-error {
  overflow: hidden;
  transition: all 0.2s ease;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
}
.ta-field-error.is-visible { max-height: 32px; margin-top: 0.5rem; opacity: 1; }

/* Marquee compact-brand sizing */
.brand-compact { max-height: 80%; }
.brand-full { height: 100%; }

/* ============================================================
   Hero — skema e gjallë e sistemit
   Spirale bifilare: nxehtësia shkon nga kolektori te qendra dhe
   kthehet mes rrathëve të veta, si uji në një qark counterflow.
   ============================================================ */

.ta-hero-glow{
  position:absolute;inset:-20% -10% auto -10%;height:95vh;pointer-events:none;z-index:0;
  background:
    radial-gradient(48% 46% at 68% 24%, rgba(255,106,64,.17), transparent 70%),
    radial-gradient(52% 40% at 18% 10%, rgba(183,16,42,.16), transparent 72%);
  filter:blur(6px);
}

.ta-dot{
  display:inline-block;width:7px;height:7px;border-radius:50%;
  background:#ff6a40;box-shadow:0 0 0 0 rgba(255,106,64,.55);
  animation:ta-pulse 2.4s cubic-bezier(.65,0,.35,1) infinite;flex:none;
}
@keyframes ta-pulse{
  0%{box-shadow:0 0 0 0 rgba(255,106,64,.5)}
  70%,100%{box-shadow:0 0 0 9px rgba(255,106,64,0)}
}

/* --- paneli --------------------------------------------------- */
.ta-sys{
  position:relative;border:1px solid rgba(255,255,255,.10);border-radius:14px;
  background:linear-gradient(180deg, rgba(8,32,54,.92), rgba(4,22,39,.92));
  box-shadow:0 30px 70px -30px rgba(0,0,0,.75);overflow:hidden;
}
.ta-sys-bar{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:.7rem .95rem;border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
}
.ta-sys-label,.ta-sys-live{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10.5px;
  letter-spacing:.14em;text-transform:uppercase;color:#7e9ab4;
}
.ta-sys-live{display:inline-flex;align-items:center;gap:.45rem;color:#9bb3c9}

.ta-sys-stage{padding:.6rem .6rem 0}
.ta-sys-svg{display:block;width:100%;height:auto}

/* --- gjeometria ----------------------------------------------- */
.ta-slab{fill:rgba(255,255,255,.018);stroke:rgba(255,255,255,.07);stroke-width:1.5}
.ta-pipe{fill:none;stroke:#1b3d59;stroke-width:7;stroke-linecap:round}
.ta-pipe-warm{
  fill:none;stroke:url(#taWarm);stroke-width:7;stroke-linecap:round;
  stroke-dasharray:1000;stroke-dashoffset:1000;opacity:0;
  animation:ta-flow 9s cubic-bezier(.37,0,.2,1) infinite;
}
@keyframes ta-flow{
  0%{stroke-dashoffset:1000;opacity:0}
  6%{stroke-dashoffset:962;opacity:1}
  62%{stroke-dashoffset:0;opacity:1}
  92%{stroke-dashoffset:0;opacity:1}
  100%{stroke-dashoffset:0;opacity:0}
}

.ta-box{fill:rgba(10,39,64,.9);stroke:#23506f;stroke-width:2}
.ta-fan{fill:none;stroke:#2c6287;stroke-width:2;transform-box:fill-box;transform-origin:center;
        animation:ta-spin 3.4s linear infinite}
.ta-fan-b{animation-duration:4.2s;animation-direction:reverse}
@keyframes ta-spin{to{transform:rotate(360deg)}}
.ta-tick,.ta-stubs line{stroke:#23506f;stroke-width:2;stroke-linecap:round}
.ta-cap{fill:#6f8ba6;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
        font-size:13px;letter-spacing:.1em;text-transform:uppercase}

.ta-node{transition:opacity .25s ease}
.ta-sys[data-dim] .ta-node{opacity:.32}
.ta-sys[data-dim] .ta-node[data-on]{opacity:1}
.ta-node[data-on] .ta-box{stroke:#ff8a4c}
.ta-node[data-on] .ta-cap{fill:#ffb089}

/* --- leximet --------------------------------------------------- */
.ta-readout{
  display:grid;grid-template-columns:repeat(3,1fr);margin:.2rem 0 0;
  border-top:1px solid rgba(255,255,255,.08);
}
.ta-readout > div{padding:.75rem .95rem;border-right:1px solid rgba(255,255,255,.06)}
.ta-readout > div:last-child{border-right:0}
.ta-readout dt{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;
  letter-spacing:.14em;text-transform:uppercase;color:#6f8ba6;margin:0 0 .2rem;
}
.ta-readout dd{
  margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:17px;
  font-variant-numeric:tabular-nums;color:#eaf2f8;
}
.ta-readout dd[data-ta-room]{color:#ffb089}

/* --- fotot reale ----------------------------------------------- */
.ta-shots{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin:0;padding:0;list-style:none;
  background:rgba(255,255,255,.08);border-top:1px solid rgba(255,255,255,.08);
}
.ta-shots a{position:relative;display:block;background:#041627;overflow:hidden}
.ta-shots img{
  display:block;width:100%;height:76px;object-fit:cover;opacity:.62;
  transition:opacity .3s ease,transform .5s cubic-bezier(.2,.8,.2,1);
}
.ta-shots a:hover img,.ta-shots a:focus-visible img{opacity:1;transform:scale(1.06)}
.ta-shots span{
  position:absolute;left:0;right:0;bottom:0;padding:.3rem .45rem;
  background:linear-gradient(to top, rgba(4,22,39,.94), transparent);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:9.5px;
  letter-spacing:.08em;text-transform:uppercase;color:#cfe0ee;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ta-shots a:focus-visible{outline:2px solid #ff8a4c;outline-offset:-2px}

@media (max-width:640px){
  .ta-shots{grid-template-columns:repeat(2,1fr)}
  .ta-shots img{height:88px}
  .ta-readout dd{font-size:15px}
}

@media (prefers-reduced-motion:reduce){
  .ta-pipe-warm{animation:none;stroke-dashoffset:0;opacity:1}
  .ta-fan{animation:none}
  .ta-dot{animation:none}
}

/* ============================================================
   Udhëtimi i nxehtësisë
   Faqja nxehet bashkë me ujin: nis e ftohtë dhe e errët te ajri
   jashtë, ndizet te dhoma e makinerisë, dhe qetësohet në dritë te
   dhoma e banuar.
   ============================================================ */

.ta-journey{--ta-ink:#eaf2f8;--ta-mut:#9db3c6;background:#061a2e}

.ta-journey-intro{
  padding:clamp(4rem,3rem + 5vw,7rem) 0 clamp(2.5rem,2rem + 3vw,4rem);
  background:linear-gradient(180deg,#041627,#061a2e);
}
.ta-kicker{
  display:inline-block;margin-bottom:1rem;color:#ff8a4c;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;
  letter-spacing:.2em;text-transform:uppercase;
}
.ta-journey-title{
  color:#fff;font-family:Manrope,system-ui,sans-serif;font-weight:800;
  font-size:clamp(1.9rem,1.2rem + 2.6vw,3.25rem);line-height:1.08;
  letter-spacing:-.025em;margin:0 0 1rem;max-width:18ch;
}
.ta-journey-lede{color:#8ea6bb;font-size:clamp(1rem,.95rem + .3vw,1.15rem);
  line-height:1.65;margin:0;max-width:56ch}

/* --- kapitujt ------------------------------------------------- */
.ta-ch{padding:clamp(3.5rem,2.5rem + 4vw,6.5rem) 0;position:relative;overflow:hidden}
.ta-ch[data-tone="cold"]  {background:linear-gradient(180deg,#061a2e,#0a2238)}
.ta-ch[data-tone="hot"]   {background:linear-gradient(180deg,#0a2238,#2a1208)}
.ta-ch[data-tone="warm"]  {background:linear-gradient(180deg,#2a1208,#331708)}
.ta-ch[data-tone="floor"] {background:linear-gradient(180deg,#331708,#45210b)}
.ta-ch[data-tone="light"] {background:linear-gradient(180deg,#45210b,#f3f1ee)}
.ta-ch[data-tone="light"] .ta-ch-name{color:#0b1d2b}
.ta-ch[data-tone="light"] .ta-ch-body{color:#44474c}
.ta-ch[data-tone="light"] .ta-ch-specs li{color:#0b1d2b;border-color:rgba(11,29,43,.14)}
.ta-ch[data-tone="light"] .ta-ch-step{color:#8a6a55}

.ta-ch-inner{display:grid;gap:clamp(2rem,1.5rem + 3vw,4rem);align-items:center}
@media (min-width:1024px){
  .ta-ch-inner{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}
  .ta-ch[data-flip="1"] .ta-ch-text{order:2}
  .ta-ch[data-flip="1"] .ta-ch-shots{order:1}
}

.ta-ch-step{
  display:flex;align-items:baseline;gap:.6rem;margin:0 0 .6rem;color:#8ea6bb;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;
  letter-spacing:.2em;text-transform:uppercase;
}
.ta-ch-n{color:#ff8a4c;font-size:13px}

.ta-ch-temp{
  display:flex;align-items:flex-start;gap:.15em;margin:0 0 .4rem;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-variant-numeric:tabular-nums;line-height:.9;
  color:#ff8a4c;
}
.ta-ch-temp span{font-size:clamp(3.5rem,2rem + 7vw,6.5rem);letter-spacing:-.04em}
.ta-ch-temp i{font-style:normal;font-size:clamp(1rem,.8rem + 1vw,1.6rem);align-self:flex-start;margin-top:.18em;opacity:.75;letter-spacing:0}
.ta-ch[data-tone="cold"] .ta-ch-temp{color:#7cc4ff}
.ta-ch[data-tone="light"] .ta-ch-temp{color:#c8511f}

.ta-ch-name{
  color:#fff;font-family:Manrope,system-ui,sans-serif;font-weight:800;
  font-size:clamp(1.5rem,1.1rem + 1.6vw,2.25rem);letter-spacing:-.02em;margin:0 0 1rem;
}
.ta-ch-body{color:#9db3c6;font-size:clamp(.975rem,.93rem + .25vw,1.0625rem);
  line-height:1.7;margin:0 0 1.75rem;max-width:52ch}

.ta-ch-specs{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem}
.ta-ch-specs li{
  padding:.4rem .7rem;border:1px solid rgba(255,255,255,.16);border-radius:6px;
  color:#cfe0ee;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;
}

/* --- fotot: një e madhe, një e vogël e mbivendosur ------------- */
.ta-ch-shots{position:relative;padding-bottom:3rem}
.ta-ch-shots figure{margin:0}
.ta-ch-a img{
  display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;
  border-radius:14px;box-shadow:0 30px 60px -24px rgba(0,0,0,.65);
}
.ta-ch-b{
  position:absolute;right:0;bottom:0;width:42%;max-width:220px;
  border:5px solid #061a2e;border-radius:12px;overflow:hidden;
  box-shadow:0 20px 44px -16px rgba(0,0,0,.7);
}
.ta-ch[data-tone="hot"] .ta-ch-b{border-color:#20100a}
.ta-ch[data-tone="warm"] .ta-ch-b{border-color:#2f1508}
.ta-ch[data-tone="floor"] .ta-ch-b{border-color:#3c1d0a}
.ta-ch[data-tone="light"] .ta-ch-b{border-color:#f3f1ee}
.ta-ch[data-flip="1"] .ta-ch-b{right:auto;left:0}
.ta-ch-b img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}

@media (max-width:640px){
  .ta-ch-b{width:46%;max-width:150px;border-width:4px}
  .ta-ch-shots{padding-bottom:2rem}
}
