/*
Theme Name: Jointshere
Theme URI: https://jointshere.site/
Author: JointsHere
Description: Moderan početni WordPress tema.
Version: 1.0
Text Domain: jointshere
*/

:root {
  --bg: #f7f3ea;
  --surface: #ffffff;
  --surface-2: #fcfaf7;
  --text: #233041;
  --muted: #6b7280;
  --accent: #2f8f6b;
  --accent-2: #f29b3f;
  --border: rgba(35,48,65,0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #fdfaf4 0%, #f5efe5 100%);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #267857; }
.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}
.site-header {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(35,48,65,.06);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 6px 20px rgba(35,48,65,.04);
}
.header-inner,
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
}
.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}
.site-nav .menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}
.site-nav .menu a {
  color: var(--text);
  font-weight: 600;
}
.site-nav .menu a:hover {
  color: var(--accent);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.2rem;
  transition: transform 0.25s ease;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.is-active {
  transform: rotate(90deg);
}
.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.site-main {
  padding: 2rem 0 3rem;
  flex: 1;
}
.hero {
  padding: 4rem 0 3rem;
}
.hero-wrap {
  background: linear-gradient(135deg, #ffffff 0%, #f8f4eb 100%);
  border: 1px solid rgba(35,48,65,.06);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 8px 24px rgba(35,48,65,.04);
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .5rem; }
.hero p { color: #4b5563; max-width: 700px; }
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: .8rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(47,143,107,.15);
}
.btn-secondary { background: #1f2937; }
.content-section { padding: 1rem 0 2rem; }
.card {
  background: #ffffff;
  border: 1px solid rgba(35,48,65,.06);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(35,48,65,.04);
}
.card img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 1rem; }
.site-footer {
  border-top: 1px solid rgba(35,48,65,.06);
  padding: 1.5rem 0;
  color: var(--muted);
  background: rgba(255,255,255,.4);
}
.post-content { background: #ffffff; border: 1px solid rgba(35,48,65,.06); border-radius: 16px; padding: 1.5rem; box-shadow: 0 4px 14px rgba(35,48,65,.04); }
@media (max-width: 700px) {
  .header-inner {
    position: relative;
    padding: 0.75rem 0;
    min-height: 3rem;
  }
  .brand {
    display: block;
    width: 100%;
  }
  .menu-toggle {
    display: flex;
    position: absolute;
    right: 0;
    z-index: 30;
    padding: 0.35rem;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 25;
    width: 100%;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(35,48,65,.08);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 28px rgba(35,48,65,.12);
  }
  .site-nav.is-open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-nav .menu {
    flex-direction: column;
    gap: .5rem;
    padding: .75rem 1rem 1rem;
    margin-top: 0;
  }
  .site-nav .menu li {
    padding: .2rem 0;
  }
  .hero-wrap { padding: 1.5rem; }
}
