:root {
    --primary-green: #3A5A40;
    --light-green: #588157;
    --pale-green: #A3B18A;
    --beige: #DAD7CD;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #F4F1EA;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--text-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background-color: var(--light-green);
    display: block;
    margin: 10px auto 0;
}

.section-padding {
    padding: 5rem 10%;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    transition: padding 0.3s, box-shadow 0.3s;
}

nav.scrolled {
    padding: 0.7rem 10%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.13);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-green);
}

.logo-img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--light-green);
    display: block;
    transition: border-color 0.3s, transform 0.3s;
}

.logo-img:hover {
    border-color: var(--primary-green);
    transform: scale(1.05);
}

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

.nav-links li a {
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-green);
    transition: width 0.3s;
}

.nav-links li a:hover::after,
.nav-links li a.active-link::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active-link {
    color: var(--light-green);
}

/* --- HAMBURGER MENU --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--primary-green);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Logo na dnu mobilnog menija */
.nav-logo-bottom {
    display: none;
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
}

.nav-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--pale-green);
    opacity: 0.75;
}

/* --- HERO SLIDESHOW --- */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.38), rgba(0,0,0,0.52));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.35);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Slide dots */
.slide-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: var(--white);
    transform: scale(1.25);
}

/* --- BUTTONS --- */
.btn {
    background-color: var(--light-green);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
    display: inline-block;
}

.btn:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--light-green);
    color: var(--light-green);
}

.btn-outline:hover {
    background-color: var(--light-green);
    color: var(--white);
}

/* --- ABOUT SECTION --- */
#o-nama {
    background-color: var(--white);
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-img {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

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

/* --- GALLERY SECTION --- */
#galerija {
    background-color: var(--beige);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* Preview: 4 slike u 2x2 gridu */
.gallery-preview {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- LIGHTBOX --- */
#lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    transition: opacity 0.2s;
}

.close-lightbox:hover {
    opacity: 0.7;
}

/* --- OFFER SECTION --- */
#ponuda {
    background-color: var(--white);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.offer-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.offer-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.offer-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

/* --- CONTACT SECTION --- */
#kontakt {
    background-color: var(--pale-green);
    color: var(--primary-green);
}

.contact-container {
    display: flex;
    gap: 4rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-detail {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 4px !important;
    line-height: 1.6;
}

/* Social ikonice */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
    transition: opacity 0.3s, transform 0.2s;
}

.social-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.social-btn.facebook {
    background-color: #1877F2;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--beige);
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 0.95rem;
}

input:focus, textarea:focus {
    border-color: var(--light-green);
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.12);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 0.8rem 0 0.5rem;
}

.footer-socials a {
    color: var(--pale-green);
    transition: color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
}

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

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .hero-slide {
        background-attachment: scroll;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2.5rem;
        gap: 1.5rem;
        box-shadow: -5px 0 20px rgba(0,0,0,0.12);
        z-index: 1050;
        transition: transform 0.3s;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-logo-bottom {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: auto;
        padding-top: 1.5rem;
        border-top: 1px solid var(--beige);
    }

    .nav-links li a {
        font-size: 1.1rem;
    }

    #hero h1,
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    #o-nama,
    .contact-container {
        flex-direction: column;
    }

    .section-padding {
        padding: 4rem 5%;
    }

    .gallery-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-icons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .gallery-preview {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}
