/* --- Global Styles --- */
:root {
    --primary-blue: #1b5e94;
    --dark-blue: #113f67;
    --text-dark: #333333;
    --bg-light: #f4f7fa;
    --border-color: #ddd;
    --white: #ffffff;
    
    /* Dodane boje za "kič" i moderne efekte */
    --gradient-warm: linear-gradient(45deg, #ff512f, #dd2476);
    --gradient-cold: linear-gradient(45deg, #1b5e94, #00d2ff);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Moderni zamućeni efekt pozadine */
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-cold) 1; /* Gradijent linija ispod menija */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.1;
    text-align: center;
    display: block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.logo span {
    font-size: 0.85rem;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* Kič animacija podvlake u navigaciji */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: var(--gradient-cold);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-blue);
}

/* --- Language Switch (Animirana Pilula) --- */
.lang-switch {
    display: inline-flex;
    align-items: center;
    background-color: #eef2f6; /* Svijetla pozadina pilule */
    border-radius: 50px; /* Zaobljeni rubovi */
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.lang-switch a {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.lang-switch a:hover {
    color: var(--primary-blue);
}

.lang-switch a.active {
    background: var(--gradient-cold);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(27, 94, 148, 0.3); /* Lagana plava sjena */
    pointer-events: none; /* Onemogućuje klikanje na već odabrani jezik */
}

/* Hamburger Setup */
.nav-toggle {
    display: none;
}
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 90vh; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    background: linear-gradient(rgba(17, 63, 103, 0.4), rgba(0, 0, 0, 0.7)), 
                url('/hero.jpg') no-repeat center center / cover;
    background-attachment: fixed; 
    padding: 0 20px;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    animation: fadeInUp 1s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    max-width: 700px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #f0f0f0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    max-width: 600px;
}

/* Contact Buttons - Desktop Layout (Horizontal, below button) */
.hero-contact-btns {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 25px;
}

.contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.contact-btn.phone { background-color: var(--primary-blue); }
.contact-btn.whatsapp { background-color: #25D366; }
.contact-btn.email { background-color: #dd2476; }

/* Dodatni kič: lagani animirani ulazak teksta */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(255, 81, 47, 0.4); }
    50% { box-shadow: 0 0 25px rgba(255, 81, 47, 0.8); }
    100% { box-shadow: 0 0 10px rgba(255, 81, 47, 0.4); }
}

.btn {
    background: var(--gradient-warm);
    color: var(--white);
    padding: 15px 35px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    animation: pulseGlow 2s infinite;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(221, 36, 118, 0.6);
}

/* --- Generic Sections --- */
.section-container {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 800;
    background: var(--gradient-cold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    margin-bottom: 40px;
    font-weight: 700;
    color: #888;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #e0e0e0;
    transition: transform 0.5s ease, filter 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1);
}

/* --- Kartice Performansi / Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
    padding: 35px 20px;
    border-radius: 16px;
    border: none;
    border-bottom: 4px solid var(--primary-blue);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-bottom-color: #dd2476;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1));
}

.feature-card h3 {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 800;
}

.feature-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* --- Tables (Performance & Pricing) --- */
.table-container {
    overflow-x: auto;
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: var(--white);
    overflow: hidden;
}

th, td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--gradient-cold);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

tr:nth-child(even) {
    background-color: #f8fbff;
}

tr:hover td {
    background-color: #eef5ff;
    transition: background 0.3s ease;
}

td strong {
    color: var(--dark-blue);
    font-weight: 800;
}

/* --- Book Now Section --- */
.book-section {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

.book-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.book-section h2 {
    color: var(--white);
    background: none;
    -webkit-text-fill-color: var(--white);
    margin-bottom: 40px;
}

.book-form {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 200px;
}

.input-group label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0f0ff;
}

.input-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid transparent;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.input-group input:focus {
    border-color: #00d2ff;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.btn-block {
    width: 100%;
    max-width: 350px;
    margin: 30px auto 0;
    display: block;
    background: var(--gradient-warm);
    color: white;
    font-size: 1.2rem;
}

/* --- Footer --- */
footer {
    background-color: #0a2540;
    color: #a0aec0;
    padding: 60px 20px 20px;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* --- Clean Footer Contact List --- */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact-list svg {
    flex-shrink: 0;
    margin-top: 3px;
    stroke: #00d2ff;
    transition: transform 0.3s ease;
}

.footer-contact-list li:hover svg {
    transform: scale(1.15);
}

.footer-contact-list a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--white);
    font-weight: 800;
}

