/* =========================================================
   Luna Clinic, Tiranë
   Teal + aqua + ink. Clinical-modern, accessible, trustworthy.
   ========================================================= */

:root {
  /* Brand, derived from logo (deep teal + light aqua + white) */
  --teal-deep:    #0E8390;
  --teal:         #149AA6;
  --aqua:         #7CC9C4;
  --aqua-soft:    #B8E2DD;
  --aqua-bg:      #E5F2F0;
  --ink:          #0A1B22;
  --ink-soft:     #1F2D34;
  --ink-deep:     #050E12;
  --bone:         #FFFFFF;
  --surface:      #F4FAFA;
  --surface-deep: #E5F2F0;
  --stone:        #6E7A82;
  --stone-soft:   #97A0A6;

  /* Semantic */
  --bg:            var(--bone);
  --text:          var(--ink);
  --text-muted:    var(--stone);
  --text-on-dark:  var(--bone);
  --rule:          rgba(10, 27, 34, .12);
  --rule-soft:     rgba(10, 27, 34, .07);
  --rule-on-dark:  rgba(255, 255, 255, .18);

  /* Type */
  --font:          'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --text-xs:    clamp(0.74rem, 0.7rem + 0.18vw, 0.84rem);
  --text-sm:    clamp(0.86rem, 0.8rem + 0.25vw, 0.96rem);
  --text-base:  clamp(1rem, 0.95rem + 0.25vw, 1.08rem);
  --text-lg:    clamp(1.12rem, 1.02rem + 0.5vw, 1.24rem);
  --text-xl:    clamp(1.3rem, 1.15rem + 0.75vw, 1.5rem);
  --text-2xl:   clamp(1.5rem, 1.3rem + 0.95vw, 1.85rem);
  --text-3xl:   clamp(1.85rem, 1.55rem + 1.5vw, 2.4rem);
  --text-4xl:   clamp(2.2rem, 1.7rem + 2.2vw, 3.1rem);
  --text-5xl:   clamp(2.6rem, 1.85rem + 3vw, 4rem);
  --text-6xl:   clamp(3rem, 2.1rem + 4vw, 4.8rem);

  --leading-tight:   1.06;
  --leading-snug:    1.2;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  /* Space */
  --section-px:    clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
  --section-py:    clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --section-py-lg: clamp(4.5rem, 3rem + 6vw, 9rem);

  --container:     min(82rem, 100% - 2 * var(--section-px));
  --measure:       62ch;

  /* Header height (used by sticky stacking cards) */
  --header-h:      72px;

  /* Motion */
  --ease-out:  cubic-bezier(.2,.7,.2,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --dur-fast:  220ms;
  --dur:       420ms;
  --dur-slow:  900ms;

  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-top:    env(safe-area-inset-top, 0);
}

/* =========================================================
   View Transitions (cross-document, blog navigation)
   ========================================================= */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation-duration: 240ms;
  animation-timing-function: cubic-bezier(.4,0,.2,1);
}
::view-transition-new(root) {
  animation-duration: 360ms;
  animation-timing-function: cubic-bezier(.2,.7,.2,1);
}

/* =========================================================
   Reset
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

::selection { background: var(--teal-deep); color: var(--bone); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: .5rem 1rem;
  background: var(--ink);
  color: var(--bone);
  z-index: 9999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* =========================================================
   Typography primitives
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  margin: 0;
  padding-bottom: .04em;
}

.emphasis {
  font-weight: 500;
  font-style: italic;
  color: var(--teal-deep);
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--teal-deep);
  margin: 0 0 .9rem;
}

.lede {
  font-family: var(--font);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 42ch;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 46px;
  padding: .75rem 1.25rem;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .005em;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    background var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft);
  cursor: pointer;
  white-space: nowrap;
}
.btn-sm { min-height: 38px; padding: .5rem 1rem; font-size: var(--text-xs); }

.btn .arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--teal-deep);
  color: var(--bone);
  border-color: var(--teal-deep);
}
.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-ghost-light {
  background: transparent;
  color: var(--bone);
  border-color: var(--rule-on-dark);
}
.btn-ghost-light:hover { border-color: var(--bone); }

/* =========================================================
   Reveal (opacity-only)
   ========================================================= */

