/* ==========================================
   ROYAL CORPORATE — corporate.css v3.0
   Lokalni fontovi — redesign 2026
   ========================================== */

/* ── FONTOVI ────────────────────────────── */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/playfair-display-v40-cyrillic_latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/playfair-display-v40-cyrillic_latin_latin-ext-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('fonts/inter-v20-cyrillic_cyrillic-ext_latin_latin-ext-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/inter-v20-cyrillic_cyrillic-ext_latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/inter-v20-cyrillic_cyrillic-ext_latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/inter-v20-cyrillic_cyrillic-ext_latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/inter-v20-cyrillic_cyrillic-ext_latin_latin-ext-700.woff2') format('woff2');
}

/* ── VARIJABLE ──────────────────────────── */
:root {
  --navy:      #1F2A53;
  --navy-deep: #0F1A2E;
  --gold:      #CBB373;
  --gold-dk:   #A8883A;
  --gold-lt:   #DCC896;
  --cream:     #FAFAF5;
  --cream-2:   #F2EDE3;
  --cream-3:   #E8E0D0;
  --text:      #1a1a1a;
  --muted:     #64625e;
  --border:    #e3ddd5;
  --white:     #ffffff;
  --sh-sm:     0 2px 14px rgba(15,26,46,.07);
  --sh-md:     0 6px 32px rgba(15,26,46,.11);
  --sh-lg:     0 18px 60px rgba(15,26,46,.15);
  --r:         6px;
  --r-lg:      14px;
  --t:         0.25s ease;
  --max:       1200px;
}

/* ── RESET ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TIPOGRAFIJA ────────────────────────── */
h1, h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; line-height: 1.18; letter-spacing: -.01em;
}
h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 600; line-height: 1.3;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); color: var(--navy); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--navy); }
h3 { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--navy); }
p  { color: var(--muted); line-height: 1.78; }

/* ── LAYOUT ─────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section       { padding: 88px 0; }
.section-light { background: var(--cream-2); }

.section-header { text-align: center; max-width: 660px; margin: 0 auto 60px; }
.section-header h2 { margin-bottom: 16px; }
/* Zlatna crta ispod naslova sekcija */
.section-header h2::after {
  content: '';
  display: block; width: 44px; height: 2px;
  background: var(--gold); margin: 14px auto 0;
  border-radius: 2px;
}
.section-header p { font-size: 1.02rem; }

/* ── DUGMAD ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r);
  font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  transition: all var(--t); border: 2px solid transparent;
  cursor: pointer; font-family: inherit;
}
.btn-gold {
  background: var(--gold); color: var(--navy-deep); border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-lt); border-color: var(--gold-lt);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(203,179,115,.38);
}
.btn-outline {
  background: transparent; color: var(--navy); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--gold-dk); color: var(--gold-dk); }

.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); padding: 15px 36px; }
.btn-white:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }

.btn-ghost-white {
  background: transparent; color: rgba(255,255,255,.9);
  border: 2px solid rgba(255,255,255,.35); padding: 15px 36px;
}
.btn-ghost-white:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); }

/* ── NAVIGACIJA ─────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,250,245,.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding: 14px 0;
  transition: border-color var(--t), box-shadow var(--t), padding var(--t);
}
.header.scrolled {
  border-color: var(--border);
  box-shadow: var(--sh-sm);
  padding: 10px 0;
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { height: 48px; width: auto; }
.logo-text {
  font-size: .95rem; font-weight: 700; color: var(--navy);
  letter-spacing: .08em; line-height: 1;
}
.logo-sub {
  font-size: .6rem; color: var(--muted);
  letter-spacing: .16em; text-transform: uppercase; margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .86rem; font-weight: 500; color: var(--muted);
  padding: 7px 14px; border-radius: var(--r); transition: all var(--t);
}
.nav a:hover { color: var(--gold-dk); background: var(--cream-2); }

/* Hamburger dugme */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--r); cursor: pointer;
  background: none; border: none; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); 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-toggle { display: flex; }
  .nav {
    display: none; position: fixed; inset: 0;
    background: var(--white); flex-direction: column;
    justify-content: center; align-items: center;
    gap: 6px; z-index: 999;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.2rem; padding: 14px 32px; }
  .header-inner > .btn-gold { display: none; }
}

