/* Calm editorial — cool stone + teal */

:root,
[data-theme="light"] {
  --bg: #f4f6f8;
  --bg-elevated: #ffffff;
  --ink: #152028;
  --muted: #5c6b78;
  --line: rgba(21, 32, 40, 0.12);
  --accent: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --shadow: 0 18px 50px rgba(21, 32, 40, 0.08);
  --portrait-ring: rgba(15, 118, 110, 0.25);
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

[data-theme="dark"] {
  --bg: #0c1216;
  --bg-elevated: #141c22;
  --ink: #e8eef2;
  --muted: #9aadb8;
  --line: rgba(232, 238, 242, 0.12);
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --portrait-ring: rgba(45, 212, 191, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, var(--accent-soft), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 30%, rgba(15, 118, 110, 0.05), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 1.75rem;
  height: 1.75rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.theme-toggle__icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ink);
}

.theme-toggle__icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 68rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 3.5rem;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: calc(100vh - 4.5rem);
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

.hero__name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.hero__lead {
  margin-top: 1.25rem;
  max-width: 22rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: var(--muted);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  margin-top: 2rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

[data-theme="dark"] .btn {
  color: #06241f;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.hero__media {
  justify-self: center;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px var(--portrait-ring);
  animation: rise 0.9s ease both;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__copy {
  animation: rise 0.8s ease both;
}

.section {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section--smartninja,
.section#svetovanje,
.section--contact {
  max-width: 68rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  font-weight: 650;
  margin-bottom: 2rem;
}

.prose {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.7;
  color: var(--muted);
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 0.2em;
}

.prose a:hover {
  color: var(--accent);
}

.prose--short {
  max-width: 28rem;
}

.smartninja {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease;
}

.smartninja:hover {
  color: var(--accent);
}

.smartninja__name {
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.smartninja__meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.advisory {
  display: grid;
  gap: 2rem;
}

@media (min-width: 760px) {
  .advisory {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.advisory__item {
  display: grid;
  gap: 0.85rem;
}

.advisory__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.35s ease;
}

.advisory__item:hover img {
  transform: translateY(-4px);
}

.advisory__item span {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.text-link {
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.text-link:hover {
  color: var(--ink);
}

.site-footer {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--d, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 700px) {
  .nav a:not(.brand) {
    display: none;
  }

  .nav a:nth-child(3) {
    display: inline;
  }
}
