    .page-standard #hero { min-height: 80vh; }
/*
 * sauron.css – single stylesheet for the entire Sauron website
 *
 * Loaded by every page. Page-specific rules are scoped with body classes:
 *   index.php    → <body class="page-index">
 *   standard.php → <body class="page-standard">
 *   pro.php      → <body class="page-pro">
 *
 * The only thing that stays inline in each PHP file is the hero background
 * image, because it contains a PHP variable.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES
   Default = Standard / Index palette (indigo).
   Pro overrides follow in section 9.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --brand-dark:         #1a1a2e;
    --brand-mid:          #16213e;
    --brand-accent:       #4f46e5;
    --brand-accent-light: #818cf8;
    --brand-accent2:      #818cf8;
    --section-alt:        #f0f9ff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. BASE
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #334155;
    overflow-x: hidden;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. NAVBAR
   ═══════════════════════════════════════════════════════════════════════════ */
#main-navbar { background: var(--brand-dark) !important; transition: box-shadow 0.3s; }
#main-navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); }

.navbar-brand-text h5 { font-size: 1.1rem; font-weight: 700; margin: 0; color: #fff; }
.navbar-brand-text small { font-size: 0.7rem; color: rgba(255,255,255,0.6); }
.navbar-brand img { height: 40px; }

#main-navbar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem !important;
    transition: color 0.2s;
}
#main-navbar .nav-link:hover,
#main-navbar .nav-link.active { color: #fff !important; }
#main-navbar .nav-link i { margin-right: 0.3rem; }

.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.nav-back-btn { background: rgba(255,255,255,0.1); border-radius: 20px; padding: 0.3rem 1rem !important; font-size: 0.8rem !important; }
.nav-back-btn:hover { background: rgba(255,255,255,0.2) !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   4. HERO  (shared base – background set inline via PHP per page)
   ═══════════════════════════════════════════════════════════════════════════ */
#hero {
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 60px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #fff);
}

/* index – full-screen, no fade-out gradient (cards sit on dark bg) */
.page-index #hero { min-height: 100vh; padding: 100px 0 60px; }
.page-index #hero::after { display: none; }

/* standard – full-screen hero (same as pro) */
.page-standard #hero { min-height: 100vh; padding: 120px 0 80px; }
.page-standard #hero { min-height: 100vh; padding: 120px 0 80px; }
.page-standard #hero::after { display: none; }

.page-pro #hero { min-height: 100vh; padding: 120px 0 80px; }
.page-pro #hero::after { height: 80px;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 300;
    line-height: 1.4;
    color: #fff;
    position: relative;
}
.hero-quote {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 300;
    line-height: 1.5;
    color: #fff;
    margin-bottom: .5rem;
}
.hero-tagline { font-size: 1rem; color: rgba(255,255,255,0.6); }

/* ═══════════════════════════════════════════════════════════════════════════
   5. SECTIONS  (shared)
   ═══════════════════════════════════════════════════════════════════════════ */
section { padding: 80px 0; }
section:nth-of-type(even) { background: var(--section-alt); }

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: .75rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: var(--brand-accent);
    border-radius: 2px;
}
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: .4rem 0 .4rem 1.75rem; position: relative; color: #334155; }
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0; top: .75rem;
    width: 8px; height: 8px;
    background: var(--brand-accent);
    border-radius: 50%;
}

.section-img { border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.1); transition: transform 0.3s; width: 100%; }
.section-img:hover { transform: translateY(-4px); }

/* gallery lightbox */
.gallery-thumb { display: block; position: relative; border-radius: 10px; overflow: hidden; }
.gallery-thumb .gallery-img { display: block; transition: transform 0.35s, filter 0.35s; }
.gallery-thumb:hover .gallery-img { transform: scale(1.03); filter: brightness(0.75); }
.gallery-zoom {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.8rem;
    opacity: 0; transition: opacity 0.3s;
    pointer-events: none;
}
.gallery-thumb:hover .gallery-zoom { opacity: 1; }

