/* Star Gas — mobile first (360 px →), bez spoljnih fontova i CDN-ova */
:root {
    --gold: #f1b400;
    --bg: #000;
    --card: #1a1a1a;
    --card-2: #111;
    --line: #2a2a2a;
    --text: #fff;
    --muted: #b8b8b8;
    --max: 1200px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 64px; /* mesto za traku „Pozovite“ na telefonu */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex-shrink: 0; vertical-align: -0.15em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #000; padding: 10px 16px; z-index: 2000; }
.skip:focus { left: 10px; top: 10px; }

/* --- dugmad --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 26px;
    background: var(--gold); color: #000;
    font-weight: 700; text-transform: uppercase; text-decoration: none; letter-spacing: .5px;
    border: 2px solid var(--gold); transition: background .2s, color .2s;
}
.btn:hover { background: #fff; border-color: #fff; color: #000; }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: var(--gold); border-color: var(--gold); color: #000; }

/* --- gornja traka (od 768 px) --- */
.top-info { display: none; border-bottom: 1px solid #333; font-size: 14px; }
.top-info .wrap { display: flex; justify-content: flex-end; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
.top-info a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; }

/* --- zaglavlje --- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--bg); border-bottom: 1px solid #1f1f1f; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo img { width: 110px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-call { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.header-call .num { display: none; }
.hamburger {
    width: 48px; height: 48px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    background: none; border: 1px solid #333; cursor: pointer;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gold); transition: transform .3s, opacity .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-links {
    display: none; list-style: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #0d0d0d; border-bottom: 3px solid var(--gold);
    padding: 10px 20px 20px;
}
.nav-links.open { display: block; }
.nav-links a {
    display: flex; align-items: center; min-height: 48px;
    color: var(--gold); text-decoration: none; text-transform: uppercase; font-weight: 600;
    border-bottom: 1px solid #222;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }

/* --- hero (početna) --- */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; overflow: hidden; border-bottom: 4px solid var(--gold); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg img + img { opacity: 0; animation: fade 18s infinite; }
.hero-bg img:nth-child(2) { animation-delay: 6s; }
.hero-bg img:nth-child(3) { animation-delay: 12s; }
@keyframes fade { 0%, 100% { opacity: 0; } 5%, 33% { opacity: 1; } 38% { opacity: 0; } }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .66); }
.hero-content { position: relative; z-index: 1; padding: 60px 20px; max-width: 860px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 2rem; line-height: 1.2; text-transform: uppercase; margin-bottom: 18px; text-shadow: 2px 2px 6px rgba(0,0,0,.7); }
.hero p { font-size: 1.1rem; margin-bottom: 28px; text-shadow: 1px 1px 3px rgba(0,0,0,.8); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* --- zaglavlje podstrane --- */
.page-hero { position: relative; padding: 50px 0; text-align: center; border-bottom: 3px solid var(--gold); overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .78); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: 1.8rem; line-height: 1.25; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.page-hero p { max-width: 720px; margin: 0 auto 22px; font-size: 1.05rem; }
.page-hero .note { color: var(--gold); font-size: .95rem; }
.breadcrumb { font-size: 14px; margin-bottom: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }

/* --- sekcije --- */
.section { padding: 60px 0; }
.section-title { text-align: center; text-transform: uppercase; font-size: 1.6rem; letter-spacing: 2px; margin-bottom: 36px; }
.gold-line { width: 45px; height: 3px; background: var(--gold); margin: 14px auto; }
.muted { color: var(--muted); }

/* prednosti (bivši slajdovi) */
.perks { display: grid; gap: 20px; }
.perk { background: var(--card); border-top: 4px solid var(--gold); padding: 26px 22px; }
.perk h2 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 10px; color: var(--gold); }
.perk p { color: var(--muted); margin-bottom: 12px; }
.perk a { font-weight: 700; }

