/*
Theme Name: 1020 ЗРАБр
Theme URI: https://1020.army
Author: 1020 Brigade
Description: Офіційна тема для сайту 1020 зенітної ракетно-артилерійської бригади. Темний стиль, чітка структура, рекрутинг і новини.
Version: 1.0
Text Domain: 1020-theme
*/

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f0f0f;
  color: #eaeaea;
  line-height: 1.6;
}
a { color: #ffd700; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header {
  background: #000;
  padding: 16px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; }
.logo span { color: #ffd700; }
.logo a { color: inherit; text-decoration: none; }

nav { display: flex; gap: 28px; }
nav a { color: #ddd; text-decoration: none; font-weight: 500; font-size: 15px; }
nav a:hover { color: #ffd700; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
}

/* Hero */
.hero {
  min-height: 70vh;
  background: linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.82)),
              url('https://upload.wikimedia.org/wikipedia/commons/thumb/6/6d/1020th_Anti-Aircraft_Missile_Regiment.png/800px-1020th_Anti-Aircraft_Missile_Regiment.png') center top / contain no-repeat,
              #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 20px 40px;
}
.hero h1 { font-size: 3.6rem; font-weight: 800; margin-bottom: 12px; letter-spacing: 0.5px; color: #fff; }
.hero .sub { font-size: 1.35rem; opacity: 0.9; margin-bottom: 28px; max-width: 640px; }
.btn {
  background: #ffd700 !important;
  color: #000 !important;
  padding: 14px 32px;
  text-decoration: none !important;
  font-weight: 700;
  border-radius: 6px;
  font-size: 16px;
  display: inline-block;
  border: none;
  box-shadow: none;
}
.btn:hover { background: #ffea70 !important; }
.btn-white {
  background: #fff;
  color: #000 !important;
}
.btn-white:hover { background: #f0f0f0; }

/* Content */
.container { max-width: 1080px; margin: 0 auto; padding: 40px 6%; }
#about, #recruit, #news, #support, #social {
  scroll-margin-top: 80px;
}
h2 { font-size: 2rem; margin-bottom: 24px; color: #ffd700; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.card {
  background: #1a1a1a;
  padding: 28px;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
}
.card h3 { margin-bottom: 12px; font-size: 1.3rem; }

.socials { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.socials a {
  background: #222;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none !important;
  font-size: 14px;
  border: 1px solid #333;
}
.socials a:hover { border-color: #ffd700; color: #ffd700 !important; }

.news-item { background: #141414; border-left: 4px solid #ffd700; padding: 24px; margin-top: 20px; }
.news-item time { color: #888; font-size: 0.9rem; }

footer {
  background: #000;
  text-align: center;
  padding: 36px 20px;
  color: #777;
  font-size: 14px;
  border-top: 1px solid #222;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    padding: 16px 5% 20px;
    border-bottom: 1px solid #222;
    gap: 14px;
  }
  nav.active { display: flex; }
  nav a { font-size: 16px; padding: 8px 0; }
  .hero h1 { font-size: 2.4rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 32px 5%; }
  .hero { min-height: 65vh; padding: 30px 20px 30px; }
}