.reveal {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
  will-change: opacity;
}
.reveal.in-view { opacity: 1; }
.reveal-d1.in-view { transition-delay: 80ms; }
.reveal-d2.in-view { transition-delay: 160ms; }
.reveal-d3.in-view { transition-delay: 240ms; }
.reveal-d4.in-view { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--section-px);
  padding-top: calc(1rem + var(--safe-top));
  background: transparent;
  transition: background var(--dur) var(--ease-soft),
              border-color var(--dur) var(--ease-soft),
              color var(--dur) var(--ease-soft);
  color: var(--bone);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  border-bottom-color: var(--rule-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.1rem;
  color: inherit;
  line-height: 1;
}
.brand-logo {
  width: 56px;
  height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  line-height: 1;
}
.brand-name { line-height: 1; }
.brand-sub {
  font-weight: 400;
  color: var(--aqua);
  letter-spacing: 0;
}
.site-header.scrolled .brand-sub { color: var(--teal-deep); }

.nav {
  display: none;
  gap: 1.6rem;
  font-size: var(--text-sm);
  font-weight: 500;
}
.nav a { padding: .25rem 0; transition: opacity var(--dur-fast) var(--ease-soft); }
.nav a:hover { opacity: .65; }

.header-cta {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 999px;
  background: var(--teal-deep);
  color: var(--bone);
  transition: background var(--dur-fast) var(--ease-soft);
}
.header-cta:hover { background: var(--ink); }

.nav-toggle {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: inherit;
}
.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  display: block;
  width: 22px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle .bar { position: relative; }
.nav-toggle .bar::before { position: absolute; top: -7px; left: 0; }
.nav-toggle .bar::after  { position: absolute; top: 7px; left: 0; }

@media (min-width: 880px) {
  .nav { display: inline-flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* =========================================================
   Mobile drawer
   ========================================================= */

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--bone);
  padding: calc(2.5rem + var(--safe-top)) var(--section-px) calc(2rem + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-soft);
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }

.mobile-drawer-close {
  position: absolute;
  top: calc(.75rem + var(--safe-top));
  right: var(--section-px);
  width: 44px; height: 44px;
  color: var(--bone);
}
.mobile-drawer-close::before,
.mobile-drawer-close::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 1.6px;
  background: currentColor;
}
.mobile-drawer-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-drawer-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 2rem;
  font-weight: 500;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
}

.mobile-meta {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: var(--text-sm);
  color: var(--bone);
  opacity: .75;
}
.mobile-meta a:hover { opacity: 1; color: var(--aqua); }

@media (min-width: 880px) { .mobile-drawer { display: none; } }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: calc(5rem + var(--safe-top)) var(--section-px) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--bone);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease-out), transform 14s linear;
  filter: brightness(.55) saturate(.9) hue-rotate(-3deg);
  will-change: opacity, transform;
}
.hero.loaded .hero-image { opacity: 1; transform: scale(1); }

/* 2-stop scrim, anchored to text region */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 14, 18, .85) 0%,
    rgba(5, 14, 18, 0) 60%
  );
  pointer-events: none;
}
@media (max-width: 720px) {
  .hero-scrim {
    background: linear-gradient(
      to top,
      rgba(5, 14, 18, .92) 8%,
      rgba(5, 14, 18, 0) 78%
    );
  }
}

.hero-body {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  width: 100%;
}
.hero-eyebrow {
  color: var(--aqua);
  margin-bottom: 1.4rem;
  opacity: 0;
  transition: opacity 1s var(--ease-out) .2s;
}
.hero.loaded .hero-eyebrow { opacity: 1; }

