/*
====================================
  GLOBALNI STILOVI & RESET (V4 - Premium Izgled)
====================================
*/

:root {
    /* PREMIUM PALETA BOJA */
    --primary-color: #0056b3; /* Dublja, zrelija plava */
    --secondary-color: #28a745; /* Ostavljena za suptilne zelene akcente */
    --dark-color: #343a40; /* Mekša tamna boja za naslove i footer */
    --light-color: #f5f7f9; /* Vrlo svijetla, "hladna" siva pozadina */
    --text-color: #6c757d; /* Profinjenija siva za tekst */
    
    /* PREMIUM TIPOGRAFIJA */
    --heading-font: 'Inter', sans-serif;
    --body-font: 'Inter', sans-serif;
    
    --section-padding: 100px; 
    --border-radius: 10px; 
    --transition-speed: 0.3s;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08); 
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15); 
}

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

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.8rem; }
/* PREMIUM H2 STYLING */
h2 { 
    font-size: 2rem; 
    border-left: none; 
    padding-left: 0;
    position: relative;
    padding-bottom: 5px;
    display: inline-block; 
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px; /* Malo duže */
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Suptilna sjena na liniji */
}
/* END H2 STYLING */

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--dark-color);
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.layout-padding {
    padding: var(--section-padding) 0;
}

.bg-light-gray {
    background-color: var(--light-color);
}

/* PREMIUM GUMBI I POZIVI NA AKCIJU */
.cta-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px; 
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Elegancija */
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.3); /* Jača sjena od primary boje */
}

.cta-primary:hover {
    background-color: #004085; /* Tamnija boja pri prelasku */
    color: #fff;
    transform: translateY(-3px); /* Podizanje gumba */
    box-shadow: 0 12px 25px rgba(0, 86, 179, 0.5); /* Jača sjena i pri hoveru */
}

.cta-primary.full-width {
    width: 100%;
    text-align: center;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    margin-top: 15px;
    color: var(--dark-color);
}

.read-more-link i {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform var(--transition-speed);
}

.read-more-link:hover {
    color: var(--primary-color);
}

.read-more-link:hover i {
    transform: translateX(5px);
}

/*
====================================
  HEADER I NAVIGACIJA
====================================
*/

.header-section {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header Top - Kontakt linija */
.header-top {
    background-color: var(--dark-color);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}

.contact-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-item {
    color: #fff;
    display: flex;
    align-items: center;
}

.contact-item i {
    margin-right: 8px;
    color: var(--secondary-color);
}

/* Header Main - Navigacija */
.header-main .container {
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOGO STILIZACIJA --- */
.logo-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    line-height: 1;
    color: var(--dark-color);
    transition: opacity var(--transition-speed);
}

.logo-main-afr {
    font-size: 1.8rem;
    font-weight: 800; 
    color: var(--primary-color); /* Koristimo primary boju */
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.7rem; 
    font-weight: 400;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px; 
    margin-top: 2px;
}

.logo-brand:hover {
    opacity: 0.8;
}

/* Mobilni izbornik */
.menu-toggler {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 22px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1001;
    padding: 0;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 2px;
    transition: all var(--transition-speed) ease-in-out;
}

.menu-toggler.open .bar:nth-child(2) { opacity: 0; }
.menu-toggler.open .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 8px); }
.menu-toggler.open .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -8px); }

.navbar-collapse {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    transform: translateX(-100%);
    transition: transform var(--transition-speed) ease-in-out;
    padding-top: 100px; 
    overflow-y: auto;
}

.navbar-collapse.open {
    transform: translateX(0);
}

.navbar-nav {
    list-style: none;
    padding: 0;
}

.nav-item {
    border-bottom: 1px solid var(--light-color);
}

.nav-link {
    display: block;
    padding: 15px 30px;
    color: var(--dark-color);
    font-weight: 600;
}

.nav-item.active .nav-link, .nav-link:hover {
    color: var(--primary-color);
    background-color: var(--light-color);
}

.contact-btn-mobile {
    margin-top: 0; 
    padding: 0;
    border-bottom: 1px solid var(--light-color); 
}

.contact-btn-mobile .nav-link {
    color: var(--dark-color) !important;
    background-color: transparent !important;
    padding: 15px 30px !important; 
    text-align: left;
    text-transform: none; 
    border-radius: 0;
}
.contact-btn-mobile .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--light-color) !important;
}

.cta-nav-mobile {
    /* Ostavljeno prazno. Desktop stilizacija je bitna. */
}