/* uvod vlasnika */
.intro-grid { display: grid; gap: 30px; margin-bottom: 60px; align-items: center; }
.owner-card { background: var(--card-2); padding: 14px; border-bottom: 5px solid var(--gold); max-width: 420px; margin: 0 auto; }
.owner-card figcaption { text-align: center; margin-top: 12px; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; }
.owner-card figcaption span { display: block; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: .95rem; }
.intro-text p { color: var(--muted); margin-bottom: 16px; font-size: 1.05rem; }
.intro-text strong { color: #fff; }

/* kartice usluga */
.cards { display: grid; gap: 24px; }
.service-card { background: var(--card); border: 1px solid #222; padding-bottom: 28px; text-align: center; transition: border-color .3s; }
.service-card:hover { border-color: var(--gold); }
.service-card img { width: 100%; height: 220px; object-fit: cover; }
.service-card h3 { margin: 22px 16px 0; text-transform: uppercase; font-size: 1.1rem; }
.service-card p { padding: 0 22px; color: var(--muted); font-size: .97rem; margin-bottom: 14px; }

/* partneri — pokretna traka */
.partners { background: var(--gold); padding: 50px 0; text-align: center; overflow: hidden; }
.partners h2 { color: #000; margin-bottom: 30px; text-transform: uppercase; font-size: 1.4rem; padding: 0 20px; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 50px; width: max-content; animation: marquee 40s linear infinite; padding-left: 25px; }
.marquee-track img { height: 64px; width: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* cenovnik */
.highlight { background: var(--card); border-left: 4px solid var(--gold); padding: 18px 20px; margin: 0 auto 10px; max-width: 760px; text-align: left; }
.highlight strong { color: var(--gold); }
.pricing-row { display: grid; gap: 30px; align-items: center; }
.pricing-image img { width: 100%; border-left: 5px solid var(--gold); }
.price-list { list-style: none; }
.price-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-item .icon { color: var(--gold); margin-top: 4px; width: 1.3em; height: 1.3em; }
.price-item h3 { color: var(--gold); font-size: 1.05rem; text-transform: uppercase; margin-bottom: 4px; }
.price-item p { color: var(--muted); font-size: .95rem; }
.master-note { display: grid; gap: 24px; align-items: center; text-align: center; background: var(--card); padding: 30px 22px; border-right: 4px solid var(--gold); max-width: 900px; margin: 0 auto; }
.master-note img { width: 180px; height: 180px; object-fit: cover; border: 2px solid var(--gold); margin: 0 auto; }
.master-note h2 { color: var(--gold); font-size: 1.4rem; margin-bottom: 10px; }
.install-section { background: #0a0a0a; }
.install-grid { display: grid; gap: 24px; }
.install-card { background: var(--card-2); border-top: 4px solid var(--gold); padding: 26px; }
.install-card h3 { color: var(--gold); font-size: 1.2rem; margin-bottom: 6px; }
.install-card .price { font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; }
.install-card ul { list-style: none; color: var(--muted); }
.install-card li { position: relative; padding-left: 16px; margin-bottom: 8px; }
.install-card li::before { content: "•"; color: var(--gold); position: absolute; left: 0; }
.brands-bar { background: var(--gold); padding: 40px 0; text-align: center; }
.brands-bar h2 { color: #000; text-transform: uppercase; font-size: 1.3rem; margin-bottom: 24px; }
.brands { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px; }
.brands img { height: 56px; width: auto; }

/* proizvodi */
.product-row { display: grid; gap: 26px; align-items: center; margin-bottom: 60px; }
.product-row img { width: 100%; border-left: 5px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.product-row h2 { color: var(--gold); text-transform: uppercase; font-size: 1.4rem; margin-bottom: 14px; }
.product-row p { color: var(--muted); margin-bottom: 14px; }
.badge { display: inline-block; color: var(--gold); border: 1px solid var(--gold); background: rgba(241,180,0,.1); padding: 5px 15px; border-radius: 20px; font-size: .9rem; font-weight: 700; }
.components { background: var(--card); text-align: center; }
.components-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.component-card { background: #fff; padding: 14px; border: 1px solid #333; }
.component-card img { width: 100%; height: 140px; object-fit: contain; margin-bottom: 10px; }
.component-card h3 { color: #000; font-size: .95rem; }

/* česta pitanja */
.faq-layout { display: grid; gap: 40px; }
.faq-item { background: var(--card); border: 1px solid #333; margin-bottom: 12px; }
.faq-item summary {
    list-style: none; cursor: pointer; min-height: 48px; padding: 16px 18px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--gold); transition: transform .3s; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item summary:hover { background: #252525; }
.faq-item p { padding: 0 18px 18px; color: var(--muted); }
.profile-card { background: var(--card); border-top: 5px solid var(--gold); padding: 28px; text-align: center; }
.profile-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); margin: 0 auto 18px; }
.profile-card h2 { font-size: 1.2rem; margin-bottom: 10px; }
.profile-card p { color: var(--muted); margin-bottom: 18px; }
.profile-card .btn { width: 100%; margin-bottom: 10px; }
.link-banner { background: var(--card-2); border-top: 1px solid #222; }
.link-banner h2 { color: var(--gold); font-size: 1.3rem; margin-bottom: 8px; }
.link-banner p { color: var(--muted); margin-bottom: 10px; }

/* tekstualna strana (privatnost, 404) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { color: var(--gold); font-size: 1.2rem; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 10px; }
.prose ul { padding-left: 20px; }

/* --- futer --- */
.footer-contact { padding: 50px 0; border-top: 1px solid #222; }
.footer-grid { display: grid; gap: 24px; text-align: center; }
.location { background: var(--card); border: 1px solid #333; padding: 24px; }
.location h2, .contact-details h2 { color: var(--gold); text-transform: uppercase; font-size: 1.1rem; margin-bottom: 12px; }
.location p, .contact-details p { margin-bottom: 10px; }
.location .btn { margin-top: 6px; }
.contact-details a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; text-decoration: none; }
.contact-details a:hover { color: var(--gold); }
.contact-details .phone { font-size: 1.25rem; font-weight: 700; }
.footer-menu { border-top: 1px solid #333; border-bottom: 1px solid #333; }
.footer-menu ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; padding: 12px 20px; }
.footer-menu a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; text-transform: uppercase; font-weight: 600; font-size: 14px; }
.copyright { padding: 22px 20px; text-align: center; font-size: 14px; color: #9a9a9a; }
.copyright a { color: #9a9a9a; }
.copyright a:hover { color: var(--gold); }

/* --- traka za poziv (telefon) + nazad na vrh --- */
.call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; background: var(--gold); color: #000;
    font-weight: 700; text-transform: uppercase; text-decoration: none; font-size: 1.05rem;
    box-shadow: 0 -4px 14px rgba(0,0,0,.5);
}
.call-bar:hover { color: #000; background: #fff; }
.to-top {
    position: fixed; right: 16px; bottom: 72px; z-index: 999;
    width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--gold); color: #000; display: none; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(241,180,0,.3);
}
.to-top.show { display: flex; }
.to-top:hover { background: #fff; }

/* ===== tablet ===== */
@media (min-width: 600px) {
    .hero h1 { font-size: 2.6rem; }
    .hero-actions { flex-direction: row; justify-content: center; }
    .perks { grid-template-columns: repeat(3, 1fr); }
    .components-grid { grid-template-columns: repeat(4, 1fr); }
    .master-note { grid-template-columns: auto 1fr; text-align: left; padding: 36px; }
    .header-call .num { display: inline; }
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .call-bar { display: none; }
    .to-top { bottom: 24px; right: 24px; }
    .top-info { display: block; }
    .page-hero { padding: 80px 0; }
    .page-hero h1 { font-size: 2.3rem; }
    .section { padding: 80px 0; }
    .section-title { font-size: 2rem; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .install-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
    .marquee-track img { height: 85px; }
}

/* ===== desktop: meni u liniji ===== */
@media (min-width: 992px) {
    .logo img { width: 125px; }
    .hamburger { display: none; }
    .nav-links { display: flex; position: static; gap: 26px; padding: 0; background: none; border: 0; }
    .nav-links a { border: 0; min-height: 44px; font-size: 14px; }
    .nav-links a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
    .nav-links a:hover { color: #fff; }
    .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
    .header-actions { order: 3; }
    .hero { min-height: min(72vh, 760px); }
    .hero h1 { font-size: 3.2rem; }
    .hero p { font-size: 1.25rem; }
    .intro-grid { grid-template-columns: 1fr 2fr; gap: 50px; }
    .cards { grid-template-columns: repeat(3, 1fr); }
    .pricing-row { grid-template-columns: 1fr 1fr; gap: 50px; }
    .install-grid { grid-template-columns: repeat(3, 1fr); }
    .product-row { grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 90px; }
    .product-row:nth-of-type(even) > :first-child { order: 2; }
    .faq-layout { grid-template-columns: 2fr 1fr; gap: 50px; }
    .faq-aside { position: sticky; top: 100px; align-self: start; }
}

@media (min-width: 1600px) {
    :root { --max: 1320px; }
    body { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-bg img + img, .marquee-track { animation: none; }
}
