/* ============================================================
   kukis.al — styles.css
   Full rewrite — dark scroll-driven Albanian landing page
   v2.0.0
   ============================================================ */

/* ── 1. FONTS ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,300;0,400;0,600;0,700;0,900;1,300;1,400&family=Manrope:wght@400;500;600;700&display=swap');

/* ── 2. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  /* Core palette */
  --bg:           #2a2724;
  --bg-card:      #332f2b;
  --bg-deep:      #1e1c1a;
  --fg:           #f5f0eb;
  --fg-muted:     rgba(245, 240, 235, 0.55);
  --accent:       #E86A50;
  --accent-deep:  #c4562e;
  --green-dark:   #0A4D3C;
  --green-mid:    #28513E;
  --border:       rgba(245, 240, 235, 0.12);
  --radius:       12px;

  /* Typography */
  --display: 'Urbanist', ui-sans-serif, system-ui, sans-serif;
  --body:    'Manrope', ui-sans-serif, system-ui, sans-serif;

  /* Brand gradient stops (full ramp) */
  --grad-0:  #0A4D3C;
  --grad-1:  #28513E;
  --grad-2:  #3B5440;
  --grad-3:  #4B5741;
  --grad-4:  #5A5A43;
  --grad-5:  #695D45;
  --grad-6:  #775F46;
  --grad-7:  #856148;
  --grad-8:  #936349;
  --grad-9:  #A1654A;
  --grad-10: #AF674C;
  --grad-11: #BD684D;
  --grad-12: #CC694E;
  --grad-13: #DA6A4F;
  --grad-14: #E86A50;

  /* Brand gradient shorthand */
  --brand-gradient: linear-gradient(90deg, #0A4D3C 0%, #28513E 10%, #3B5440 20%, #5A5A43 35%, #856148 60%, #E86A50 100%);

  /* Layout */
  --nav-h: 60px;
  --content-max: 1100px;
  --section-pad-v: clamp(80px, 10vw, 140px);
  --section-pad-h: clamp(20px, 5vw, 80px);
}

/* ── 3. RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── 4. COOKIE SVG UTILITY ────────────────────────────────── */
.cookie-svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

/* ── 5. NAVIGATION ────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 60px);
  background: rgba(42, 39, 36, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-wordmark {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  transition: opacity 0.2s ease;
}

.nav-wordmark:hover {
  opacity: 0.8;
}

.nav-cta {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.nav-cta:hover {
  color: var(--accent-deep);
}

/* ── 6. HERO ──────────────────────────────────────────────── */

/* Wrapper is 300vh to give scroll room for pin */
.hero-wrapper {
  position: relative;
  height: 300vh;
}

/* Stage is sticky — GSAP pins this */
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* "të gjithë i duam" tagline */
.hero-tagline {
  position: absolute;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  color: var(--fg-muted);
  text-align: center;
  letter-spacing: 0.04em;
  /* Initial state: invisible, above center */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-80px);
  pointer-events: none;
  z-index: 2;
}

/* Cookie container — drops from above */
.hero-cookie {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Initial state: invisible, far above */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-60vh);
  z-index: 3;
  pointer-events: none;
}

.hero-cookie .cookie-svg {
  width: clamp(60px, 12vw, 120px);
  height: clamp(60px, 12vw, 120px);
  filter: drop-shadow(0 8px 32px rgba(200, 120, 60, 0.35));
}

/* BISKOTAT word container */
.hero-word {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: visible;
  /* Initial state: invisible */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2;
}

/* Inner row — single inline-block that carries the one gradient for all letters.
   background-clip:text on this element clips one gradient across the entire word. */