.hero-headline {
  font-size: var(--text-5xl);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  opacity: 0;
  transition: opacity 1s var(--ease-out) .35s;
}
.hero.loaded .hero-headline { opacity: 1; }
.hero-headline .emphasis { color: var(--aqua); font-weight: 500; }

.hero-tagline {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: rgba(255, 255, 255, .9);
  margin-bottom: 1.75rem;
  max-width: 38ch;
  opacity: 0;
  transition: opacity 1s var(--ease-out) .5s;
}
.hero.loaded .hero-tagline { opacity: 1; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  opacity: 0;
  transition: opacity 1s var(--ease-out) .65s;
}
.hero.loaded .hero-actions { opacity: 1; }

.hero-actions .btn-primary {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.hero-actions .btn-primary:hover {
  background: var(--aqua);
  border-color: var(--aqua);
}

.hero-corner {
  position: absolute;
  top: calc(5rem + var(--safe-top));
  right: var(--section-px);
  z-index: 2;
  display: none;
  align-items: center;
  gap: .65rem;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--aqua);
  opacity: 0;
  transition: opacity 1s var(--ease-out) .55s;
}
.hero.loaded .hero-corner { opacity: .9; }
.hero-corner-line { width: 28px; height: 1px; background: currentColor; opacity: .5; }
@media (min-width: 720px) { .hero-corner { display: inline-flex; } }

/* Hero strip, marquee on mobile, grid on desktop */
.hero-strip {
  background: var(--ink);
  color: var(--bone);
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule-on-dark);
  overflow: hidden;
}
.hero-strip-inner {
  display: flex;
  gap: 2.75rem;
  width: max-content;
  margin: 0;
  padding: 0 var(--section-px);
  animation: hero-strip-marquee 32s linear infinite;
}
.hero-strip-inner > span {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  font-size: var(--text-sm);
  flex-shrink: 0;
  white-space: nowrap;
}
.hero-strip-inner b {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--bone);
}
.hero-strip-inner em {
  font-style: normal;
  color: rgba(255, 255, 255, .58);
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-strip-inner > span::before {
  content: "·";
  color: var(--aqua);
  margin-right: .55rem;
  font-size: 1.4em;
  line-height: 0;
}
.hero-strip-inner > span:first-child::before { content: none; }

@keyframes hero-strip-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .hero-strip-inner { animation: none; } }

/* Desktop: marquee continues at all widths, slower speed and bigger type */
@media (min-width: 720px) {
  .hero-strip { padding: 1.5rem 0; }
  .hero-strip-inner {
    gap: 4rem;
    animation-duration: 45s;
  }
  .hero-strip-inner b { font-size: var(--text-lg); }
}

/* =========================================================
   PAKETAT, sticky stacking cards
   ========================================================= */

.packages {
  padding: var(--section-py) var(--section-px) var(--section-py-lg);
  background: var(--surface);
  border-top: 1px solid var(--rule-soft);
}
.packages-head {
  max-width: var(--container);
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}
.packages-head h2 {
  font-size: var(--text-4xl);
  line-height: 1.06;
  margin: .25rem 0 1.25rem;
  max-width: 22ch;
}

.packages-stack {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.package-card {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  margin-bottom: 1rem;
  border-radius: 18px;
  background: var(--bone);
  box-shadow:
    0 1px 0 rgba(10, 27, 34, .04),
    0 18px 36px -16px rgba(10, 27, 34, .14);
  overflow: hidden;
  transition: transform 600ms var(--ease-out);
}

.package-card-inner {
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}
.package-promo-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--teal-deep);
  padding: .35rem .65rem;
  border-radius: 999px;
}

