/*
Theme Name: Inovo
Theme URI: https://inovo.ba
Author: Inovo
Author URI: https://inovo.ba
Description: Modern single-page theme for Inovo — AI-focused software development studio. Dark, premium, bilingual (EN/BA).
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
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: inovo
*/

/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --bg: #0a0a12;
  --bg-2: #0f0f1a;
  --surface: #14141f;
  --surface-2: #1b1b2a;
  --border: #262636;
  --text: #e6e7ee;
  --muted: #9aa0b4;
  --accent: #22d3ee;
  --accent-2: #a855f7;
  --accent-3: #6366f1;
  --grad: linear-gradient(135deg, #a855f7 0%, #6366f1 45%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(168,85,247,.15), rgba(34,211,238,.12));
  --shadow: 0 20px 50px -20px rgba(99,102,241,.45);
  --radius: 18px;
  --radius-sm: 12px;
  --font-fallback: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", var(--font-fallback);
  --font-body: "Inter", var(--font-fallback);
  --maxw: 1180px;
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(168,85,247,.16), transparent 60%),
    radial-gradient(50% 50% at 90% 10%, rgba(34,211,238,.12), transparent 60%),
    radial-gradient(60% 60% at 60% 100%, rgba(99,102,241,.12), transparent 60%);
  pointer-events: none;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section.bg-alt { background: var(--bg-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 .9rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.section-lead { color: var(--muted); max-width: 640px; font-size: 1.06rem; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .3s ease, background .3s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #0a0a12; box-shadow: var(--shadow); }
.btn--primary:hover { box-shadow: 0 24px 60px -18px rgba(34,211,238,.55); }
.btn--ghost { background: rgba(255,255,255,.02); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: #fff; }

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(168,85,247,.5); background: var(--surface-2); }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--border); color: var(--accent); margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(10,10,18,.78); backdrop-filter: blur(14px); border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark { display: block; width: 34px; height: 34px; }
.site-footer .brand-mark { width: 30px; height: 30px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 14px rgba(34,211,238,.8); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: .96rem; font-weight: 500; transition: color .2s ease; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.02); }
.lang-toggle button { background: transparent; border: none; color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: .82rem; padding: .35rem .7rem; cursor: pointer; transition: color .2s ease, background .2s ease; }
.lang-toggle button.active { color: #0a0a12; background: var(--grad); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 34px; background: var(--bg-2); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-inner .brand { font-size: 1.2rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .94rem; transition: color .2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--muted); font-size: .86rem; margin-top: 22px; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Honeypot
   ========================================================= */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* =========================================================
   Privacy page
   ========================================================= */
.privacy-page { padding-top: clamp(120px, 14vw, 170px); }
.privacy-hero { max-width: 820px; margin-bottom: 34px; }
.privacy-hero h1 { font-size: clamp(2.25rem, 5vw, 4.1rem); }
.privacy-updated { color: var(--muted); font-size: .95rem; margin-top: 1.2rem; }
.privacy-content { max-width: 880px; padding: clamp(26px, 5vw, 46px); }
.privacy-content h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin-top: 2rem; }
.privacy-content h2:first-child { margin-top: 0; }
.privacy-content p { color: var(--muted); }
.privacy-content strong,
.privacy-content a { color: var(--text); }
.privacy-content a:hover { color: var(--accent); }
.privacy-email { font-family: var(--font-head); font-weight: 600; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: rgba(10,10,18,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding: 12px 24px 24px; transform: translateY(-120%); transition: transform .35s ease; height: auto; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
