/* ==========================================================================
   Bikes Ľubochňa — Design tokens
   ========================================================================== */
:root {
  --green: #2d6a2d;
  --green-dark: #1e4a1e;
  --green-light: #4a8c4a;
  --green-pale: #e8f4e8;
  --orange: #e8611a;
  --orange-dark: #c04e12;
  --hairline-dark: rgba(255, 255, 255, 0.16);
  --off-white: #f8f9f5;
  --white: #ffffff;
  --text: #1a2412;
  --text-muted: #4a5c3a;
  --border: #d0dcc0;
  --shadow: rgba(30, 74, 30, 0.12);

  --font-display: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --max-width: 1320px;
  --radius-control: 2px;
  --radius-card: 8px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; padding: 0; margin: 0; text-align: inherit; }
input, textarea { font: inherit; color: inherit; }

body {
  font-family: var(--font-display);
  background: var(--off-white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--text);
  padding: var(--space-2);
  z-index: 200;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.section-dark :focus-visible,
.hero :focus-visible,
.site-header :focus-visible {
  outline-color: var(--white);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ==========================================================================
   Typography rhythm
   ========================================================================== */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; }

h2 {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 18ch;
}

h3 { font-size: 19px; font-weight: 600; margin-bottom: var(--space-1); }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.section-dark .eyebrow, .hero .eyebrow, .route-content .eyebrow { color: rgba(255, 255, 255, 0.65); }

.lede { font-size: clamp(16px, 1.4vw, 18px); color: var(--text-muted); max-width: 56ch; margin-top: var(--space-2); }
.section-dark .lede, .route-content .lede { color: rgba(255, 255, 255, 0.82); }

.section-head { margin-bottom: var(--space-5); }

/* ==========================================================================
   Buttons & controls
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost-light:hover { border-color: var(--white); }

.section-light .btn-ghost-light,
.section-tint .btn-ghost-light {
  color: var(--text);
  border-color: rgba(26, 36, 18, 0.3);
}
.section-light .btn-ghost-light:hover,
.section-tint .btn-ghost-light:hover { border-color: var(--text); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(30, 74, 30, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--hairline-dark);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  text-transform: uppercase;
}
.brand span { color: rgba(255, 255, 255, 0.55); }

.main-nav ul { display: flex; gap: var(--space-4); }
.main-nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--white);
  transition: right 0.25s var(--ease);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-cta { padding: 9px 20px; }

.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lang-switch a { color: rgba(255, 255, 255, 0.55); }
.lang-switch a:hover { color: var(--white); }
.lang-switch a.is-active { color: var(--white); font-weight: 600; pointer-events: none; }
.lang-switch .sep { color: rgba(255, 255, 255, 0.35); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.nav-toggle span { display: block; width: 100%; height: 1px; background: var(--white); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--green-dark);
  padding: 100px var(--space-4) var(--space-5);
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease);
  z-index: 90;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--space-3); }
.mobile-nav a { font-size: 28px; color: var(--white); font-weight: 500; }
.mobile-nav .btn { align-self: flex-start; }
.mobile-nav-foot { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.mobile-nav-foot .lang-switch { font-size: 15px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--green-dark);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.55) contrast(1.12) brightness(0.62);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,38,17,0.6) 0%, rgba(20,38,17,0.2) 35%, rgba(20,38,17,0.4) 65%, rgba(20,38,17,0.94) 100%),
    linear-gradient(90deg, rgba(20,38,17,0.6) 0%, rgba(20,38,17,0.05) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 140px var(--space-4) var(--space-7);
  max-width: var(--max-width);
  margin: 0 auto;
  color: var(--white);
}

.hero-headline {
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 14ch;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-5);
  margin-top: var(--space-5);
  border-top: 1px solid var(--hairline-dark);
  padding-top: var(--space-4);
}
.hero-sub { font-size: 17px; max-width: 38ch; color: rgba(255, 255, 255, 0.78); }
.hero-actions { display: flex; gap: var(--space-2); flex-shrink: 0; }

.scroll-cue {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 2;
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.4);
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: -3px; top: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--white);
  animation: cue-move 2.2s var(--ease) infinite;
}
@keyframes cue-move {
  0% { top: 0; opacity: 1; }
  85% { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

/* ==========================================================================
   Stats bar
   ========================================================================== */
.stats-bar {
  background: var(--green-dark);
  padding: var(--space-3) var(--space-4);
  display: flex;
  justify-content: center;
  gap: clamp(var(--space-4), 4vw, var(--space-7));
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 17px; font-weight: 700; color: var(--white); line-height: 1.2; }
.stat-label { font-size: 11px; color: rgba(255, 255, 255, 0.65); text-transform: uppercase; letter-spacing: 0.06em; }

/* ==========================================================================
   Sections — base
   ========================================================================== */
.section { padding: var(--space-7) 0; }
.section-dark { background: var(--green-dark); color: var(--white); }
.section-light { background: var(--off-white); color: var(--text); }
.section-tint { background: var(--green-pale); color: var(--text); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Why us — numbered rows
   ========================================================================== */
.reason-list { border-top: 1px solid var(--hairline-dark); }
.reason-list li {
  display: grid;
  grid-template-columns: 64px 1fr 1.4fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--hairline-dark);
}
.reason-index { font-size: 14px; color: rgba(255, 255, 255, 0.5); padding-top: 4px; }
.reason-list h3, .steps-list h3 { font-size: 21px; }
.reason-list p, .steps-list p { color: rgba(255, 255, 255, 0.82); max-width: 52ch; }

/* ==========================================================================
   Bikes section
   ========================================================================== */
.bikes-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
.bikes-subhead { margin-top: var(--space-4); font-size: 17px; }

.feature-list { margin-top: var(--space-2); border-top: 1px solid var(--border); }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.feature-check { color: var(--green); font-weight: 700; flex-shrink: 0; }

.price-card {
  margin: var(--space-4) 0;
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 24px var(--shadow);
}
.price { font-size: 32px; font-weight: 700; }
.price span { font-size: 16px; font-weight: 400; color: var(--text-muted); margin-left: 0.5em; }

.bikes-media { display: grid; gap: var(--space-3); }
.bikes-media figure { overflow: hidden; border-radius: var(--radius-card); }
.bikes-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s var(--ease); }
.bikes-media figure:hover img { transform: scale(1.04); }