.hero-word-inner {
  display: inline-flex;
  align-items: center;
  gap: 0;
  /* THE single gradient — spans B through T */
  background: linear-gradient(90deg, #0A4D3C 0%, #3B5440 18%, #695D45 38%, #A1654A 62%, #E86A50 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Individual letters — transparent windows into the parent gradient */
.hw-letter {
  font-family: var(--display);
  font-size: clamp(52px, 11vw, 130px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.15em;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Initial state: invisible */
  opacity: 0;
  visibility: hidden;
  display: inline-block;
}

/* O slot — holds the cookie SVG as the letter O in flex flow.
   Wider than a letter-width slot so cookie has room to breathe.
   Overflow visible so cookie can extend above/below the text baseline. */
.hw-o {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(60px, 13vw, 150px);
  height: clamp(52px, 11vw, 130px);
  flex-shrink: 0;
  overflow: visible;
  /* Starts invisible — JS drops it in from above */
  opacity: 0;
  visibility: hidden;
}

/* Hero cookie SVG — bigger than the slot so it overflows vertically */
.hero-cookie-svg {
  width: clamp(80px, 16vw, 190px);
  height: clamp(80px, 16vw, 190px);
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 32px rgba(200, 120, 60, 0.35));
}

/* Act 3: Translation line */
.hero-translation {
  position: absolute;
  bottom: clamp(100px, 18vh, 180px);
  display: flex;
  align-items: center;
  gap: 16px;
  /* Initial state: invisible, shifted right */
  opacity: 0;
  visibility: hidden;
  transform: translateX(80px);
  pointer-events: none;
  z-index: 2;
}

.ht-rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.ht-text {
  font-family: var(--display);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--fg-muted);
  white-space: nowrap;
}

.ht-text strong {
  color: var(--fg);
  font-weight: 700;
}

/* Act 3: Subline */
.hero-subline {
  position: absolute;
  bottom: clamp(60px, 11vh, 130px);
  font-family: var(--body);
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  color: var(--fg-muted);
  font-style: italic;
  text-align: center;
  /* Initial state: invisible, slightly below */
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  pointer-events: none;
  z-index: 2;
}

/* ── 7. EXPLAINER SECTION ─────────────────────────────────── */
.explainer-section {
  background: var(--bg);
}

.exp-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-pad-v) var(--section-pad-h);
  border-top: 1px solid var(--border);
}

.exp-panel--a { background: var(--bg); }
.exp-panel--b { background: var(--bg-card); }
.exp-panel--c { background: var(--bg); }

.exp-panel-inner {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

/* Panel A: Cookie with strikethrough */
.exp-cookie-struck {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Initial state for scroll reveal */
  opacity: 0;
}

.exp-cookie-struck .cookie-svg {
  width: clamp(72px, 14vw, 140px);
  height: clamp(72px, 14vw, 140px);
}

/* Diagonal strikethrough line */
.exp-cookie-struck::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -8%;
  width: 116%;
  height: 4px;
  background: var(--accent);
  transform: rotate(-20deg) translateY(-50%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(232, 106, 80, 0.4);
}

.exp-heading {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  /* Initial state for scroll reveal */
  opacity: 0;
}

.exp-body {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 540px;
  /* Initial state for scroll reveal */
  opacity: 0;
}

/* Panel B: Tracking list */
.etl-list {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.etl-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: rgba(245, 240, 235, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  /* Initial state: invisible, shifted right */
  opacity: 0;
  transform: translateX(40px);
}

.etl-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.etl-icon .cookie-svg {
  width: 32px;
  height: 32px;
}

.etl-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
}

/* Panel C: Good vs Bad comparison */
.exp-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  width: 100%;
  max-width: 680px;
  align-items: start;
  text-align: left;
}

.exp-col {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  /* Initial state for scroll reveal */
  opacity: 0;
}

.exp-col--good {
  border-top: 3px solid #0A4D3C;
}

.exp-col--tracking {
  border-top: 3px solid var(--accent);
}

.exp-col-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.exp-col--good .exp-col-title {
  color: #4d9a7a;
}

.exp-col--tracking .exp-col-title {
  color: var(--accent);
}

.exp-col-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-col-list li {
  font-size: 0.95rem;
  color: var(--fg-muted);
  padding-left: 16px;
  position: relative;
}

.exp-col-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--fg-muted);
  opacity: 0.5;
}

.exp-vs {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg-muted);
  align-self: center;
  padding: 0 8px;
}

/* ── 8. LAW SECTION ───────────────────────────────────────── */
.law-section {
  background: var(--bg-deep);
  padding: var(--section-pad-v) var(--section-pad-h);
}

.law-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.law-heading {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 24px;
}

