html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif; 
}

body {
    background-color: #F1EDE9;
}

.hero-header {
    position: relative;
    width: 100%;
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 2rem 4rem; 
    z-index: 1;
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.7s ease-in-out; 
    z-index: -1; 
}

.hero-bg-layer.bg-active {
    opacity: 1;
}

.navbar, 
.hero-content, 
.slider-progress-bar {
    position: relative;
    z-index: 2;
}

.navbar {
    position: relative;
    z-index: 100; /* Povećano radi izbornika */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Stilovi za hamburger (Zadano skriven na desktopu) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

.hero-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    flex-grow: 1;
    width: 100%;
    margin-top: 2rem;
}

.hero-text-side {
    width: 100%;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-left: 3rem;
}

.hero-title {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
    font-family: 'Darker Grotesque', sans-serif;
    width: 80%;
}

.cta-button {
    align-self: flex-start;
    border-radius: 1.778px;
    background: linear-gradient(97deg, #CEB679 0%, #C4B48C 32.77%, #D8C9A4 56.8%, #C1A45A 100%);
    color: #2b2b2b;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero-product-side {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.product-image {
    max-height: 65vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
    animation: float 4s ease-in-out infinite; 
}

.slider-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px; 
    background-color: #CCCCCC;
    z-index: 10;
}

.progress-line {
    height: 100%;
    width: 33.333%; 
    --current-cream-color: #959F92; 
    background-color: var(--current-cream-color); 
    box-shadow: 0 0 3px var(--current-cream-color); 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease; 
}

