/*
Theme Name: Avriella
Theme URI: https://avriella.hr
Author: Avriella
Description: Bold, modern WordPress tema — web razvoj, AI automatizacija, lead generation.
Version: 1.0.0
Text Domain: avriella
*/

/* ====================================================
   RESET & BASE
==================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0a;
  --bg2:      #111111;
  --bg3:      #1a1a1a;
  --fg:       #ffffff;
  --fg-dim:   rgba(255,255,255,0.55);
  --accent:   #E8FF00;
  --a-dim:    rgba(232,255,0,0.12);
  --a-border: rgba(232,255,0,0.35);
  --border:   rgba(255,255,255,0.08);
  --font-d:   'Bebas Neue', Impact, sans-serif;
  --font-b:   'DM Sans', system-ui, sans-serif;
  --max-w:    1280px;
  --pad:      clamp(1.25rem, 4vw, 2.5rem);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; cursor: none; }
@media (pointer: coarse) { html { cursor: auto; } }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-b);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: none; }
@media (pointer: coarse) { button { cursor: pointer; } }
::selection { background: var(--accent); color: var(--bg); }

/* ====================================================
   CUSTOM CURSOR
==================================================== */
#avr-cursor {
  position: fixed;
  width: 38px; height: 38px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s, opacity .2s;
  mix-blend-mode: difference;
  top: 0; left: 0;
}
#avr-cursor.hover { width: 64px; height: 64px; background: rgba(232,255,0,.12); }
#avr-cursor-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  top: 0; left: 0;
}
@media (pointer: coarse) { #avr-cursor, #avr-cursor-dot { display: none !important; } }

/* ====================================================
   SCROLL PROGRESS
==================================================== */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent);
  z-index: 9999;
  transition: width .1s linear;
}

/* ====================================================
   LAYOUT
==================================================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.section    { padding: 80px 0; }
.section--alt { background: var(--bg2); }

/* ====================================================
   TYPOGRAPHY
==================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-d);
  font-weight: 400;
  line-height: .93;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.lbl {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.sec-h {
  font-family: var(--font-d);
  font-size: clamp(44px, 6vw, 76px);
  line-height: .93; text-transform: uppercase;
  margin-bottom: 32px;
}
.sec-h span { color: var(--accent); }

/* ====================================================
   BUTTONS
==================================================== */
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #0a0a0a !important;
  font-family: var(--font-b); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 26px; border: none; line-height: 1;
  transition: opacity .2s; cursor: none;
}
.btn-accent:hover { opacity: .88; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #ffffff !important;
  font-family: var(--font-b); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 26px; border: 1.5px solid rgba(255,255,255,.35); line-height: 1;
  transition: border-color .2s; cursor: none;
}
.btn-outline:hover { border-color: rgba(255,255,255,.7); }

.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0a0a0a; color: var(--accent) !important;
  font-family: var(--font-b); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 30px; border: none; line-height: 1;
  transition: opacity .2s; cursor: none;
}
.btn-dark:hover { opacity: .85; }

/* ====================================================
   NAVIGATION
==================================================== */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  transition: background .4s, padding .4s, border-color .4s;
}
#site-header.scrolled {
  background: rgba(10,10,10,.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-d); font-size: 26px; letter-spacing: .06em; color: #fff !important; }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.55); transition: color .25s;
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--accent); color: #0a0a0a !important;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 20px; border: none; line-height: 1; cursor: none;
  transition: opacity .2s; margin-left: 8px;
}
.nav-cta:hover { opacity: .88; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 4px;
  background: none; border: none; cursor: pointer;
}
.nav-hamburger span { display: block; width: 26px; height: 2px; background: #fff; transition: .3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    background: var(--bg);
    justify-content: center; align-items: center;
    gap: 2.5rem; z-index: 999;
  }
  .nav-links.mobile-open a { font-size: 1.4rem; }
  #nav-cta.mobile-open { display: flex; }
}

