/* ==========================================
   ROYAL 2025 d.o.o. — style.css v2.0
   Paleta: krem/topla bela dominantna,
   tamno plava samo kao akcent (footer, badges)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── RESET ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; color: #3D3426; background: #FAFAF5; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ── VARIABLES ──────────────────────────── */
:root {
  --bg:         #FAFAF5;
  --bg-soft:    #F2EDE3;
  --bg-dark:    #E8E0D0;
  --text:       #3D3426;
  --muted:      #7A6E61;
  --gold:       #CBB373;
  --gold-dark:  #A8883A;
  --gold-light: #DCC896;
  --blue:       #1F2A53;
  --blue-dark:  #141B38;
  --white:      #FFFFFF;
  --shadow:     0 2px 16px rgba(61,52,38,.08);
  --shadow-lg:  0 8px 32px rgba(61,52,38,.14);
  --r:          6px;
  --r-lg:       12px;
  --t:          0.28s ease;
  --max:        1160px;
}

/* ── TYPOGRAPHY ─────────────────────────── */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); }
h4 { font-size: 1rem; }
p  { color: var(--muted); line-height: 1.75; }

/* ── LAYOUT ─────────────────────────────── */
.container  { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section-sm { padding: 48px 0; }

.section-header { text-align: center; max-width: 580px; margin: 0 auto 48px; }
.section-header p { margin-top: 12px; }
.section-header h2::after { content: ''; display: block; width: 48px; height: 2px; background: var(--gold); margin: 12px auto 0; }

/* ── BUTTONS ─────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px; border-radius: var(--r); font-size: .92rem; font-weight: 600; letter-spacing: .02em; transition: all var(--t); border: 2px solid transparent; cursor: pointer; }
.btn-lg { padding: 15px 38px; font-size: .98rem; }

.btn-gold  { background: var(--gold); color: var(--blue-dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(203,179,115,.35); }

.btn-blue  { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--bg-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }

.btn-ghost-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ── BADGE ──────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; background: var(--blue); color: var(--gold); margin-bottom: 18px; }

/* ── NAVIGATION ─────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 12px 0;
  background: rgba(250,250,245,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), padding var(--t);
}
.nav.scrolled {
  border-color: var(--bg-dark);
  box-shadow: 0 2px 16px rgba(61,52,38,.08);
  padding: 8px 0;
}
.nav-inner { display: flex; align-items: center; gap: 24px; }

/* Logo in nav */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-wrap { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.logo-img { height: 76px; width: auto; filter: drop-shadow(0 1px 3px rgba(80,55,10,.18)); }
.logo-sub { font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 3px; color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-links a { color: var(--muted); font-size: .87rem; font-weight: 500; padding: 7px 13px; border-radius: var(--r); transition: all var(--t); }
.nav-links a:hover, .nav-links a.active { color: var(--gold-dark); background: var(--bg-soft); }

.nav-item { position: relative; }
.nav-item > a { padding-right: 20px; }
.nav-item > a::after { content: ''; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--muted); opacity: .6; }
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: var(--white); border-radius: var(--r); padding: 6px 0; box-shadow: var(--shadow-lg); border: 1px solid var(--bg-dark); border-top: 2px solid var(--gold); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all var(--t); }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 18px; font-size: .84rem; color: var(--muted); transition: all var(--t); }
.dropdown a:hover { color: var(--gold-dark); background: var(--bg-soft); padding-left: 24px; }

.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-phone { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: .85rem; font-weight: 600; transition: color var(--t); }
.nav-phone:hover { color: var(--gold-dark); }
.nav-phone svg { color: var(--gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-phone, .nav-links .btn-blue { display: none; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: fixed; inset: 0; background: var(--white); flex-direction: column; justify-content: center; align-items: center; gap: 6px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; padding: 12px 28px; }
  .nav-item > a::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; border: none; border-left: 2px solid var(--gold); margin-left: 16px; padding: 4px 0; }
  .dropdown a { font-size: .9rem; }
}

/* ── HERO (split layout) ─────────────────── */
.hero {
  padding-top: 102px;
  min-height: 92vh;
  display: flex; align-items: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(203,179,115,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 40px 0;
}
@media (max-width: 768px) {
  .hero { min-height: auto; padding-bottom: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding: 24px 0; }
  .hero-img { max-height: 280px; }
}

.hero-tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.hero-tag::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--gold); }