/* ==========================================================================
   Route section
   ========================================================================== */
.section-route { position: relative; padding: 0; min-height: 90vh; display: flex; align-items: center; }
.route-media { position: absolute; inset: 0; }
.route-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.05) brightness(0.85); }
.route-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,38,17,0.85) 0%, rgba(20,38,17,0.5) 45%, rgba(20,38,17,0.18) 75%);
}
.route-content { position: relative; z-index: 2; color: var(--white); padding: var(--space-7) var(--space-4); max-width: var(--max-width); }
.route-content h2 { font-size: clamp(32px, 5vw, 56px); }
.trip-badge {
  display: inline-block;
  margin-top: var(--space-4);
  padding: 5px 14px;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  border-radius: 14px;
}
.trip-title { margin-top: var(--space-2); font-size: 22px; }
.fact-strip { margin-top: var(--space-4); font-size: 13px; color: rgba(255, 255, 255, 0.78); letter-spacing: 0.03em; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
.g-item { overflow: hidden; border-radius: var(--radius-card); aspect-ratio: 4 / 3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-full { grid-column: 1 / 3; }

/* ==========================================================================
   Steps list (reservation flow)
   ========================================================================== */
.steps-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); border-top: 1px solid var(--border); padding-top: var(--space-5); }
.steps-list .reason-index { color: var(--text-muted); }
.steps-list p { color: var(--text-muted); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-list { margin-top: var(--space-4); border-top: 1px solid var(--hairline-dark); max-width: 480px; }
.contact-list div { display: flex; justify-content: space-between; gap: var(--space-3); padding: 14px 0; border-bottom: 1px solid var(--hairline-dark); font-size: 14px; }
.contact-list dt { color: rgba(255, 255, 255, 0.55); }
.contact-list a:hover { text-decoration: underline; }
.contact-actions { display: flex; gap: var(--space-2); margin-top: var(--space-4); }

/* ==========================================================================
   Reservation form
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: var(--space-6); align-items: start; }
.contact-note {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.contact-note p { font-size: 14px; color: var(--text-muted); }
.contact-note p:first-child { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.contact-note a { color: var(--green-dark); font-weight: 700; }
.reservation-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-row { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / 3; }
.form-row-half { grid-column: span 1; }
.form-row label { font-size: 13px; font-weight: 500; }
.optional { color: var(--text-muted); font-weight: 400; }

.form-row input, .form-row select, .form-row textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--white);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--green); }
.form-row input:invalid:not(:placeholder-shown) { border-color: #9c4a4a; }

.form-foot { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--text-muted); max-width: 38ch; }
.form-status { grid-column: 1 / 3; font-size: 14px; }
.form-status[data-state="success"] { color: var(--green); }
.form-status[data-state="error"] { color: #9c4a4a; }

/* Reservation success panel */
.reservation-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-4); box-shadow: 0 4px 20px var(--shadow); }