/* ====================================================
   HERO
==================================================== */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 80px;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero-label {
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.hero-label::before {
  content: ''; display: inline-block; width: 36px; height: 1px; background: var(--accent);
}
.hero-h1 {
  font-family: var(--font-d);
  font-size: clamp(64px, 9vw, 110px);
  line-height: .93; letter-spacing: .02em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-h1 span { color: var(--accent); }
.hero-sub {
  color: var(--fg-dim); font-size: 14px; max-width: 500px;
  margin-bottom: 32px; line-height: 1.75;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ====================================================
   MARQUEE
==================================================== */
.marquee-wrap {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0; overflow: hidden;
}
.mtrack {
  display: flex; gap: 32px; white-space: nowrap;
  animation: mscroll 26s linear infinite;
}
.mitem {
  font-family: var(--font-d); font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-dim); display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.mitem .mdot { color: var(--accent); }
@keyframes mscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ====================================================
   STATS
==================================================== */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  padding: 28px 20px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-n {
  font-family: var(--font-d);
  font-size: clamp(32px, 4vw, 54px);
  color: var(--accent); line-height: 1; display: block;
}
.stat-l {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-dim); margin-top: 5px;
}
@media (max-width: 600px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid var(--border); }
}

/* ====================================================
   SERVICES GRID
==================================================== */
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
}
.svc-card {
  padding: 32px; border: 1px solid var(--border);
  transition: background .3s; cursor: none; position: relative;
}
.svc-card:hover { background: var(--a-dim); }
.svc-num {
  font-size: 10px; letter-spacing: .1em; color: var(--fg-dim);
  display: block; margin-bottom: 14px;
}
.svc-icon { font-size: 22px; margin-bottom: 12px; display: block; }
.svc-title {
  font-family: var(--font-d);
  font-size: clamp(20px, 2.5vw, 28px);
  margin-bottom: 10px; text-transform: uppercase;
}
.svc-desc { color: var(--fg-dim); font-size: 13px; line-height: 1.65; margin-bottom: 14px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.svc-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border: 1px solid var(--border); color: var(--fg-dim);
}
.svc-arrow { color: var(--accent); font-size: 18px; }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

/* ====================================================
   DIFFERENTIATOR
==================================================== */
.diff-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start; margin-top: 36px;
}
.diff-manifesto {
  font-family: var(--font-d);
  font-size: clamp(30px, 3.5vw, 50px);
  line-height: .97; text-transform: uppercase; margin-bottom: 28px;
}
.diff-manifesto span { color: var(--accent); }
.diff-body { color: var(--fg-dim); font-size: 13.5px; line-height: 1.75; margin-bottom: 14px; }

.diff-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
.diff-card { background: var(--bg3); padding: 24px 20px; transition: background .3s; }
.diff-card:hover { background: var(--a-dim); }
.diff-card-ic { font-size: 20px; margin-bottom: 10px; }
.diff-card-t {
  font-family: var(--font-d); font-size: 18px;
  text-transform: uppercase; margin-bottom: 6px;
}
.diff-card-d { font-size: 12px; color: var(--fg-dim); line-height: 1.6; }

.diff-nums {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-top: none;
}
.diff-num { background: var(--bg3); padding: 18px 20px; }
.diff-num-v {
  font-family: var(--font-d); font-size: 36px;
  color: var(--accent); line-height: 1;
}
.diff-num-l {
  font-size: 11px; color: var(--fg-dim);
  letter-spacing: .06em; text-transform: uppercase; margin-top: 3px;
}
@media (max-width: 900px) { .diff-grid { grid-template-columns: 1fr; } }

/* ====================================================
   PROCESS STEPS (home preview)
==================================================== */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); margin-top: 32px;
}
.step {
  padding: 26px 22px; border-right: 1px solid var(--border);
  transition: background .3s;
}
.step:last-child { border-right: none; }
.step:hover { background: var(--a-dim); }
.step-n {
  font-family: var(--font-d); font-size: 50px;
  color: var(--accent); opacity: .22; line-height: 1;
  margin-bottom: 12px; transition: opacity .3s;
}
.step:hover .step-n { opacity: .8; }
.step-t {
  font-family: var(--font-d); font-size: 18px;
  text-transform: uppercase; margin-bottom: 7px;
}
.step-d { font-size: 12.5px; color: var(--fg-dim); line-height: 1.62; }
@media (max-width: 700px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: none; }
  .step { border-bottom: 1px solid var(--border); }
}

