/* ============================================================
   Door Expert — glavni stilovi
   Brend: Navy #16123F · Plava #1C75BC · Zlatna #D4A843
   Fontovi: Darker Grotesque (naslovi) · Roboto (tekst)
   Oštri kutevi (bez border-radiusa)
   ============================================================ */

:root {
  --navy: #16123F;
  --blue: #1C75BC;
  --gold: #D4A843;
  --footer: #0f0c29;
  --gray-bg: #F5F7FA;
  --text: #1a1730;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --white: #ffffff;
  --green: #25D366;
  --container: 1200px;
}

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Darker Grotesque", "Roboto", sans-serif;
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

a { text-decoration: none; transition: color .2s, background .2s, opacity .2s; }

/* nikad zaobljeni rubovi */
a, button, input, textarea, select, .btn, .card, img { border-radius: 0 !important; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 2px; background: var(--blue); display: inline-block; }
.eyebrow--light { color: var(--gold); }
.eyebrow--light::before { background: var(--gold); }

.section { padding: 5rem 0; }
.section--gray { background: var(--gray-bg); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.section--navy .section-head p { color: rgba(255,255,255,.7); }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 0 1.75rem; height: 3.5rem; cursor: pointer; border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #1a68a8; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { opacity: .9; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: #f1f1f1; }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.1); }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.site-logo { font-family: "Darker Grotesque", sans-serif; font-weight: 900; font-size: 1.9rem; color: var(--navy); letter-spacing: -.5px; }
.site-logo span { color: var(--blue); }
.main-nav { display: none; align-items: center; gap: 1.5rem; }
.main-nav a { font-size: .95rem; font-weight: 500; color: var(--navy); }
.main-nav a:hover { color: var(--blue); }
.header-cta { display: none; align-items: center; gap: 1.25rem; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--navy); }
.header-phone:hover { color: var(--blue); }

