/* ═══════════════════════════════════════════════════════════════════
   home.css  –  Balkan Throttle  |  index.html only
   ═══════════════════════════════════════════════════════════════════ */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* ── Hero section ───────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid; grid-template-rows: auto 1fr;
  position: relative; overflow: hidden;
  background: url('../img/hero.jpeg') center/cover no-repeat;
  background-image: image-set(url('../img/hero.webp') type('image/webp'), url('../img/hero.jpeg') type('image/jpeg'));
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.35) 50%, rgba(10,10,10,0.82) 100%);
  z-index: 1;
}
#hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(240,165,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(255,77,0,0.10) 0%, transparent 55%);
  animation: pulseGlow 6s ease-in-out infinite alternate; z-index: 1;
}
@keyframes pulseGlow { from { opacity: 0.6; } to { opacity: 1; } }

/* Hero nav (inherits from style.css nav, removes border) */
#hero nav { border-bottom: none; }

/* ── Hero body ──────────────────────────────────────────────────────────── */
.hero-body {
  position: relative; z-index: 20;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 4rem;
  padding: 2rem 4rem 5rem; width: 100%;
}
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero-h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 14vw, 13rem);
  line-height: 0.88; letter-spacing: 0.02em; color: var(--cream);
  opacity: 0; animation: fadeUp 0.9s 0.4s forwards;
}
.h1-word { display: inline-block; cursor: pointer; }
.h1-accent { color: var(--orange); } /* was italic em — now plain accent color only */
.tagline {
  margin-top: 2.5rem; font-size: 1.05rem; font-weight: 300;
  line-height: 1.75; max-width: 480px;
  opacity: 0; animation: fadeUp 0.9s 0.6s forwards;
  color: rgba(245,239,224,0.72);
}
.cta-row { margin-top: 3rem; display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.9s 0.8s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Word dust */
@keyframes wordDust {
  0%   { transform: translateX(0) skewX(0deg);      opacity: 1; filter: blur(0); }
  35%  { transform: translateX(80px) skewX(-10deg);  opacity: 0.5; filter: blur(4px); }
  50%  { transform: translateX(120vw) skewX(-14deg); opacity: 0; filter: blur(12px); }
  51%  { transform: translateX(-40px) skewX(6deg);   opacity: 0; filter: blur(12px); }
  78%  { transform: translateX(-6px) skewX(-2deg);   opacity: 0.85; filter: blur(1px); }
  100% { transform: translateX(0) skewX(0deg);       opacity: 1; filter: blur(0); }
}
.word-flying { animation: wordDust 0.9s cubic-bezier(0.4, 0, 0.2, 1) both !important; }

/* Hero logo (right side, 2× larger than before) */
.hero-logo-wrap { display: flex; align-items: center; justify-content: center; opacity: 0; animation: fadeUp 1s 0.5s forwards; }
.hero-logo-svg {
  height: clamp(320px, 40vw, 600px); width: auto;
  filter: sepia(0.2) brightness(0.95) drop-shadow(0 0 40px rgba(255,77,0,0.25));
  cursor: pointer;
}

/* ── About section (index) ──────────────────────────────────────────────── */
#about { background: var(--gray); display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; padding: 7rem 4rem; }
#about p { font-size: 1.05rem; line-height: 1.85; color: rgba(245,239,224,0.7); margin-bottom: 1.2rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.stat { border-top: 1px solid rgba(240,165,0,0.3); padding-top: 1.5rem; transition: transform 0.35s ease; cursor: default; }
.stat:hover { transform: translateY(-5px); }
.stat:hover .stat-num { color: var(--orange); }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 3.5rem; color: var(--gold); line-height: 1; transition: color 0.35s ease; }
.stat-desc { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.55; margin-top: 0.5rem; }

/* ── Mission section ────────────────────────────────────────────────────── */
#mission { text-align: center; background: var(--dark); overflow: hidden; padding: 7rem 4rem; position: relative; }
#mission::before {
  content: 'FREEDOM'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: 'Bebas Neue', sans-serif; font-size: 22vw;
  color: rgba(255,77,0,0.04); white-space: nowrap; pointer-events: none; letter-spacing: 0.1em;
}
.mission-text { font-size: clamp(1.4rem, 3vw, 2.2rem); max-width: 750px; margin: 0 auto 4rem; line-height: 1.6; color: rgba(245,239,224,0.85); position: relative; z-index: 1; }
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; max-width: 960px; margin: 0 auto; position: relative; z-index: 1; }
.pillar-flip { perspective: 1000px; cursor: pointer; height: 280px; overflow: hidden; }
.pillar-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.65s cubic-bezier(0.4,0,0.2,1); }
.pillar-flip.flipped .pillar-inner { transform: rotateY(180deg); }
.pillar-front, .pillar-back {
  position: absolute; inset: 0; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.03);
}
.pillar-front { transition: background 0.3s, border-color 0.3s; }
.pillar-front::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--orange), var(--gold)); transform: scaleX(0); transition: transform 0.4s; transform-origin: left; }
.pillar-flip:hover .pillar-front { background: rgba(255,255,255,0.07); border-color: rgba(240,165,0,0.25); }
.pillar-flip:hover .pillar-front::after { transform: scaleX(1); }
.pillar-front .pillar-icon { font-size: 2.2rem; margin-bottom: 0.5rem; }
.pillar-front h3 { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; letter-spacing: 0.12em; color: var(--cream); }
.pillar-back { transform: rotateY(180deg); background: rgba(255,77,0,0.07); border-color: rgba(255,77,0,0.18); padding: 1.8rem; }
.pillar-back p { font-size: 0.88rem; line-height: 1.72; color: rgba(245,239,224,0.78); text-align: center; }

