/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --color-primary:   #171469;
  --color-primary-dark: #0e0d47;
  --color-accent:    #a1d4c7;
  --color-accent-dark: #84c4b5;
  --color-white:     #ffffff;
  --color-dark:      #111111;
  --color-gray-100:  #f7f7f7;
  --color-gray-200:  #e8e8e8;
  --color-gray-600:  #666666;

  --font-title: 'Anton', sans-serif;
  --font-body:  'Inter', sans-serif;

  --max-width: 1200px;
  --header-h:  72px;
  --radius:    4px;
  --transition: 0.3s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}
.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ── Link arrow ─────────────────────────────────────────── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  transition: gap var(--transition);
}
.link-arrow:hover { gap: 14px; }
.link-arrow i { font-size: 1rem; }

/* ── Section title ──────────────────────────────────────── */
.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--color-primary);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 40px;
}

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
:root {
  --logo-size: 120px;
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--color-primary);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  overflow: visible; /* allow logo badge to bleed below */
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo badge in normal flex flow, shifted down so it's half/half on header edge */
.header-logo {
  position: relative;
  z-index: 101;
  flex-shrink: 0;
  margin-top: 10px;
  /* center of logo was at header-h/2 = 36px; move to header-h = 72px → shift 36px */
  transform: translateY(calc(var(--header-h) / 2));
  background: var(--color-white);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 8px 28px rgba(23,20,105,0.18);
  display: block;
  line-height: 0;
}
.header-logo img {
  height: var(--logo-size);
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-list a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-list a:hover { color: var(--color-accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  /* extra = half logo sticking below header */
  padding-top: calc(var(--header-h) + var(--logo-size) / 2 + 48px);
  padding-bottom: 96px;
  background: var(--color-gray-100);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  color: var(--color-primary);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.hero-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  opacity: 0.6;
}
.hero-body {
  font-size: 1rem;
  color: var(--color-gray-600);
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Hero image slider */
.hero-images {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(23,20,105,0.18);
}
.hero-slider {
  position: relative;
  width: 100%;
}
/* Active slide is in normal flow — defines container height */
.hero-slide {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: block;
}
/* Non-active slides stack absolutely on top of the active one */
.hero-slide:not(.active) {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: unset;
}
.hero-slide.active { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   BANNER
══════════════════════════════════════════════════════════ */
.banner {
  position: relative;
  background-image: url('img/photo4.jpg');
  background-size: cover;
  background-position: center;
  padding: 96px 0;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23,20,105,0.92) 0%, rgba(23,20,105,0.75) 100%);
}
.banner-inner { position: relative; z-index: 1; }
.banner-content { max-width: 680px; }
.banner-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--color-white);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.banner-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 36px;
}
.banner-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════
   NUMBERS
══════════════════════════════════════════════════════════ */
.numbers {
  background: var(--color-accent);
  padding: 80px 0;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}
.number-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.number-value {
  font-family: var(--font-title);
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--color-primary);
  letter-spacing: 0.02em;
  line-height: 1;
}
.number-label {
  font-size: 0.95rem;
  color: var(--color-primary);
  font-weight: 400;
  max-width: 200px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   PHOTOS
══════════════════════════════════════════════════════════ */
.photos {
  padding: 96px 0;
  background: var(--color-white);
}
.masonry-grid {
  columns: 2;
  column-gap: 16px;
  margin-bottom: 40px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.masonry-item:hover img { transform: scale(1.03); }

/* Vary heights for masonry effect */
.masonry-item:nth-child(1) img { aspect-ratio: 4/5; object-fit: cover; }
.masonry-item:nth-child(2) img { aspect-ratio: 3/2; object-fit: cover; }
.masonry-item:nth-child(3) img { aspect-ratio: 3/2; object-fit: cover; }
.masonry-item:nth-child(4) img { aspect-ratio: 4/5; object-fit: cover; }

.photos-link { text-align: center; margin-top: 8px; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
/* ── Footer road with animated bikes ───────────────────── */
.footer-road {
  position: relative;
  background: var(--color-primary-dark);
  height: 56px;
  overflow-x: clip; /* clips bikes entering/exiting left-right, not top */
  border-top: 30px solid var(--color-accent);
}
.bike {
  position: absolute;
  font-size: 3rem;
  line-height: 1;
  color: var(--color-primary);
  /* bottom of icon sits on bottom edge of the 30px line */
  top: calc(40px - 2em);
  animation: ride linear infinite;
}
.bike-1 { animation-duration: 7s;  animation-delay: 0s; }
.bike-2 { animation-duration: 11s; animation-delay: -4s; }
.bike-3 { animation-duration: 9s;  animation-delay: -2s; }

@keyframes ride {
  from { transform: translateX(-80px); }
  to   { transform: translateX(calc(100vw + 80px)); }
}

.site-footer {
  background: var(--color-primary-dark);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo img { height: 160px; width: auto; }
.footer-nav .nav-list {
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav .nav-list a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.footer-nav .nav-list a:hover { color: var(--color-accent); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .numbers-grid { grid-template-columns: 1fr; gap: 40px; }
  .masonry-grid { columns: 2; }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-images {
    display: block;
    max-width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    align-items: flex-start;
    /* top padding clears the logo badge that hangs below the header */
    padding: calc(var(--logo-size) / 2 + 36px) 24px 24px;
    gap: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 16px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav .nav-list { flex-direction: column; gap: 10px; }

  .masonry-grid { columns: 1; }

  .banner-ctas { flex-direction: column; }
}
