/* =============================================
   SAFE AIRSPACE — style.css
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:   #082D5A;
  --white:     #FFFFFF;
  --accent:    #4A90E2;
  --accent-dk: #3578c9;
  --bg-light:  #F5F7FA;
  --border:    #D9E3F0;
  --dark-bg:   #0E1624;
  --text:      #1A2B42;
  --muted:     #5A7A9E;
  --font:         'Inter', sans-serif;
  --font-display: 'Michroma', sans-serif;
  --radius:    6px;
  --tr:        300ms ease;
  --shadow:    0 4px 24px rgba(8,45,90,0.08);
  --shadow-lg: 0 10px 48px rgba(8,45,90,0.16);
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Typography ---- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h2 { font-size: clamp(1.2rem, 2vw, 1.8rem); letter-spacing: 0.05em; }
h3 { font-size: 0.82rem; letter-spacing: 0.05em; }

p  { line-height: 1.75; }

/* ---- Layout ---- */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }

/* =============================================
   NAVIGATION
   ============================================= */

.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 900;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition:
    background var(--tr),
    backdrop-filter var(--tr),
    border-color var(--tr),
    box-shadow var(--tr);
  border-bottom: 1px solid transparent;
  /* Blend against hero content so the logo's navy bg becomes invisible */
  mix-blend-mode: lighten;
}

.navbar.scrolled {
  /* Solid navy — matches Logo.png background exactly so no rectangle shows */
  mix-blend-mode: normal;
  background: #082D5A;
  border-bottom-color: rgba(74, 144, 226, 0.18);
  box-shadow: 0 2px 32px rgba(8, 45, 90, 0.45);
}

/* PNG colour-profile can differ from CSS #082D5A by a few values.
   lighten() always picks the brighter channel, so the slightly-darker
   logo background gets replaced by the navbar colour → rectangle gone. */
.navbar.scrolled .logo-img {
  mix-blend-mode: lighten;
}

.nav-inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  overflow: hidden;
  height: 74px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-display);
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: var(--radius);
  letter-spacing: 0.1em;
  transition: color var(--tr), background var(--tr);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(74,144,226,0.14);
}

.nav-link.nav-cta {
  background: var(--accent);
  color: var(--white);
  padding: 8px 18px;
}

.nav-link.nav-cta:hover {
  background: var(--accent-dk);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  background: var(--primary);
  display: flex;
  align-items: center;
  padding-top: 72px; /* navbar height */
  overflow: hidden;
}

/* Gradient overlays — left glow + right vignette */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 8% 60%, rgba(74,144,226,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 92% 20%, rgba(74,144,226,0.08) 0%, transparent 65%),
    linear-gradient(to bottom, rgba(8,45,90,0.6) 0%, transparent 30%);
  z-index: 1;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Logo.png: 2000×2000px, logo band at y 37.85%–67.6%.
   At width:168px the logo band starts at y=64px, height≈50px.
   align-items:flex-start + translateY(-64px) → shows exactly the logo band. */
.logo-img {
  display: block;
  width: 250px;
  height: auto;
  transform: translateY(-95px);
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.65)) drop-shadow(0 0 1px rgba(255,255,255,0.65));
}

.navbar.scrolled .logo-img {
  filter: none;
}

/* Footer logo — slightly smaller */
.footer-logo {
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  height: 42px;
}

.footer-logo .logo-img {
  width: 140px;
  transform: translateY(-53px);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.hero-left {
  max-width: 820px;
  flex-shrink: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  color: var(--white);
  margin-bottom: 28px;
  font-size: clamp(1.6rem, 3.4vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero-sub {
  color: rgba(255,255,255,0.62);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 44px;
  font-weight: 400;
  line-height: 1.8;
  text-align: justify;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero icon — absolute, anchored to bottom-right corner */
.hero-icon {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  /* mix-blend-mode must live on the PARENT so Chrome doesn't isolate it
     from the backdrop when filter is on the child */
  mix-blend-mode: screen;
}

.hero-logo-icon {
  display: block;
  width: clamp(360px, 46vw, 660px);
  height: auto;
  opacity: 0.92;
  /* contrast(4) pushes navy #082D5A → black; white lines stay white.
     Screen blend on parent then makes black transparent, lines glow. */
  filter: contrast(4) brightness(1.1) drop-shadow(0 0 2px rgba(255,255,255,0.7)) drop-shadow(0 0 2px rgba(255,255,255,0.7));
  -webkit-mask-image: radial-gradient(ellipse 82% 82% at 62% 62%, black 40%, transparent 85%);
  mask-image:         radial-gradient(ellipse 82% 82% at 62% 62%, black 40%, transparent 85%);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.75; }
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--tr);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74,144,226,0.38);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* =============================================
   SECTION HEADERS
   ============================================= */

.section-head {
  margin-bottom: 36px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-head h2 { color: var(--primary); }

/* =============================================
   ABOUT
   ============================================= */

.about { background: var(--white); }

.about-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: stretch;
}

.about-left {
  display: flex;
  flex-direction: column;
}

.about-text .lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 14px;
}

.about-image {
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 12%, black 97%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 15%, black 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, black 12%, black 97%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 15%, black 82%, transparent 100%);
  mask-composite: intersect;
}

