/* =====================================================================
   TOPALOVIĆPRO j.d.o.o.
   Paleta: silver beige / warm beige / champagne / off-white / anthracite
   ===================================================================== */
:root {
  /* --- Površine --- */
  --off-white:    #F7F5F0;
  --sand-100:     #EFEBE3;
  --sand-200:     #E3DDD2;
  --silver-beige: #D7D0C3;
  --warm-beige:   #C7BCA9;
  --champagne:    #B4A791;

  /* --- Tamni tonovi --- */
  --stone:        #8A8174;
  --anthracite:   #33322E;
  --charcoal:     #1E1E1B;
  --ink:          #14140F;

  /* --- Tekst --- */
  --text:         #2A2926;
  --text-soft:    #6B6559;
  --text-invert:  #EDE9E1;
  --line:         rgba(42, 41, 38, .14);
  --line-dark:    rgba(237, 233, 225, .16);

  /* --- Tipografija --- */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* --- Ritam --- */
  --gut:      clamp(1.5rem, 4vw, 2.5rem);
  --sec-pad:  clamp(5rem, 12vh, 9.5rem);
  --maxw:     1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, .35vw + .93rem, 1.075rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--champagne); color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--charcoal); color: var(--text-invert);
  padding: .8rem 1.2rem; font-size: .85rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; }

/* ============ LAYOUT ============ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.section { padding-block: var(--sec-pad); }

/* ============ TIPOGRAFIJA ============ */
.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0 0 1.4rem;
}
.h2 em { font-style: italic; color: var(--stone); }

.lead {
  font-size: clamp(1.075rem, .7vw + .95rem, 1.35rem);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 58ch;
  margin: 0 0 1.25rem;
}
.lead em { font-style: italic; color: var(--text); }

p { max-width: 62ch; margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

.intro__label {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.8rem;
}
.intro__label .idx {
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .05em;
  padding-right: .9rem;
  border-right: 1px solid var(--line);
}

.sec-head { max-width: 62ch; margin-bottom: clamp(3rem, 6vw, 4.5rem); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 2.2rem;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .45s var(--ease), color .45s var(--ease),
  border-color .45s var(--ease), transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--light { background: var(--off-white); color: var(--ink); }
.btn--light:hover { background: var(--silver-beige); }

.btn--ghost { border-color: rgba(247,245,240,.42); color: var(--text-invert); }
.btn--ghost:hover { background: rgba(247,245,240,.1); border-color: var(--off-white); }

.btn--dark { background: var(--charcoal); color: var(--text-invert); border-color: var(--charcoal); }
.btn--dark:hover { background: var(--anthracite); }

.btn--outline { border-color: var(--line); color: var(--text); }
.btn--outline:hover { background: var(--off-white); border-color: var(--stone); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: auto;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: .45rem;
  transition: gap .4s var(--ease), border-color .4s var(--ease);
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 1.1rem; border-color: var(--stone); }

/* ============ NAVIGACIJA ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(30, 30, 27, .72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s var(--ease);
}
.nav.is-stuck {
  background: rgba(30, 30, 27, .96);
  border-bottom-color: var(--line-dark);
}

.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: .7rem var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo img {
  width: clamp(150px, 17vw, 205px);
  height: auto;
  mix-blend-mode: screen;
  filter: grayscale(85%) sepia(15%) brightness(1.2); /* Prigušuje narančastu */
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 2.6vw, 2.5rem);
}
.nav__links a {
  position: relative;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(237, 233, 225, .82);
  padding-block: .4rem;
  transition: color .35s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--warm-beige);
  transition: width .45s var(--ease);
}
.nav__links a:hover { color: var(--off-white); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  border: 1px solid rgba(237, 233, 225, .35);
  padding: .78rem 1.5rem !important;
  color: var(--off-white) !important;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: rgba(247, 245, 240, .12); border-color: var(--warm-beige); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  padding: 0;
}
.nav__burger span {
  display: block; height: 1px; width: 26px;
  background: var(--off-white);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  animation: heroDrift 26s var(--ease) forwards;
}

@keyframes heroDrift {
  from { transform: scale(1.085); }
  to   { transform: scale(1); }
}

.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20,20,15,.88) 0%, rgba(20,20,15,.45) 38%, rgba(20,20,15,.12) 70%, rgba(20,20,15,.42) 100%);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gut) clamp(3.5rem, 8vh, 6rem);
  color: var(--text-invert);
}