/*
====================================
  HERO SEKCIJA
====================================
*/
.hero-section {
    background: linear-gradient(135deg, var(--light-color) 0%, #fff 100%); /* Lagani, čisti gradijent */
    padding: 60px 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-color);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* PREMIUM HERO IMAGE */
.hero-image {
    max-width: 90%;
    margin: 0 auto;
    position: relative;
    padding: 10px; 
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); 
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--border-radius) - 5px);
    box-shadow: none;
}

/* Animacije za Hero sekciju */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlide 0.8s forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*
====================================
  CONTENT SEKCIJE
====================================
*/

.content-section {
    padding: var(--section-padding) 0;
    border-bottom: 1px solid #f0f0f0;
}

.heading-center {
    text-align: center;
    margin-bottom: 50px;
}
/* Centriraj underline liniju za centrirane naslove */
.heading-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.content-row {
    display: flex;
    flex-direction: column; 
    gap: 40px;
    align-items: center;
    text-align: center;
}

.content-text, .content-image {
    width: 100%;
}

.content-text {
    padding: 0 20px;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* Image Hover Effect */
.image-hover-effect {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.image-hover-effect img {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.image-hover-effect:hover img {
    transform: scale(1.05);
}

.reverse-on-mobile {
    flex-direction: column-reverse;
}

/*
====================================
  KONTAKT SEKCIJA
====================================
*/

.contact-section {
    background-color: #fff;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* PREMIUM FORMA STILIZACIJA */
.premium-form input,
.premium-form textarea {
    width: 100%;
    padding: 16px; /* Veći padding */
    margin-bottom: 18px;
    border: 1px solid #e0e0e0; /* Vrlo lagani border */
    border-radius: 8px; /* Manje zaobljen za poslovni izgled */
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.premium-form input:focus,
.premium-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.3); /* Fokusirano na liniju */
    outline: none;
}

.premium-form textarea.message-box {
    height: 150px;
    resize: vertical;
}

.form-button-container {
    text-align: center; /* Centriranje gumba na mobilnom */
}

/* Grupacija polja (ime, mobitel, email) - Mobilno */
.form-group-row {
    display: flex;
    flex-direction: column; 
    gap: 20px; 
    margin-bottom: 20px;
}

.form-group-row input {
    margin-bottom: 0 !important; 
}


/* Status poruka (JS) */
.message-status {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
}
.sending-status { background-color: #e2e3e5; color: #383d41; }
.success-status { background-color: #d4edda; color: #155724; }
.error-status { background-color: #f8d7da; color: #721c24; }

/* Mapa - PREMIUM STIL */
.map-container-premium {
    width: 100%;
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* Povećana sjena */
    border: 5px solid #fff; /* Bijeli okvir oko mape */
}

.map-container-premium iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/*
====================================
  INFO I FOOTER SEKCIJE
====================================
*/

.footer-section {
    background-color: var(--dark-color); /* TAMNIJA POZADINA */
    color: #c9c9c9; /* Svjetliji tekst za kontrast */
    padding-top: calc(var(--section-padding) / 1.5); /* Manji padding */
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo u footeru */
.footer-logo {
    align-items: center; 
}

.footer-logo .logo-main-afr {
    color: #fff; 
}

.footer-logo .logo-subtitle {
    color: var(--secondary-color); /* Sekundarna boja za akcenat */
}


.info-logo p {
    font-size: 0.95rem;
    max-width: 400px;
    margin: 15px auto 0; 
}

.info-details h4 {
    color: var(--secondary-color); /* Naslovi detalja u akcent boji */
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
}

.info-item i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.info-item p {
    margin: 0;
    color: #c9c9c9;
}

.social-box h4 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* PREMIUM STIL ZA IKONE */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: all var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.social-links a:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px); 
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/*
====================================
  DESKTOP RESPONZIVNOST (>= 992px) - Ažuriranje
====================================
*/
@media (min-width: 992px) {
    
    h1 { font-size: 4.2rem; }
    h2 { font-size: 2.5rem; }
    
    /* HEADER */
    .contact-bar { justify-content: flex-end; }
    .header-main .container { padding: 20px 0; }

    /* Logo na desktopu */
    .logo-brand {
        flex-direction: row; 
        align-items: baseline;
    }
    
    .logo-main-afr {
        font-size: 2.2rem; 
        margin-right: 10px;
    }
    
    .logo-subtitle {
        font-size: 0.8rem; 
        margin-top: 0;
        letter-spacing: 3px; 
    }
    
    .menu-toggler { display: none; }

    .navbar-collapse {
        position: static;
        transform: translateX(0);
        height: auto;
        padding-top: 0;
        width: auto;
    }

    .navbar-nav {
        display: flex;
        gap: 5px;
        align-items: center; 
    }

    .nav-item { border-bottom: none; }
    
    .nav-link {
        padding: 10px 15px;
        background-color: transparent !important;
    }
    
    /* DESKTOP CTA GUMB - KONTAKT - KORISTI PREMIUM CTA STIL */
    .contact-btn-mobile {
        margin-left: 15px; 
        border-bottom: none; 
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    .cta-nav-mobile {
        display: inline-block;
        background-color: var(--primary-color) !important;
        color: #fff !important;
        padding: 8px 20px !important; 
        border-radius: 50px; 
        font-weight: 600;
        text-transform: uppercase !important;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        box-shadow: 0 3px 8px rgba(0, 86, 179, 0.3);
    }
    
    .cta-nav-mobile:hover {
        background-color: #004085 !important;
        color: #fff !important;
        transform: translateY(-3px);
        box-shadow: 0 8px 18px rgba(0, 86, 179, 0.4);
    }

    .nav-item:not(.contact-btn-mobile) .nav-link:hover {
        color: var(--primary-color);
        background-color: transparent; 
    }

    /* HERO */
    .hero-section { padding: 120px 0; }

    .hero-content {
        flex-direction: row;
        text-align: left;
    }
    
    .hero-text { flex: 1; max-width: 50%; }

    .hero-image { flex: 1; max-width: 50%; }
    
    /* CONTENT SEKCIJE */
    .content-row {
        flex-direction: row;
        text-align: left;
    }
    
    .content-text h2::after {
        left: 0;
        transform: translateX(0);
    }

    .content-text, .content-image { width: 50%; }
    
    .reverse-on-mobile {
        flex-direction: row-reverse;
    }
    
    .content-text { padding: 0 50px; }
    
    .content-text h2 { margin-top: 0; }

    /* KONTAKT SEKCIJA NA DESKTOPU */
    .contact-row {
        flex-direction: row; 
    }

    .contact-form-col {
        padding-right: 30px;
    }
    
    .contact-map-col {
        min-height: 450px; 
    }

    /* Gumb na desktopu */
    .premium-form .cta-primary {
        width: auto; 
        display: inline-block;
    }

    .form-button-container {
        text-align: left; /* Postavite gumb lijevo za premium izgled */
    }
    
    /* NOVO: STILIZACIJA GRUPE POLJA NA DESKTOPU */
    .form-group-row {
        flex-direction: row; /* Slaganje polja u red */
        gap: 30px; 
        margin-bottom: 30px; 
    }

    /* Polja unutar reda dijele prostor na pola */
    .form-group-row input {
        width: 50% !important; 
    }
    
    /* Ako je jedno polje unutar .form-group-row, zauzima cijelu širinu */
    .form-group-row:has(input:only-child) input {
        width: 100% !important;
    }
    
    /* INFO FOOTER */
    .info-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .info-logo { max-width: 300px; }

    .info-item { justify-content: flex-start; }

    .info-logo p { margin: 15px 0 0; }

    .social-links { justify-content: flex-start; }
    
    /* GALERIJA NA DESKTOPU */
    .photo-gallery {
        grid-template-columns: repeat(4, 1fr); 
        gap: 20px;
    }
}

/*
====================================
  DODATNI STILOVI: PREMIUM LISTA I GALERIJA
====================================
*/

/* PREMIUM LIST STILIZACIJA (Korištena u zastomi.html) */
.premium-list {
    list-style: none; /* Ukloni default bullet */
    padding-left: 0;
    margin-top: 15px;
}

.premium-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--dark-color);
}

.premium-list li i {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0; /* Osigurava da ikona ostane na mjestu */
    margin-top: 2px;
}

/* GALERIJA STILIZACIJA (Korištena u zastomi.html) */
.photo-gallery-section {
    padding-bottom: 70px; /* Manji padding na dnu */
}

.photo-gallery {
    display: grid;
    /* Mobilno: Dva stupca */
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Desktop Raspored Galerije */
@media (min-width: 992px) {
    .photo-gallery {
        /* Desktop: Četiri stupca */
        grid-template-columns: repeat(4, 1fr); 
        gap: 20px;
    }
}