/* Decorative gradient rule */
.gradient-rule {
  height: 3px;
  background: linear-gradient(90deg, #0A4D3C, #E86A50);
  border: none;
  margin: 0 auto 48px;
  width: 80px;
  border-radius: 2px;
}

/* Cards container */
.law-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 860px;
  margin-bottom: 64px;
}

/* Individual law card */
.law-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.law-card-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  text-align: left;
  transition: background 0.2s ease;
}

.law-card-trigger:hover {
  background: rgba(245, 240, 235, 0.05);
}

.law-card-flag {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.law-card-titles {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.law-card-country {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
}

.law-card-subtitle {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

.law-card-arrow {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.law-card--open .law-card-arrow {
  transform: rotate(180deg);
}

.law-card--open {
  border-color: var(--accent);
}

.law-card-body {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
}

.law-card-body:not([hidden]) {
  padding-top: 20px;
}

/* Fine risk badge */
.law-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 106, 80, 0.12);
  border: 1px solid rgba(232, 106, 80, 0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.law-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.law-points li {
  font-size: 0.9rem;
  color: var(--fg-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.law-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.law-points li strong {
  color: var(--fg);
  font-weight: 600;
}

.law-card-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s ease;
}

.law-card-link:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

/* Law summary quote */
.law-summary {
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 700px;
  /* Gradient text — same as .hw-letter */
  background: linear-gradient(90deg, #0A4D3C 0%, #E86A50 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 9. WHY SECTION ───────────────────────────────────────── */
.why-section {
  background: var(--bg);
  padding: var(--section-pad-v) var(--section-pad-h);
}

.why-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.why-heading {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

/* Counters row */
.wc-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  flex-wrap: wrap;
  width: 100%;
}

.wc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.wc-number {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  /* Gradient text — same as .hw-letter */
  background: linear-gradient(90deg, #0A4D3C 0%, #E86A50 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wc-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Feature tiles grid */
.wf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.wf-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Initial state for scroll reveal */
  opacity: 0;
  transform: translateY(24px);
  transition: border-color 0.2s ease;
}

.wf-tile:hover {
  border-color: rgba(245, 240, 235, 0.24);
}

.wf-tile-icon {
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.wf-tile-icon .cookie-svg {
  width: 32px;
  height: 32px;
}

.wf-tile-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}

.wf-tile-body {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* CTA buttons */
.why-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn--ghost {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: rgba(245, 240, 235, 0.35);
  background: rgba(245, 240, 235, 0.05);
}

.btn--primary {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232, 106, 80, 0.35);
}

/* ── 10. FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 24px var(--section-pad-h);
  text-align: center;
}

.site-footer p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--fg-muted);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--fg);
}

/* ── 11. MOBILE MEDIA QUERIES ─────────────────────────────── */

/* Tablets: ≤ 900px */
@media (max-width: 900px) {
  .wf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Law cards stack: ≤ 680px */
@media (max-width: 680px) {
  .law-cards {
    grid-template-columns: 1fr;
  }

  .exp-compare {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .exp-vs {
    text-align: center;
    padding: 4px 0;
  }
}

/* Features: ≤ 780px */
@media (max-width: 780px) {
  .wf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .wf-grid {
    grid-template-columns: 1fr;
  }

  .wc-row {
    gap: 24px;
  }

  .why-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .hero-translation {
    bottom: 80px;
  }

  .hero-subline {
    bottom: 48px;
    padding: 0 20px;
  }

  .law-card-trigger {
    padding: 16px 18px;
    gap: 10px;
  }
}

/* ── 12. PREFERS-REDUCED-MOTION ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  /* Show hero in final act-3 state immediately */
  .hero-tagline {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .hero-cookie {
    opacity: 1;
    visibility: visible;
    transform: none;
    /* Position to center, let JS handle O slot snap if available */
  }

  .hero-word {
    opacity: 1;
    visibility: visible;
  }

  .hw-letter {
    opacity: 1;
    visibility: visible;
    letter-spacing: 0.06em;
  }

  .hero-translation {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .hero-subline {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  /* Explainer items: show immediately */
  .exp-cookie-struck,
  .exp-heading,
  .exp-body,
  .etl-item,
  .exp-col {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Tiles: show immediately */
  .wf-tile {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Disable smooth scroll */
  html {
    scroll-behavior: auto;
  }

  /* Disable all transitions */
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
