
/* =================================
   1. GLOBALNE PROMENLJIVE
================================= */

:root {
    --primary-color: #B91C1C;
    --background-color: #101010;
    --text-color: #FFFFFF;

    --card-background: #1B1B1B;
    --border-color: #303030;

    --border-radius: 16px;
    --transition: 0.25s ease;
}


/* =================================
   2. RESET
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background-color);
    color: var(--text-color);

    min-height: 100vh;
    padding: 25px 16px;

    -webkit-font-smoothing: antialiased;
}


/* =================================
   3. GLAVNI KONTEJNER
================================= */

#app {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}


/* =================================
   4. HEADER FOTOGRAFIJA
================================= */

#business-header {
    text-align: center;
    margin-bottom: 30px;
}

.hero-image {
    width: 100%;
    height: 210px;

    overflow: hidden;
    border-radius: 18px;

    background: #252525;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}


/* =================================
   5. INFORMACIJE O BIZNISU
================================= */

.business-info {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-top: -42px;
    position: relative;
}

#business-logo {
    width: 100px;
    height: 100px;

    object-fit: contain;

    background: #1B1B1B;
    border: 4px solid var(--background-color);
    border-radius: 20px;

    padding: 1px;

    margin-bottom: 14px;
}

#business-name {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.6px;

    margin-bottom: 9px;
}

#business-description {
    font-size: 14px;
    line-height: 1.6;

    color: #A3A3A3;

    max-width: 320px;
}


/* =================================
   6. KONTEJNER KARTICA
================================= */

#cards-container {
    display: flex;
    flex-direction: column;

    gap: 12px;
    width: 100%;
}


/* =================================
   7. POJEDINAČNA KARTICA
================================= */

.business-card {
    background: var(--card-background);

    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);

    overflow: hidden;

    transition: border-color var(--transition),
                background var(--transition);

    animation: fadeIn 0.4s ease both;
}

.business-card.expanded {
    border-color: var(--primary-color);
}


/* =================================
   8. NASLOV KARTICE
================================= */

.card-toggle {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px;

    background: transparent;
    border: none;

    color: var(--text-color);

    font-size: 16px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;

    font-family: inherit;
}

.card-toggle:active {
    opacity: 0.7;
}


/* =================================
   9. STRELICA
================================= */

.card-arrow {
    font-size: 23px;
    color: #999999;

    transition: transform var(--transition);
}

.business-card.expanded .card-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}


/* =================================
   10. SADRŽAJ KARTICE
================================= */

.card-content {
    padding: 0 20px 20px;
}

.card-content[hidden] {
    display: none;
}

.card-content p {
    font-size: 14px;
    line-height: 1.6;

    color: #AAAAAA;

    margin-bottom: 15px;
}


/* =================================
   11. AKCIONO DUGME
================================= */

.card-action {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 14px 18px;

    background: var(--primary-color);
    color: #FFFFFF;

    border-radius: 11px;

    text-decoration: none;
    text-align: center;

    font-size: 14px;
    font-weight: 600;

    transition: opacity var(--transition),
                transform var(--transition);
}

.card-action:hover {
    opacity: 0.88;
}

.card-action:active {
    transform: scale(0.97);
}


/* =================================
   12. FOOTER
================================= */

#site-footer {
    text-align: center;
    margin-top: 35px;
    padding-bottom: 15px;
}

#site-footer p {
    font-size: 10px;
    font-weight: 600;

    letter-spacing: 2px;

    color: #666666;
}


/* =================================
   13. ANIMACIJE
================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =================================
   14. RESPONSIVE
================================= */

@media (max-width: 600px) {

    body {
        padding: 18px 14px;
    }

    .hero-image {
        height: 190px;
    }

    #business-name {
        font-size: 25px;
    }

    .card-toggle {
        padding: 19px;
    }

}


/* =================================
   15. ACCESSIBILITY
================================= */

.card-toggle:focus-visible,
.card-action:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =================================
   16. SERVICES KARTICA
================================= */

.services-list {
    padding-left: 20px;
    margin-bottom: 15px;
}

.services-list li {
    color: #AAAAAA;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 5px;
}


/* =================================
   17. CONTACT KARTICA
================================= */

.card-contact .card-action {
    margin-bottom: 10px;
}

.card-contact .card-action:last-child {
    margin-bottom: 0;
}


/* =================================
   18. ABOUT KARTICA
================================= */

.card-about .card-content p {
    line-height: 1.8;
}