.hero__eyebrow {
  display: flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(237, 233, 225, .78);
  margin: 0 0 1.5rem;
}
.hero__eyebrow span { font-weight: 300; letter-spacing: .18em; color: var(--warm-beige); }

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: .95;
  letter-spacing: -.025em;
  margin: 0 0 1.75rem;
  max-width: 18ch;
}
.hero__title em { font-style: italic; color: var(--silver-beige); }

.hero__lead {
  max-width: 48ch;
  font-size: clamp(1.05rem, .8vw + .9rem, 1.3rem);
  line-height: 1.65;
  color: rgba(237, 233, 225, .84);
  margin: 0 0 2.5rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid rgba(237, 233, 225, .18);
  background: rgba(20, 20, 15, .4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__strip span {
  flex: 1 1 33%;
  padding: 1.15rem var(--gut);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(237, 233, 225, .72);
  text-align: center;
  border-left: 1px solid rgba(237, 233, 225, .13);
}
.hero__strip span:first-child { border-left: 0; }

/* ============ UVOD ============ */
.intro { background: var(--off-white); }
.intro__grid {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.intro__label { margin-bottom: 0; }
.intro__body .intro__label { margin-bottom: 1.8rem; }

/* ============ CITAT ============ */
.quote {
  background: var(--charcoal);
  color: var(--text-invert);
  padding-block: clamp(4.5rem, 11vh, 8rem);
}
.quote blockquote {
  margin: 0;
  max-width: 34ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 3.1rem);
  line-height: 1.22;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.quote em { font-style: italic; color: var(--warm-beige); }

/* ============ PRISTUP / KORACI ============ */
.approach { background: var(--sand-100); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line);
}
.step {
  padding: 2.4rem 1.6rem 2.6rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.step + .step { padding-left: 1.6rem; }
.step + .step::before {
  content: "";
  position: absolute; left: 0; top: 2.4rem; bottom: 2.6rem;
  width: 1px; background: var(--line);
}
.step__num {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .1em;
  color: var(--champagne);
  margin-bottom: 1.2rem;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .7rem;
}
.step p { font-size: .94rem; line-height: 1.65; color: var(--text-soft); max-width: 32ch; margin: 0; }

/* ============ ISKUSTVO ============ */
.exp { background: var(--off-white); }
.exp__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.exp__media { position: sticky; top: 110px; }
.exp__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(.92);
}
.exp__caption {
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--stone);
  max-width: 30ch;
}
.ticks { margin: 0 0 1.5rem; display: grid; gap: .85rem; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 52ch;
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .72em;
  width: 11px; height: 1px;
  background: var(--champagne);
}

/* ============ USLUGE ============ */
.services { background: var(--sand-200); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  background: var(--sand-100);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  transition: background .5s var(--ease), transform .5s var(--ease);
}
.card:hover { background: var(--off-white); }
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.6vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
}
.card p { font-size: .95rem; line-height: 1.7; color: var(--text-soft); margin: 0; max-width: 38ch; }

.card--cta { background: var(--charcoal); color: var(--text-invert); }
.card--cta:hover { background: var(--anthracite); }
.card--cta p { color: rgba(237, 233, 225, .74); }
.card--cta .link-arrow { color: var(--text-invert); border-color: var(--line-dark); }
.card--cta .link-arrow:hover { border-color: var(--warm-beige); }

/* ============ GALERIJA ============ */
.gallery { background: var(--off-white); padding-bottom: 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--sand-200);
  margin-top: clamp(1rem, 3vw, 2rem);
}
.tile { position: relative; margin: 0; overflow: hidden; grid-column: span 2; background: var(--sand-100); }
.tile--wide { grid-column: span 3; }
.tile img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .7s var(--ease);
  filter: saturate(.9);
}
.tile:hover img { transform: scale(1.045); filter: saturate(1); }