/* ── Contact section ────────────────────────────────────────────────────── */
#contact { background: var(--dark); display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; padding: 7rem 4rem; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-line { display: flex; flex-direction: column; gap: 0.3rem; border-left: 2px solid var(--orange); padding-left: 1.5rem; }
.contact-line label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); opacity: 0.8; }
.contact-line a, .contact-line span { font-size: 1.1rem; color: var(--cream); text-decoration: none; transition: color 0.2s; }
.contact-line a:hover { color: var(--gold); }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); opacity: 0.8; }
.optional-label { opacity: 0.4; font-size: 0.85em; text-transform: none; letter-spacing: 0; }
.form-group input, .form-group textarea, .form-group select {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px; color: var(--cream); font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; padding: 0.75rem 1rem;
  transition: border-color 0.2s, background 0.2s; outline: none; width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--orange); background: rgba(255,77,0,0.04); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(245,239,224,0.28); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.form-group select option { background: #1a1a1a; }
.phone-row { display: flex; }
.phone-code { flex: 0 0 115px; width: 115px !important; border-radius: 2px 0 0 2px !important; border-right: none !important; }
.phone-num { flex: 1 1 0; width: 0 !important; border-radius: 0 2px 2px 0 !important; }
.form-success { display: none; padding: 2rem 1.5rem; border: 1px solid rgba(240,165,0,0.25); background: rgba(240,165,0,0.05); }
.form-success h3 { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--gold); letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.form-success p { font-size: 0.9rem; color: rgba(245,239,224,0.65); line-height: 1.7; }

/* ── Instagram ──────────────────────────────────────────────────────────── */
#instagram { padding: 5rem 0; background: var(--gray); overflow: hidden; }
#instagram .ig-header { padding: 0 4rem; margin-bottom: 3rem; }
.ig-carousel-wrap { position: relative; }
.ig-carousel-wrap::before,.ig-carousel-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none; }
.ig-carousel-wrap::before { left: 0; background: linear-gradient(to right, var(--gray) 20%, transparent); }
.ig-carousel-wrap::after  { right: 0; background: linear-gradient(to left,  var(--gray) 20%, transparent); }
.ig-carousel { display: flex; gap: 10px; overflow-x: auto; padding: 0 4rem 0.5rem; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; user-select: none; }
.ig-carousel.grabbing { cursor: grabbing; }
.ig-carousel::-webkit-scrollbar { display: none; }
.ig-post { flex: 0 0 260px; height: 260px; overflow: hidden; position: relative; }
.ig-post a { display: block; width: 100%; height: 100%; }
.ig-post img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; pointer-events: none; }
.ig-post:hover img { transform: scale(1.06); }
.ig-post-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%); opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; padding: 0.9rem; }
.ig-post:hover .ig-post-overlay { opacity: 1; }
.ig-post-overlay span { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.ig-empty { padding: 3rem 4rem; color: rgba(245,239,224,0.3); font-size: 0.85rem; letter-spacing: 0.1em; text-align: center; }
.ig-empty a { color: var(--gold); text-decoration: none; }

/* ── Home responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-body { padding: 1.5rem 1.4rem 4rem; grid-template-columns: 1fr; }
  .hero-logo-wrap { display: none; }
  .hero-h1 { font-size: clamp(3.8rem, 18vw, 6rem); }
  .tagline { font-size: 0.95rem; margin-top: 1.5rem; max-width: 100%; }
  .cta-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; padding: 0.85rem 1.5rem; font-size: 0.8rem; }

  #about { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 1.4rem; }
  .stat-num { font-size: 2.8rem; }
  .mission-text { font-size: clamp(1.1rem, 4vw, 1.6rem); }
  .pillars { grid-template-columns: 1fr; gap: 2px; }
  .pillar-flip { height: 260px; }
  .pillar-front h3 { font-size: 2.5rem; }

  #contact { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 1.4rem; overflow-x: hidden;}
  .form-row { grid-template-columns: 1fr; }

  .partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

  #instagram .ig-header { padding: 0 1.4rem; }
  .ig-carousel { padding: 0 1.4rem 0.5rem; }
  .ig-carousel-wrap::before { background: linear-gradient(to right, var(--gray) 5%, transparent); width: 40px; }
  .ig-carousel-wrap::after  { background: linear-gradient(to left,  var(--gray) 5%, transparent); width: 40px; }
  .ig-post { flex: 0 0 200px; height: 200px; }
}
@media (max-width: 420px) {
  .hero-body { padding-left: 1rem; padding-right: 1rem; }
  .hero-h1 { font-size: clamp(3.2rem, 20vw, 5rem); }
}
