:root {
  color-scheme: light;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0f172a;
  background: #eef4fb;
  accent-color: #0d4d91;
  --surface: #ffffff;
  --surface-strong: #f8fbff;
  --text-muted: #475569;
  --border: rgba(15, 23, 42, 0.08);
  --primary: #0d4d91;
  --primary-soft: rgba(13, 77, 145, 0.12);
  --shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(13, 77, 145, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 30%),
    linear-gradient(180deg, #eef4fb 0%, #ffffff 100%);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.brand-tagline {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(13, 77, 145, 0.18);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}

.lang-btn {
  border: none;
  background: transparent;
  color: #0f172a;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--primary);
  color: white;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #2563eb;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 44rem;
  color: var(--text-muted);
  margin-top: 1.4rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  padding: 1rem 1.85rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  min-width: 12rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 18px 35px rgba(13, 77, 145, 0.18);
}

.btn-secondary {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn:hover {
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -1rem 0 0 1.5rem;
  background: radial-gradient(circle at top left, rgba(13, 77, 145, 0.14), transparent 45%);
  filter: blur(36px);
  z-index: 0;
}

.hero-card {
  position: relative;
  background: var(--surface);
  border-radius: 2rem;
  padding: 2.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13, 77, 145, 0.08);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 4rem;
  height: 4rem;
  background: radial-gradient(circle, rgba(13, 77, 145, 0.14), transparent 55%);
  border-radius: 999px;
}

.hero-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.hero-card li {
  padding-left: 1.2rem;
  position: relative;
  color: #334155;
}

.hero-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #0d4d91;
}

.section {
  padding: 3rem 0;
}

.services,
.about,
.contact,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.section-header {
  max-width: 50rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(2rem, 2.5vw, 2.5rem);
  margin: 0.5rem 0 0;
}

.section-subtitle {
  margin: 0;
  color: #0d4d91;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.14);
  border-color: rgba(13, 77, 145, 0.16);
}

.card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.card p {
  margin-top: 0.85rem;
  color: var(--text-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.about-stats {
  display: grid;
  gap: 1rem;
}

.stat {
  background: linear-gradient(180deg, #0d4d91 0%, #2563eb 100%);
  color: white;
  padding: 1.7rem;
  border-radius: 1.5rem;
  box-shadow: 0 24px 46px rgba(13, 77, 145, 0.14);
}

.stat span {
  display: block;
  font-size: 2.15rem;
  font-weight: 800;
}

.stat p {
  margin: 0.5rem 0 0;
  color: rgba(255,255,255,0.95);
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  background: var(--surface);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  padding: 2.5rem;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  background: radial-gradient(circle at top right, rgba(13, 77, 145, 0.12), transparent 32%);
  pointer-events: none;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-map {
  margin-top: 1.5rem;
  background: #f8fbff;
  border: 1px solid rgba(13, 77, 145, 0.12);
  border-radius: 1.25rem;
  padding: 1rem;
}

.map-title {
  margin: 0 0 0.75rem;
  color: #0d4d91;
  font-weight: 700;
}

.contact-map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 0.9rem;
  display: block;
}

.contact-details div {
  padding: 1.35rem;
  border-radius: 1.25rem;
  background: #f8fbff;
  border: 1px solid rgba(13, 77, 145, 0.12);
}

.contact-details strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #0d4d91;
}

.contact-link {
  color: #0d4d91;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 77, 145, 0.28);
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.footer {
  padding: 2rem 0;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: #475569;
  font-size: 0.95rem;
}

[data-lang] {
  display: none;
}

html[lang="sl"] [data-lang="sl"],
html[lang="en"] [data-lang="en"] {
  display: initial;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-card,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: auto;
  }

  .lang-switch {
    width: max-content;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .header-inner .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .lang-switch {
    width: 100%;
    display: flex;
  }

  .lang-btn {
    flex: 1;
    text-align: center;
    border-radius: 0;
  }

  .hero-grid,
  .about-grid,
  .cards-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .hero-copy p,
  .section-header p,
  .section-header h2 {
    max-width: 100%;
  }

  .contact-card {
    padding: 1.8rem;
  }

  .contact-details div {
    padding: 1rem;
  }

  .contact-map iframe {
    height: 220px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: start;
  }
}
