/* ============================================
   JADNOVA — Global Styles
   Lightweight: system fonts, single stylesheet,
   no external dependencies for fast loading.
   ============================================ */

:root {
  --navy: #0b1524;
  --navy-soft: #16273e;
  --accent: #1f7ae0;
  --accent-hover: #3b93f2;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1c2635;
  --text-muted: #5b6879;
  --border: #e3e8f0;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(11, 21, 36, 0.08);
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img, video { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(11, 21, 36, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

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

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.main-nav a.active {
  color: #fff;
  background: rgba(31, 122, 224, 0.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
}

.nav-toggle svg { width: 24px; height: 24px; fill: #fff; }

/* ---------- Hero (Homepage) ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  background: var(--navy);
  overflow: hidden;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, #1f3a5f 0%, transparent 55%),
    radial-gradient(ellipse at 75% 80%, #14304d 0%, transparent 50%),
    var(--navy);
}

.video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  letter-spacing: 1px;
  z-index: 5;
  transition: opacity 0.6s ease;
}

.video-loading.hidden { opacity: 0; pointer-events: none; }

.spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 24px;
  padding-bottom: clamp(56px, 11vh, 150px);
  background: linear-gradient(
    to bottom,
    rgba(11, 21, 36, 0.25) 0%,
    rgba(11, 21, 36, 0.05) 45%,
    rgba(11, 21, 36, 0.55) 100%
  );
  pointer-events: none;
}

.hero-overlay > * { pointer-events: auto; }

.hero-overlay h1 {
  color: #fff;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: clamp(6px, 1.2vw, 16px);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(15px, 2.2vw, 20px);
  margin-top: 12px;
  max-width: 640px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 0;
  flex-wrap: wrap;
  justify-content: center;
}

/* Visually hidden (kept for SEO / screen readers) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(31, 122, 224, 0.4);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ---------- Video control bar ---------- */
.video-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  display: flex;
  gap: 10px;
}

.vc-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(11, 21, 36, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}

.vc-btn:hover { background: rgba(31, 122, 224, 0.75); }

.vc-btn svg { width: 20px; height: 20px; fill: #fff; }

/* ---------- Page shell (inner pages) ---------- */
.page {
  padding-top: var(--header-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.page-title h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: 1px;
}

.page-title .eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 8px;
}

.page-title p {
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 760px;
  font-size: 17px;
}

/* ---------- Video showcase section ---------- */
.video-frame {
  position: relative;
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(31, 122, 224, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.feature-card h3 { font-size: 17px; margin-bottom: 8px; }

.feature-card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-top: 36px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.info-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.info-card h3 { font-size: 18px; margin-bottom: 14px; }

.info-card p { color: rgba(255, 255, 255, 0.75); font-size: 15px; }

.info-card .email-link {
  display: inline-block;
  margin-top: 18px;
  color: #8ec2ff;
  font-weight: 600;
  word-break: break-all;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}

.form-group label .req { color: #d64545; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fbfcfe;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 122, 224, 0.15);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-error {
  color: #d64545;
  font-size: 13px;
  margin-top: 6px;
  min-height: 18px;
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

.btn-submit {
  width: 100%;
  font-size: 16px;
  padding: 15px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 26px 24px;
  font-size: 14px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-inner a { color: rgba(255, 255, 255, 0.85); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .hero-cta { margin-top: 0; }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 21, 36, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px 16px;
    display: none;
  }

  .main-nav.open { display: flex; }

  .main-nav a { padding: 13px 14px; }

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

  .form-row { grid-template-columns: 1fr; }

  .page-main { padding: 32px 18px 56px; }

  .contact-card, .info-card { padding: 24px; }
}

@media (max-width: 480px) {
  .hero { min-height: 420px; }
  .hero-cta .btn { padding: 12px 22px; font-size: 14px; }
  .video-controls { right: 10px; bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn-submit { transition: none; }
}

/* ---------- Print (tiny nicety) ---------- */
@media print {
  .site-header, .video-controls, .site-footer { display: none; }
  .page { padding-top: 0; }
}
