/* =========================================================
   SkillShot — Pre-military shooting training, Greece
   RTL Hebrew, mobile-first, dark tactical theme
   ========================================================= */

/* --- Google Fonts (Rubik — excellent RTL Hebrew support) --- */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700;900&display=swap');

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0d0d0d;
  --bg2:      #141414;
  --bg3:      #1e1e1e;
  --red:      #d42a2a;
  --red-dark: #a81f1f;
  --gold:     #c8a84b;
  --text:     #f0f0f0;
  --muted:    #999;
  --border:   #2a2a2a;
  --nav-h:    72px;
  --radius:   6px;
  --container: 1100px;
  --section-py: 96px;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Rubik', -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn--lg { padding: 18px 40px; font-size: 1.1rem; }

/* --- Section label / eyebrow --- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
}

.centered {
  text-align: center;
}
.centered .section-sub { margin-inline: auto; }

/* =========================================================
   NAV
   ========================================================= */
.nav-wrap {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: height .3s ease, background .3s;
}
.nav-wrap.scrolled {
  height: 58px;
  background: rgba(8,8,8,.97);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: 44px;
  width: auto;
  transition: height .3s;
  filter: invert(1) hue-rotate(180deg);
}
.nav-wrap.scrolled .nav__logo img { height: 34px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: color .2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  inset-inline: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s;
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__social a {
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.nav__social a:hover { color: var(--red); }
.nav__social svg { width: 18px; height: 18px; fill: currentColor; }

/* Burger (mobile) */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform .25s, opacity .25s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(8,8,8,.97);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  z-index: 999;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  transition: color .2s;
}
.nav__mobile a:hover { color: var(--red); }
.nav__mobile .nav__social {
  gap: 24px;
  margin-top: 8px;
}
.nav__mobile .nav__social svg { width: 26px; height: 26px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5,5,5,.88) 0%,
    rgba(5,5,5,.72) 60%,
    rgba(90,15,15,.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 80px 60px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.hero__label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--red);
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 740px;
}
.hero__title em {
  font-style: normal;
  color: var(--red);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.4);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero__scroll svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* =========================================================
   STATS BAND
   ========================================================= */
.stats {
  background: var(--red);
  padding-block: 40px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
}
.stat {
  text-align: center;
  padding: 16px 24px;
  border-inline-end: 1px solid rgba(255,255,255,.2);
}
.stat:last-child { border-inline-end: none; }
.stat__num {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label {
  font-size: .82rem;
  font-weight: 500;
  opacity: .85;
}

/* =========================================================
   WHY SECTION
   ========================================================= */
.why {
  padding-block: var(--section-py);
  background: var(--bg2);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 52px;
}
.why-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.why-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(212,42,42,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.why-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
}
.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.why-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* =========================================================
   COURSES
   ========================================================= */
.courses {
  padding-block: var(--section-py);
  background: var(--bg);
}
.courses__tabs {
  display: flex;
  gap: 0;
  margin-top: 48px;
  margin-bottom: 0;
  border-bottom: 2px solid var(--border);
}
.tab-btn {
  padding: 14px 28px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  inset-inline: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .2s;
}
.tab-btn.active { color: #fff; }
.tab-btn.active::after { transform: scaleX(1); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.course-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding-top: 48px;
}

.course-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.course-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.course-img__badge {
  position: absolute;
  bottom: 20px;
  inset-inline-end: 20px;
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 700;
}

.course-info { padding-block-start: 8px; }
.course-info h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 16px;
}
.course-info .desc {
  font-size: .97rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.course-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 7px;
}
.feature p {
  font-size: .92rem;
  line-height: 1.55;
}
.feature p strong { color: #fff; font-weight: 700; }

.course-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.meta-item { text-align: center; }
.meta-item__val {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
}
.meta-item__label {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}

/* =========================================================
   SPECIAL UNITS
   ========================================================= */
.special {
  padding-block: var(--section-py);
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
.special::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/stock-1.jpg') center / cover no-repeat;
  opacity: .06;
}
.special__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.special__content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 20px;
}
.special__content p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.special__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 36px;
}
.special__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .93rem;
  font-weight: 500;
}
.special__list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d42a2a' stroke-width='2.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.special__img {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.special__img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 20%;
}
.special__img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(212,42,42,.3);
  border-radius: var(--radius);
  pointer-events: none;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding-block: var(--section-py);
  background: var(--bg);
}
.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 52px;
}
.about-card {
  padding: 32px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.about-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212,42,42,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.about-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.8;
}
.about-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.about-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* =========================================================
   YOUTUBE BACKGROUND
   shared by any section that uses a YT video as bg
   ========================================================= */
.yt-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
/* Scale iframe up so YouTube chrome (title bar, controls) is clipped away */
.yt-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 16:9 — ensure the iframe always covers the container */
  width: max(100%, calc(100vh * 16 / 9));
  height: max(100%, calc(100vw * 9 / 16));
  transform: translate(-50%, -50%);
  border: none;
  /* push iframe further than needed so controls + title are outside visible area */
  margin-top: -60px;
}
.yt-bg__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* =========================================================
   GALLERY STRIP
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 360px;
}
.gallery__item {
  overflow: hidden;
  position: relative;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  transition: background .3s;
}
.gallery__item:hover::after { background: rgba(212,42,42,.15); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding-block: var(--section-py);
  background: var(--bg2);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact__info h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 16px;
}
.contact__info p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 32px;
}
.contact__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .93rem;
  transition: border-color .2s, background .2s;
  color: var(--text);
}
.contact-link:hover {
  border-color: var(--red);
  background: rgba(212,42,42,.05);
}
.contact-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  transition: border-color .2s;
  width: 100%;
  direction: rtl;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
}
.field input::placeholder,
.field textarea::placeholder { color: #555; }
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; cursor: pointer; }

.form__status {
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  min-height: 20px;
}
.form__status.success { color: #4caf78; }
.form__status.error   { color: var(--red); }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: #070707;
  border-top: 1px solid var(--border);
  padding-block: 40px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
footer img { height: 32px; width: auto; filter: invert(1) hue-rotate(180deg); }
.footer__copy {
  font-size: .82rem;
  color: #555;
}
.footer__social {
  display: flex;
  gap: 16px;
}
.footer__social a {
  color: #555;
  transition: color .2s;
}
.footer__social a:hover { color: var(--red); }
.footer__social svg { width: 20px; height: 20px; fill: currentColor; }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  :root { --section-py: 72px; }

  .nav__links,
  .nav__social { display: none; }
  .nav__burger { display: flex; }

  .course-layout { grid-template-columns: 1fr; gap: 32px; }
  .course-img img { height: 280px; }

  .special__inner { grid-template-columns: 1fr; gap: 40px; }
  .special__img { order: -1; }
  .special__img img { height: 280px; }

  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  :root { --section-py: 56px; }

  .hero__title { font-size: 1.9rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { border-inline-end: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .stat:nth-child(odd) { border-inline-end: 1px solid rgba(255,255,255,.15); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }

  .why__grid { grid-template-columns: 1fr; }

  .course-meta { grid-template-columns: 1fr 1fr; }

  .gallery { grid-template-columns: 1fr; height: auto; }
  .gallery__item { height: 240px; }

  .form__row { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; align-items: center; text-align: center; }

  .courses__tabs { overflow-x: auto; }
  .tab-btn { white-space: nowrap; font-size: .85rem; padding: 12px 18px; }
}