.about-drone-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

/* =============================================
   SERVICES
   ============================================= */

.services { background: var(--bg-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 22px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 400ms ease, box-shadow 400ms ease, border-color 400ms ease;
}

.svc-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms ease;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74,144,226,0.28);
}

.svc-card:hover::after { transform: scaleX(1); }

.svc-icon { margin-bottom: 18px; }

.svc-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.svc-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* =============================================
   WHY US
   ============================================= */

.why { background: var(--dark-bg); }

.why .section-head h2 { color: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  padding: 32px 24px 36px;
  border: 1px solid rgba(74,144,226,0.14);
  border-radius: 8px;
  background: rgba(74,144,226,0.03);
  transition: transform 400ms ease, border-color 400ms ease, background 400ms ease;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74,144,226,0.38);
  background: rgba(74,144,226,0.07);
}

.why-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  opacity: 0.65;
  margin-bottom: 20px;
}

.why-icon { margin-bottom: 20px; line-height: 0; }

.why-card h3 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.why-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* =============================================
   CONTACT
   ============================================= */

.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Form */
.contact-form .field { margin-bottom: 18px; }

.contact-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.optional {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--tr), box-shadow var(--tr);
  outline: none;
  appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9BB2CC;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,144,226,0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 20px;
}

.form-status.success {
  color: #1a7a4a;
  background: rgba(26,122,74,0.08);
  border: 1px solid rgba(26,122,74,0.22);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.form-status.error {
  color: #c0392b;
  background: rgba(192,57,43,0.07);
  border: 1px solid rgba(192,57,43,0.2);
  padding: 10px 14px;
  border-radius: var(--radius);
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 4px;
}

.ci-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--primary);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.ci-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ci-row svg { flex-shrink: 0; margin-top: 1px; }

.ci-row p,
.ci-row a {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.ci-row a {
  color: var(--accent);
  transition: color var(--tr);
}

.ci-row a:hover { color: var(--primary); }

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--primary);
  padding: 48px 0 36px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(74,144,226,0.18);
  flex-wrap: wrap;
}


.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-display);
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  transition: color var(--tr);
}

.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
}

/* =============================================
   ANIMATIONS
   ============================================= */

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for service cards */
.services-grid .svc-card:nth-child(2) { transition-delay: 70ms; }
.services-grid .svc-card:nth-child(3) { transition-delay: 140ms; }
.services-grid .svc-card:nth-child(4) { transition-delay: 210ms; }
.services-grid .svc-card:nth-child(5) { transition-delay: 70ms; }
.services-grid .svc-card:nth-child(6) { transition-delay: 140ms; }
.services-grid .svc-card:nth-child(7) { transition-delay: 210ms; }
.services-grid .svc-card:nth-child(8) { transition-delay: 280ms; }

/* Stagger for why cards */
.why-grid .why-card:nth-child(2) { transition-delay: 80ms; }
.why-grid .why-card:nth-child(3) { transition-delay: 160ms; }
.why-grid .why-card:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .scroll-indicator span { animation: none; }
  .btn:hover  { transform: none; }
  .svc-card:hover { transform: none; }
  .why-card:hover { transform: none; }
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 44px 0; }

  /* Nav — hamburger */
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    inset-block-start: 72px;
    inset-inline: 0;
    background: rgba(8, 45, 90, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 2px;
    transform: translateY(calc(-100% - 72px));
    transition: transform 380ms cubic-bezier(0.4,0,0.2,1);
    border-bottom: 1px solid rgba(74,144,226,0.18);
  }

  .nav-menu.open { transform: translateY(0); }

  .nav-link {
    padding: 13px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius);
  }

  /* About */
  .about-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    max-width: 480px;
    min-height: 260px;
  }

  .about-drone-img {
    height: auto;
    min-height: 260px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Services & Why */
  .services-grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; gap: 14px; }

  /* Hero */
  .hero {
    align-items: center;
    padding-bottom: 0;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .hero-left { max-width: 100%; }

  .hero-icon { display: none; } /* skryj na mobilu */

  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; min-height: 48px; }
  .hero-title br { display: none; }

  /* Justify text looks bad on narrow screens */
  .hero-sub   { text-align: left; }
  p           { text-align: left !important; }

  /* Small labels readable on mobile */
  .section-tag { font-size: 0.72rem; }

  /* Navbar: disable blend mode on mobile — unreliable on Safari/Chrome mobile */
  .navbar {
    mix-blend-mode: normal;
    background: rgba(8, 45, 90, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .navbar .logo-img {
    filter: none;
    mix-blend-mode: lighten; /* blends logo's navy box into navbar background */
  }
}

@media (max-width: 480px) {
  .about-image { max-width: 100%; }
  .footer-top  { flex-direction: column; align-items: flex-start; }
  .footer-nav  { gap: 18px; }
}
