/* ═══════════════════════════════════════════════
   MAIN.CSS — Globalni stilovi
   Psihoterapija Putnik
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

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

/* ── Varijable ───────────────────────────────── */
:root {
  --cream:        #F5F0E8;
  --warm-white:   #FDFAF4;
  --sage:         #7A9E7E;
  --sage-light:   #A8C5AC;
  --sage-dark:    #4A7A50;
  --earth:        #8B6F47;
  --earth-light:  #C4A882;
  --earth-dark:   #5C4A2A;
  --lavender:     #9B8EC4;
  --peach:        #E8A87C;
  --charcoal:     #2C2C2C;
  --soft-text:    #5A5550;
  --border:       rgba(139, 111, 71, 0.18);

  --nav-height: 72px;
  --font-serif: 'Special Elite', 'Courier New', monospace;
  --font-sans:  'Special Elite', 'Courier New', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .02em;
  line-height: 1.7;
}

/* ── NAV ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-height);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(253, 250, 244, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  transition: transform .4s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: rotate(-6deg) scale(1.05);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--earth-dark);
  letter-spacing: .02em;
}

.nav-logo-text span {
  font-family: var(--font-sans);
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--soft-text);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color .25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.nav-links a:hover {
  color: var(--sage-dark);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 201;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--warm-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--charcoal);
  text-decoration: none;
  transition: color .2s;
}

.mobile-menu a:hover {
  color: var(--sage-dark);
}

/* ── FOOTER ──────────────────────────────────── */
.footer {
  background: var(--earth-dark);
  color: rgba(255,255,255,0.65);
  padding: 64px 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: .85;
  filter: brightness(0) invert(1);
}

.footer-logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  letter-spacing: .04em;
}

.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color .2s;
}

.footer-nav a:hover {
  color: rgba(255,255,255,0.88);
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.footer-copy {
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.25);
}

/* ── SHARED UTILS ────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 14px 34px;
  background: var(--sage-dark);
  color: #fff;
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s, transform .2s, box-shadow .2s;
}

.btn-primary:hover {
  background: var(--earth-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.btn-outline {
  display: inline-block;
  padding: 13px 34px;
  border: 1px solid var(--earth-light);
  color: var(--earth-dark);
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s, transform .2s;
}

.btn-outline:hover {
  background: rgba(139,111,71,.07);
  transform: translateY(-2px);
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Logo centered on mobile */
  .nav {
    justify-content: center;
  }

  .nav-logo {
    margin: 0 auto;
  }

  .hamburger {
    position: absolute;
    right: 24px;
  }

  .footer {
    padding: 50px 24px 30px;
  }
}