.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.4rem 1.2rem;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-invert);
  background: linear-gradient(to top, rgba(20,20,15,.78), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.tile:hover figcaption, .tile:focus-within figcaption { opacity: 1; transform: none; }

/* ============ KONTAKT ============ */
.contact { background: var(--sand-100); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.details {
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.6rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.details dt {
  font-size: .7rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--stone);
  margin-bottom: .5rem;
}
.details dd { margin: 0; font-size: 1.05rem; }
.details a { border-bottom: 1px solid var(--line); transition: border-color .35s var(--ease); }
.details a:hover { border-color: var(--text); }

.quick { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.form { display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .5rem; }
.field label {
  font-size: .7rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--stone);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: .95rem 1.1rem;
  font-size: 1rem;
  font-weight: 300;
  border-radius: 0;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--stone);
  background: #fff;
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #9E5B4A; }
.form .btn { justify-self: start; margin-top: .5rem; }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--text-invert);
  padding-block: clamp(3rem, 7vh, 5rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.footer__brand { display: flex; align-items: center; gap: 1.3rem; }
.footer__brand img { width: 88px; height: auto; mix-blend-mode: screen; filter: grayscale(85%) sepia(15%) brightness(1.2); }
.footer__brand p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.8;
  letter-spacing: .06em;
  color: rgba(237, 233, 225, .68);
}
.footer__brand a {
  color: var(--text-invert);
  border-bottom: 1px solid var(--line-dark);
  transition: border-color .35s var(--ease);
}
.footer__brand a:hover { border-color: var(--warm-beige); }

.footer__nav { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; justify-content: center; }
.footer__nav a {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(237, 233, 225, .7);
  transition: color .35s var(--ease);
}
.footer__nav a:hover { color: var(--off-white); }

.footer__legal {
  margin: 0;
  font-size: .74rem;
  line-height: 1.8;
  letter-spacing: .06em;
  color: rgba(237, 233, 225, .5);
  text-align: right;
}

/* ============ REVEAL ANIMACIJE ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1.is-visible { transition-delay: .09s; }
.reveal--d2.is-visible { transition-delay: .18s; }
.reveal--d3.is-visible { transition-delay: .27s; }
.reveal--d4.is-visible { transition-delay: .36s; }
.reveal--d5.is-visible { transition-delay: .45s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1040px) {
  .exp__grid, .contact__grid { grid-template-columns: 1fr; }
  .exp__media { position: static; max-width: 460px; }
  .intro__grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .tile, .tile--wide { grid-column: span 2; }
}

@media (max-width: 820px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5.5rem var(--gut) 2rem;
    background: rgba(20, 20, 15, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .55s var(--ease);
  }
  .nav__links.is-open { clip-path: inset(0 0 0 0); }
  .nav__links a {
    padding: 1.15rem 0;
    font-size: .9rem;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav__links a::after { display: none; }
  .nav__cta {
    margin-top: 1.4rem;
    text-align: center;
    border-bottom: 1px solid rgba(237,233,225,.35) !important;
  }
  .hero__strip span { flex: 1 1 100%; border-left: 0; border-top: 1px solid rgba(237,233,225,.13); }
  .hero__strip span:first-child { border-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 2rem 0; padding-left: 0; }
  .step + .step::before { display: none; }
  .step p { max-width: none; }
  .field-row { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; text-align: left; }
  .footer__nav { justify-content: flex-start; }
  .footer__legal { text-align: left; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .tile, .tile--wide { grid-column: span 1; }
  .tile figcaption { opacity: 1; transform: none; }
  .btn { width: 100%; }
  .details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { animation: none; }
}

/* ============ FORMSPREE PORUKE ============ */
[data-fs-success], [data-fs-error] {
  display: none;
  margin-bottom: 1.5rem;
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  animation: fadeIn 0.4s ease;
}
[data-fs-success] {
  background-color: var(--sand-100);
  border-left: 3px solid var(--champagne);
  color: var(--text);
}
[data-fs-error] {
  background-color: #FDF3F1;
  border-left: 3px solid #9E5B4A;
  color: #9E5B4A;
}
.field-error {
  display: block;
  font-size: 0.8rem;
  color: #9E5B4A;
  margin-top: 0.4rem;
}
.field-error:empty {
  display: none;
}
[data-fs-submit-btn]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ LANDING PAGE (fasade.html & galerija.html) ============ */
.landing-header {
  padding-top: 180px;
  background: var(--off-white);
  padding-bottom: 3rem;
}
.landing-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}
.benefit-item {
  border-left: 2px solid var(--champagne);
  padding-left: 1.5rem;
}
.benefit-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.benefit-item p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
}
.text-center {
  text-align: center;
  margin-top: -3rem;
  margin-bottom: 2rem;
}