/* ============================================
   Dekorativna Cigla Niš — glavni stilovi
   ============================================ */

:root {
  --brick: #b3562e;
  --brick-dark: #8f4223;
  --brick-light: #d97b4f;
  --clay: #e8d9cb;
  --cream: #faf6f1;
  --paper: #ffffff;
  --ink: #2b2320;
  --ink-soft: #5c4f47;
  --line: #e5d9cd;
  --gold: #c89b5a;
  --ok: #4a7c59;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 35, 32, .08);
  --shadow-lg: 0 18px 50px rgba(43, 35, 32, .14);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brick); text-decoration: none; }
a:hover { color: var(--brick-dark); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 241, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  background:
    linear-gradient(0deg, transparent 46%, var(--clay) 46%, var(--clay) 54%, transparent 54%),
    linear-gradient(90deg, transparent 46%, var(--clay) 46%, var(--clay) 54%, transparent 54%),
    var(--brick);
  background-size: 100% 50%, 50% 100%, 100% 100%;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 13px; border-radius: 8px; color: var(--ink-soft);
  font-size: .92rem; font-weight: 500; white-space: nowrap;
}
.main-nav a:hover { background: var(--clay); color: var(--ink); }
.main-nav a.active { background: var(--brick); color: #fff; }
.main-nav a.nav-cta { background: var(--ink); color: #fff; margin-left: 8px; }
.main-nav a.nav-cta:hover { background: var(--brick-dark); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; font-size: 1.2rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .main-nav a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #33241d 0%, #4a2e20 55%, #6b3a24 100%);
  color: #fff;
}
.hero-pattern { position: absolute; inset: 0; opacity: .16; }
.hero-inner {
  position: relative; max-width: 1180px; margin: 0 auto;
  padding: 96px 24px 104px; text-align: left;
}
.hero .eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12; max-width: 15em; margin-bottom: 22px;
}
.hero p.lead { font-size: 1.12rem; color: #ead9cc; max-width: 36em; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap; margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 28px;
}
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: #fff; }
.hero-stats .stat span { font-size: .85rem; color: #d9c2b2; }

/* Page hero (unutrašnje strane) */
.page-hero {
  background: linear-gradient(120deg, #33241d, #5a3322);
  color: #fff; padding: 64px 0 56px;
}
.page-hero .eyebrow {
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 10px 0 12px; }
.page-hero p { color: #ead9cc; max-width: 44em; }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; cursor: pointer; border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brick-dark); color: #fff; }
.btn-light-outline { background: transparent; color: var(--brick); border: 1.5px solid var(--brick); }
.btn-light-outline:hover { background: var(--brick); color: #fff; }

/* ---------- Sekcije ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow {
  font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brick); font-weight: 700;
}
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 8px 0 12px; }
.section-head p { color: var(--ink-soft); }

/* ---------- Kartice / mreže ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.card-media svg { width: 100%; height: 100%; }
.card-body { padding: 22px; }
.card-body h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
.card-body p { color: var(--ink-soft); font-size: .93rem; }
.card-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brick); background: var(--clay);
  padding: 4px 10px; border-radius: 99px; margin-bottom: 10px;
}

/* ---------- Feature liste ---------- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--clay); color: var(--brick);
  display: grid; place-items: center; font-size: 1.3rem;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 4px; }
.feature p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Koraci (kako radimo) ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  padding: 28px 0; border-bottom: 1px solid var(--line); counter-increment: step;
}
.step:last-child { border-bottom: none; }
.step .num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brick); color: #fff; font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700; display: grid; place-items: center;
}
.step h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); max-width: 56em; }
.step .step-meta { font-size: .82rem; color: var(--brick); font-weight: 600; margin-top: 8px; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.quote-card::before {
  content: "\201C"; font-family: var(--font-display); font-size: 4rem; line-height: 1;
  color: var(--clay); position: absolute; top: 14px; right: 22px;
}
.quote-card blockquote { font-size: .98rem; color: var(--ink); margin-bottom: 18px; }
.quote-card .who { display: flex; align-items: center; gap: 12px; }
.quote-card .who .avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--brick); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 1rem;
}
.quote-card .who b { display: block; font-size: .92rem; }
.quote-card .who span { font-size: .8rem; color: var(--ink-soft); }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }

/* ---------- Blog ---------- */
.post-meta { font-size: .8rem; color: var(--ink-soft); margin-bottom: 8px; }
.post-meta b { color: var(--brick); }
article.post {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; margin-bottom: 30px;
}
article.post h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 6px; }
article.post h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 22px 0 8px; }
article.post p { color: var(--ink-soft); margin-bottom: 12px; }
article.post ul { margin: 0 0 12px 22px; color: var(--ink-soft); }
article.post li { margin-bottom: 6px; }
.tip-box {
  background: var(--clay); border-left: 4px solid var(--brick);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 16px 0;
  font-size: .93rem;
}

/* ---------- Forme ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .85rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; background: var(--paper); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--brick-light); border-color: var(--brick);
}

/* ---------- CTA traka ---------- */
.cta-band {
  background: linear-gradient(110deg, var(--brick-dark), var(--brick));
  color: #fff; border-radius: 18px; padding: 48px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 6px; }
.cta-band p { color: #f3ddd0; }
.cta-band .btn { background: #fff; color: var(--brick-dark); }

/* ---------- Footer ---------- */
.site-footer { background: #241a15; color: #cbb8ab; margin-top: 76px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 56px 24px 28px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cbb8ab; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.footer-about p { font-size: .9rem; margin-top: 12px; max-width: 30em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  max-width: 1180px; margin: 0 auto; padding: 20px 24px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .82rem; color: #9c8a7e;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Dizajner studio ---------- */
.designer-layout { display: grid; grid-template-columns: 360px 1fr; gap: 30px; align-items: start; }
@media (max-width: 980px) { .designer-layout { grid-template-columns: 1fr; } }
.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.panel h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 14px; }
.panel + .panel { margin-top: 22px; }
.control { margin-bottom: 16px; }
.control label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; }
.control input[type="number"], .control select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: .93rem;
}
.control input[type="range"] { width: 100%; accent-color: var(--brick); }
.swatch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 52px; height: 52px; border-radius: 10px; cursor: pointer;
  border: 2.5px solid transparent; padding: 0; overflow: hidden;
}
.swatch.selected { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }
.canvas-wrap {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center;
}
.canvas-wrap canvas {
  max-width: 100%; border-radius: 10px; background: #eee;
  touch-action: none; cursor: crosshair;
}
.result-box {
  background: var(--clay); border-radius: 12px; padding: 18px 20px; margin-top: 16px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px;
  text-align: left;
}
.result-box .r b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--brick-dark); }
.result-box .r span { font-size: .78rem; color: var(--ink-soft); }
.mode-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.mode-tabs button {
  padding: 10px 18px; border-radius: 99px; border: 1.5px solid var(--line);
  background: var(--paper); font-family: inherit; font-weight: 600; font-size: .88rem; cursor: pointer;
}
.mode-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.designer-note { font-size: .82rem; color: var(--ink-soft); margin-top: 12px; }
.file-drop {
  border: 2px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center;
  color: var(--ink-soft); font-size: .9rem; cursor: pointer; transition: border-color .15s;
}
.file-drop:hover, .file-drop.drag { border-color: var(--brick); color: var(--brick); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; justify-content: center; }
.toolbar .btn { padding: 9px 18px; font-size: .85rem; }

/* ---------- Partneri ---------- */
.partner-type {
  border-left: 4px solid var(--brick); padding-left: 20px;
}
.partner-type h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 6px; }
.partner-type p { color: var(--ink-soft); font-size: .93rem; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.badge {
  font-size: .76rem; font-weight: 600; background: var(--clay); color: var(--brick-dark);
  padding: 5px 12px; border-radius: 99px;
}

/* ---------- Tabele (katalog specifikacije) ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.spec-table th { background: var(--clay); font-weight: 700; }
.table-scroll { overflow-x: auto; }
