/* =============================================
   EPOS Pro d.o.o. — style.css
   Aesthetic: Refined dark corporate
   Fonts: DM Serif Display + DM Sans
============================================= */

:root {
  --bg:        #0d0f14;
  --bg-2:      #13161d;
  --bg-3:      #1a1e28;
  --border:    rgba(255,255,255,0.08);
  --accent:    #c8a96e;
  --accent-2:  #e8c98e;
  --text:      #e8e8e8;
  --text-muted:#8a8f9e;
  --white:     #ffffff;

  --radius:    12px;
  --radius-sm: 6px;
  --trans:     0.3s ease;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --container: 1160px;
  --nav-h:     72px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─────────────────────────────────────────
   CONTAINER
───────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background var(--trans), box-shadow var(--trans);
}
.nav.scrolled {
  background: rgba(13,15,20,0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
}
.logo-text {
  font-size: 18px;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav__links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--trans);
  letter-spacing: 0.02em;
}
.nav__links a:hover { color: var(--white); }

.nav__right { display: flex; align-items: center; gap: 16px; }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--trans), color var(--trans);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--white); }
.lang-toggle .active { color: var(--accent); }
.lang-toggle__sep { opacity: 0.4; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform var(--trans), opacity var(--trans);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 32px 100px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -200px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #5b7cd6, transparent 70%);
  bottom: -100px; left: -50px;
  animation: orbFloat 12s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0); }
  50%       { transform: translate(30px, -30px); }
}

.hero__content {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  animation: fadeUp 0.9s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--accent);
}
.hero__title {
  display: block;
  margin-bottom: 28px;
}
.hero__title--main {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(56px, 8vw, 100px);
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
}
.hero__title--sub {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 3.5vw, 38px);
  color: var(--accent);
  line-height: 1.3;
  margin-top: 8px;
}
.hero__desc {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 40px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--trans);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,169,110,0.25);
}
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--full { width: 100%; }

/* ─────────────────────────────────────────
   SECTIONS SHARED
───────────────────────────────────────── */
.section {
  padding: 100px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
.section-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
  padding-left: 24px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-label { padding-left: 0; }
.section-header .section-label::before { display: none; }

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about { background: var(--bg-2); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.stat {
  background: var(--bg-3);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: border-color var(--trans);
}
.stat:first-child { border-radius: var(--radius) 0 0 0; }
.stat:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
.stat:nth-child(3) { border-radius: 0 0 0 var(--radius); }
.stat:last-child   { border-radius: 0 0 var(--radius) 0; }
.stat:hover { border-color: var(--accent); }
.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 44px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ─────────────────────────────────────────
   SERVICES
───────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 48px 40px;
  transition: border-color var(--trans), background var(--trans);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--accent);
  transition: height 0.4s ease;
}
.service-card:hover { border-color: rgba(200,169,110,0.3); background: var(--bg-3); }
.service-card:hover::before { height: 100%; }
.service-card:nth-child(1) { border-radius: var(--radius) 0 0 0; }
.service-card:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
.service-card:nth-child(3) { border-radius: 0 0 0 var(--radius); }
.service-card:nth-child(4) { border-radius: 0 0 var(--radius) 0; }
.service-card__icon {
  width: 48px; height: 48px;
  color: var(--accent);
  margin-bottom: 24px;
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   VALUES
───────────────────────────────────────── */
.values { background: var(--bg-2); }
.values__list {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.value-item {
  display: flex;
  gap: 40px;
  padding: 40px 48px;
  border-bottom: 1px solid var(--border);
  transition: background var(--trans);
  align-items: flex-start;
}
.value-item:last-child { border-bottom: none; }
.value-item:hover { background: var(--bg-3); }
.value-item__num {
  font-family: var(--font-serif);
  font-size: 48px;
  color: rgba(200,169,110,0.2);
  line-height: 1;
  min-width: 60px;
  transition: color var(--trans);
}
.value-item:hover .value-item__num { color: var(--accent); }
.value-item h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--white);
  margin-bottom: 8px;
}
.value-item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact__info p {
  color: var(--text-muted);
  margin-bottom: 36px;
}
.contact__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__details li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
}
.contact__details svg {
  width: 20px; height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact__details a:hover { color: var(--accent); }

/* Form */
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color var(--trans), box-shadow var(--trans);
  resize: none;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(138,143,158,0.5); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.1);
}
.form-note {
  font-size: 13px;
  color: var(--accent);
  min-height: 20px;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.footer__brand p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 10px;
}
.footer__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--trans);
}
.footer__links a:hover { color: var(--accent); }
.footer__bottom p {
  font-size: 12px;
  color: rgba(138,143,158,0.5);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card { border-radius: 0 !important; }
  .service-card:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
  .service-card:last-child  { border-radius: 0 0 var(--radius) var(--radius) !important; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .value-item { padding: 28px 24px; gap: 24px; }
}

@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .nav__links { display: none; }
  .hamburger { display: flex; }
  .nav__links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px 20px 32px;
    gap: 20px;
  }
  .nav__links.mobile-open a { font-size: 18px; color: var(--text); }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .value-item { flex-direction: column; gap: 12px; }
  .value-item__num { font-size: 32px; }
  .hero__scroll { display: none; }
  .footer__inner { flex-direction: column; }
}