.izplen-card { background: linear-gradient(135deg, #f0f0ff, #e8e8ff); border: 1px solid #c7d2fe; border-radius: 12px; padding: 1.75rem; }

/* index – explicit section backgrounds so zakaj & primeri are clearly distinct */
.page-index #zakaj   { background: #ffffff; }
.page-index #primeri { background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%); }
.page-index #primeri .section-title { color: var(--brand-dark); }
.page-index #kontakt { background: #ffffff; }

/* ═══════════════════════════════════════════════════════════════════════════
   6. INDEX – product-picker cards
   ═══════════════════════════════════════════════════════════════════════════ */
.product-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.product-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    color: inherit;
    text-decoration: none;
}
.card-std { animation: cardIn .5s ease both; }
.card-pro-pick {
    animation: cardIn .5s .14s ease both;
    border-color: rgba(14,165,233,0.4);
    background: rgba(14,165,233,0.07);
}
.card-pro-pick:hover {
    border-color: rgba(14,165,233,0.8);
    background: rgba(14,165,233,0.14);
    box-shadow: 0 20px 50px rgba(14,165,233,0.25);
}
.pc-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.25rem; }
.card-std .pc-icon      { background: rgba(79,70,229,0.25);  color: #a5b4fc; }
.card-pro-pick .pc-icon { background: rgba(14,165,233,0.25); color: #38bdf8; }

.pc-badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 20px; padding: .2rem .75rem; margin-bottom: .75rem; }
.card-std .pc-badge      { background: rgba(79,70,229,0.25);  color: #a5b4fc; border: 1px solid rgba(79,70,229,0.35); }
.card-pro-pick .pc-badge { background: rgba(14,165,233,0.2);  color: #38bdf8; border: 1px solid rgba(14,165,233,0.4); }

.product-card h3 { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: .6rem; }
.product-card p  { color: rgba(255,255,255,0.65); font-size: .92rem; }

.pc-bullets { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.pc-bullets li { color: rgba(255,255,255,0.75); font-size: .88rem; padding: .2rem 0 .2rem 1.4rem; position: relative; }
.pc-bullets li::before { content: ''; position: absolute; left: 0; top: .65rem; width: 7px; height: 7px; border-radius: 50%; }
.card-std .pc-bullets li::before      { background: #818cf8; }
.card-pro-pick .pc-bullets li::before { background: #38bdf8; }

.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: .7rem 1rem; border-radius: 8px; font-size: .92rem; font-weight: 600; transition: all .2s; margin-top: auto; }
.card-std .pc-btn      { background: var(--brand-accent); color: #fff; }
.card-std .pc-btn:hover { background: #4338ca; }
.card-pro-pick .pc-btn       { background: #0ea5e9; color: #fff; }
.card-pro-pick .pc-btn:hover { background: #0284c7; }

.hero-divider { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); font-size: .85rem; font-weight: 600; padding: 0 .5rem; }

/* Zakaj section on index */
.page-index #zakaj { padding: 80px 0; background: #ffffff; }

/* ═══════════════════════════════════════════════════════════════════════════
   7. STANDARD – references, contact (light bg)
   ═══════════════════════════════════════════════════════════════════════════ */
#reference { background: var(--brand-dark); color: #fff; }
#reference .section-title { color: #fff; }
#reference .section-title::after { background: var(--brand-accent-light); }

.ref-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 1.5rem; text-align: center; transition: all 0.3s; text-decoration: none; color: rgba(255,255,255,0.8); display: block; height: 100%; }
.ref-card:hover { background: rgba(255,255,255,0.12); color: #fff; transform: translateY(-4px); border-color: var(--brand-accent-light); }
.ref-card img { max-height: 80px; max-width: 100%; object-fit: contain; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.85; transition: opacity 0.3s; }
.ref-card:hover img { opacity: 1; }
.ref-card .ref-desc { font-size: 0.85rem; opacity: 0.7; }

.page-standard #kontakt { background: var(--section-alt); }

/* standard – fix colour sequence: hero is in #top (section 1, odd),
   so #kako would naturally be even (alt). Force correct alternation. */
.page-standard #kako        { background: #ffffff; }
.page-standard #zmogljivosti{ background: var(--section-alt); }
.page-standard #uporaba     { background: #ffffff; }

.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.contact-info-item .icon-wrap { width: 42px; height: 42px; flex-shrink: 0; background: var(--brand-accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; }
.contact-card { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

.form-control { border-radius: 8px; border-color: #e2e8f0; padding: .6rem .9rem; transition: border-color .2s, box-shadow .2s; }
.form-control:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
textarea.form-control { min-height: 100px; resize: vertical; }

.btn-submit { background: var(--brand-accent); border: none; color: #fff; padding: .7rem 2rem; border-radius: 8px; font-size: 1rem; font-weight: 600; transition: all .2s; width: 100%; }
.btn-submit:hover { background: #4338ca; transform: translateY(-1px); }
.btn-submit:disabled { opacity: .7; transform: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   8. FOOTER / BACK-TO-TOP / ANIMATIONS  (shared)
   ═══════════════════════════════════════════════════════════════════════════ */
#footer { background: var(--brand-dark); color: rgba(255,255,255,0.5); padding: 2rem 0; text-align: center; font-size: .85rem; }
#footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
#footer a:hover { color: #fff; }

#backToTop { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; background: var(--brand-accent); color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .3s; z-index: 999; box-shadow: 0 4px 15px rgba(79,70,229,0.4); }
#backToTop.visible { opacity: 1; }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. PRO  – colour-palette override + all pro-only components
      Scoped with .page-pro so nothing bleeds onto other pages.
   ═══════════════════════════════════════════════════════════════════════════ */
.page-pro {
    --brand-dark:         #0f172a;
    --brand-mid:          #1e293b;
    --brand-accent:       #0ea5e9;
    --brand-accent-light: #38bdf8;
    --brand-accent2:      #38bdf8;
    --section-alt:        #f0f9ff;
    color: #1e293b;
}

/* navbar tweaks */
.page-pro #main-navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.page-pro #main-navbar .nav-link { color: rgba(255,255,255,0.75) !important; font-size: 0.875rem; padding: 0.5rem 0.8rem !important; }
.page-pro .navbar-brand-text small { color: rgba(255,255,255,0.55); }

/* hero badge / title */
.hero-badge { display: inline-block; background: rgba(14,165,233,0.2); border: 1px solid rgba(14,165,233,0.4); color: var(--brand-accent2); border-radius: 20px; padding: 0.25rem 1rem; font-size: 0.8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2rem,5vw,3.5rem); font-weight: 700; color: #fff; line-height: 1.15; }
.hero-title span { color: var(--brand-accent); }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.7); max-width: 600px; margin: 1.25rem auto 0; }

.scroll-hint { position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.5); animation: bounce 2s infinite; z-index: 1; }
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* stat bar */
.stat-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.stat-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(14,165,233,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
}
.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,0.1);
}
.stat-item .stat-icon {
    font-size: 1.6rem;
    color: var(--brand-accent);
    margin-bottom: 0.75rem;
    opacity: 0.85;
}
.stat-item .stat-num {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-item .stat-num span.accent { color: var(--brand-accent); }
.stat-item .stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.stat-item .stat-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    margin-top: 0.4rem;
    line-height: 1.4;
}
.stat-bar-title {
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 2rem;
}

/* feature cards */
.feat-card { background: #fff; border-radius: 12px; padding: 1.75rem; height: 100%; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform .3s, box-shadow .3s; border: 1px solid #e0f2fe; }
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(14,165,233,0.12); }
.feat-icon { width: 52px; height: 52px; background: linear-gradient(135deg,#e0f2fe,#bae6fd); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.4rem; color: var(--brand-accent); }

/* spec table */
.spec-table td:first-child { font-weight: 600; color: #475569; width: 42%; }
.spec-table td:last-child  { color: #1e293b; }
.spec-table tr:last-child td { border-bottom: none; }

/* compare table */
.compare-table thead th { background: var(--brand-dark); color: #fff; }
.compare-table thead th:last-child { background: var(--brand-accent); }
.compare-table td.pro { color: var(--brand-accent); font-weight: 600; }
.compare-table tbody tr:hover { background: #f0f9ff; }
.check { color: var(--brand-accent); font-weight: 700; }

/* use-case cards */
.case-card { background: #fff; border-radius: 12px; padding: 1.5rem; border-left: 4px solid var(--brand-accent); box-shadow: 0 2px 8px rgba(0,0,0,0.05); height: 100%; }
.case-card h5 { font-weight: 700; color: var(--brand-dark); margin-bottom: .5rem; }
.case-icon { font-size: 1.5rem; color: var(--brand-accent); margin-bottom: .75rem; }

/* contact – dark bg on pro */
.page-pro #kontakt { background: var(--brand-dark); }
.page-pro #kontakt .section-title { color: #fff; }
.page-pro #kontakt .section-title::after { background: var(--brand-accent); }
.page-pro #kontakt p.lead { color: rgba(255,255,255,0.7); }
.page-pro .contact-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); box-shadow: none; }
.page-pro .contact-info-item a,
.page-pro .contact-info-item strong { color: rgba(255,255,255,0.9); }
.page-pro .contact-info-item .text-muted { color: rgba(255,255,255,0.5) !important; }
.page-pro .form-control:focus { box-shadow: 0 0 0 3px rgba(14,165,233,0.15); }
.page-pro .btn-submit:hover { background: #0284c7; }

/* footer / back-to-top */
.page-pro #footer { background: #020617; color: rgba(255,255,255,0.4); }
.page-pro #footer a { color: rgba(255,255,255,0.55); }
.page-pro #backToTop { box-shadow: 0 4px 15px rgba(14,165,233,0.4); }

/* ═══════════════════════════════════════════════════════════════════════════
   10. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    #hero { min-height: 40vh; }
    .page-pro #hero,
    .page-standard #hero { min-height: 80vh; }
}
@media (max-width: 767px) {
    .hero-divider { padding: .75rem 0; }
}
