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

body {
    font-family: Arial, sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #f5f5f5;
    padding-top: 90px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Barve Bitcom */
:root {
    --bitcom-dark: #3a3a3a;
    --bitcom-red: #e63946;
    --bitcom-light-bg: #f5f5f5;
    --bitcom-white: #ffffff;
}

/* Header */
header {
    background-color: #ffffff;
    color: #333333;
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.logo-main {
    height: 43px;
    width: auto;
    object-fit: contain;
}

.logo-subtitle {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f0f0f0;
}

nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--bitcom-dark);
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 12px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
    font-size: 12px;
    text-transform: uppercase;
}

.lang-switch a {
    color: #333333;
    font-weight: bold;
}

.lang-switch a.active-lang {
    color: var(--bitcom-red);
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.faq-item {
    background: var(--bitcom-white);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--bitcom-dark);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: '+';
    display: inline-block;
    width: 18px;
    margin-right: 8px;
    color: var(--bitcom-red);
    font-weight: 700;
}

.faq-item[open] summary::before {
    content: '–';
}

.faq-answer {
    margin-top: 10px;
    color: #333333;
}

.logo-20years {
    height: 43px;
    width: auto;
    object-fit: contain;
	margin-left: 40px;
}

nav a {
    font-size: 15px;
    text-transform: uppercase;
    color: #333333;
    font-weight: bold;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 2px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--bitcom-red);
    transition: width 0.3s ease-in-out;
}

nav a:hover {
    color: var(--bitcom-red);
}

nav a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    background: url("img/hero-background.png") center center no-repeat;
    background-size: cover;
    color: #ffffff;
    padding: 0 20px;
    min-height: 520px;
    text-align: center;
    margin-top: -90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
}

.hero-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Split hero logo animation (left and right halves) */
.hero-logo-split {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    max-height: 180px;
    margin: 50px auto 0;
    overflow: hidden;
}

.hero-logo-half {
    flex: 0 0 50%;
    overflow: hidden;
}

.hero-logo-half img {
    display: block;
    width: 200%;
    height: auto;
}

.hero-logo-half-left {
    transform: translateX(-100%);
    animation: hero-logo-left 1s ease-out forwards;
}

.hero-logo-half-right {
    transform: translateX(100%);
    animation: hero-logo-right 1s ease-out forwards;
}

.hero-logo-half-right img {
    transform: translateX(-50%);
}

@keyframes hero-logo-left {
    to {
        transform: translateX(0);
    }
}

@keyframes hero-logo-right {
    to {
        transform: translateX(0);
    }
}

.hero-logo {
    max-width: 90%;
    height: auto;
    max-height: 180px;
    animation: hero-logo-slide 1.2s ease-out forwards;
}

@keyframes hero-logo-slide {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--bitcom-red);
}

.hero p {
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto 22px;
    color: #e0e0e0;
}

.hero .cta-btn {
    display: inline-block;
    padding: 11px 30px;
    background-color: var(--bitcom-red);
    color: #ffffff;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.hero .cta-btn:hover {
    background-color: #d62828;
}

/* CTA panel */
.cta-panel {
    background: var(--bitcom-white);
    padding: 40px 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    border-top: 3px solid var(--bitcom-red);
}

.cta-panel-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-copy h2 {
    font-size: 24px;
    color: var(--bitcom-dark);
    margin-bottom: 8px;
}

.cta-copy p {
    color: #555555;
    margin-bottom: 14px;
    max-width: 640px;
}

