/*
Theme Name: OpenJump.tech
Theme URI: https://openjump.tech
Author: OpenJump
Author URI: https://openjump.tech
Description: AI-Powered Operations Intelligence theme for OpenJump.tech. AIOps + PAM. i18n & Polylang ready (EN/TR).
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: openjump-tech
Domain Path: /languages
*/

/* ───────────────────── Reset & Base ───────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #071510;
  color: #e2e8f0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ───────────────────── Layout ───────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.text-center { text-align: center; }

/* ───────────────────── Header / Navbar ───────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,21,16,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,214,143,.15);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; flex-wrap: nowrap; }
.nav-brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.125rem; color: #fff; letter-spacing: -.01em; flex-shrink: 0; min-width: 0; }
.nav-brand img,
.nav-brand .custom-logo,
.custom-logo-link img { height: 36px !important; width: auto !important; max-width: none !important; object-fit: contain; display: block; }
.nav-brand .brand-text { white-space: nowrap; }
.nav-brand .accent { color: #00d68f; }

.nav-menu { display: none; gap: .125rem; align-items: center; list-style: none; padding: 0; margin: 0; flex-wrap: nowrap; }
.nav-menu li { list-style: none; }
.nav-menu a { padding: .5rem .75rem; border-radius: .375rem; font-size: .875rem; font-weight: 500; color: #94a3b8; transition: color .2s; white-space: nowrap; }
.nav-menu a:hover { color: #fff; }
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
  background: #00d68f; color: #071510;
}

.nav-cta { display: none; align-items: center; gap: .5rem; flex-shrink: 0; }
.btn-cta {
  display: inline-flex; align-items: center;
  background: #00d68f; color: #071510;
  border-radius: 9999px; padding: .5rem 1.25rem;
  font-size: .875rem; font-weight: 600; white-space: nowrap;
  transition: opacity .2s;
}
.btn-cta:hover { opacity: .9; }

.nav-toggle { display: inline-flex; padding: .5rem; color: #94a3b8; border-radius: .375rem; flex-shrink: 0; }

@media (min-width: 1024px) {
  .nav-menu { display: flex; }
  .nav-cta { display: flex; }
  .nav-toggle { display: none; }
}
@media (max-width: 1023px) {
  .nav-brand .brand-text { display: none; }
}

.mobile-menu { display: none; border-top: 1px solid rgba(0,214,143,.15); padding: .75rem 1rem; background: #071510; }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu a { display: block; padding: .5rem .75rem; border-radius: .375rem; font-size: .875rem; color: #94a3b8; }
.mobile-menu .current-menu-item a,
.mobile-menu .current_page_item a { background: #00d68f; color: #071510; }

/* ───────────────────── Footer ───────────────────── */
.site-footer { background: #050f0a; border-top: 1px solid rgba(0,214,143,.1); padding: 2.5rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid h4 { color: #fff; font-size: .875rem; font-weight: 600; margin: 0 0 .75rem; }
.footer-grid p, .footer-grid a { font-size: .875rem; color: #6b7280; line-height: 1.6; }
.footer-grid a { display: block; transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(0,214,143,.1);
  padding-top: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: .75rem; color: #4b5563;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }

/* ───────────────────── Hero ───────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #071510 0%, #0d2a1a 50%, #071510 100%);
  min-height: 90vh; display: flex; align-items: center;
}
.hero::before, .hero::after {
  content: ""; position: absolute; width: 24rem; height: 24rem; border-radius: 9999px; pointer-events: none;
}
.hero::before { top: 0; left: 0; background: radial-gradient(circle, rgba(0,214,143,.08) 0%, transparent 70%); }
.hero::after  { bottom: 0; right: 0; background: radial-gradient(circle, rgba(0,214,143,.05) 0%, transparent 70%); }
.hero-inner { position: relative; padding: 5rem 0; width: 100%; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem 1rem; border-radius: 9999px;
  font-size: .875rem; font-weight: 500;
  background: rgba(0,214,143,.08); border: 1px solid rgba(0,214,143,.25); color: #00d68f;
  margin-bottom: 2rem;
}
.badge .dot { width: .5rem; height: .5rem; border-radius: 9999px; background: #00d68f; }

.hero h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; color: #fff; line-height: 1.1; margin: 0 0 1rem; }
.hero h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; margin: 0 0 1.5rem; color: #00d68f; }
.hero p.lead { color: #94a3b8; max-width: 32rem; margin-bottom: 2.5rem; line-height: 1.7; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem; }
.btn-primary {
  background: #00d68f; color: #071510;
  border-radius: 9999px; padding: .75rem 2rem;
  font-size: 1rem; font-weight: 600; transition: opacity .2s;
}
.btn-primary:hover { opacity: .9; }
.btn-outline {
  border: 1px solid rgba(255,255,255,.25); color: #e2e8f0;
  border-radius: 9999px; padding: .75rem 2rem;
  font-size: 1rem; font-weight: 600; transition: background .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.05); }

.hero-stats { display: flex; gap: 2.5rem; }
.hero-stats .val { font-size: 1.5rem; font-weight: 800; color: #00d68f; }
.hero-stats .label { font-size: .75rem; color: #6b7280; margin-top: .125rem; }

.hero-image-wrap { display: flex; justify-content: center; }
@media (min-width: 1024px) { .hero-image-wrap { justify-content: flex-end; } }
.hero-image { width: 100%; max-width: 28rem; border-radius: 1rem; overflow: hidden; border: 1px solid rgba(0,214,143,.2); background: #0d2218; }
.hero-img { width: 100%; max-width: 32rem; height: auto; display: block; border-radius: 1rem; filter: drop-shadow(0 20px 40px rgba(0,214,143,.15)); }

/* ───────────────────── Section / Cards ───────────────────── */
.section { padding: 5rem 0; background: #071510; }
.section.alt { background: #050f0a; }
.section.contrast { background: #0a1d14; }

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head h2 { color: #fff; font-size: 1.875rem; font-weight: 700; margin: 0 0 1rem; }
.section-head p { color: #6b7280; max-width: 42rem; margin: 0 auto; }

.cards { display: grid; gap: 1.25rem; }
.cards.col-2 { grid-template-columns: 1fr; }
.cards.col-3 { grid-template-columns: 1fr; }
.cards.col-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards.col-4 { grid-template-columns: repeat(2, 1fr); } .cards.col-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards.col-4 { grid-template-columns: repeat(4, 1fr); } .cards.col-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #0d2218; border: 1px solid rgba(0,214,143,.15);
  border-radius: 1rem; padding: 1.5rem;
  display: flex; flex-direction: column;
}
.card .icon-box {
  width: 3rem; height: 3rem; border-radius: .75rem;
  background: rgba(0,214,143,.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: #00d68f;
}
.card h3 { color: #fff; font-weight: 600; font-size: 1.125rem; margin: 0 0 .5rem; }
.card p { color: #6b7280; font-size: .875rem; line-height: 1.6; margin: 0; flex: 1; }
.card .feats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.feat-tag {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .75rem; padding: .25rem .625rem; border-radius: 9999px;
  background: rgba(0,214,143,.08); color: #00d68f; border: 1px solid rgba(0,214,143,.15);
}
.card .more {
  margin-top: 1rem; font-size: .875rem; font-weight: 600; color: #00d68f;
}

/* ───────────────────── Page heads / CTA ───────────────────── */
.page-head { padding: 6rem 0 3rem; text-align: center; background: #071510; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 800; color: #fff; margin: 0 0 1rem; }
.page-head p { color: #94a3b8; max-width: 42rem; margin: 0 auto; }

.cta-band { padding: 5rem 0; text-align: center; background: linear-gradient(135deg, #071510, #0d2a1a); border-top: 1px solid rgba(0,214,143,.15); border-bottom: 1px solid rgba(0,214,143,.15); }
.cta-band h2 { color: #fff; font-size: 1.875rem; font-weight: 700; margin: 0 0 1rem; }
.cta-band p { color: #94a3b8; margin: 0 0 2rem; }

/* ───────────────────── About ───────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 56rem; margin: 0 auto; text-align: center; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: #0d2218; border: 1px solid rgba(0,214,143,.15); border-radius: 1rem; padding: 1.5rem; }
.stat-card .v { color: #00d68f; font-size: 1.875rem; font-weight: 800; margin-bottom: .25rem; }
.stat-card .l { color: #94a3b8; font-size: .875rem; }

.values-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card { background: #0d2218; border: 1px solid rgba(0,214,143,.15); border-radius: 1rem; padding: 2rem; }
.value-card .icon { font-size: 2rem; margin-bottom: 1rem; }
.value-card h3 { color: #fff; font-weight: 700; font-size: 1.125rem; margin: 0 0 .5rem; }
.value-card p { color: #94a3b8; font-size: .875rem; line-height: 1.7; margin: 0; }

.prose { color: #94a3b8; line-height: 1.8; max-width: 56rem; margin: 0 auto; }
.prose h2 { color: #fff; font-size: 1.5rem; font-weight: 800; margin: 0 0 1.5rem; }
.prose p { margin: 0 0 1rem; }

/* ───────────────────── Contact ───────────────────── */
.contact-grid { display: grid; gap: 4rem; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info { color: #94a3b8; }
.contact-info h1 { color: #fff; font-size: 2rem; font-weight: 800; margin: 0 0 1.5rem; }
.contact-info > p { line-height: 1.7; margin: 0 0 2.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item .ico {
  width: 2.5rem; height: 2.5rem; border-radius: .75rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: rgba(0,214,143,.1); border: 1px solid rgba(0,214,143,.2);
}
.contact-item .label { font-size: .75rem; color: #6b7280; }
.contact-item .val { color: #fff; font-weight: 500; white-space: pre-line; }

.contact-form-wrap {
  background: #0d2218; border: 1px solid rgba(0,214,143,.2);
  border-radius: 1rem; padding: 2rem;
}
.contact-form .row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .contact-form .row.cols-2 { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: block; font-size: .875rem; font-weight: 500; color: #94a3b8; margin-bottom: .375rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .75rem 1rem; border-radius: .75rem;
  background: #071510; border: 1px solid rgba(0,214,143,.2); color: #e2e8f0;
  font-size: .875rem; outline: none; transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: #00d68f; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .field { margin-bottom: 1.25rem; }
.contact-form button {
  width: 100%; padding: .75rem; border-radius: 9999px;
  background: #00d68f; color: #071510; font-weight: 600; font-size: .875rem;
  transition: opacity .2s;
}
.contact-form button:hover { opacity: .9; }

.alert {
  padding: 1rem 1.25rem; border-radius: .75rem; font-size: .875rem; margin-bottom: 1.5rem;
}
.alert-success { background: rgba(0,214,143,.1); border: 1px solid #00d68f; color: #00d68f; }
.alert-error { background: rgba(239,68,68,.1); border: 1px solid #ef4444; color: #fca5a5; }

/* ───────────────────── Utility ───────────────────── */
.text-accent { color: #00d68f; }
.mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: .5rem; } .mb-4 { margin-bottom: 1rem; } .mb-8 { margin-bottom: 2rem; }

/* ═══════════ Additions v2 — i18n components ═══════════ */

/* Language Switcher */
.lang-switcher { display:inline-flex; gap:.25rem; align-items:center; padding:.25rem; border:1px solid rgba(0,214,143,.2); border-radius:9999px; background:rgba(0,214,143,.05); }
.lang-switcher a { padding:.25rem .6rem; font-size:.7rem; font-weight:700; color:#94a3b8; text-decoration:none; border-radius:9999px; letter-spacing:.05em; transition:all .2s; }
.lang-switcher a:hover { color:#fff; }
.lang-switcher a.active { background:#00d68f; color:#071510; }

/* Small outline button (header) */
.btn-outline-sm { display:inline-block; padding:.5rem .9rem; font-size:.8rem; font-weight:600; color:#fff; border:1px solid rgba(0,214,143,.3); border-radius:9999px; text-decoration:none; transition:all .2s; }
.btn-outline-sm:hover { background:rgba(0,214,143,.1); border-color:#00d68f; }

/* Check-list (used in cards) */
.check-list { list-style:none; padding:0; margin:.75rem 0 0; display:flex; flex-direction:column; gap:.4rem; }
.check-list li { position:relative; padding-left:1.5rem; color:#94a3b8; font-size:.9rem; line-height:1.5; }
.check-list li::before { content:"✓"; position:absolute; left:0; top:0; color:#00d68f; font-weight:700; }

/* Workflow Steps (AI Operations page) */
.workflow-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1.5rem; max-width:80rem; margin:0 auto; }
.workflow-step { position:relative; padding:2rem 1.5rem 1.5rem; border:1px solid rgba(0,214,143,.15); border-radius:1rem; background:#0d2218; transition:transform .2s, border-color .2s; }
.workflow-step:hover { transform:translateY(-4px); border-color:rgba(0,214,143,.4); }
.workflow-step .step-num { position:absolute; top:-1rem; left:1.5rem; width:2.5rem; height:2.5rem; border-radius:.75rem; background:#00d68f; color:#071510; font-weight:800; display:flex; align-items:center; justify-content:center; font-size:1.125rem; box-shadow:0 4px 16px rgba(0,214,143,.3); }
.workflow-step h3 { color:#fff; font-size:1.25rem; font-weight:700; margin:.5rem 0 .75rem; }
.workflow-step p { color:#94a3b8; margin:0 0 .5rem; }

/* Comparison Table */
.comparison-table-wrap { overflow-x:auto; border-radius:1rem; border:1px solid rgba(0,214,143,.15); background:#0d2218; }
.comparison-table { width:100%; border-collapse:collapse; }
.comparison-table thead th { padding:1rem 1.25rem; text-align:left; font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; font-weight:700; background:rgba(0,214,143,.08); color:#fff; border-bottom:1px solid rgba(0,214,143,.2); }
.comparison-table thead th:first-child { color:#94a3b8; }
.comparison-table thead th:last-child { color:#00d68f; }
.comparison-table tbody td { padding:.875rem 1.25rem; border-bottom:1px solid rgba(255,255,255,.05); color:#94a3b8; font-size:.95rem; }
.comparison-table tbody td:last-child { color:#cbd5e1; font-weight:500; }
.comparison-table tbody tr:last-child td { border-bottom:none; }
.comparison-table tbody tr:hover td { background:rgba(0,214,143,.03); }

/* FAQ accordion */
.faq-list { display:flex; flex-direction:column; gap:.75rem; }
.faq-item { border:1px solid rgba(0,214,143,.15); border-radius:.75rem; background:#0d2218; overflow:hidden; transition:border-color .2s; }
.faq-item[open] { border-color:rgba(0,214,143,.4); }
.faq-item summary { display:flex; align-items:center; justify-content:space-between; padding:1.25rem 1.5rem; cursor:pointer; list-style:none; color:#fff; font-weight:600; font-size:1rem; user-select:none; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary:hover { background:rgba(0,214,143,.04); }
.faq-item .caret { font-size:1.5rem; color:#00d68f; font-weight:300; transition:transform .25s; line-height:1; }
.faq-item[open] .caret { transform:rotate(45deg); }
.faq-item .faq-body { padding:0 1.5rem 1.25rem; color:#94a3b8; line-height:1.7; }
.faq-item .faq-body p { margin:0; }

/* Mobile menu lang switcher spacing */
.mobile-menu .lang-switcher { margin-top:1rem; justify-content:center; display:flex; }

/* Hide nav-cta lang switcher on mobile (shown in mobile menu) */
@media (max-width: 1024px) {
  .nav-cta .lang-switcher { display:none; }
}

/* Intro Video */
.video-section { background: #050f0a; }
.video-frame {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0,214,143,.25);
  background: #000;
  box-shadow: 0 25px 60px rgba(0,214,143,.12), 0 0 0 1px rgba(0,214,143,.05) inset;
}
.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