.package-card-head {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.package-num {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.package-card h3 {
  font-size: var(--text-3xl);
  line-height: 1.06;
  margin: 0;
}
.package-lede {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--ink-soft);
  margin: .35rem 0 0;
  max-width: 56ch;
}

.package-list {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
}
.package-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem 1rem;
  padding-bottom: .65rem;
  border-bottom: 1px dashed var(--rule-soft);
  font-size: var(--text-sm);
}
.package-list li:last-child { border-bottom: none; padding-bottom: 0; }
.package-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--aqua);
  border-radius: 999px;
  margin-top: .55em;
  align-self: start;
  grid-row: 1 / span 2;
}
.package-list span {
  font-weight: 600;
  color: var(--ink);
}
.package-list em {
  font-style: normal;
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .04em;
  grid-column: 2;
}

.package-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-soft);
}
.package-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1;
}
.package-price b {
  font-size: var(--text-4xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.package-was {
  font-size: var(--text-sm);
  color: var(--stone);
  text-decoration: line-through;
  margin-bottom: .15rem;
}

.packages-foot {
  text-align: center;
  padding-top: clamp(2rem, 4vw, 3rem);
}
.package-more {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease-soft);
}
.package-more:hover { color: var(--ink); }

@media (min-width: 880px) {
  .package-card { box-shadow: 0 1px 0 rgba(10, 27, 34, .04), 0 24px 60px -20px rgba(10, 27, 34, .18); }
  .package-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .package-list li { padding-bottom: .85rem; }
}

/* =========================================================
   SPECIALITETET, scroll-pinned horizontal rail
   ========================================================= */

.rail {
  /* JS sets --rail-runway based on track width vs viewport.
     Static fallback is sized for ~7 panels. */
  height: 520vh;
  position: relative;
  background: var(--ink);
  color: var(--bone);
}
.rail-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1rem) 0 1.5rem;
  isolation: isolate;
}

.rail-head {
  padding: 0 var(--section-px);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  flex-shrink: 0;
}
.rail-head .eyebrow { color: var(--aqua); }
.rail-head h2 {
  font-size: var(--text-4xl);
  line-height: 1.04;
  margin: .25rem 0 0;
  color: var(--bone);
}
.rail-head .emphasis { color: var(--aqua); }

.rail-hint {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 1rem 0 0;
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.rail-hint-bar {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--aqua);
}

.rail-track {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 0 var(--section-px);
  will-change: transform;
}

.specialty {
  flex: 0 0 80vw;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--rule-on-dark);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.specialty-num {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--aqua);
}
.specialty h3 {
  font-size: var(--text-3xl);
  line-height: 1.06;
  margin: 0 0 .35rem;
  color: var(--bone);
}
.specialty-lede {
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: rgba(255, 255, 255, .82);
  margin: 0 0 .25rem;
  max-width: 32ch;
}
.specialty-list {
  list-style: none;
  margin: .5rem 0 0;
  padding: .85rem 0 0;
  border-top: 1px solid var(--rule-on-dark);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.specialty-list li {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .82);
  position: relative;
  padding-left: 1.1rem;
}
.specialty-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  background: var(--aqua);
  border-radius: 999px;
}
.specialty-doc {
  margin-top: auto;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--aqua);
  padding-top: .85rem;
  border-top: 1px solid var(--rule-on-dark);
}

@media (min-width: 720px) {
  .rail { height: 600vh; }
  .specialty { flex: 0 0 42vw; max-width: 28rem; }
}
@media (min-width: 1024px) {
  .rail { height: 700vh; }
  .specialty { flex: 0 0 32vw; max-width: 30rem; }
}

/* Reduced-motion fallback: vertical stack instead of horizontal pin */
@media (prefers-reduced-motion: reduce) {
  .rail { height: auto; }
  .rail-pin { position: static; height: auto; padding: var(--section-py) 0; }
  .rail-track { flex-direction: column; align-items: stretch; transform: none !important; }
  .specialty { flex: 0 0 auto; max-width: none; }
  .rail-hint { display: none; }
}