.progress-line.step-1 { transform: translateX(0%); }
.progress-line.step-2 { transform: translateX(100%); }
.progress-line.step-3 { transform: translateX(200%); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.products-section {
    width: 100%;
    padding: 5rem 4rem;
    background-color: #F1EDE9; 
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(97deg, #CEB679 0%, #C4B48C 32.77%, #D8C9A4 56.8%, #C1A45A 100%) 1;
}

.products-container {
    max-width: 1300px; 
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 2.5rem; 
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    width: 100%;
    max-width: 417px;
    overflow: hidden; 
}

.card-image {
    width: 100%; 
    height: auto;
    aspect-ratio: 417 / 424; 
    object-fit: cover; 
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease-in-out;
}

.product-card:hover .card-image {
    transform: scale(1.07); 
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2b2b2b;
    margin-bottom: 0.3rem;
}

.card-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #767676; 
    font-weight: 400;
}

.about-section {
    width: 100%;
    min-height: 80vh; 
    background: url('image_about.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    padding: 4rem 7rem; 
    position: relative;
}

.about-content {
    max-width: 600px; 
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-title {
    color: #fff;
    font-family: 'Darker Grotesque', sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
}

.about-description {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 1rem;
}

.about-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Pozadina sekcije ostaje Eggshell */
.pure-video-section {
    width: 100%;
    padding: 6rem 2rem;
    background-color: #F1EDE9; 
    display: flex;
    justify-content: center;
    align-items: center;
}

/* NOVO: Ovaj kontejner sada preuzima ulogu velikog bijelog okvira */
.video-frame {
    width: 100%;
    max-width: 1100px; /* Video je povećan */
    background-color: #FFFFFF; /* Bijela pozadina unutrašnjosti okvira */
    
    /* Ekskluzivni široki bijeli okvir i mekana sjena */
    border: 16px solid #FFFFFF; 
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

/* Sam video unutar okvira - čist i bez ometanja od strane YouTubea */
.standalone-video {
    width: 100%;
    height: auto; 
    aspect-ratio: 16 / 9; 
    display: block;
    border: none; /* YouTube više ne može sakriti okvir jer ga on ne crta */
}

.contact-section {
    width: 100%;
    padding: 6rem 4rem;
    background-color: #F1EDE9;
    position: relative; 
    overflow: hidden;
}

.contact-honeycomb-bg {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%); 
    height: 90%; 
    width: auto;
    pointer-events: none; 
    z-index: 1; 
    opacity: 0.85; 
}

.contact-container {
    position: relative;
    z-index: 2; 
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 6rem;
    align-items: flex-start;
}

.contact-form-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-title {
    font-family: 'Darker Grotesque', sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #2b2b2b;
    line-height: 1;
}

.main-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 450px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #2b2b2b;
    font-weight: 500;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #EBE6E1; 
    border: 1px solid #CEB679; 
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #2b2b2b;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #C1A45A;
    box-shadow: 0 0 5px rgba(206, 182, 121, 0.3);
}

.input-group textarea {
    resize: none; 
}

.submit-button {
    align-self: flex-end; 
    border: none;
    background: linear-gradient(97deg, #CEB679 0%, #C4B48C 32.77%, #D8C9A4 56.8%, #C1A45A 100%);
    color: #2b2b2b;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 6rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.info-item span, 
.info-item a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #2b2b2b;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

.info-item a:hover {
    color: #C1A45A;
}

.main-footer {
    width: 100%;
    background-color: #4A4E3D; 
    padding: 3.5rem 4rem;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
}

.footer-links-side {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links-side a {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    width: fit-content;
    transition: color 0.2s ease;
}

.footer-links-side a:hover {
    color: #CEB679; 
}

.footer-copyright-side p {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 400;
}

.footer-brand-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    gap: 1.5rem;
}

.footer-logo img {
    height: 45px;
    width: auto;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.footer-socials a:hover {
    transform: translateY(-2px);
}

.footer-socials img {
    width: 24px; 
    height: 24px;
}

/* --- TABLET MEDIA QUERY --- */
@media (max-width: 1024px) {
    .hero-header { padding: 2rem; }
    .hero-title { font-size: 2.5rem; }
}

/* --- KRAJNJA MOBILNA RESPONSIVNOST (320px - 768px) --- */
@media (max-width: 768px) {
    
    /* 1. HERO HEADER & NAVIGACIJA */
    .hero-header {
        padding: 1.5rem 1rem; /* Smanjen padding na sigurnu marginu za 320px */
        min-height: 100vh;
    }

    .navbar {
        flex-direction: row; /* Zadržava logo lijevo, hamburger desno */
        justify-content: space-between;
        width: 100%;
    }

    /* Aktiviraj gumb */
    .hamburger {
        display: flex;
    }

    /* Animacija pretvaranja hamburgera u X kad je aktivan */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Pretvaranje inline liste u mobilni padajući izbornik */
    .nav-links {
        position: absolute;
        top: 100%;
        left: -1rem; /* Poravnanje s novim rubom ekrana */
        width: calc(100% + 2rem);
        background-color: rgba(74, 78, 61, 0.98); /* Tamno maslinasta s prozirnošću */
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0; /* Sakriveno zadano */
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    /* Otvaranje izbornika pomoću JS klase */
    .nav-links.open {
        max-height: 350px; /* Dovoljno prostora za sve linkove */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1.2rem 0;
        width: 100%;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Sadržaj na Hero dijelu */
    .hero-content {
        grid-template-columns: 1fr; 
        text-align: center;
        gap: 2rem;
        margin-top: 1rem;
    }
    
    .hero-text-side {
        max-width: 100%;
        align-items: center;
        gap: 1.5rem;
        margin-left: 0;
    }

    .hero-title {
        font-size: 2.2rem; /* Prilagođeno da stane na 320px bez prelamanja pojedinačnih slova */
        width: 100%;
    }
    
    .cta-button {
        align-self: center;
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }

    .product-image {
        max-height: 45vh; /* Smanjeno da ne gura progress bar van ekrana */
    }

    /* 2. PROIZVODI SEKCIJA */
    .products-section {
        padding: 4rem 1rem;
    }

    .products-container {
        grid-template-columns: 1fr; 
        gap: 3.5rem;
    }
    
    .product-card {
        align-items: center; 
        text-align: center;
        max-width: 100%; 
    }

    .card-title {
        font-size: 1.3rem;
    }

    /* 3. O NAMA SEKCIJA */
    .about-section {
        padding: 4rem 1rem;
        min-height: auto;
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                    url('image_about.png') center center / cover no-repeat;
    }

    .about-content {
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .about-title {
        font-size: 2.4rem;
    }

    .about-description {
        font-size: 1rem;
    }

    .about-features li {
        justify-content: center; 
        font-size: 1rem;
    }

    /* 4. VIDEO SEKCIJA */
    .pure-video-section {
        padding: 2rem 0; /* Uklonjen bočni padding za maksimalan prikaz videa */
    }

    .standalone-video {
        border: 6px solid #FFFFFF; /* Stanjeni elegantni obrub na malim ekranima */
    }

    /* 5. KONTAKT SEKCIJA */
    .contact-section {
        padding: 4rem 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-side,
    .main-contact-form {
        max-width: 100%;
        width: 100%;
    }

    .contact-title {
        font-size: 2.4rem;
        text-align: center;
    }

    .submit-button {
        align-self: center; 
        width: 100%; 
    }

    .contact-info-side {
        padding-top: 0; 
        align-items: flex-start;
        padding-left: 0.5rem;
        gap: 1.8rem;
    }

    .info-item span, 
    .info-item a {
        font-size: 1rem;
    }

    .contact-honeycomb-bg {
        display: none; /* Sakriveno na mobitelu da ne smeta čitljivosti forme */
    }

    /* 6. FOOTER */
    .main-footer {
        padding: 3rem 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr; 
        gap: 2rem;
        text-align: center;
    }

    .footer-brand-side {
        grid-row: 1; 
        align-items: center;
    }

    .footer-links-side {
        align-items: center;
        gap: 1rem;
    }

    .footer-copyright-side {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.5rem;
        width: 100%;
    }
}