/* =========================================================
   AERODROM ČENEJ – stilovi samo za stranicu aerodrom.html
   (meni, dugmad, naslovi – su u style.css)
   ========================================================= */

html { scroll-padding-top: 84px; }

/* ---------- Hero: tekst levo, fotografija desno ---------- */
.ad-hero {
  display: grid;
  grid-template-columns: 5fr 6fr;
  min-height: 78vh;
  min-height: 78svh;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.ad-hero-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 40px 64px max(24px, calc((100vw - 1180px) / 2 + 24px));
  overflow: hidden;
}
.ad-ghost {
  position: absolute;
  left: -.04em;
  bottom: -.18em;
  font: 700 clamp(9rem, 22vw, 20rem) / 1 'Barlow Condensed', sans-serif;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .09);
  pointer-events: none;
  user-select: none;
}
.ad-hero h1 { color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.4rem); max-width: 9ch; }
.ad-hero p { max-width: 34ch; margin: 18px 0 30px; font-size: 1.2rem; color: #dbe5f8; }
.ad-hero-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-hero .btn.ghost { margin-left: 0; }
.ad-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}

/* ---------- Traka sa brojkama ---------- */
.ad-band { background: var(--sky); padding: 56px 0; }
.ad-intro { display: block; max-width: 62ch; font-size: 1.25rem; color: var(--navy); margin-bottom: 36px; }
.ad-nums {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}
.ad-nums li {
  padding: 18px 20px;
  background: #fff;
  border-radius: 14px;
  border-bottom: 4px solid var(--accent);
  color: var(--muted);
  font-size: .92rem;
}
.ad-nums b {
  display: block;
  font: 700 2.3rem / 1.1 'Barlow Condensed', sans-serif;
  color: var(--navy);
  white-space: nowrap;
}

/* ---------- Mozaik fotografija ---------- */
.ad-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 230px);
  grid-template-areas:
    "a b b c"
    "d e f c"
    "g g h h";
  gap: 14px;
  margin-top: 26px;
}
.ad-mosaic figure { margin: 0; overflow: hidden; border-radius: 16px; min-width: 0; }
.ad-mosaic .m-a { grid-area: a; } .ad-mosaic .m-b { grid-area: b; } .ad-mosaic .m-c { grid-area: c; }
.ad-mosaic .m-d { grid-area: d; } .ad-mosaic .m-e { grid-area: e; } .ad-mosaic .m-f { grid-area: f; }
.ad-mosaic .m-g { grid-area: g; } .ad-mosaic .m-h { grid-area: h; }
.ad-mosaic button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ad-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ad-mosaic button:hover img { transform: scale(1.06); }

/* ---------- Podaci ---------- */
.ad-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin-top: 22px;
}
.ad-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #c9d8ee;
}
.ad-row dt { color: var(--muted); }
.ad-row dd { margin: 0; font-weight: 600; color: var(--navy); }
.ad-src { margin-top: 22px; max-width: 78ch; font-size: .9rem; color: var(--muted); }

/* ---------- Dokumenta ---------- */
.ad-docs { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
.ad-doc {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.ad-doc-icon {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 12px;
  background: #fce9df; color: #bd4b1c;
  font: 700 .95rem 'Barlow Condensed', sans-serif; letter-spacing: .06em;
}
.ad-doc-icon.word { background: #e4edff; color: var(--blue); }
.ad-doc-text { display: flex; flex-direction: column; min-width: 0; }
.ad-doc-text strong { font-weight: 600; color: var(--navy); }
.ad-doc-text span { color: var(--muted); font-size: .93rem; }
.ad-doc-lang {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 700 .85rem 'Barlow Condensed', sans-serif;
  letter-spacing: .1em;
  color: var(--accent-dark);
}
.ad-doc-btns { display: flex; gap: 8px; }
.btn.small { padding: 9px 18px; font-size: .93rem; margin: 0; }
.btn.outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn.outline:hover { background: var(--navy); color: #fff; }

/* ---------- Poziv na kontakt ---------- */
.ad-cta { background: var(--navy); color: #fff; padding: 56px 0; }
.ad-cta h2 { color: #fff; margin-bottom: 20px; }
.ad-cta-row { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.ad-cta a:not(.btn) { color: #cfdcf5; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(8, 16, 34, .94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 88vw; max-height: 86vh; border-radius: 10px; }
.lb-btn { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 2rem; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-close { top: 20px; right: 20px; font-size: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ad-hero { grid-template-columns: 1fr; min-height: 0; }
  .ad-hero-img { order: -1; height: 42vh; clip-path: none; }
  .ad-hero-text { padding: 40px 24px 56px; }
  .ad-data { grid-template-columns: 1fr; }
  .ad-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 200px; grid-template-areas: "a b" "c d" "e f" "g g" "h h"; }
  .ad-doc { grid-template-columns: auto 1fr; }
  .ad-doc-lang { justify-self: start; grid-column: 2; }
  .ad-doc-btns { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .ad-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .ad-mosaic img { transition: none; }
  .ad-mosaic button:hover img { transform: none; }
}