/* =========================================================
   STAFI MJEKËSOR
   ========================================================= */

.staff {
  padding: var(--section-py) var(--section-px);
  max-width: var(--container);
  margin: 0 auto;
}
.staff-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.staff-head h2 {
  font-size: var(--text-4xl);
  line-height: 1.06;
  margin: .25rem 0 1rem;
  max-width: 18ch;
}

.staff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1rem;
}
.doc {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.doc-photo {
  aspect-ratio: 1 / 1;
  background: var(--surface-deep);
  border-radius: 14px;
  overflow: hidden;
}
.doc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9);
  transition: transform 800ms var(--ease-out);
}
.doc:hover .doc-photo img { transform: scale(1.03); }

.doc figcaption {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.doc figcaption b {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
}
.doc figcaption span {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.doc figcaption p {
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--text-muted);
  margin: 0;
}

/* If a row has an odd item alone, center it */
.staff-grid > .doc:nth-child(odd):last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - .5rem);
  max-width: 18rem;
}

@media (min-width: 720px) {
  .staff-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1.25rem; }
  .staff-grid > .doc:nth-child(odd):last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
    max-width: none;
  }
}

.staff-foot {
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: 14px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 56ch;
  text-align: center;
}

/* =========================================================
   SI FUNKSIONON
   ========================================================= */

.how {
  padding: var(--section-py) var(--section-px);
  background: var(--ink);
  color: var(--bone);
}
.how-head {
  max-width: var(--container);
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}
.how-head .eyebrow { color: var(--aqua); }
.how-head h2 {
  font-size: var(--text-4xl);
  line-height: 1.06;
  color: var(--bone);
}
.how-head .emphasis { color: var(--aqua); }

.how-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--container);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
}
.how-item {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--rule-on-dark);
  border-radius: 14px;
}
.how-num {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: var(--aqua);
  line-height: 1;
}
.how-item h3 {
  font-size: var(--text-xl);
  margin: 0 0 .25rem;
  color: var(--bone);
}
.how-item p {
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: rgba(255, 255, 255, .78);
  margin: 0;
}

/* Center 3rd item if odd-out (4 items = even, but defensive) */
.how-list > .how-item:nth-child(odd):last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - .5rem);
  max-width: 22rem;
}

@media (min-width: 880px) {
  .how-list { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .how-item { padding: 1.75rem; }
  .how-list > .how-item:nth-child(odd):last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
    max-width: none;
  }
}

/* =========================================================
   BLOG
   ========================================================= */

.blog {
  padding: var(--section-py) var(--section-px);
  max-width: var(--container);
  margin: 0 auto;
}
.blog-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.blog-head h2 {
  font-size: var(--text-4xl);
  line-height: 1.06;
  margin: .25rem 0 1.25rem;
  max-width: 22ch;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.post {
  display: flex;
  flex-direction: column;
  background: var(--bone);
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-soft);
}
.post:hover { transform: translateY(-3px); border-color: var(--rule); }
.post figure {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-deep);
}
.post figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out);
}
.post:hover figure img { transform: scale(1.03); }

