/* ===========================================================
   Konzulat Akademija — brand tokens
   Crna/bela/zlatna, Montserrat + Oswald
=========================================================== */

:root {
  --black: #161616;
  --white: #ffffff;
  --gold-light: #F8DD8A;
  --gold: #F2A81E;
  --gold-deep: #EF8C0E;
  --surface: #F7F4EF;
  --hairline: #e2ddd3;
  --ink-soft: #6b6b6b;

  --font-body: 'Montserrat', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-accent: 'Oswald', 'Arial Narrow', Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 16px; font-weight: 700; text-wrap: balance; line-height: 1.15; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

.section { padding: 70px 0; }
.section--white { background: var(--white); }
.section--surface { background: var(--surface); }
.section--black { background: var(--black); color: var(--white); }
.section--black h2 { color: var(--white); }

.eyebrow {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  text-align: center;
  margin-bottom: 12px;
}
.eyebrow--onblack { color: var(--gold); }

.text-center { text-align: center; }
.subtext { color: var(--ink-soft); font-size: 17px; }

/* ---------------- Header ---------------- */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.brand img { height: 26px; width: auto; }
nav.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
nav.main-nav a { padding: 6px 0; }
.nav-dropdown { position: relative; }
.nav-dropdown > span { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 8px;
  min-width: 170px;
  box-shadow: 0 12px 30px rgba(22,22,22,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 180ms;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.nav-dropdown-menu a:hover { background: var(--surface); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle svg { display: block; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: transform 160ms var(--ease-out);
  font-family: var(--font-body);
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-outline { background: transparent; color: var(--black); border: 2px solid var(--black); padding: 11px 26px; }
.btn-link {
  display: inline-block;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 3px;
  font-weight: 600;
  font-size: 14px;
}
@media (hover: hover) and (pointer: fine) {
  .btn-link:hover { opacity: .65; }
}

/* ---------------- Hero ---------------- */
.hero { padding: 100px 24px; text-align: center; }
.hero .logo-mark { width: 130px; margin: 0 auto 18px; }
.hero .brand-caption {
  font-family: var(--font-accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 13px;
  margin-bottom: 6px;
}
.hero h1 { font-size: 58px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.03; margin-bottom: 20px; }
.hero .lede { color: var(--gold-deep); font-size: 17px; margin-bottom: 26px; }
@media (max-width: 720px) {
  .hero h1 { font-size: 38px; }
}

/* ---------------- Cards (kz-card) ---------------- */
.card-grid { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 36px; }
.card-grid.cols-2 > .kz-card,
.card-grid.cols-2 > .kz-card-flat { flex: 1 1 300px; }
.card-grid.cols-3 > .kz-card,
.card-grid.cols-3 > .kz-card-flat { flex: 1 1 260px; }

.kz-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(22,22,22,0.06);
  padding: 40px 32px;
  text-align: center;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .kz-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 14px 34px rgba(22,22,22,0.14); }
}
.kz-card h3 { font-size: 30px; font-weight: 700; margin-bottom: 6px; }
.kz-card .loc { font-family: var(--font-accent); color: var(--gold); font-weight: 600; font-size: 12px; letter-spacing: 0.05em; margin-bottom: 16px; text-align: center; }
.kz-card hr { border: none; border-top: 1px solid var(--hairline); margin: 0 0 16px; }

.kz-card-flat {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  text-align: center;
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 850ms var(--ease-out), transform 850ms var(--ease-out);
}
.kz-card-flat.in-view { opacity: 1; transform: translateX(0); }
@media (max-width: 600px) {
  .kz-card-flat { text-align: center; }
}

/* ---------------- Entrance animations ---------------- */
@keyframes kzSlideLeft { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: translateX(0); } }
@keyframes kzSlideRight { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: translateX(0); } }
.kz-anim-left { animation: kzSlideLeft 850ms var(--ease-out) both; }
.kz-anim-right { animation: kzSlideRight 850ms var(--ease-out) both; animation-delay: 130ms; }
.kz-anim-left--delayed { animation-delay: 250ms; }

@media (prefers-reduced-motion: reduce) {
  .kz-anim-left, .kz-anim-right, .kz-card-flat { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------------- Zoom image ---------------- */
.kz-zoom-wrap { display: inline-block; overflow: hidden; border-radius: 8px; border: 1px solid var(--hairline); }
.kz-zoom { display: block; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .kz-zoom-wrap:hover .kz-zoom { transform: scale(1.06); }
}

/* ---------------- Testimonials ---------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.testimonial-grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--hairline);
}
@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------------- Lead form ---------------- */
.kz-form {
  max-width: 420px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.kz-form input {
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-size: 15px;
  font-family: var(--font-body);
  width: 100%;
}
.section--black .kz-form input { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); color: var(--white); }
.section--black .kz-form input::placeholder { color: rgba(255,255,255,0.55); }
.kz-form button { margin-top: 4px; }
.kz-form-note { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 10px; }
.section--black .kz-form-note { color: rgba(255,255,255,0.55); }
.kz-form-success {
  display: none;
  text-align: center;
  font-weight: 600;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--black);
  margin-top: 20px;
}

/* ---------------- Footer ---------------- */
footer.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 50px 24px 30px;
  text-align: center;
}
footer.site-footer .logo-mark { width: 56px; margin: 0 auto; }
footer.site-footer nav { display: flex; justify-content: center; gap: 22px; margin-top: 20px; font-size: 14px; }
footer.site-footer .contact-email { display: block; margin-top: 16px; color: var(--white); font-size: 14px; }
footer.site-footer .contact-email:hover { color: var(--gold); }
footer.site-footer .copyright-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 24px; font-family: var(--font-accent); font-size: 13px; color: var(--gold-light);
}
footer.site-footer .copyright-row img { height: 18px; }

/* ---------------- Blog ---------------- */
.blog-card {
  display: block;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(22,22,22,0.1); }
}
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card .blog-card-body { padding: 24px; }
.blog-card h3 { font-size: 20px; margin-bottom: 8px; }
.blog-card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

article.post img.featured { width: 100%; border-radius: 16px; margin-bottom: 36px; }
article.post h2 { font-size: 26px; margin-top: 44px; }
article.post h3 { font-size: 19px; margin-top: 28px; }
article.post p, article.post li { font-size: 17px; }
.post-header { text-align: center; margin-bottom: 32px; }
.post-header h1 { font-size: 38px; }
.cta-box {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 32px;
  background: var(--surface);
  text-align: center;
  margin-top: 44px;
}

/* ---------------- Value list ---------------- */
.value-list li { font-size: 16px; }
.price-strike { text-decoration: line-through; color: var(--gold-light); font-size: 18px; }
.price-final { font-size: 40px; font-weight: 800; color: var(--white); margin-top: 8px; }

@media (max-width: 760px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: block; }
  .card-grid { flex-direction: column; }
}
