:root {
  --bg: #0b0d10;
  --surface: #14171c;
  --border: #23272f;
  --text: #e9ecef;
  --muted: #9aa3ae;
  --accent: #c8a951;
  --maxw: 68rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* --- bilingual toggle: show only the active language --- */
html[data-lang="en"] [lang="hr"],
html[data-lang="hr"] [lang="en"] { display: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- header --- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand svg { width: 34px; height: 34px; color: var(--accent); flex: none; }

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
}

.lang-toggle button {
  appearance: none;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: #0b0d10;
}

/* --- hero --- */
.hero { padding: 6rem 0 4.5rem; }

.hero .eta {
  width: 78px;
  height: 78px;
  color: var(--accent);
  margin-bottom: 2rem;
  display: block;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin: 0 0 1.4rem;
  max-width: 20ch;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

/* --- services --- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  padding-bottom: 5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.7rem;
}

.card h2 {
  font-size: 1.02rem;
  font-weight: 640;
  letter-spacing: 0.01em;
  margin: 0 0 0.7rem;
}

.card h2::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1rem;
}

.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* --- contact --- */
.contact {
  border-top: 1px solid var(--border);
  padding: 4.5rem 0;
}

.contact h2 {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}

.contact p { color: var(--muted); margin: 0 0 1.8rem; max-width: 52ch; }

.mailto {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
}
.mailto:hover { background: var(--accent); color: #0b0d10; text-decoration: none; }

/* --- legal footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem 2.5rem;
  margin-bottom: 2.5rem;
}

.legal-grid h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text);
  margin: 0 0 0.55rem;
  font-weight: 600;
}

.legal-grid p { margin: 0; }
.legal-grid dl { margin: 0; }
.legal-grid dt {
  color: var(--text);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.legal-grid dd { margin: 0 0 0.6rem; }
.legal-grid dd:last-child { margin-bottom: 0; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* --- legal pages (privacy / terms) --- */
.doc { padding: 4rem 0 5rem; max-width: 46rem; }
.doc h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}
.doc .updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 2.5rem; }
.doc h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 0.7rem;
  letter-spacing: -0.01em;
}
.doc p, .doc li { color: var(--muted); }
.doc li { margin-bottom: 0.4rem; }
.doc strong { color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
  .hero { padding: 4rem 0 3rem; }
  .hero .eta { width: 60px; height: 60px; margin-bottom: 1.5rem; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