.post-body {
  padding: 1.1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.post-meta {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.post h3 {
  font-size: var(--text-lg);
  line-height: 1.18;
  margin: 0;
}
.post p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: var(--leading-snug);
}
.post-cta {
  align-self: flex-start;
  margin-top: .25rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  display: inline-flex;
  gap: .35em;
}

.post-hero { grid-column: 1 / -1; }
.post-hero h3 { font-size: var(--text-2xl); }
.post-hero figure { aspect-ratio: 16 / 9; }
.post-hero .post-body { padding: 1.5rem; gap: .65rem; }

/* Mobile: secondaries become tile-style (no body paragraph) */
@media (max-width: 519px) {
  .post:not(.post-hero) figure { aspect-ratio: 1 / 1; }
  .post:not(.post-hero) h3 { font-size: var(--text-base); line-height: 1.15; }
  .post:not(.post-hero) p { display: none; }
  .post:not(.post-hero) .post-body { padding: .85rem; gap: .35rem; }
  .post:not(.post-hero) .post-cta { font-size: 10px; }
}

@media (min-width: 720px) {
  .blog-grid { gap: 1.5rem; }
  .post-hero { flex-direction: row; }
  .post-hero figure { aspect-ratio: 3 / 2; flex: 1 1 50%; height: auto; }
  .post-hero .post-body { flex: 1 1 50%; padding: 2rem 2.25rem; justify-content: center; gap: .85rem; }
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  background: var(--ink);
  color: var(--bone);
  padding: var(--section-py-lg) var(--section-px) 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.contact-text .eyebrow { color: var(--aqua); }
.contact h2 {
  font-size: var(--text-4xl);
  line-height: 1.06;
  margin: .25rem 0 1.5rem;
  color: var(--bone);
  max-width: 18ch;
}
.contact h2 .emphasis { color: var(--aqua); font-style: italic; }
.contact-text > p {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: rgba(255, 255, 255, .82);
  margin-bottom: 2rem;
  max-width: 38ch;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.contact .btn-primary {
  background: var(--aqua);
  color: var(--ink);
  border-color: var(--aqua);
}
.contact .btn-primary:hover { background: var(--bone); border-color: var(--bone); }
.contact .btn-ghost {
  color: var(--bone);
  border-color: var(--rule-on-dark);
}
.contact .btn-ghost:hover { border-color: var(--bone); }

.contact-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-on-dark);
}
.contact-meta > div { display: flex; flex-direction: column; gap: .35rem; }
.contact-meta dt {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--aqua);
}
.contact-meta dd {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--bone);
}
.contact-meta dd a:hover { color: var(--aqua); }
.contact-meta-note {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, .55);
  margin-top: .25rem;
}

@media (min-width: 880px) {
  .contact-inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
  }
  .contact-meta {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-top: 0;
    border-top: none;
    padding-left: 2rem;
    border-left: 1px solid var(--rule-on-dark);
  }
}

.contact-map {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--rule-on-dark);
}
.contact-map[hidden] + .contact-map-placeholder { display: flex; }
.contact-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 240px;
  background: var(--ink-soft);
  color: rgba(255, 255, 255, .55);
  font-size: var(--text-sm);
  margin: 0 auto;
  max-width: var(--container);
  border-top: 1px solid var(--rule-on-dark);
  padding: 0 var(--section-px);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: var(--ink-deep);
  color: var(--bone);
  padding: clamp(3rem, 5vw, 4.5rem) var(--section-px) clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: calc(clamp(1.5rem, 3vw, 2.25rem) + var(--safe-bottom) + 4rem);
}
@media (min-width: 880px) {
  .site-footer { padding-bottom: clamp(1.5rem, 3vw, 2.25rem); }
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .85rem;
}
.footer-logo {
  width: 56px;
  height: 28px;
  object-fit: contain;
  /* Inverts the dark teal/aqua so the logo reads on the dark footer */
  filter: brightness(0) invert(1) opacity(.85);
}
.footer-mark-text {
  display: inline-flex;
  align-items: baseline;
  gap: .25rem;
  font-size: 1.1rem;
}
.footer-mark-text b { font-weight: 600; color: var(--bone); }
.footer-mark-text i { font-style: normal; font-weight: 400; color: var(--aqua); }
.footer-tagline {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, .65);
  margin: 0;
  max-width: 32ch;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}
.footer-cols h4 {
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--aqua);
  margin: 0 0 .85rem;
}
.footer-cols ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .45rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .72);
}
.footer-cols a { transition: color var(--dur-fast) var(--ease-soft); }
.footer-cols a:hover { color: var(--aqua); }

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-on-dark);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, .55);
  letter-spacing: .03em;
}
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 880px) { .footer-inner { grid-template-columns: minmax(0, 22rem) 1fr; align-items: start; } }

