/* marius.skrenda — Karklė tandem paragliding landing page */

/* ---------- Fonts ---------- */

/* Self-hosted from Google Fonts (both OFL) so the browser never has to reach
   fonts.googleapis.com — that hop was blocking first render by ~900ms and put
   the woff2 files three requests deep. Both families are variable, so one file
   per subset covers every weight the page uses. The latin-ext subsets carry the
   Lithuanian diacritics (ą č ę ė į š ų ū ž) and load only when they're needed. */

@font-face {
  font-family: Karla;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/karla-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Karla;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/karla-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url(/fonts/newsreader-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url(/fonts/newsreader-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg:        #F5F1E4;  /* paper */
  --ink:       #1C3326;  /* deep pine */
  --accent:    #DE7A28;  /* dune orange */
  --sand:      #E3D9BC;  /* card sand */
  --muted:     #4C5B4A;  /* body on paper */
  --faint:     #5F6B58;  /* eyebrow on paper */
  --line:      #D8CFB6;  /* hairline on paper */
  --sage:      #A8BC9C;  /* eyebrow on ink */
  --olive:     #6A6248;  /* eyebrow on sand */
  --on-sand:   #33422F;
  --shade:     18, 36, 26; /* scrim rgb */

  --wrap: 1240px;
  --gutter: 32px;
  --section-y: clamp(80px, 11vw, 150px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Karla, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--sand); }

h1, h2, h3 { font-weight: 400; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

figure { margin: 0; }
address { font-style: normal; }

/* Available to keyboard and screen readers, invisible on screen. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0; left: 0;
  z-index: 100;
  transform: translateY(-120%);
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  border-bottom-right-radius: 6px;
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; color: var(--bg); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  background: linear-gradient(180deg,
    rgba(var(--shade), 0.82) 0%,
    rgba(var(--shade), 0.55) 55%,
    rgba(var(--shade), 0) 100%);
  transition: background .35s ease, box-shadow .35s ease;
}

.site-header.is-solid {
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(245, 241, 228, 0.14);
}

.wordmark {
  font-family: Newsreader, serif;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--bg);
  text-shadow: 0 1px 12px rgba(var(--shade), 0.5);
}
.wordmark:hover { color: var(--bg); opacity: .82; }

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bg);
  text-shadow: 0 1px 12px rgba(var(--shade), 0.5);
}
.header-phone:hover { color: var(--bg); opacity: .82; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(245, 241, 228, 0.6);
  border-radius: 999px;
}

.lang-switch a,
.lang-switch .lang-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background .2s ease, color .2s ease;
}
.lang-switch a:hover { background: rgba(245, 241, 228, 0.16); color: var(--bg); }

/* The current language is a label, not a link — nothing to navigate to. */
.lang-switch .lang-current {
  background: var(--bg);
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { background: var(--bg); color: var(--ink); }

.btn-ghost-light {
  border: 1px solid rgba(245, 241, 228, 0.72);
  color: var(--bg);
  font-weight: 500;
}
.btn-ghost-light:hover { background: rgba(245, 241, 228, 0.12); color: var(--bg); }

.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--accent); color: var(--bg); }

/* ---------- Image slots ---------- */

.slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--ink);
  overflow: hidden;
}

.slot::after {
  content: attr(data-placeholder);
  max-width: 26ch;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  color: rgba(245, 241, 228, 0.5);
}

.slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A missing/broken image collapses to the placeholder underneath. */
.slot img.is-missing { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: -8% 0;
  will-change: transform;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(var(--shade), 0.5) 0%,
    rgba(var(--shade), 0.04) 35%,
    rgba(var(--shade), 0.78) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 88px;
  pointer-events: none;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: Newsreader, serif;
  font-weight: 300;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--bg);
  text-wrap: balance;
}

.hero-lede {
  margin: 28px 0 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: rgba(245, 241, 228, 0.94);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  pointer-events: auto;
}

