/* =========================================
   nevenapetkovic.com — Shared Styles
   Fontovi: Cormorant Garamond + DM Sans
   ========================================= */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&family=DM+Sans:wght@300;400;500&family=Raleway:wght@300;400&display=swap');

/* Variables */
:root {
  --bg:           #FAFAF8;
  --bg-warm:      #F1EFE8;
  --stone:        #D3D1C7;
  --charcoal:     #2C2C2A;
  --muted:        #888780;
  --blush:        #FAECE7;
  --accent:       #D85A30;
  --accent-dark:  #993C1D;
  --max:          1100px;
  --narrow:       740px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Base */
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.3rem; }
em { font-style: italic; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 248, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(211, 209, 199, 0.5);
}
.nav__logo {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.nav__logo img {
  height: 2.2em;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  gap: 2.5rem;
}
.nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--charcoal); }
.nav__lang {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.nav__lang a { color: var(--muted); transition: color 0.2s; }
.nav__lang a.active,
.nav__lang a:hover { color: var(--charcoal); }
.nav__lang span { color: var(--stone); }

.nav__lang--mobile {
  display: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s;
}

main { padding-top: 4.5rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 2.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.22s;
}
.btn--primary { background: var(--charcoal); color: var(--bg); }
.btn--primary:hover { background: var(--accent); }
.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}
.btn--outline:hover { background: var(--charcoal); color: var(--bg); }

/* ---- Hero ---- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}
.hero--img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 248, 0.76);
  z-index: 1;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero__content { position: relative; z-index: 1; max-width: 660px; }
.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero__title { margin-bottom: 1.5rem; }
.hero__sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

/* ---- Sections ---- */
.section { padding: 6rem 0; }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--charcoal); color: var(--bg); }

.section__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section__title { margin-bottom: 1.5rem; }

/* ---- Divider ---- */
.divider {
  width: 36px;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem 0;
}

/* ---- Pull quote ---- */
.pullquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-style: italic;
  line-height: 1.4;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  color: var(--charcoal);
}

/* ---- Theme cards (teme) ---- */
.teme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--stone);
  margin-top: 3rem;
}
.teme-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.tema-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
}
.tema-card:hover { background: var(--bg-warm); }
.tema-card__num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  color: var(--stone);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.tema-card__badge {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  margin-bottom: 1.25rem;
}
.tema-card__badge--life     { background: #E1F5EE; color: #0F6E56; }
.tema-card__badge--talks    { background: #FAECE7; color: #993C1D; }
.tema-card__badge--walks    { background: #E3F1F1; color: #1F6E69; }
.tema-card__badge--soulfood { background: #FBF3DC; color: #8A6A14; }
.tema-card__badge--art      { background: #EFEAF9; color: #5D3FA8; }
.tema-card__badge--business { background: #E6F1FB; color: #185FA5; }
.tema-card__title {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}
.tema-card__text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* ---- Split section ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split__image {
  overflow: hidden;
}
.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split__image--tall { aspect-ratio: 3/4; }
.split__image--square { aspect-ratio: 1/1; }

/* ---- Blog grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.post-card { display: flex; flex-direction: column; }
.post-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--bg-warm);
}
.post-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.post-card:hover .post-card__image img { transform: scale(1.04); }
.post-card__category {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.post-card__title {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.post-card__title a { transition: color 0.2s; }
.post-card__title a:hover { color: var(--accent); }
.post-card__excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.72;
  flex: 1;
  margin-bottom: 1rem;
}
.post-card__meta {
  font-size: 0.75rem;
  color: var(--stone);
  letter-spacing: 0.04em;
}

/* ---- Category filter ---- */
.filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter__btn {
  padding: 0.4rem 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--stone);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.18s;
}
.filter__btn:hover,
.filter__btn.active {
  background: var(--charcoal);
  color: var(--bg);
  border-color: var(--charcoal);
}

/* ---- Newsletter (dark) ---- */
.newsletter {
  background: var(--charcoal);
  padding: 5.5rem 0;
  text-align: center;
}
.newsletter h2 { color: var(--bg); margin-bottom: 1rem; }
.newsletter p { color: var(--stone); max-width: 460px; margin: 0 auto 2.5rem; }
.newsletter__form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter__form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-right: none;
  color: var(--bg);
  outline: none;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter__form input:focus { border-color: rgba(255,255,255,0.45); }
.newsletter__form button {
  padding: 0.85rem 1.6rem;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter__form button:hover { background: var(--accent-dark); }

/* ---- Contact form ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 580px;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group textarea {
  padding: 0.85rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  border: 1px solid var(--stone);
  background: white;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--charcoal); }
.form-group textarea { min-height: 140px; }

/* ---- Footer ---- */
footer {
  background: var(--bg-warm);
  padding: 3rem 0;
  border-top: 1px solid var(--stone);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__logo {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: 0.08em;
}
.footer__links {
  display: flex;
  gap: 2rem;
}
.footer__links a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent); }
.footer__copy {
  font-size: 0.75rem;
  color: var(--stone);
}
.footer__social {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}
.footer__social a {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.footer__social a:hover { color: var(--accent); }
.footer__social svg { width: 17px; height: 17px; }

/* ---- Social links (kontakt, o-meni) ---- */
.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.social-links a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.social-links a:hover { opacity: 0.7; }
.social-links svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---- Page header (inner pages) ---- */
.page-header {
  padding: 5rem 0 4rem;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--stone);
}
.page-header__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.page-header__title { margin-bottom: 0; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .teme-grid { grid-template-columns: 1fr; }
  .teme-grid--two { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split__image { order: -1; height: 300px; max-height: 300px; }
  .split__image--tall, .split__image--square { aspect-ratio: unset; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__lang--mobile { display: flex; gap: 0.35rem; align-items: center; font-size: 0.72rem; letter-spacing: 0.08em; }
  .nav--open {
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #FAFAF8;
    backdrop-filter: none;
    border-bottom: none;
  }
  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  .nav--open .nav__links a { font-size: 1.1rem; color: var(--charcoal); }
  .nav--open .nav__logo { position: absolute; top: 1.25rem; left: 2.5rem; }
  .nav--open .nav__toggle { position: absolute; top: 1.5rem; right: 2rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
  .section { padding: 4rem 0; }
}

/* ---- Blog post ---- */
.post-hero {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
}
.post-hero img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.post-meta__category {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-meta__date {
  font-size: 0.75rem;
  color: var(--stone);
  letter-spacing: 0.04em;
}
.post-title {
  margin-bottom: 2rem;
}
.post-content {
  max-width: var(--narrow);
  margin: 0 auto;
}
.post-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}
.post-content p:last-child { margin-bottom: 0; }
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.post-back:hover { color: var(--charcoal); }

/* ---- Post share ---- */
.post-share {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stone);
}
.post-share__label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.post-share__btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.post-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  background: none;
  border: 1px solid var(--stone);
  border-radius: 3px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.post-share__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.post-share__btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