.nav-toggle { display: inline-flex; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

.mobile-nav { display: none; border-top: 1px solid var(--border); background: #fff; padding: 1rem 0; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: .75rem 0; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 1rem; }

@media (min-width: 1100px) {
  .main-nav, .header-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* ============================================================
   PRODUCTS (naslovni grid kategorija)
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: 1fr 1fr; } }

.cat-card { position: relative; overflow: hidden; display: block; background: var(--navy); aspect-ratio: 16/10; }
@media (min-width: 768px) { .cat-card { aspect-ratio: 3/2; } }
@media (min-width: 1024px) { .cat-card { aspect-ratio: 4/3; } }
@media (min-width: 1280px) { .cat-card { aspect-ratio: 3/2; } }

.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.2) 50%, transparent); }
.cat-card .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; }
@media (min-width: 768px) { .cat-card .label { padding: 2rem; } }
.cat-card .label .tag { color: rgba(255,255,255,.65); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 .4rem; }
.cat-card .label h3 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin: 0; }
.cat-card .label .bar { margin-top: 1rem; height: 2px; width: 2rem; background: var(--blue); transition: width .4s; }
.cat-card:hover .label .bar { width: 4rem; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { padding: 2.25rem 1.5rem; text-align: center; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-item .val { font-family: "Darker Grotesque", sans-serif; font-weight: 900; font-size: 1.8rem; color: var(--navy); line-height: 1.1; }
.trust-item .lbl { color: var(--text-muted); font-size: .95rem; margin-top: .25rem; }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .calc-grid { grid-template-columns: 1fr 340px; } }
.calc-step-title { font-size: 1.15rem; font-weight: 700; font-family: "Roboto",sans-serif; margin-bottom: 1rem; color: var(--navy); }
.calc-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.calc-tab { padding: .5rem 1rem; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: .85rem; text-transform: capitalize; font-weight: 600; color: var(--text-muted); }
.calc-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.calc-models { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 2rem; }
.calc-model { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: 1rem; border: 1px solid var(--border); background: #fff; cursor: pointer; text-align: left; font-weight: 600; color: var(--navy); }
.calc-model.active { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.calc-model .price { color: var(--blue); font-weight: 700; white-space: nowrap; }
.calc-addons { display: grid; gap: .5rem; }
.calc-addon { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.calc-addon.active { border-color: var(--blue); background: #f3f8fd; }
.calc-addon .a-label { font-size: .95rem; }
.calc-addon .a-price { color: var(--blue); font-weight: 700; white-space: nowrap; }
.calc-summary { background: var(--navy); color: #fff; padding: 1.75rem; position: sticky; top: 6rem; }
.calc-summary h3 { color: #fff; font-size: 1.4rem; margin-bottom: 1rem; }
.calc-summary .row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding: .4rem 0; color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.12); }
.calc-summary .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; padding-top: 1rem; border-top: 2px solid rgba(255,255,255,.25); }
.calc-summary .total .t-lbl { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.calc-summary .total .t-val { font-family: "Darker Grotesque", sans-serif; font-weight: 900; font-size: 2.2rem; color: var(--gold); }
.calc-summary .note { font-size: .72rem; color: rgba(255,255,255,.5); margin: .5rem 0 1.25rem; }
.calc-disclaimer { font-size: .8rem; color: var(--text-muted); margin-top: 1rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr .9fr; } }
.about-text p { color: rgba(255,255,255,.75); font-size: 1.05rem; }
.about-brands { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 2rem 0 1rem; }
.brand-logos { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.brand-logos span { font-family: "Darker Grotesque",sans-serif; font-weight: 900; font-size: 1.3rem; color: rgba(255,255,255,.85); letter-spacing: .05em; }
.about-stat { background: var(--blue); padding: 3rem 2rem; text-align: center; }
.about-stat .num { font-family: "Darker Grotesque",sans-serif; font-weight: 900; font-size: 4.5rem; line-height: 1; color: #fff; }
.about-stat .s-lbl { color: #fff; font-weight: 700; margin-top: .5rem; }
.about-stat .s-sub { color: rgba(255,255,255,.8); font-size: .9rem; }
.iso-badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.iso-badge { border: 1px solid rgba(255,255,255,.25); padding: .5rem .9rem; font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.85); }

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step { background: #fff; border: 1px solid var(--border); padding: 1.75rem 1.5rem; position: relative; }
.process-step .num { font-family: "Darker Grotesque",sans-serif; font-weight: 900; font-size: 2.5rem; color: var(--blue); line-height: 1; margin-bottom: .75rem; }
.process-step h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: .4rem; }
.process-step p { color: var(--text-muted); font-size: .9rem; margin: 0; }
.process-cta { text-align: center; margin-top: 3rem; }
.process-cta .note { color: var(--text-muted); font-size: .85rem; margin-top: 1rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info .info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info .info-item .ic { width: 2.75rem; height: 2.75rem; flex: none; background: var(--gray-bg); display: flex; align-items: center; justify-content: center; color: var(--blue); }
.contact-info .info-item .ic svg { width: 20px; height: 20px; }
.contact-info .lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.contact-info .val { font-weight: 600; color: var(--navy); }
.contact-map { margin-top: 1.5rem; }
.contact-map iframe { width: 100%; height: 260px; border: 0; filter: grayscale(20%); }
.contact-form { background: var(--navy); padding: 2.5rem; }
.contact-form h3 { color: #fff; font-size: 1.8rem; }
.contact-form .sub { color: rgba(255,255,255,.7); margin-bottom: 1.5rem; font-size: .95rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .8rem; color: rgba(255,255,255,.8); margin-bottom: .35rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #fff; font-family: inherit; font-size: .95rem;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.form-note { color: rgba(255,255,255,.5); font-size: .8rem; margin-left: .25rem; }
.form-status { padding: 1rem; margin-bottom: 1rem; font-size: .9rem; font-weight: 600; }
.form-status.ok { background: rgba(37,211,102,.15); color: #25D366; }
.form-status.err { background: rgba(255,80,80,.15); color: #ff8080; }

/* ============================================================
   PAGE HERO (katalog / faq / galerija / proizvod)
   ============================================================ */
.page-hero { background: var(--navy); color: #fff; padding: 4rem 0 3.5rem; position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); color: #fff; }
.page-hero .subtitle { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; margin-bottom: 1rem; }
.page-hero .intro { color: rgba(255,255,255,.75); max-width: 640px; font-size: 1.05rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 1.25rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 .4rem; }

/* ---------- Product grid (katalog) ---------- */
.prod-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 560px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }
.prod-card { display: block; background: #fff; border: 1px solid var(--border); overflow: hidden; }
.prod-card .thumb { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--gray-bg); }
.prod-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.prod-card:hover .thumb img { transform: scale(1.05); }
.prod-card .thumb .hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(22,18,63,.55); color: #fff; font-weight: 700; opacity: 0; transition: opacity .3s; }
.prod-card:hover .thumb .hover { opacity: 1; }
.prod-card .pc-body { padding: 1.1rem 1.25rem; }
.prod-card .pc-body h3 { font-size: 1.5rem; color: var(--navy); margin: 0; }
.prod-empty { padding: 3rem 0; color: var(--text-muted); }

/* ---------- Single product ---------- */
.product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1000px) { .product-layout { grid-template-columns: 1fr 1.1fr; } }
.product-gallery { position: sticky; top: 6rem; }
.product-gallery .main-img { aspect-ratio: 3/4; background: var(--gray-bg); overflow: hidden; }
.product-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); }
.product-info .cat-tag { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: .75rem; }
.product-specs { margin-top: 1.5rem; }
.product-specs .content { color: var(--text); }
.product-specs .content ul { padding-left: 1.2rem; }

/* ---------- Accordion (faq / addons / specs) ---------- */
.accordion-item { border: 1px solid var(--border); margin-bottom: .75rem; background: #fff; }
.accordion-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: none; border: 0; cursor: pointer; text-align: left; font-weight: 700; color: var(--navy); font-size: 1.05rem; font-family: inherit; }
.accordion-trigger .ico { flex: none; color: var(--blue); transition: transform .3s; }
.accordion-item.open .accordion-trigger .ico { transform: rotate(45deg); }
.accordion-panel { display: none; padding: 0 1.25rem 1.25rem; color: var(--text-muted); }
.accordion-item.open .accordion-panel { display: block; }
.faq-group-title { font-size: 1.8rem; color: var(--navy); margin: 2.5rem 0 1rem; }
.faq-group-title:first-child { margin-top: 0; }

/* ---------- Gallery ---------- */
.masonry { columns: 2; column-gap: 1rem; }
@media (min-width: 640px) { .masonry { columns: 3; } }
@media (min-width: 1024px) { .masonry { columns: 4; } }
.masonry figure { margin: 0 0 1rem; break-inside: avoid; overflow: hidden; cursor: pointer; }
.masonry img { width: 100%; display: block; transition: transform .5s ease; }
.masonry figure:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,8,25,.92); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox .lb-close { position: absolute; top: 1.25rem; right: 1.5rem; background: none; border: 0; color: #fff; cursor: pointer; }
.lightbox .lb-close svg { width: 34px; height: 34px; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; }
.lightbox .lb-prev { left: 1rem; } .lightbox .lb-next { right: 1rem; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--blue); color: #fff; padding: 3rem 0; }
.cta-banner .inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
@media (min-width: 768px) { .cta-banner .inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; }
.cta-banner p { color: rgba(255,255,255,.85); margin: .4rem 0 0; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* other categories strip */
.other-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 768px) { .other-cats { grid-template-columns: repeat(4,1fr); } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--footer); color: rgba(255,255,255,.7); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer-logo { font-family: "Darker Grotesque",sans-serif; font-weight: 900; font-size: 1.8rem; color: #fff; }
.footer-logo span { color: var(--blue); }
.footer-col h4 { color: #fff; font-size: 1.3rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a:hover { color: #fff; }
.footer-security { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold); font-weight: 700; margin-top: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.5rem 0; font-size: .85rem; display: flex; flex-direction: column; gap: .5rem; }
@media (min-width: 700px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.floating { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: flex; flex-direction: column; gap: .75rem; }
.floating a { width: 3.25rem; height: 3.25rem; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.floating .fab-call { background: var(--navy); }
.floating .fab-wa { background: var(--green); }
.floating a svg { width: 24px; height: 24px; }

/* ============================================================
   404
   ============================================================ */
.notfound { background: var(--navy); color: #fff; min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; }
.notfound h1 { font-size: clamp(3rem, 9vw, 7rem); color: #fff; }
.notfound h1 span { color: var(--gold); }
.notfound .nf-label { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.notfound p { color: rgba(255,255,255,.7); max-width: 480px; margin: 1rem auto 2rem; }
.notfound .nf-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.notfound .hanger { width: 90px; margin: 0 auto 2rem; transform-origin: top center; animation: swing 3.5s ease-in-out infinite; }
@keyframes swing { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* Current and reference amounts are independent; historical is never struck out. */
.de-current-price { display: block; color: var(--blue); font-weight: 700; }
.de-anchor-price { display: block; font-size: .8rem; font-weight: 400; line-height: 1.5; margin-top: .3rem; white-space: normal; }
.de-anchor-price[hidden] { display: none; }
.de-product-prices { margin: .75rem 0 1rem; }
.calc-model .price, .calc-addon .a-price { text-align: right; }
.calc-model:disabled, .calc-addon:disabled { opacity: .6; cursor: not-allowed; }
.calc-summary [data-calc-anchor-total] { margin-bottom: 1rem; }