/* ====================================================
   CTA SECTION
==================================================== */
.cta-section {
  background: var(--accent); padding: 80px 0;
  text-align: center; position: relative; overflow: hidden;
}
.cta-bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-d); font-size: 22vw;
  color: rgba(0,0,0,.06); white-space: nowrap;
  pointer-events: none; user-select: none;
}
.cta-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(0,0,0,.5); margin-bottom: 6px; position: relative; display: block;
}
.cta-h {
  font-family: var(--font-d);
  font-size: clamp(52px, 8vw, 100px);
  line-height: .93; text-transform: uppercase;
  color: #0a0a0a; margin-bottom: 14px; position: relative;
}
.cta-p {
  color: rgba(0,0,0,.6); font-size: 14px;
  margin-bottom: 28px; position: relative;
}

/* ====================================================
   FOOTER
==================================================== */
#site-footer { background: #050505; border-top: 1px solid var(--border); padding: 44px 0 24px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 28px; padding-bottom: 28px;
  border-bottom: 1px solid var(--border); margin-bottom: 22px;
}
.f-logo { font-family: var(--font-d); font-size: 26px; margin-bottom: 8px; color: #fff !important; }
.f-logo span { color: var(--accent); }
.f-sub { color: var(--fg-dim); font-size: 12px; max-width: 260px; margin-bottom: 16px; line-height: 1.65; }
.f-col-h {
  font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 12px; display: block;
}
.f-col li { margin-bottom: 6px; }
.f-col a { font-size: 12.5px; color: var(--fg-dim); transition: color .2s; }
.f-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.f-copy { font-size: 11px; color: var(--fg-dim); }
.f-legal { display: flex; gap: 16px; }
.f-legal a { font-size: 11px; color: var(--fg-dim); }
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr; } }

/* ====================================================
   PAGE HERO (usluge / kontakt / proces)
==================================================== */
.page-hero { padding: 140px 0 52px; background: var(--bg2); }
.page-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(52px, 8vw, 90px);
  line-height: .93; text-transform: uppercase; margin-top: 10px;
}
.page-hero h1 span { color: var(--accent); }
.page-hero .hero-desc {
  color: var(--fg-dim); font-size: 13.5px;
  max-width: 540px; margin-top: 14px; line-height: 1.72;
}

/* ====================================================
   USLUGE DETAIL
==================================================== */
.svc-detail-wrap { border-top: 1px solid var(--border); }
.svc-detail-wrap.alt-bg { background: var(--bg2); }
.svc-detail-inner {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 52px; align-items: start; padding: 56px 0;
}
.svc-content h2 {
  font-family: var(--font-d);
  font-size: clamp(40px, 5vw, 68px);
  line-height: .93; text-transform: uppercase; margin-bottom: 14px;
}
.svc-content h2 span { color: var(--accent); }
.svc-content .intro-p { color: var(--fg-dim); font-size: 13.5px; margin-bottom: 16px; line-height: 1.72; }
.svc-content h4 {
  font-family: var(--font-d); font-size: 18px;
  text-transform: uppercase; margin-bottom: 10px; margin-top: 26px;
}
.svc-list { margin-bottom: 18px; }
.svc-list li {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 10px; color: var(--fg-dim); font-size: 13px;
}
.svc-list li .arr { color: var(--accent); flex-shrink: 0; }

