/* ==========================================================
   AVRUPA E-SPOR — style.css
   Dark + Green + Elegant Gaming aesthetic
   Sections: 1. Reset & tokens  2. Layout helpers  3. Header/Nav
   4. Hero fade carousel  5. Sections & cards  6. Gallery + lightbox
   7. Reviews  8. Forms  9. Footer  10. Legal content  11. Breadcrumbs
   12. Utilities  13. Responsive
   ========================================================== */

/* ---------- 1. Reset & tokens ---------- */
:root {
  --bg: #080b09;
  --bg-2: #0e1210;
  --card: #131815;
  --elevated: #181d1a;
  --green: #44d62c;
  --green-deep: #2fa81f;
  --border: rgba(68, 214, 44, 0.25);
  --border-soft: #22271f;
  --text: #f4f6f4;
  --text-muted: #a8b0aa;
  --text-faint: #6f7871;
  --dark-text: #080b09;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --maxw: 1180px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-deep); text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- 2. Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.eyebrow {
  display: inline-block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
.section-head p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--dark-text);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: var(--dark-text); }
.btn-primary:hover { background: var(--green-deep); color: var(--dark-text); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- 3. Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 9, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}
.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-img {
  height: 40px;
  width: auto;
  max-width: 46vw;
  object-fit: contain;
}

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: inline-block;
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text); text-decoration: none; background: var(--elevated); }
.main-nav a[aria-current="page"] { color: var(--green); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-2);
  padding: 10px 0 18px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; padding: 0 20px; }
.mobile-nav a {
  display: block;
  padding: 13px 4px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav a:hover { color: var(--green); text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--green); }
.mobile-nav .container { padding: 16px 20px 0; }

@media (min-width: 1100px) {
  .main-nav { display: block; }
  .header-actions .btn { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- 4. Hero fade carousel ---------- */
.hero-carousel {
  position: relative;
  background: var(--bg-2);
}
.carousel-track-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
@media (min-width: 640px) {
  .carousel-track-wrap { aspect-ratio: 16 / 10; }
}
@media (min-width: 1000px) {
  .carousel-track-wrap { aspect-ratio: 16 / 9; }
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  z-index: 1;
}
.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 11, 9, 0.88) 0%, rgba(8, 11, 9, 0.55) 42%, rgba(8, 11, 9, 0.25) 100%);
}
.slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 20px 56px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.slide-content h2 {
  font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.8rem);
  color: var(--text);
  margin-bottom: 12px;
}
.slide-content p {
  color: #d7ddd8;
  max-width: 44ch;
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(8, 11, 9, 0.55);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.carousel-arrow:hover { background: var(--green); color: var(--dark-text); border-color: var(--green); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(244, 246, 244, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
}
.carousel-dot.is-active { background: var(--green); }

/* ---------- 5. Sections & cards ---------- */
.intro-block { max-width: 760px; }
.intro-block h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.3rem); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.card:hover { border-color: var(--border); }
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.95rem; }

.experience-block {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .experience-block { grid-template-columns: 1fr 1fr; }
}
.experience-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.experience-media img { width: 100%; height: 100%; object-fit: cover; }
.notice-box {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 18px;
}

.why-list { display: grid; gap: 16px; }
@media (min-width: 640px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-item h3 { font-size: 1rem; margin-bottom: 4px; }
.why-item p { font-size: 0.92rem; margin: 0; }

.cta-band {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { max-width: 52ch; margin: 0 auto 22px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- 6. Gallery + lightbox ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 14px;
}
@media (min-width: 480px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--card);
  cursor: zoom-in;
  position: relative;
}
.gallery-item:hover { border-color: var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gallery-item:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 11, 9, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox-figure { position: relative; max-width: 1100px; width: 100%; text-align: center; }
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.lightbox-caption { color: var(--text-muted); margin-top: 14px; font-size: 0.9rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(8, 11, 9, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--green); color: var(--dark-text); border-color: var(--green); }
.lightbox-close { top: -54px; right: 0; }
.lightbox-prev { left: -6px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -6px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox-close { top: 8px; right: 8px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------- 7. Reviews ---------- */
.reviews-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-stars { color: var(--green); font-size: 1rem; letter-spacing: 2px; }
.review-text { color: var(--text); font-size: 0.95rem; margin: 0; }
.review-meta { display: flex; justify-content: space-between; color: var(--text-faint); font-size: 0.82rem; margin-top: auto; }
.reviews-disclaimer { margin-top: 20px; font-size: 0.85rem; color: var(--text-faint); }

/* ---------- 8. Forms ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
}
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--green); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--text-faint); margin-top: 4px; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  background: var(--elevated);
}
.form-success.is-visible { display: block; }

/* ---------- 9. Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border-soft); margin-top: 40px; }
.footer-grid {
  display: grid;
  gap: 30px;
  padding: 52px 0 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-col h4 { color: var(--text); font-size: 0.92rem; margin-bottom: 14px; }
.footer-col p { font-size: 0.9rem; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--green); }
.footer-col .logo-img { height: 34px; margin-bottom: 12px; }
.footer-col address { font-style: normal; font-size: 0.9rem; color: var(--text-muted); }
.footer-col address p { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--green); }

/* ---------- 10. Legal content ---------- */
.legal-content h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 0.96rem; }
.legal-content ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal-content li { margin-bottom: 6px; }
.dev-note {
  background: var(--elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 18px 0;
}

/* ---------- 11. Breadcrumbs ---------- */
.page-hero { padding: 36px 0 8px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--text-faint); margin-bottom: 14px; }
.breadcrumbs a { color: var(--text-faint); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs .current { color: var(--text-muted); }
.page-hero h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); margin-bottom: 8px; }
.page-hero .lead { max-width: 60ch; }

/* ---------- 12. Utilities ---------- */
.contact-list { display: grid; gap: 14px; }
.contact-list .item { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-list .item h3 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-list .item p { margin: 0; font-size: 0.92rem; }

.map-wrap {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--card);
}
.map-frame { width: 100%; height: 100%; border: 0; }
.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  padding: 20px;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.location-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .location-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- 13. Responsive misc ---------- */
main { display: block; }
