/* =========================================
   1. GLOBALNE POSTAVKE & VARIJABLE
========================================= */
:root {
    --primary-red: #cf2e2e;
    --dark-bg: #1a1a1a;
}

body {
    font-family: 'Poppins', sans-serif; /* Preporučeni moderni font */
    overflow-x: hidden;
    background-color: #f8f9fa;
}

/* Tipografija */
.fw-black { font-weight: 900 !important; }
.tracking-widest { letter-spacing: 0.2em; }
.italic { font-style: italic; }

/* Custom razmaci (padding) */
.py-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

/* =========================================
   3. LOADER S POZADINSKOM SLIKOM
========================================= */
#loader-overlay {
    position: fixed;
    inset: 1px; /* Poštuje vanjski crveni okvir */
    /* Slika border.png s blagim bijelim overlayem da se crni tekst dobro vidi */
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../img/border.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

@keyframes loadLine {
    0% { width: 0; opacity: 0; }
    50% { width: 100%; opacity: 1; }
    100% { width: 0; opacity: 0; float: right; }
}

/* =========================================
   4. HERO SEKCIJA
========================================= */
#hero-modern {
    position: relative;
    min-height: 90vh; 
    background: url('../img/border.png') center center / cover no-repeat scroll;
    display: flex;
    align-items: center;
}

@media (min-width: 992px) {
    #hero-modern {
        background-attachment: fixed;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Zatamnjenje slike za bolju čitljivost bijelog teksta */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding-top: 80px; /* Razmak za navbar */
}

/* =========================================
   5. UI ELEMENTI & DEKORACIJE
========================================= */
.title-line {
    width: 80px;
    height: 4px;
    background-color: var(--primary-red);
    margin-top: 15px;
    border-radius: 2px;
}

/* =========================================
   6. KARTICE (Cijene i Paketi)
========================================= */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.scale-up {
    transform: scale(1.04);
    box-shadow: 0 10px 25px rgba(207, 46, 46, 0.15) !important;
    z-index: 2;
}

.scale-up:hover {
    transform: scale(1.06) translateY(-5px);
}

/* =========================================
   7. SWIPER GALERIJA (Prilagodbe)
========================================= */
.swiper {
    border-radius: 8px;
    overflow: hidden;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-red) !important;
}

/* =========================================
   8. KONTAKT FORMA & CAPTCHA
========================================= */
.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: none;
}

#captchaInput {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    border: 2px solid #ddd;
}

#captchaInput:focus {
    border-color: var(--primary-red);
}

#submitBtn:disabled {
    background-color: #ccc !important;
    border-color: #ccc !important;
    cursor: not-allowed;
}

/* =========================================
   9. GUMBI (BUTTONS)
========================================= */
.btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #a82323;
    border-color: #a82323;
    transform: scale(1.02);
}

/* =========================================
   KONTAKT FORMA I DRUŠTVENE MREŽE
========================================= */
.social-link-large {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link-large:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
}

/* =========================================
   NOVI FOOTER (MODERNI)
========================================= */
.footer-red {
    background-color: var(--primary-red) !important;
    color: white !important;
    padding: 80px 0 30px 0;
    margin-top: 0;
}

.footer-description {
    line-height: 1.8;
    font-size: 0.95rem;
    opacity: 0.95;
}

.social-icon-footer {
    color: var(--primary-red);
    background: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-icon-footer:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-5px);
}

nav > .nav-item > .nav-link:hover {
    color: #a82323 !important;
}

