/* ===========================================================
   arborist.hr — shared site styles
   Design tokens + zajedničke komponente (topbar, header, footer,
   gumbi, base). Class-name-kompatibilno s homepageom.
   =========================================================== */

:root {
  --c-forest: #1a3a2e;
  --c-forest-deep: #0f2a20;
  --c-forest-soft: #2d5443;
  --c-cream: #faf6ed;
  --c-cream-dark: #f0e9d8;
  --c-amber: #e76f51;
  --c-amber-dark: #c75c40;
  --c-ink: #1f2419;
  --c-ink-soft: #4a5043;
  --c-line: #d8d0bc;

  --f-display: 'Fraunces', 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, sans-serif;

  --radius: 4px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--c-ink);
  background: var(--c-cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle paper grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Top emergency bar ─── */
.topbar {
  background: var(--c-forest-deep);
  color: var(--c-cream);
  font-size: 0.875rem;
  padding: 10px 0;
  position: relative;
  z-index: 50;
  letter-spacing: 0.01em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar .pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--c-amber);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.topbar a {
  color: var(--c-amber);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar a:hover { border-color: var(--c-amber); }

/* ─── Header / Nav ─── */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-cream);
  border-bottom: 1px solid var(--c-line);
  backdrop-filter: blur(8px);
}
header.site .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--c-forest);
  letter-spacing: -0.01em;
}
.logo svg { flex-shrink: 0; }
.logo span.slim { font-weight: 400; opacity: 0.7; }

nav.main { display: flex; gap: 28px; align-items: center; }
nav.main a.link {
  font-size: 0.92rem;
  color: var(--c-ink-soft);
  font-weight: 500;
  transition: color .2s;
}
nav.main a.link:hover { color: var(--c-forest); }
nav.main a.cta {
  background: var(--c-amber);
  color: var(--c-cream);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background .2s, transform .2s;
}
nav.main a.cta:hover { background: var(--c-amber-dark); transform: translateY(-1px); }

@media (max-width: 720px) {
  nav.main a.link { display: none; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all .2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--c-amber);
  color: var(--c-cream);
  box-shadow: 0 4px 14px rgba(231, 111, 81, 0.35);
}
.btn-primary:hover {
  background: var(--c-amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(231, 111, 81, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--c-forest);
  border-color: var(--c-forest);
}
.btn-ghost:hover {
  background: var(--c-forest);
  color: var(--c-cream);
}

/* ─── Section base ─── */
section { position: relative; z-index: 2; padding: 100px 0; }
@media (max-width: 720px) { section { padding: 70px 0; } }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-forest-soft);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--c-forest-soft);
}

h2.section-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-forest);
  margin: 0 0 24px;
  max-width: 700px;
}
h2.section-title em {
  font-style: italic;
  color: var(--c-amber);
  font-weight: 400;
}
.section-intro {
  font-size: 1.1rem;
  color: var(--c-ink-soft);
  max-width: 600px;
  margin-bottom: 60px;
}

/* ─── Footer ─── */
footer.site {
  background: var(--c-forest-deep);
  color: rgba(250, 246, 237, 0.6);
  padding: 40px 0 30px;
  border-top: 1px solid rgba(250, 246, 237, 0.08);
  font-size: 0.88rem;
}
footer.site .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site .logo { color: var(--c-cream); font-size: 1.05rem; }
footer.site a:hover { color: var(--c-amber); }

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