.cta-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cta-badge {
    background: rgba(230, 57, 70, 0.12);
    color: var(--bitcom-red);
    padding: 8px 12px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 13px;
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cta-main-btn {
    display: inline-block;
    padding: 11px 24px;
    background-color: var(--bitcom-red);
    color: #ffffff;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.cta-main-btn:hover {
    background-color: #d62828;
}

/* Gumbi za povpraševanje */
.btn-inquiry {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    text-decoration: none;
    background-color: #ffffff;
    color: var(--bitcom-red);
    border: 2px solid var(--bitcom-red);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-inquiry:hover {
    background-color: var(--bitcom-red);
    color: #ffffff;
    border-color: var(--bitcom-red);
}

/* Sections */
section {
    padding: 70px 20px;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 26px;
    margin-bottom: 18px;
    color: var(--bitcom-dark);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-title .inline-logo-bitcom {
    height: 1em;
    width: auto;
    vertical-align: middle;
    margin-left: 6px;
}

.section-subtitle {
    font-size: 15px;
    color: #777777;
    text-align: center;
    margin-bottom: 38px;
}

/* Logotipi znamk (tekoči trak) */
.logo-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-track {
    display: flex;
    animation: scroll-logos 40s linear infinite;
    width: max-content;
}

.logo-track img {
    height: 40px;
    width: 120px;
    object-fit: contain;
    margin: 0 40px;
    flex-shrink: 0;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* O podjetju */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.about-text p {
    margin-bottom: 14px;
}

.about-highlight {
    background-color: #ffffff;
    border-left: 4px solid var(--bitcom-red);
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    font-size: 14px;
    color: #555555;
}

/* Storitve */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-top: 3px solid var(--bitcom-red);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.service-card h3 {
    margin-bottom: 8px;
    font-size: 17px;
    color: var(--bitcom-dark);
    text-align: center;
}

.service-card p {
    font-size: 14px;
    color: #555555;
}

/* Zakaj Bitcom */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.why-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.why-item h3 {
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--bitcom-dark);
    text-align: center;
}

.why-item p {
    font-size: 14px;
    color: #555555;
}

@media (min-width: 900px) {
    .why-item.advanced-diagnostics {
        grid-column: 2;
    }
}

/* Kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.contact-details p {
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-details strong {
    color: var(--bitcom-dark);
}

.contact-form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.contact-form .form-group {
    margin-bottom: 14px;
}

.contact-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #444444;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 9px 10px;
    border-radius: 4px;
    border: 1px solid #cccccc;
    font-size: 14px;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 110px;
    resize: vertical;
}

.map-embed {
    display: block;
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 6px;
}

.contact-form button {
    margin-top: 6px;
    padding: 10px 24px;
    background-color: var(--bitcom-red);
    color: #ffffff;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

.contact-form button:hover {
    background-color: #d62828;
}

/* Footer */
footer {
    background-color: var(--bitcom-dark);
    color: #cccccc;
    padding: 25px 20px;
    text-align: center;
    font-size: 13px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 8px;
}

.footer-nap {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #f0f0f0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    text-decoration: underline;
}

.footer-meta {
    color: #b5b5b5;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 15px;
    }

    .cta-panel-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-container {
        gap: 12px;
        justify-content: flex-start;
        align-items: center;
        position: relative;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }

    nav {
        position: static;
        display: flex;
        align-items: center;
        gap: 10px;
        order: 3;
    }

    .logo-20years {
        height: 32px;
        margin-left: 6px;
        order: 1;
    }

    nav .lang-switch {
        margin-left: 0;
        order: 2;
        font-size: 12px;
    }

    nav ul {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 6px);
        flex-direction: column;
        background: #ffffff;
        padding: 12px 16px;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 8px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
        align-items: flex-start;
        display: none;
        min-width: 210px;
        gap: 10px;
        z-index: 1001;
        order: 4;
        display: none !important;
    }

    nav.open ul {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    section {
        padding: 55px 18px;
    }

    .hero {
        min-height: 420px;
    }

    .hero-logo-split {
        max-height: 140px;
        margin-top: 30px;
    }

    .cta-panel {
        padding: 32px 18px;
    }

    .cta-copy h2 {
        font-size: 22px;
    }

    .cta-copy p {
        font-size: 14px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .logo-track img {
        height: 32px;
        width: auto;
        margin: 0 22px;
    }


    .service-card {
        padding: 16px;
    }

    .contact-form {
        padding: 16px;
    }

    nav a {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 37px;
        font-size: 15px;
    }

    header {
        padding: 1px 0;
    }

    .header-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        flex-wrap: nowrap;
        padding: 0 4px;
    }

    .logo-main {
        height: 22px;
    }

    .logo-only {
        flex-shrink: 0;
        order: 2;
    }

    nav {
        margin-left: auto;
        gap: 5px;
        order: 3;
    }

    .nav-toggle {
        order: 1;
    }

    .logo-20years {
        margin-left: 0;
    }

    .hero {
        min-height: 360px;
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 13px;
    }

    .logo-track img {
        height: 26px;
        width: auto;
        margin: 0 14px;
    }


    .cta-copy h2 {
        font-size: 20px;
    }

    .cta-copy p {
        font-size: 13px;
    }

    .cta-badge,
    .cta-main-btn,
    .btn-inquiry {
        font-size: 12px;
    }

    .cta-actions {
        width: 100%;
    }

    nav a {
        font-size: 13px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .service-card h3 {
        font-size: 16px;
    }

    .service-card p,
    .why-item p,
    .contact-details p,
    .contact-form label,
    .contact-form input,
    .contact-form textarea,
    .footer,
    .footer-meta,
    .footer-nap,
    .footer-links {
        font-size: 13px;
    }

    .map-embed {
        min-height: 260px;
        height: 320px;
    }

    footer {
        padding: 18px 14px;
    }

    .footer-inner {
        gap: 6px;
    }

    .footer-nap,
    .footer-links {
        gap: 6px;
    }

    .footer-meta {
        font-size: 12px;
    }
}
