/* ===========================================================
   DESIGN SYSTEM — CSS Custom Properties
   =========================================================== */
:root {
  --ink:           #211C19;
  --paper:         #F4EFE7;
  --paper-dim:     #E9E1D4;
  --cordovan:      #5E2A24;
  --cordovan-deep: #3D1A16;
  --tan:           #C49A6C;
  --tan-light:     #E0C39A;
  --rubber:        #2C2724;
  --line:          rgba(33,28,25,.14);
  --line-light:    rgba(244,239,231,.18);

  --max-w:    1200px;
  --pad-x:    clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --ease:      cubic-bezier(.25,.46,.45,.94);
  --dur:       220ms;
}

/* ===========================================================
   RESET
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ===========================================================
   BASE
   =========================================================== */
body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ===========================================================
   TYPOGRAPHY UTILITIES
   =========================================================== */
.eyebrow {
  font-family: 'Spline Sans Mono', monospace;
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
}

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: -.01em;
  line-height: 1.05;
  font-weight: 800;
}

/* ===========================================================
   LAYOUT
   =========================================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--section-y);
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8125rem 1.875rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .9375rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  cursor: pointer;
}

.btn--primary {
  background: var(--tan);
  color: var(--cordovan-deep);
  border: 2px solid var(--tan);
}
.btn--primary:hover { background: var(--tan-light); border-color: var(--tan-light); }

.btn--outline {
  background: transparent;
  color: var(--paper);
  border: 2px solid rgba(244,239,231,.35);
}
.btn--outline:hover { border-color: var(--tan); color: var(--tan); }

.btn:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

/* ===========================================================
   LAYER DIVIDER (potpisni element — vodoravna traka)
   =========================================================== */
.layer-divider {
  display: flex;
  height: 10px;
  width: 100%;
}
.layer-divider__strip { flex: 1; height: 100%; }

/* ===========================================================
   NAVIGATION
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,239,231,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 4rem;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  text-decoration: none;
  color: inherit;
}

.nav__logo-img {
  height: 42px;
  width: auto;
  max-width: 180px;
  display: block;
}

.nav__tagline { color: var(--ink); opacity: .55; line-height: 1; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-weight: 500;
  font-size: .9375rem;
  color: var(--ink);
  opacity: .75;
  transition: opacity var(--dur) var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:focus-visible { outline: 2px solid var(--cordovan); outline-offset: 3px; border-radius: 2px; }

.nav__link--cta {
  background: var(--cordovan);
  color: var(--paper) !important;
  padding: .5rem 1.25rem;
  border-radius: 4px;
  opacity: 1;
  transition: background var(--dur) var(--ease);
}
.nav__link--cta:hover { background: var(--cordovan-deep); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__hamburger:focus-visible { outline: 2px solid var(--cordovan); outline-offset: 2px; }
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  background:
    url('hero_background_1a.jpg') center / cover no-repeat;
  color: var(--paper);
  padding-block: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  position: relative;
}

/* Tamni overlay — lijevo gušći (tekst), desno prozirniji (slika) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(61,26,22,.92) 0%,
    rgba(61,26,22,.80) 45%,
    rgba(61,26,22,.55) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  display: none;
}

.hero__inner {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  color: var(--tan);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  color: var(--paper);
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero__accent {
  color: var(--tan);
  font-style: italic;
}

.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: rgba(244,239,231,.72);
  max-width: 48ch;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__content {
  margin-left: clamp(-14rem, calc((100vw - 960px) * -0.4667), 0px);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content { animation: fade-up 650ms var(--ease) both; }
}

/* ===========================================================
   TRUST STRIP
   =========================================================== */
.trust-strip {
  background: var(--rubber);
  padding-block: 2.75rem;
}

.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-align: center;
}

.trust-item__number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  color: var(--tan);
  letter-spacing: -.025em;
  line-height: 1;
}

.trust-item__label {
  font-size: .875rem;
  color: rgba(244,239,231,.65);
  font-weight: 500;
}

.trust-divider {
  width: 1px;
  height: 3.5rem;
  background: var(--line-light);
}

/* ===========================================================
   SECTION HEADER (shared)
   =========================================================== */