/* ---------- Eyebrows ---------- */

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}
.eyebrow.light {
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--sand);
}
.eyebrow.sage { margin-bottom: 20px; color: var(--sage); }
.eyebrow.olive { margin-bottom: 22px; letter-spacing: 0.2em; color: var(--olive); }

.body {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Steps ---------- */

.steps {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.step {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}

.step-num {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.step h3 {
  margin: 0 0 10px;
  font-family: Newsreader, serif;
  font-size: 24px;
  letter-spacing: -0.01em;
}

/* ---------- Gallery ---------- */

.gallery { padding: 0 0 clamp(72px, 10vw, 130px); }

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.gallery-head h2 {
  margin: 0;
  font-family: Newsreader, serif;
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.gallery-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.gallery-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-feature {
  position: relative;
  flex: 2 1 380px;
  min-width: 0;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-side {
  display: grid;
  gap: 12px;
  flex: 1 1 220px;
  min-width: 0;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.tile {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.tile.r43 { aspect-ratio: 4 / 3; }
.tile.r11 { aspect-ratio: 1 / 1; }

.video-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(var(--shade), 0.75);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

.video-badge i {
  display: block;
  width: 0;
  height: 0;
  border-left: 8px solid var(--accent);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* ---------- About ---------- */

.about {
  background: var(--ink);
  color: var(--bg);
}

.about-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.portrait {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
}

.about-title {
  margin: 0 0 28px;
  font-family: Newsreader, serif;
  font-weight: 300;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.about-body {
  margin: 0 0 20px;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(245, 241, 228, 0.88);
  text-wrap: pretty;
}
.about-body:last-child { margin-bottom: 0; }

/* ---------- Price ---------- */

.price {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
}

.price-amount {
  font-family: Newsreader, serif;
  font-weight: 300;
  font-size: clamp(72px, 12vw, 150px);
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.price-currency {
  font-family: Newsreader, serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  color: var(--accent);
}

.price-note {
  margin: 24px 0 0;
  max-width: 34ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.price-card {
  background: var(--sand);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 44px);
}

.included {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.included li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-sand);
}

.price-card .btn { margin-top: 32px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }

.faq-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.faq-title {
  margin: 0;
  font-family: Newsreader, serif;
  font-weight: 300;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.faq-list { display: grid; gap: 2px; }

.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item.last { border-bottom: 1px solid var(--line); }

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq-item .body { max-width: 56ch; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--bg);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--gutter) clamp(40px, 5vw, 60px);
}

.footer-title {
  margin: 0 0 36px;
  max-width: 14ch;
  font-family: Newsreader, serif;
  font-weight: 300;
  font-size: clamp(36px, 6.5vw, 86px);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-actions .btn { padding: 0 28px; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 24px;
  border-top: 1px solid rgba(245, 241, 228, 0.18);
  font-size: 13px;
  color: rgba(245, 241, 228, 0.72);
}

/* ---------- 404 ---------- */

.page-404 {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--gutter);
  text-align: center;
}

.page-404 h1 {
  margin: 0 0 20px;
  font-family: Newsreader, serif;
  font-weight: 300;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-404 .body { margin-bottom: 36px; }
.page-404 .footer-actions { justify-content: center; }

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .9s ease var(--reveal-delay, 0s),
    transform .9s var(--ease) var(--reveal-delay, 0s);
}

.hero [data-reveal] {
  transition:
    opacity 1s ease var(--reveal-delay, 0s),
    transform 1s var(--ease) var(--reveal-delay, 0s);
}

[data-reveal-delay="1"] { --reveal-delay: .1s; }
[data-reveal-delay="2"] { --reveal-delay: .16s; }
.hero [data-reveal-delay="1"] { --reveal-delay: .15s; }

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* No JS: never leave content hidden. */
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-media { transform: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .site-header { padding: 8px var(--gutter); gap: 12px; }
  .header-phone { display: none; }

  /* Touch targets need ~44px of height on phones. */
  .lang-switch a,
  .lang-switch .lang-current { min-height: 44px; min-width: 44px; }

  .hero-inner { padding-bottom: 64px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-meta { font-size: 12px; }
}
