/* ============================================================
   Beton Hrvatska — glavni stilovi
   Paleta: tamna pozadina + zlatni akcent (prema logotipu)
   ============================================================ */

:root {
  --bg: #0c0d10;
  --surface: #14161a;
  --surface-2: #1b1e24;
  --border: #262a32;
  --text: #eef0f3;
  --muted: #a9afba;
  --gold: #e9b949;
  --gold-dark: #c99a2e;
  --wa: #25d366;
  --wa-dark: #1ebe5d;
  --radius: 14px;
  --maxw: 1140px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: #f5cd6b; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Tipografija ---------- */
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

.section { padding: 72px 0; }
.section-alt { background: var(--surface); }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .kicker {
  display: inline-block;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:active { transform: scale(.98); }

.btn-gold {
  background: linear-gradient(135deg, #f2cd63, var(--gold) 45%, var(--gold-dark));
  color: #17130a;
  box-shadow: 0 6px 20px rgba(233, 185, 73, .25);
}
.btn-gold:hover { color: #17130a; box-shadow: 0 8px 26px rgba(233, 185, 73, .4); transform: translateY(-1px); }

.btn-wa { background: var(--wa); color: #06130a; }
.btn-wa:hover { background: #3adf78; color: #06130a; transform: translateY(-1px); }
.btn-wa svg { flex: none; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Zaglavlje ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 13, 16, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 74px;
}
.logo img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--text); font-weight: 600; font-size: .97rem; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: .97rem;
  white-space: nowrap;
}
.header-phone svg { color: var(--gold); }
.header-cta .btn { padding: 11px 20px; font-size: .92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  background: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-img, url("../img/hero-tamna-ograda.jpg"));
  background-size: cover;
  background-position: center;
  opacity: .38;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 13, 16, .25), rgba(12, 13, 16, .78) 75%, var(--bg));
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 700px; }
.hero .kicker {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 14px;
}
.hero p.lead { color: #cfd3da; font-size: 1.15rem; margin: 18px 0 30px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-badges li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d6dae1;
  font-size: .93rem;
  font-weight: 600;
}
.hero-badges svg { color: var(--gold); flex: none; }

/* ---------- Kartice pogodnosti ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(233, 185, 73, .12);
  color: var(--gold);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Modeli / teksture ---------- */
.model-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.model-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .4s ease; }
.model-card:hover img { transform: scale(1.04); }
.model-card .model-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(10, 11, 13, .92));
}
.model-card .model-label h3 { color: #fff; }
.model-card .model-label p { color: #c7ccd4; font-size: .88rem; margin-top: 2px; }

/* ---------- Koraci ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2cd63, var(--gold-dark));
  color: #17130a;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Galerija ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.g-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .35s ease; }
.g-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 6, 8, .93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .18); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- CTA vrpca ---------- */
.cta-band {
  background:
    linear-gradient(90deg, rgba(12, 13, 16, .92), rgba(12, 13, 16, .78)),
    url("../img/ograda-rasvjeta-vecer.jpg") center / cover;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Obrazac za ponudu ---------- */
.quote-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.quote-box h3 { font-size: 1.35rem; margin-bottom: 4px; }
.quote-box .form-note { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }

.form-field { margin-bottom: 15px; }
.form-field label {
  display: block;
  font-size: .87rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #d5d9e0;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-box .btn { width: 100%; margin-top: 6px; }
.form-privacy { color: #7b818c; font-size: .78rem; margin-top: 12px; text-align: center; }

/* Honeypot — sakriveno od ljudi */
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* ---------- LP specifično ---------- */
.lp-hero { padding: 64px 0 72px; }
.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.lp-list { margin: 22px 0 28px; }
.lp-list li {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #d6dae1;
  margin-bottom: 12px;
  font-weight: 500;
}
.lp-list svg { color: var(--gold); flex: none; margin-top: 4px; }

/* FAQ */
.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; font-weight: 800; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--muted); }

/* ---------- Podnožje ---------- */
.site-footer {
  background: #0a0b0d;
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer .logo img { height: 44px; margin-bottom: 16px; }
.site-footer p { color: var(--muted); }
.site-footer h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #d5d9e0;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: var(--muted); }
.site-footer ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: #7b818c;
  font-size: .85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Plutajući WhatsApp gumb ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  opacity: .45;
  z-index: -1;
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .45; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Plutajući gumb za poziv: samo mobitel, uz WhatsApp, malo manji */
.call-float {
  position: fixed;
  right: 92px;
  bottom: 24px;
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: #0c0d10;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.call-float:hover { transform: scale(1.08); color: #0c0d10; }
@media (max-width: 720px) {
  .call-float { display: flex; }
}

/* ---------- Mobilna traka (LP) ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  background: rgba(10, 11, 13, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-bar .btn { flex: 1; padding: 13px 10px; font-size: .95rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin-bottom: 18px;
}
.contact-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.contact-card h3 svg { color: var(--gold); }
.contact-card p, .contact-card a.big { color: var(--muted); }
.contact-card a.big { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.contact-card a.big:hover { color: var(--gold); }

/* ---------- Responzivno ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .hero { padding: 64px 0 60px; }

  .main-nav {
    position: fixed;
    top: 74px;
    left: 0; right: 0;
    background: rgba(12, 13, 16, .98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-phone span { display: none; }
  .header-cta .btn-gold { display: none; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .mobile-bar { display: flex; }
  .has-mobile-bar .wa-float { bottom: 84px; }
  .has-mobile-bar .site-footer { padding-bottom: 96px; }
}

/* ============================================================
   Nadogradnja izgleda: font, animacije, tajmer, prije/poslije
   ============================================================ */

/* Display font za naslove i gumbe */
h1, h2, h3, .btn, .kicker, .hero .kicker, .section-head .kicker {
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Kartice: blagi lift na hover */
.card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 185, 73, .45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}

/* ---------- Tajmer u obrascu ---------- */
.timer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(233, 185, 73, .1);
  border: 1px solid rgba(233, 185, 73, .38);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.timer-bar p { color: #ded5bc; font-size: .9rem; line-height: 1.45; margin: 0; }
.timer-bar .js-timer {
  display: inline-block;
  min-width: 52px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #fff;
  background: rgba(233, 185, 73, .22);
  border-radius: 6px;
  padding: 1px 7px;
}
.timer-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  animation: timer-pulse 1.4s ease-out infinite;
}
@keyframes timer-pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 185, 73, .55); }
  70% { box-shadow: 0 0 0 10px rgba(233, 185, 73, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 185, 73, 0); }
}

/* ---------- Prije / poslije klizač ---------- */
.ba-wrap { max-width: 780px; margin: 0 auto; }
.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  box-shadow: var(--shadow);
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-slider .ba-after { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  margin-left: -1.5px;
  background: var(--gold);
}
.ba-handle::after {
  content: "◂ ▸";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: #17130a;
  font-size: .8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}
.ba-label {
  position: absolute;
  top: 14px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(10, 11, 13, .78);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
}

/* ---------- Scroll reveal animacije ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .65s ease, transform .65s ease;
  }
  .reveal.in { opacity: 1; transform: none; }
}