.section__header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__eyebrow { color: var(--cordovan); margin-bottom: .75rem; }
.section__eyebrow--light { color: var(--tan-light); }
.section__eyebrow--tan   { color: var(--tan); }

.section__title {
  font-size: clamp(1.875rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}
.section__title--light { color: var(--paper); }

.section__lead {
  color: rgba(33,28,25,.68);
  font-size: 1.0625rem;
  line-height: 1.72;
}
.section__lead--light { color: rgba(244,239,231,.72); }

/* ===========================================================
   PRODUCT CARD GRID (Ponuda)
   =========================================================== */
.ponuda { background: var(--paper); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.125rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover {
  background: var(--paper-dim);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(33,28,25,.09);
}

.card__icon {
  width: 48px;
  height: 48px;
  color: var(--cordovan);
  margin-bottom: 1.125rem;
}

.card__title {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: -.01em;
  line-height: 1.3;
  margin-bottom: .5rem;
  color: var(--ink);
}

.card__desc {
  font-size: .9375rem;
  color: rgba(33,28,25,.62);
  line-height: 1.52;
}

/* ===========================================================
   SERVICES + ABOUT
   =========================================================== */
.servis {
  background: var(--ink);
  color: var(--paper);
}

.servis__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  margin-top: 2rem;
}

.check-list__item {
  display: flex;
  align-items: center;
  gap: .875rem;
  font-size: 1.0625rem;
  color: rgba(244,239,231,.88);
}

.check-list__item::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cordovan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M6 11l4 4 6-6.5' stroke='%23F4EFE7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.onama {
  border-left: 2px solid var(--line-light);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

.onama__text {
  color: rgba(244,239,231,.72);
  font-size: 1.0625rem;
  line-height: 1.78;
  margin-top: 1rem;
  margin-bottom: 2.25rem;
}

.onama__year {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.onama__year-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  color: var(--tan);
  letter-spacing: -.04em;
  line-height: 1;
}

.onama__year-label { color: rgba(244,239,231,.45); }

/* ===========================================================
   CONTACT
   =========================================================== */
.kontakt { background: var(--paper); }

.kontakt__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.kontakt__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.625rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: box-shadow var(--dur) var(--ease);
}
.kontakt__item:hover { box-shadow: 0 4px 16px rgba(33,28,25,.08); }

.kontakt__icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  color: var(--cordovan);
  margin-top: .125rem;
}

.kontakt__label { color: var(--cordovan); margin-bottom: .3rem; }

.kontakt__value {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.kontakt__value[href]:hover { text-decoration: underline; text-underline-offset: 3px; }
.kontakt__value--muted { color: rgba(33,28,25,.5); font-style: italic; font-weight: 400; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: var(--cordovan-deep);
  color: var(--paper);
  padding-block: 2.75rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand { display: flex; align-items: baseline; gap: .5rem; }

.footer__logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.025em;
  color: var(--tan);
}

.footer__tagline { color: rgba(244,239,231,.45); font-size: .65rem; }
.footer__copy { font-size: .875rem; color: rgba(244,239,231,.5); }

/* ===========================================================
   SCROLL-REVEAL (JS klasa)
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 768px) {
  .nav__hamburger { display: flex; }

  .nav__menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--pad-x) 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
    z-index: 99;
    box-shadow: 0 8px 24px rgba(33,28,25,.12);
  }

  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__menu li { border-bottom: 1px solid var(--line); }
  .nav__menu li:last-child { border-bottom: none; padding-top: .75rem; }
  .nav__link { display: block; padding: .875rem 0; font-size: 1rem; opacity: 1; }
  .nav__link--cta { display: inline-flex; padding: .625rem 1.25rem; margin-top: .25rem; }

.servis__inner { grid-template-columns: 1fr; gap: 3rem; }
  .onama { border-left: none; border-top: 1px solid var(--line-light); padding-left: 0; padding-top: 2.5rem; }

  .trust-divider { display: none; }
  .trust-strip__inner { gap: 2rem; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; }
  .btn { width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .kontakt__grid { grid-template-columns: 1fr; }
}