/* =========================================================
   STICKY MOBILE CTA
   ========================================================= */

.sticky-cta {
  position: fixed;
  left: .75rem;
  right: .75rem;
  bottom: calc(.75rem + var(--safe-bottom));
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding: .65rem .65rem .65rem 1rem;
  background: rgba(5, 14, 18, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--bone);
  border: 1px solid var(--rule-on-dark);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-soft);
}
.sticky-cta.visible { opacity: 1; pointer-events: auto; }
.sticky-cta-text {
  display: flex;
  flex-direction: column;
  font-size: var(--text-sm);
}
.sticky-cta-text small {
  color: rgba(255, 255, 255, .65);
  font-size: var(--text-xs);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sticky-cta-text b { font-weight: 600; font-size: var(--text-base); color: var(--bone); }
.sticky-cta .btn-primary {
  background: var(--aqua);
  color: var(--ink);
  border-color: var(--aqua);
  min-height: 40px;
  padding: .5rem 1rem;
}
@media (min-width: 880px) { .sticky-cta { display: none; } }

/* =========================================================
   BLOG POST PAGE styles (used by blog/[slug].html)
   ========================================================= */

.bp-wrap {
  padding: calc(6rem + var(--safe-top)) var(--section-px) var(--section-py);
  max-width: 44rem;
  margin: 0 auto;
}
.bp-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 2rem;
}
.bp-back:hover { color: var(--ink); }
.bp-back .arrow { transform: rotate(180deg); }

.bp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 1rem;
}
.bp-title {
  font-size: var(--text-5xl);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  font-weight: 600;
}
.bp-title .emphasis { color: var(--teal-deep); font-style: italic; }
.bp-lede {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--ink-soft);
  font-weight: 400;
  margin: 0 0 2rem;
  max-width: 38ch;
}

.bp-hero {
  margin: 0 calc(var(--section-px) * -1) 2.5rem;
  aspect-ratio: 16 / 9;
  background: var(--surface-deep);
  overflow: hidden;
}
.bp-hero img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) {
  .bp-hero { margin: 0 0 2.5rem; border-radius: 18px; }
}

.bp-body {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
@media (min-width: 720px) {
  .bp-body { font-size: 1.15rem; line-height: 1.7; }
}
.bp-body p { margin: 0 0 1.25em; max-width: 38em; }
.bp-body h2 {
  font-size: var(--text-2xl);
  line-height: 1.18;
  color: var(--ink);
  margin: 2.25rem 0 1rem;
  font-weight: 600;
}
.bp-body h3 {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 1.75rem 0 .5rem;
}
.bp-body ul, .bp-body ol { margin: 0 0 1.5em; padding-left: 1.25em; }
.bp-body li { margin-bottom: .35em; }
.bp-body strong { color: var(--ink); font-weight: 600; }

.bp-pull {
  font-size: var(--text-2xl);
  line-height: 1.22;
  color: var(--ink);
  font-weight: 500;
  border-left: 3px solid var(--aqua);
  padding: .25rem 0 .25rem 1.1rem;
  margin: 2rem 0;
  max-width: 32ch;
}

.bp-foot {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.bp-foot a { color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 1px; }

.bp-related {
  background: var(--surface);
  border-top: 1px solid var(--rule-soft);
  padding: var(--section-py) var(--section-px);
}
.bp-related-inner { max-width: var(--container); margin: 0 auto; }
.bp-related h2 { font-size: var(--text-3xl); margin: 0 0 1.5rem; }
.bp-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (min-width: 720px) { .bp-related-grid { gap: 1.5rem; } }

/* =========================================================
   Reduced motion final pass
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .hero-image { transition: none; transform: none; }
  .post:hover { transform: none; }
  .post:hover figure img,
  .doc:hover .doc-photo img { transform: none; }
  * { animation: none !important; }
}
