/*
Theme Name:  Runners.hr
Theme URI:   https://runners.hr
Description: Službena tema za Runners.hr — trkačka zajednica Hrvatske.
Version:     2.0.0
Author:      Runners.hr
Text Domain: runners-hr
License:     GPL-2.0+
*/

:root {
  --rhr-black:     #0e0e0e;
  --rhr-white:     #f5f2ed;
  --rhr-accent:    #e8401c;
  --rhr-accent-dk: #b52e10;
  --rhr-card:      #181818;
  --rhr-border:    rgba(255,255,255,0.1);
  --rhr-muted:     rgba(245,242,237,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--rhr-black);
  color: var(--rhr-white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }
section[id] { scroll-margin-top: 5rem; }

/* typography */
h1,h2,h3,h4,h5 {
  font-family: 'Bebas Neue', sans-serif;
  line-height: 1; letter-spacing: 0.02em;
}

/* utility */
.section-label {
  display: block; font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rhr-accent);
  font-weight: 500; margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2.4rem,5vw,4rem);
  margin-bottom: 1.25rem;
}
.section-intro {
  font-size: 0.95rem; color: var(--rhr-muted);
  max-width: 520px; line-height: 1.7; font-weight: 300;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
section.rhr-section { padding: 5rem 2.5rem; }

/* buttons */
.btn-primary {
  display: inline-block; background: var(--rhr-accent); color: var(--rhr-white);
  text-decoration: none; padding: 0.8rem 1.8rem; font-size: 0.875rem;
  font-weight: 500; letter-spacing: 0.04em; border-radius: 2px; border: none;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--rhr-accent-dk); transform: translateY(-1px); color: #fff; }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--rhr-white);
  text-decoration: none; padding: 0.8rem 1.8rem; font-size: 0.875rem;
  letter-spacing: 0.04em; border-radius: 2px;
  border: 0.5px solid rgba(245,242,237,0.35);
  transition: border-color 0.2s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--rhr-white); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; color: var(--rhr-muted); text-decoration: none;
  padding: 0.7rem 1.2rem; font-size: 0.8rem; border-radius: 2px;
  border: 0.5px solid rgba(255,255,255,0.2); transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* divider */
.rhr-divider { height: 0.5px; background: var(--rhr-border); margin: 0 2.5rem; }

/* align */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }

@media (max-width: 900px) {
  section.rhr-section { padding: 3.5rem 1.5rem; }
  .container { padding: 0 1.5rem; }
  .rhr-divider { margin: 0 1.5rem; }
}