/* ── HERO ───────────────────────────────── */
.hero {
  padding: 155px 0 96px;
  background: var(--cream);
  position: relative; overflow: hidden;
}
/* Suptilna dijagonalna mreza u bg */
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(203,179,115,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(203,179,115,.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
/* Zlatni radijalni sjaj desno-gore */
.hero::after {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(203,179,115,.09) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
  position: relative; z-index: 1;
}

.hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-dk); margin-bottom: 22px;
}
.hero-label::before {
  content: ''; width: 32px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero h1 { margin-bottom: 20px; }
/* "direktno" kursiv u hero naslovu */
.hero h1 em { font-style: italic; color: var(--gold-dk); }

.hero p { font-size: 1.05rem; margin-bottom: 36px; max-width: 490px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Fotografija hero — sa zlatnim uglom */
.hero-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 5/4;
  position: relative;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Zlatni ugao — signature touch brenda */
.hero-img::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 72px; height: 72px;
  border-right: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  border-radius: 0 0 var(--r-lg) 0;
  z-index: 2;
}

/* Plavi badge "B2B Fabrika" na slici */
.hero-img .img-badge {
  position: absolute; top: 18px; left: 18px; z-index: 3;
  background: var(--navy); color: var(--gold);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
}

@media (max-width: 860px) {
  .hero { padding: 118px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-img { aspect-ratio: 4/3; }
}

/* ── TRUST BAR ──────────────────────────── */
.trust-bar {
  background: var(--navy);
  position: relative; overflow: hidden;
}
/* Suptilni gradient ivice */
.trust-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(15,26,46,.7) 0%, transparent 25%,
    transparent 75%, rgba(15,26,46,.7) 100%);
  pointer-events: none;
}

.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.trust-item {
  padding: 44px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
  transition: background var(--t);
}
.trust-item:last-child { border-right: none; }
.trust-item:hover { background: rgba(255,255,255,.03); }

/* Brojevi u Playfair Display — daleko premesniji od Inter */
.trust-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; font-weight: 700;
  color: var(--gold); line-height: 1;
  margin-bottom: 8px;
}
.trust-label {
  font-size: .7rem; font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .1em;
}

@media (max-width: 680px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-bottom: 1px solid rgba(255,255,255,.07); }
  .trust-item:nth-child(even) { border-right: none; }
}

/* ── FEATURE KARTICE ────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 860px) { .features-grid { grid-template-columns: 1fr; gap: 20px; } }

.feature-card {
  background: var(--white);
  border-radius: var(--r-lg); padding: 40px 32px;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold); /* zlatna linija na vrhu — odmah uočljiva */
  transition: all var(--t); position: relative; overflow: hidden;
}
/* Suptilni zlatni sjaj u donjem desnom uglu */
.feature-card::after {
  content: '';
  position: absolute; bottom: -20px; right: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(203,179,115,.08), transparent 70%);
}
.feature-card:hover {
  box-shadow: var(--sh-md); transform: translateY(-5px);
}

/* SVG ikona u obojenoj kutiji */
.feature-icon {
  width: 52px; height: 52px;
  background: rgba(203,179,115,.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--gold-dk);
  transition: background var(--t);
}
.feature-card:hover .feature-icon { background: rgba(203,179,115,.22); }
.feature-icon svg {
  width: 24px; height: 24px;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.feature-card p  { font-size: .9rem; line-height: 1.72; }

/* ── PRODUCT KARTICE ────────────────────── */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 860px) { .products-grid { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  display: block; background: var(--white);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); border: 1px solid var(--border);
  transition: all var(--t);
}
.product-card:hover {
  box-shadow: var(--sh-md); transform: translateY(-4px);
  border-color: rgba(203,179,115,.5);
}

.product-img { height: 230px; overflow: hidden; position: relative; }
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .65s ease;
}
.product-card:hover .product-img img { transform: scale(1.06); }

/* Zlatna linija koja se klizi po hover */
.product-img::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transform: scaleX(0); transform-origin: left;
  transition: transform .32s ease;
}
.product-card:hover .product-img::after { transform: scaleX(1); }

.product-body { padding: 24px 26px 28px; }
.product-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.product-body p  { font-size: .87rem; margin-bottom: 16px; line-height: 1.65; }
.product-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: var(--gold-dk);
  transition: gap var(--t);
}
.product-card:hover .product-link { gap: 10px; }

/* ── CTA SEKCIJA ────────────────────────── */
.cta-section {
  background: var(--navy);
  padding: 100px 0; text-align: center;
  position: relative; overflow: hidden;
}
/* Dekorativni krugovi — daju dubinu bez potrebe za fotografijom */
.cta-section::before {
  content: '';
  position: absolute; top: -80px; left: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(203,179,115,.1);
}
.cta-section::after {
  content: '';
  position: absolute; bottom: -100px; right: -100px;
  width: 440px; height: 440px; border-radius: 50%;
  border: 1px solid rgba(203,179,115,.07);
}
.cta-section .container { position: relative; z-index: 1; }

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 6px;
}
.cta-section h2::after {
  content: ''; display: block;
  width: 44px; height: 2px; background: var(--gold);
  margin: 16px auto 0; border-radius: 2px;
}
.cta-section p {
  color: rgba(255,255,255,.6); max-width: 480px;
  margin: 18px auto 40px; font-size: 1.03rem;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────── */
footer { background: var(--navy-deep); padding: 64px 0 0; color: var(--white); }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p {
  font-size: .87rem; color: rgba(255,255,255,.42);
  max-width: 290px; line-height: 1.75;
}

footer h4 {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
footer ul { display: flex; flex-direction: column; gap: 10px; }
footer ul a { font-size: .88rem; color: rgba(255,255,255,.42); transition: color var(--t); }
footer ul a:hover { color: var(--gold); }

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

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