/*
Theme Name: StrobelTEK
Theme URI: https://www.strobeltek.com
Author: StrobelTEK
Author URI: https://www.strobeltek.com
Description: StrobelTEK official product site theme — Sprinter family, news, and contact. Dark defence aesthetic.
Version: 1.4.3
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: strobeltek
Tags: one-column, custom-colors, dark, military, product
*/

:root {
  --bg-deep: #000000;
  --bg-base: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --border: #1f1f1f;
  --border-strong: #2e2e2e;
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #6b6b6b;
  --accent: #2b7de9;
  --accent-dim: #1a5fc4;
  --accent-glow: rgba(43, 125, 233, 0.18);
  --accent-soft: rgba(43, 125, 233, 0.08);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Orbitron", "Inter", sans-serif;
  --radius: 4px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.scrolled { border-bottom-color: var(--border); background: rgba(0, 0, 0, 0.97); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo {
  display: flex; align-items: center; gap: 10px; line-height: 0;
}
.logo-img {
  height: 44px; width: auto; display: block;
}
.footer-logo-img {
  height: 36px; width: auto; display: block;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-secondary); transition: color 0.2s;
}
.nav a:hover { color: var(--text-primary); }
.nav-cta {
  padding: 8px 18px; background: var(--accent); color: #fff !important;
  border-radius: var(--radius); font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dim); color: #fff !important; }
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--text-primary); }

.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 75% 35%, rgba(43, 125, 233, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 15% 80%, rgba(43, 125, 233, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #000 0%, #0a0a0a 100%);
  pointer-events: none;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(43, 125, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 125, 233, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, black, transparent);
  opacity: 0.45;
}
.hero-content {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; align-items: center;
}
.eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700; letter-spacing: 0.04em; line-height: 1.1; margin-bottom: 8px;
}
.hero-tagline { font-size: 1.2rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 20px; }
.hero-desc { color: var(--text-secondary); font-size: 1.02rem; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dim); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; }
.hero-stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat-value {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  color: var(--accent); letter-spacing: 0.02em;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.product-img { max-height: 480px; width: auto; filter: drop-shadow(0 24px 48px rgba(0,0,0,0.7)); }

.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600; letter-spacing: 0.04em; margin-bottom: 16px;
}
.section-desc { color: var(--text-secondary); font-size: 1.02rem; }

.products { background: var(--bg-base); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
  padding: 28px 22px; display: flex; flex-direction: column; min-height: 320px;
  transition: border-color 0.25s, box-shadow 0.25s; position: relative; overflow: hidden;
}
.product-card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-glow); }
.product-card.mystery {
  border-style: dashed; border-color: var(--border-strong);
  background: linear-gradient(160deg, #0d0d0d 0%, #111 100%);
}
.product-card.mystery:hover { border-color: var(--accent); }
.product-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.product-card.mystery .product-badge { color: var(--text-muted); }
.product-card h3 {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  letter-spacing: 0.03em; margin-bottom: 10px;
}
.product-card .role { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 16px; font-weight: 500; }
.product-card p { color: var(--text-muted); font-size: 0.88rem; flex-grow: 1; margin-bottom: 20px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.meta-tag {
  font-size: 0.7rem; letter-spacing: 0.04em; padding: 4px 10px;
  border: 1px solid var(--border-strong); border-radius: 3px; color: var(--text-secondary);
}
.product-card.mystery .mystery-icon {
  font-size: 2.5rem; color: var(--text-muted); opacity: 0.5;
  margin: 12px 0 20px; letter-spacing: 0.3em; font-family: var(--font-display);
}

.capabilities { background: var(--bg-deep); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
  padding: 32px 28px; transition: border-color 0.25s, box-shadow 0.25s;
}
.card:hover { border-color: var(--border-strong); box-shadow: 0 0 0 1px var(--accent-glow); }
.card-icon { width: 40px; height: 40px; margin-bottom: 20px; color: var(--accent); }
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--text-secondary); font-size: 0.92rem; }

.specs-strip {
  background: var(--bg-elevated); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 40px 0;
}
.specs-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; text-align: center; }
.spec-item { display: flex; flex-direction: column; gap: 6px; }
.spec-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.spec-value { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }

.autonomy { background: var(--bg-base); }
.autonomy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.autonomy-text h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600; margin-bottom: 16px;
}
.autonomy-text > p { color: var(--text-secondary); margin-bottom: 28px; }
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-list li {
  padding-left: 18px; border-left: 2px solid var(--accent);
  color: var(--text-secondary); font-size: 0.92rem;
}
.feature-list strong { display: block; color: var(--text-primary); margin-bottom: 4px; font-weight: 600; }
.autonomy-visual { display: flex; flex-direction: column; gap: 20px; }
.visual-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.visual-card img { width: 100%; height: auto; max-height: 280px; object-fit: contain; object-position: center; }
.visual-card .caption {
  display: block; padding: 12px 16px; font-size: 0.75rem;
  color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase;
}