.hero-text h1 { margin-bottom: 18px; }
.hero-text h1 em { font-style: italic; color: var(--gold-dark); }
.hero-text p { font-size: 1.02rem; margin-bottom: 32px; max-width: 440px; }

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-img {
  position: relative; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(203,179,115,.12) 0%, transparent 60%);
}
/* Gold corner accent */
.hero-img::after {
  content: ''; position: absolute; bottom: -1px; right: -1px;
  width: 60px; height: 60px;
  border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
  border-radius: 0 0 var(--r-lg) 0; z-index: 2;
}

/* ── PRODUCTS STRIP ─────────────────────── */
.products-section { background: var(--bg-soft); }
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px)  { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  display: block; border-radius: var(--r-lg); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
  transition: all var(--t); text-decoration: none; border: 1px solid var(--bg-dark);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.pc-img { height: 200px; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .pc-img img { transform: scale(1.05); }
.pc-body { padding: 18px 20px 20px; }
.pc-body h3 { font-size: 1.05rem; margin-bottom: 6px; transition: color var(--t); }
.product-card:hover .pc-body h3 { color: var(--gold-dark); }
.pc-body p { font-size: .84rem; line-height: 1.6; }
.pc-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; color: var(--gold-dark); font-size: .8rem; font-weight: 600; }
.pc-link svg { transition: transform var(--t); }
.product-card:hover .pc-link svg { transform: translateX(3px); }

/* ── B2B / O NAMA STRIP ─────────────────── */
.about-strip { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

.about-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.check-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.check-item { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text); }
.check-item::before { content: '✓'; color: var(--gold-dark); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── GALLERY ────────────────────────────── */
.gallery-section { background: var(--bg-soft); }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.gallery-grid .gi-wide { grid-column: span 2; }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } .gallery-grid .gi-wide { grid-column: span 1; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item { position: relative; border-radius: var(--r); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-item.gi-wide { aspect-ratio: 16/9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gi-overlay { position: absolute; inset: 0; background: rgba(31,42,83,0); display: flex; align-items: flex-end; padding: 16px; transition: background var(--t); }
.gallery-item:hover .gi-overlay { background: rgba(31,42,83,.45); }
.gi-label { color: var(--white); font-size: .84rem; font-weight: 600; opacity: 0; transform: translateY(5px); transition: all var(--t); }
.gallery-item:hover .gi-label { opacity: 1; transform: translateY(0); }

/* ── CTA SECTION ────────────────────────── */
.cta-section { background: var(--blue); text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(203,179,115,.1) 0%, transparent 70%); }
.cta-section .container { position: relative; }
.cta-section h2 { color: var(--white); font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.cta-section h2::after { content: ''; display: block; width: 48px; height: 2px; background: var(--gold); margin: 12px auto 0; }
.cta-section p { color: rgba(255,255,255,.65); max-width: 500px; margin: 14px auto 36px; font-size: 1.02rem; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────── */
.footer { background: var(--blue-dark); color: var(--white); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.07); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { margin-bottom: 14px; }
.footer-logo .logo-img { height: 58px; }
.footer-logo .logo-sub { color: #7B9BD8; }
.footer-desc { color: rgba(255,255,255,.48); font-size: .86rem; line-height: 1.7; max-width: 260px; margin-top: 10px; }

.footer h4 { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; font-family: 'Inter', sans-serif; }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: rgba(255,255,255,.5); font-size: .86rem; transition: color var(--t); }
.footer ul a:hover { color: var(--gold); }

.footer-ci { display: flex; gap: 10px; margin-bottom: 10px; color: rgba(255,255,255,.5); font-size: .86rem; align-items: flex-start; }
.footer-ci svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-ci a { color: inherit; transition: color var(--t); }
.footer-ci a:hover { color: var(--gold); }

.footer-bottom { padding: 18px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { color: rgba(255,255,255,.25); font-size: .78rem; }

/* ── WHATSAPP FLOAT — uklonjen, biće AI chat ─ */

/* ── PAGE HERO (inner pages) ────────────── */
.page-hero { padding: 140px 0 64px; background: var(--bg-soft); text-align: center; position: relative; border-bottom: 1px solid var(--bg-dark); }
.page-hero h1 { color: var(--text); }
.page-hero p { color: var(--muted); max-width: 520px; margin: 12px auto 0; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; font-size: .8rem; color: var(--muted); }
.breadcrumb a { color: var(--gold-dark); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── PRODUCT DETAIL ─────────────────────── */
.prod-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 768px) { .prod-detail { grid-template-columns: 1fr; gap: 28px; } }
.prod-detail-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.prod-detail-img img { width: 100%; height: 420px; object-fit: cover; }
.features { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; }
.feature { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-soft); border-radius: var(--r); font-size: .88rem; color: var(--text); border-left: 3px solid var(--gold); }

/* ── CONTACT ────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--bg-dark); }
.contact-item:last-child { border-bottom: none; }
.contact-icon { width: 44px; height: 44px; border-radius: var(--r); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { color: var(--gold-dark); }
.contact-item h4 { color: var(--text); margin-bottom: 3px; font-size: .95rem; }
.contact-item p, .contact-item a { font-size: .9rem; color: var(--muted); }
.contact-item a:hover { color: var(--gold-dark); }
.contact-form { background: var(--bg-soft); padding: 34px; border-radius: var(--r-lg); border: 1px solid var(--bg-dark); }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--text); margin-bottom: 5px; letter-spacing: .02em; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--bg-dark); border-radius: var(--r); font-family: 'Inter', sans-serif; font-size: .9rem; color: var(--text); background: var(--white); transition: border-color var(--t); outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 110px; }

/* ── GALLERY PAGE ───────────────────────── */
.gallery-filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filt { padding: 8px 20px; border-radius: 100px; border: 1.5px solid var(--bg-dark); background: transparent; font-size: .84rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: all var(--t); }
.filt.active, .filt:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ── VALUES ─────────────────────────────── */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 768px) { .values { grid-template-columns: 1fr; } }
.value-card { padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--bg-dark); border-top: 3px solid var(--gold); box-shadow: var(--shadow); }
.value-card h3 { font-size: 1.05rem; margin-bottom: 10px; }

/* ── ANIMATIONS ─────────────────────────── */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

/* ── UTILITY ────────────────────────────── */
.gold      { color: var(--gold-dark); }
.tc        { text-align: center; }
.mt8       { margin-top: 8px;  } .mt16 { margin-top: 16px; }
.mt24      { margin-top: 24px; } .mt40 { margin-top: 40px; }
.bg-soft   { background: var(--bg-soft); }
.bg-cream  { background: var(--bg-soft); }
.w100      { width: 100%; }
.divider   { width: 48px; height: 2px; background: var(--gold); margin: 12px 0; }

/* ── BTN-PRIMARY alias (koriste product stranice) ── */
.btn-primary { background: var(--gold); color: var(--blue-dark); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(203,179,115,.35); }

/* ── FEATURE CHECK (product detail stranice) ── */
.feature-check { color: var(--gold-dark); font-weight: 700; }

/* ── ALL-PRODUCTS (proizvodi.html) ─────────── */
.all-products { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 900px) { .all-products { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px)  { .all-products { grid-template-columns: 1fr; } }

/* ── STEPS (zip-sistemi.html) ──────────────── */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 24px 18px; background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--bg-dark); transition: box-shadow var(--t); }
.step:hover { box-shadow: var(--shadow-lg); }
.step-n { font-size: 2rem; margin-bottom: 10px; line-height: 1; }
.step h4 { color: var(--text); margin-bottom: 8px; font-size: 1rem; }
.step p  { font-size: .86rem; }

/* ── CATALOG IMAGE POSITIONING ─────────────────
   Katalog stranice imaju tekst s jedne strane i foto s druge.
   Koristimo object-position da prikažemo deo sa pravim fotografijama.
   ─────────────────────────────────────────── */
img[src*="zebra-sistem"]  { object-position: right center; }
img[src*="zip-sistem"]    { object-position: right center; }
img[src*="misija"]        { object-position: right center; }
img[src*="venecijaneri"]  { object-position: center top; }
img[src*="rolo-sistemi"]  { object-position: left top; }
img[src*="zebra-platna"]  { object-position: left bottom; }
img[src*="rolo-platna"]   { object-position: center bottom; }