.form-success { text-align: center; padding: var(--space-2) 0; }
.form-success[hidden] { display: none; }
.form-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-3);
  background: var(--green-pale);
  border: 3px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.form-success h3 { color: var(--green-dark); font-size: 22px; margin-bottom: 8px; }
.form-success > p { color: var(--text-muted); font-size: 15px; margin-bottom: var(--space-3); }

.form-summary {
  text-align: left;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}
.form-summary .eyebrow { color: var(--orange); margin-bottom: 8px; }
.form-summary pre { font-family: var(--font-display); font-size: 15px; color: var(--text); white-space: pre-wrap; line-height: 1.9; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--green-dark); color: var(--white); padding: var(--space-6) 0 var(--space-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--hairline-dark); }
.footer-brand { font-size: 18px; margin-bottom: var(--space-1); }
.footer-tagline { color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.footer-logo { height: 56px; width: auto; margin-top: var(--space-3); }
.footer-grid nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid nav a { font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.footer-grid nav a:hover { color: var(--white); }
.footer-nav-btn { display: inline; font-size: 14px; color: rgba(255, 255, 255, 0.78); text-align: left; cursor: pointer; }
.footer-nav-btn:hover { color: var(--white); }
.footer-contact p { font-size: 13px; color: rgba(255, 255, 255, 0.78); margin-bottom: 8px; }
.footer-bottom { padding-top: var(--space-3); font-size: 12px; color: rgba(255, 255, 255, 0.4); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-2); }

.footer-link-btn {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer-link-btn:hover { color: var(--white); }
.footer-bottom .footer-link-btn { font-size: 12px; color: rgba(255, 255, 255, 0.55); }

/* ==========================================================================
   Legal modals (GDPR, rental terms)
   ========================================================================== */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  background: rgba(20, 38, 17, 0.55);
}
.legal-modal[hidden] { display: none; }

.legal-modal-panel {
  background: var(--white);
  color: var(--text);
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.legal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.legal-modal-head h2 { font-size: 18px; }
.legal-modal-head .eyebrow { color: var(--orange); margin-bottom: 2px; }

.legal-modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--off-white);
  font-size: 14px;
}
.legal-modal-close:hover { background: var(--border); }

.legal-modal-body { overflow-y: auto; padding: var(--space-4); line-height: 1.8; font-size: 15px; }
.legal-modal-body h3 { color: var(--green-dark); font-size: 16px; margin: var(--space-3) 0 8px; }
.legal-modal-body p { margin-bottom: var(--space-2); color: var(--text); }
.legal-modal-body ul { margin: 8px 0 var(--space-2) 1.2rem; list-style: disc; color: var(--text-muted); }
.legal-modal-body li { margin-bottom: 4px; }
.legal-updated { font-size: 13px; color: var(--text-muted); }

.legal-callout {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.legal-callout p { font-size: 13px; color: var(--text-muted); margin: 0; }

.legal-modal-foot {
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .header-actions .lang-switch { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }

  .bikes-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .bikes-media { grid-template-columns: 1fr 1fr; }

  .reason-list li { grid-template-columns: 40px 1fr; }
  .reason-list li p { grid-column: 2 / 3; }

  .steps-list { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .stats-bar { gap: var(--space-3); }

  .reservation-form { grid-template-columns: 1fr; }
  .form-row-half { grid-column: 1 / 2; }
  .form-status { grid-column: 1 / 2; }
}

@media (max-width: 600px) {
  .hero-media img, .hero-media video { object-position: 62% center; }
  .hero-content { padding: 120px var(--space-2) var(--space-5); }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .bikes-media { grid-template-columns: 1fr; }
  .contact-list div { flex-direction: column; gap: 2px; }
  .steps-list { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; gap: var(--space-2); text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-full { grid-column: 1 / 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