.footer-col.links a {
    margin-bottom: 10px;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-col.links a:hover {
    color: #00d2ff;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 25px;
    font-size: 0.85rem;
}

/* --- Obavijesti / Alert Poruke --- */
.alert {
    max-width: 900px;
    margin: 0 auto 25px auto;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: fadeIn 0.4s ease-in-out;
}

/* Google Maps stil u footeru */
.map-col iframe {
    width: 100%;
    min-height: 180px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* --- Media Queries (Mobile Responsive) --- */
@media (max-width: 768px) {
    /* Navbar Mobile Layout */
    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 10px 16px;
    }

    /* 1. Left Column: Touch-friendly Hamburger */
    .hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: 1;
        justify-self: start;
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    /* 2. Center Column: Mathematically Centered Logo */
    .logo {
        order: 2;
        justify-self: center;
        text-align: center;
    }

    .logo a {
        font-size: 1.05rem;
        line-height: 1.15;
    }

    .logo span {
        font-size: 0.75rem;
    }

    /* 3. Right Column: Compact Language Switcher */
    .lang-switch {
        order: 3;
        justify-self: end;
        padding: 3px;
    }

    .lang-switch a {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    /* Slide-down Menu Drawer */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 8px 0;
    }

    .nav-links a { 
        padding: 14px 20px; 
        border-bottom: 1px solid #f0f0f0; 
    }

    .nav-toggle:checked ~ .nav-links { 
        display: flex; 
    }

    /* Hero Parallax za mobitele */
    .hero { 
        min-height: 80vh; 
        background-attachment: fixed; 
        background: linear-gradient(rgba(17, 63, 103, 0.4), rgba(0, 0, 0, 0.7)), 
                    url('/heromob.jpg') no-repeat center center / cover;
        
        align-items: stretch; 
        padding: 30px 15px; /* 15px lijevo/desno od ruba ekrana */
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hero-content h1 { 
        order: 1;
        font-size: 2.2rem; 
        max-width: 100%;
        margin-bottom: 10px;
    }

    /* Vertikalni gumbi između H1 i P, poravnati lijevo (15px od ruba) */
    .hero-contact-btns {
        order: 2;
        flex-direction: column;
        gap: 12px;
        align-self: flex-start;
        margin-top: 70px;
        margin-bottom: 45px;
    }
    
    .hero-content p { 
        order: 3;
        font-size: 1.1rem; 
        max-width: 100%;
        margin-top: auto; /* Automatski gura p i gumb na dno */
        margin-bottom: 20px;
    }

    .hero-content .btn {
        order: 4;
        margin-top: 0;
        margin-bottom: 15px; 
    }

    /* Gallery */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    /* Features Grid */
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .feature-card { padding: 25px 15px; }

    /* Form */
    .form-row { flex-direction: column; }
    .input-group { width: 100%; }
    .book-form { padding: 25px 15px; }

    #pricing {
        font-size: 90%;
    }
    #pricing h2 {
        font-size: 2.25rem; /* Scales down the 2.5rem heading by 10% */
    }

    @keyframes whatsappPulse {
        0% {
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        }
        70% {
            box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        }
    }

    .whatsapp-sticky {
        display: flex;
        position: fixed;
        bottom: 30px;
        right: 25px;
        width: 58px;
        height: 58px;
        background-color: #25D366;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        transition: transform 0.1s ease, background-color 0.1s ease;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.2s ease;
        
        animation: whatsappPulse 2s infinite;
        -webkit-tap-highlight-color: transparent;
    }
    
    .whatsapp-sticky.visible {
        opacity: 1;
        visibility: visible;
    }
    
    .whatsapp-sticky svg {
        width: 32px;
        height: 32px;
        fill: #ffffff;
        display: block;
    }

    .whatsapp-sticky:active {
        transform: scale(0.9);
        animation: none;
    }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.8rem; }
}