/* ==========================================================================
   Extreme Ski & Snowboard School — Jahorina
   Design tokens
   ========================================================================== */
:root {
  --navy-900: #0e1620;
  --navy-800: #142330;
  --navy-700: #1c3040;
  --snow: #f7f9fa;
  --paper: #ffffff;
  --paper-alt: #eef2f5;
  --ink: #16212c;
  --ink-soft: #4c5c68;
  --ice: #4fb8e8;
  --ice-dark: #1e87b8;
  --amber: #f2a93b;
  --amber-dark: #d98f1f;
  --piste-green: #3fae6a;
  --piste-red: #e14c3e;
  --piste-black: #1a1a1a;

  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Work Sans", sans-serif;

  --wrap: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { line-height: 1.65; color: var(--ink-soft); margin: 0 0 1rem; }

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

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Eyebrow + piste markers (signature element)
   ========================================================================== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-dark);
  margin-bottom: 0.9rem;
}
.eyebrow.center { justify-content: center; }
.hero .eyebrow { color: var(--ice); }

.marker { width: 12px; height: 12px; flex: none; display: inline-block; }
.marker-circle { border-radius: 50%; background: var(--piste-green); }
.marker-square { background: var(--piste-red); }
.marker-diamond { background: var(--piste-black); transform: rotate(45deg); }

.section-sub {
  max-width: 560px;
  margin: -0.5rem auto 2.5rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo-link { display: flex; align-items: center; height: 100%; }
.logo-img { height: 52px; width: auto; }

.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: #cfdbe3;
  transition: color 0.15s ease;
  white-space: nowrap;
  margin-right: 28px;
}
.main-nav a:last-child { margin-right: 0; }
.main-nav a:hover { color: var(--ice); }

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

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--snow);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 7px 14px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.header-phone:hover { border-color: var(--ice); color: var(--ice); }
.header-phone svg { flex: none; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.lang-sep { color: rgba(255,255,255,0.25); }
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 4px 2px;
}
.lang-btn.active { color: var(--ice); }
.lang-btn:hover { color: var(--snow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--snow);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--snow);
  overflow: hidden;
  padding: 110px 0 130px;
}
.contour-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(79, 184, 232, 0.16);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }

.hero h1 { color: var(--snow); }
.hero-sub {
  font-size: 1.1rem;
  color: #b7c6d0;
  max-width: 540px;
  margin-top: 1.2rem;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  padding: 13px 30px;
  border-radius: 999px;
  display: inline-block;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy-900);
  font-weight: 600;
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--snow);
}
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }

/* ==========================================================================
   Sections (generic)
   ========================================================================== */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
.about-stats {
  display: grid;
  gap: 16px;
}
.stat-card {
  background: var(--paper-alt);
  border: 1px solid #e2e8ec;
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-900);
}
.stat-label { font-size: 0.9rem; color: var(--ink-soft); }

/* Courses */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 2.5rem;
}
.course-card {
  background: var(--paper);
  border: 1px solid #e2e8ec;
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.course-card:hover { border-color: var(--ice); transform: translateY(-2px); }

.piste {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.piste-green { background: rgba(63,174,106,0.12); color: var(--piste-green); }
.piste-red { background: rgba(225,76,62,0.1); color: var(--piste-red); }
.piste-black { background: rgba(0,0,0,0.06); color: var(--piste-black); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 2.5rem;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}
.gallery-item.ph {
  background: linear-gradient(135deg, var(--paper-alt), #dfe7ec);
  border: 1px dashed #c3ced5;
}
.gallery-note {
  text-align: center;
  font-size: 0.85rem;
  color: #9aa8b1;
  margin-top: 1.2rem;
}

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.location-address {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy-900);
  letter-spacing: 0.02em;
}
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e2e8ec;
}

/* Contact */
.contact-section {
  position: relative;
  background: var(--navy-900);
  color: var(--snow);
  overflow: hidden;
}
.contact-section .eyebrow { color: var(--ice); }
.contact-section h2 { color: var(--snow); }
.contact-section .section-sub { color: #b7c6d0; }
.contour-bg-footer { color: rgba(242,169,59,0.1); }

.contact-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-card:hover { border-color: var(--ice); background: rgba(255,255,255,0.08); }
.contact-card svg { flex: none; color: var(--ice); }
.contact-card span { display: flex; flex-direction: column; gap: 3px; }
.contact-card strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.contact-card em { font-style: normal; color: #b7c6d0; font-size: 0.92rem; }

.social-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 2.4rem;
}
.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--snow);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.social-link:hover { border-color: var(--ice); color: var(--ice); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { height: 36px; width: auto; opacity: 0.9; }
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.88rem;
  color: #9aabb6;
}
.footer-nav a:hover { color: var(--ice); }
.footer-copy {
  font-size: 0.82rem;
  color: #6c7d88;
  margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .about-grid, .location-grid { grid-template-columns: 1fr; gap: 32px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy-800);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav a {
    padding: 14px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .header-phone span { display: none; }
  .nav-toggle { display: flex; }
  .course-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 90px; }
}