.scalable { background: var(--bg-deep); }
.two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
.col-text h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.col-text > p { color: var(--text-secondary); margin-bottom: 24px; }
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; color: var(--text-secondary); font-size: 0.92rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px;
  border: 2px solid var(--accent); border-radius: 2px; background: var(--accent-soft);
}
.highlight-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; padding: 32px 28px;
}
.highlight-box h4 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; color: var(--accent); }
.highlight-box p { color: var(--text-secondary); font-size: 0.92rem; }

.company { background: var(--bg-base); }
.company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.company-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 28px; }
.company-block h3 {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.company-block ul { display: flex; flex-direction: column; gap: 10px; }
.company-block li { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.45; }
.company-block strong { color: var(--text-primary); }
.differentiators h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; text-align: center; }
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.diff-item {
  text-align: center; padding: 24px 16px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: 6px;
}
.diff-title { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.diff-desc { font-size: 0.82rem; color: var(--text-muted); }

.contact { background: var(--bg-deep); border-top: 1px solid var(--border); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-text h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600; margin-bottom: 16px;
}
.contact-text > p { color: var(--text-secondary); margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-weight: 500; font-size: 1.02rem;
}
.contact-link svg { width: 20px; height: 20px; }
.contact-link:hover { text-decoration: underline; }
.address { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }
.ids { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.02em; }
.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; padding: 32px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block; font-size: 0.72rem; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-primary); font-family: inherit; font-size: 0.92rem;
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); }
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-muted); }
.form-note { margin-top: 16px; font-size: 0.78rem; color: var(--text-muted); text-align: center; }

.footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
}
.footer-copy { font-size: 0.78rem; color: var(--text-muted); text-align: center; line-height: 1.5; }
.footer-link { font-size: 0.82rem; color: var(--accent); }
.footer-link:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .product-img { max-height: 340px; }
  .card-grid, .company-grid, .diff-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
  .autonomy-grid, .two-col, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg-deep); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 24px; gap: 16px;
  }
  .nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 24px; }
  .stat-value { font-size: 1.3rem; }
  .section { padding: 72px 0; }
}
@media (max-width: 480px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Video section ---------- */
.video-section {
  background: var(--bg-base);
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.product-gallery figure {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.product-gallery img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  background: #0a0a0a;
}

/* ---------- Simplified contact ---------- */
.contact-simple {
  max-width: 900px;
  margin: 0 auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s;
}

a.contact-card:hover {
  border-color: var(--accent);
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-value {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.ids-center {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .product-gallery {
    grid-template-columns: 1fr;
  }
  .product-gallery img {
    max-height: 320px;
  }
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Product detail pages ---------- */
.product-hero {
  padding: calc(var(--header-h) + 48px) 0 60px;
  background: var(--bg-deep);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.product-hero-img img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

.product-card-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.product-card-link:hover h3 {
  color: var(--accent);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.video-grid .video-wrap {
  max-width: none;
  margin: 0;
}

@media (max-width: 960px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .product-hero .hero-stats {
    justify-content: center;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- News listing ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.news-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s;
}

.news-card:hover {
  border-color: var(--accent);
}

.news-thumb {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-elevated);
}

.news-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.news-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-date {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.news-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.news-title a:hover {
  color: var(--accent);
}

.news-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.news-excerpt p {
  margin: 0;
}

.news-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

.news-more:hover {
  text-decoration: underline;
}

.news-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  max-width: 560px;
  margin: 0 auto;
}

.news-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.news-pagination a,
.news-pagination span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.news-pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.news-pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Single news article ---------- */
.news-single-inner {
  max-width: 760px;
}

.news-article-header {
  margin-bottom: 32px;
}

.news-article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 8px 0 16px;
}

.news-featured {
  margin-bottom: 32px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.news-featured img {
  width: 100%;
  height: auto;
  display: block;
}

.news-content {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.news-content h2,
.news-content h3,
.news-content h4 {
  color: var(--text-primary);
  margin: 1.5em 0 0.6em;
}

.news-content p {
  margin-bottom: 1.1em;
}

.news-content a {
  color: var(--accent);
  text-decoration: underline;
}

.news-content ul,
.news-content ol {
  margin: 0 0 1.1em 1.4em;
  list-style: disc;
}

.news-content ol {
  list-style: decimal;
}

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.2em 0;
}

.news-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.2em;
  margin: 1.4em 0;
  color: var(--text-primary);
  font-style: italic;
}

.news-article-footer {
  display: flex;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .news-card {
    grid-template-columns: 1fr;
  }
  .news-thumb img {
    height: 180px;
  }
}