.sidebar-card { background: var(--bg3); border: 1px solid var(--border); padding: 20px; margin-bottom: 16px; }
.sidebar-card h4 { font-family: var(--font-d); font-size: 16px; text-transform: uppercase; margin-bottom: 12px; }
.sidebar-links li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { font-size: 13px; color: var(--fg-dim); transition: color .2s; }
.sidebar-links a:hover, .sidebar-links a.active { color: var(--accent); }
.roi-card { background: var(--a-dim); border: 1px solid var(--a-border); padding: 20px; margin-bottom: 16px; }
.roi-card h4 { font-family: var(--font-d); font-size: 16px; text-transform: uppercase; margin-bottom: 8px; }
.roi-card p { color: var(--fg-dim); font-size: 12px; line-height: 1.65; }
@media (max-width: 900px) { .svc-detail-inner { grid-template-columns: 1fr; } }

/* ====================================================
   PROCES PAGE
==================================================== */
.psf {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 32px; padding: 40px 0;
  border-bottom: 1px solid var(--border); align-items: start;
}
.psf:last-child { border-bottom: none; }
.psf-num { font-family: var(--font-d); font-size: 60px; color: var(--accent); opacity: .3; line-height: 1; }
.psf-content h3 {
  font-family: var(--font-d);
  font-size: clamp(22px, 3vw, 36px);
  text-transform: uppercase; margin-bottom: 10px;
}
.psf-content .step-p { color: var(--fg-dim); font-size: 13.5px; line-height: 1.72; margin-bottom: 12px; }
.step-list li {
  padding: 6px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 10px; color: var(--fg-dim); font-size: 13px;
}
.step-list .arr { color: var(--accent); flex-shrink: 0; }

.garantije-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); margin-top: 28px;
}
.gar-item { padding: 28px; border-right: 1px solid var(--border); transition: background .3s; }
.gar-item:last-child { border-right: none; }
.gar-item:hover { background: var(--a-dim); }
.gar-ic { font-size: 24px; margin-bottom: 12px; }
.gar-t { font-family: var(--font-d); font-size: 20px; text-transform: uppercase; margin-bottom: 8px; }
.gar-d { font-size: 12.5px; color: var(--fg-dim); line-height: 1.65; }
@media (max-width: 700px) { .garantije-grid { grid-template-columns: 1fr; } .gar-item { border-right: none; border-bottom: 1px solid var(--border); } }

/* ====================================================
   KONTAKT
==================================================== */
.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 52px; padding-top: 52px; padding-bottom: 64px;
}
.form-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-dim); display: block; margin-bottom: 5px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  padding: 10px 14px; font-size: 13px; color: var(--fg);
  font-family: var(--font-b); outline: none;
  transition: border-color .25s; -webkit-appearance: none; border-radius: 0;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,.25); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 11px; color: var(--fg-dim); margin-top: 10px; line-height: 1.6; }
#form-status {
  padding: 12px 14px; margin-bottom: 14px;
  border: 1px solid; font-size: 13px; display: none;
}
.contact-detail {
  border-bottom: 1px solid var(--border); padding: 13px 0;
  display: flex; gap: 14px; align-items: flex-start;
}
.contact-detail.no-border { border-bottom: none; }
.detail-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.detail-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-dim); display: block; margin-bottom: 3px;
}
.detail-val { font-size: 13px; }
.brand-pill {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid var(--border); color: var(--fg-dim);
  margin: 3px 3px 0 0; display: inline-block; transition: border-color .2s, color .2s;
}
.brand-pill:hover { border-color: var(--accent); color: var(--accent); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  padding: 13px 0; font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff; user-select: none;
}
.faq-icon { color: var(--accent); font-size: 18px; transition: transform .3s; flex-shrink: 0; }
.faq-q.is-open .faq-icon { transform: rotate(45deg); }
.faq-a { font-size: 12.5px; color: var(--fg-dim); line-height: 1.7; padding-bottom: 12px; display: none; }
.faq-a.is-open { display: block; }
@media (max-width: 768px) { .kontakt-grid { grid-template-columns: 1fr; } .form-row-2 { grid-template-columns: 1fr; } }

/* ====================================================
   REVEAL ANIMATION
==================================================== */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s cubic-bezier(0.16,1,0.3,1), transform .7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* WP admin bar */
.admin-bar #site-header { top: 32px; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
