/* ========== HEADER (compact white per mockup) ========== */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--smoke);
  transition: box-shadow var(--t-base) var(--ease-out-quart),
              transform var(--t-base) var(--ease-out-quart);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(0, 30, 60, 0.06);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

/* Brand logo — PNG image from .pen design */
.site-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--t-base) var(--ease-out-quart);
}

.site-header__brand:hover {
  transform: scale(1.03);
}

.brand-logo {
  display: inline-block;
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* Center nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.site-nav__link {
  position: relative;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  transition: color var(--t-base) var(--ease-out-quart);
}

.site-nav__link:hover {
  color: var(--green);
}

.site-nav__link.is-active {
  color: var(--green);
  font-weight: 600;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-base) var(--ease-out-quart);
}

.site-nav__link.is-active::after,
.site-nav__link:hover::after {
  transform: scaleX(1);
}

/* Right cluster */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-shrink: 0;
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  transition: color var(--t-base) var(--ease-out-quart);
}

.site-header__phone:hover { color: var(--green); }

.site-header__phone svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.site-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--pale-gray);
  border: 1px solid var(--smoke);
  text-decoration: none;
  border-radius: var(--r-md);
  transition: all var(--t-base) var(--ease-out-quart);
}

.site-header__back:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 41px;
  padding: 0 22px;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 150, 55, 0.28);
  transition: background var(--t-base) var(--ease-out-quart),
              transform var(--t-base) var(--ease-out-quart),
              box-shadow var(--t-base) var(--ease-out-quart);
}

.site-header__cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 150, 55, 0.4);
}

.site-header__burger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.site-header__burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--charcoal);
  transition: all var(--t-base) var(--ease-out-quart);
}

.site-header__burger span:nth-child(1) { top: 14px; }
.site-header__burger span:nth-child(2) { top: 21px; }
.site-header__burger span:nth-child(3) { top: 28px; }

body.drawer-open .site-header__burger span:nth-child(1) {
  top: 21px; transform: rotate(45deg);
}
body.drawer-open .site-header__burger span:nth-child(2) { opacity: 0; }
body.drawer-open .site-header__burger span:nth-child(3) {
  top: 21px; transform: rotate(-45deg);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 95;
  padding: 80px var(--sp-6) var(--sp-6);
  transform: translateX(100%);
  transition: transform var(--t-base) var(--ease-out-expo);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

body.drawer-open .drawer { transform: translateX(0); }

.drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out-quart);
  z-index: 92;
}

body.drawer-open .drawer__overlay {
  opacity: 1;
  pointer-events: auto;
}

.drawer__nav { display: flex; flex-direction: column; gap: 4px; }

.drawer__link {
  display: block;
  padding: var(--sp-4) var(--sp-3);
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--smoke);
}

.drawer__link.is-active {
  color: var(--green);
  font-weight: 600;
}

.drawer__cta {
  margin-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

@media (max-width: 1100px) {
  .site-header__phone { display: none; }
}

@media (max-width: 992px) {
  .site-nav,
  .site-header__phone,
  .site-header__back {
    display: none;
  }
  .site-header__burger { display: block; }
  .site-header__inner { justify-content: space-between; }
}

/* ========== "Preuzmite katalog" pre-footer banner ========== */

.preuzmite-banner {
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--sp-6) 0;
}

.preuzmite-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.preuzmite-banner__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}

.preuzmite-banner__title::before {
  content: "";
  width: 3px;
  height: 22px;
  background: var(--green);
}

.preuzmite-banner__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 41px;
  padding: 0 20px;
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--t-base) var(--ease-out-quart),
              transform var(--t-base) var(--ease-out-quart);
}

.btn-download:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.btn-download svg {
  width: 14px;
  height: 14px;
}

/* ========== FOOTER ========== */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.76);
  padding: var(--sp-12) 0 var(--sp-6);
  position: relative;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-8);
}

.site-footer__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-4);
}

.site-footer__about {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--sp-4);
}

.site-footer__col h6 {
  color: var(--white);
  margin-bottom: var(--sp-4);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.site-footer__list a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--t-base) var(--ease-out-quart),
              padding-left var(--t-base) var(--ease-out-quart);
  display: inline-flex;
  align-items: center;
}

.site-footer__list a:hover {
  color: var(--white);
  padding-left: 4px;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: 14px;
}

.site-footer__contact a,
.site-footer__contact span {
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  gap: var(--sp-2);
  align-items: flex-start;
  text-decoration: none;
  transition: color var(--t-base);
}

.site-footer__contact a:hover { color: var(--white); }

.site-footer__contact svg {
  width: 14px;
  height: 14px;
  color: var(--green);
  margin-top: 4px;
  flex-shrink: 0;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__bottom a {
  color: inherit;
  text-decoration: underline;
}

.site-footer__bottom a:hover { color: var(--white); }

@media (max-width: 992px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}

@media (max-width: 576px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* main padding so content starts under sticky header */
main { padding-top: 0; }
main:not(.has-hero) { padding-top: 0; }
