/*
 * Vinarija Patkoš - Modernizirani Stilovi
 * Verzija: 1.0
 * Baza: M Monting Arhitektura + Patkoš Dizajn
 */

/* ==========================================================================
   1. GLOBALNE VARIJABLE I RESET
   ========================================================================== */

:root {
    --primary-color: #8b0000; /* Tamno crvena, boja vina */
    --secondary-color: #5c0000; /* Još tamnija crvena */
    --accent-color: #d4af37; /* Zlatna za akcente */
    --dark-color: #212121; /* Tamno siva/crna za pozadine i tekst */
    --light-color: #f4f4f4; /* Svijetlo siva za pozadine */
    --text-color: #333; /* Glavna boja teksta */
    --white-color: #ffffff;
    
    --font-primary: 'Georgia', serif; /* Elegantan font za naslove */
    --font-secondary: 'Helvetica Neue', Arial, sans-serif; /* Čitljiv font za tekst */
    
    --container-width: 1200px;
    --section-padding: 80px 0;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
}

/* ==========================================================================
   2. POMOĆNE (UTILITY) KLASE
   ========================================================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 { font-size: 3em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 15px;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.skip-link {
    position:absolute;
    left:-10000px;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
}

.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--dark-color); }
.text-light h2, .text-light h3, .text-light p { color: var(--white-color); }
.text-light a { color: var(--accent-color); }
.text-light a:hover { color: var(--white-color); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   3. HEADER I NAVIGACIJA
   ========================================================================== */

.header {
    background-color: var(--white-color);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    height: 50px;
}

.nav-main a {
    margin: 0 20px;
    font-weight: bold;
    font-family: var(--font-secondary);
    font-size: 1em;
    text-transform: uppercase;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

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

.nav-main a:hover::after,
.nav-main a.active-nav::after {
    width: 100%;
}

.nav-main a.active-nav {
    color: var(--primary-color);
}

.lang-switch {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
    padding: 5px;
    border-radius: 50%;
    font-size: 1.2rem;
}
.lang-switch.active {
    background-color: var(--light-color);
    pointer-events: none;
}

.hamburger {
    display: none;
    font-size: 2em;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 80px; /* Visina headera */
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    padding: 15px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-color);
}

.lang-mobile {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.lang-mobile .lang-switch {
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: var(--border-radius);
}
.lang-mobile span { color: #ccc; }

/* ==========================================================================
   4. SEKCIJE STRANICE
   ========================================================================== */

/* --- HERO --- */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

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

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

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-family: var(--font-primary);
}

/* --- VINA --- */
.vina-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.vino-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vino-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.vino-img {
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    cursor: pointer;
}

.vino-card h3 {
    margin-bottom: 15px;
}

.vino-card p {
    font-size: 0.95em;
    margin-bottom: 20px;
    min-height: 80px; /* Za ujednačavanje visine */
}

.vino-details {
    font-size: 0.9em;
    font-weight: bold;
    color: var(--secondary-color);
}

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

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* --- KONTAKT --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 50px;
}

.contact-info p {
    margin-bottom: 10px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    font-weight: bold;
    font-size: 1.1em;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1em;
}

.contact-form button {
    width: 100%;
    border: none;
}

.map-container iframe {
    border-radius: var(--border-radius);
}

.error-message {
    color: #ffb3b3;
    font-size: 0.9em;
    padding-top: 5px;
    display: block;
    min-height: 1.2em;
}

.form-status {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    border-radius: var(--border-radius);
    text-align: center;
}
.form-status.success { background-color: #d4edda; color: #155724; }
.form-status.error { background-color: #f8d7da; color: #721c24; }


/* ==========================================================================
   5. FOOTER
   ========================================================================== */

.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer p {
    color: #aaa;
}

.footer a {
    color: var(--white-color);
    font-weight: bold;
}
.footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   6. OSTALI KOMPONENTI (BACK-TO-TOP, LIGHTBOX)
   ========================================================================== */

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    border: none;
    z-index: 900;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: scale(1.1);
    color: var(--white-color);
}

.lightbox {
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    display: none; /* Inicijalno sakriven */
}

.lightbox-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-container {
    position: relative;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 80vh;
    animation: zoom 0.5s;
    border-radius: 4px;
}

@keyframes zoom {
    from {transform: scale(0.8)}
    to {transform: scale(1)}
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    transform: scale(1.1);
}

.lightbox-close { top: 15px; right: 35px; font-size: 45px; line-height: 1; }
.lightbox-prev { top: 50%; left: 10px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 10px; transform: translateY(-50%); }

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-family: var(--font-secondary);
}

/* ==========================================================================
   7. RESPONZIVNI DIZAJN
   ========================================================================== */

@media (max-width: 992px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    .hero-content h1 { font-size: 3em; }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-main, .header-actions {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hero-content h1 { font-size: 2.5em; }
    .hero-content p { font-size: 1.2em; }
    .vino-card p { min-height: auto; }
}
/* ==========================================================================
   ISPRAVAK: Boje teksta u kontakt sekciji
   ========================================================================== */

.bg-dark .contact-info h3,
.bg-dark .contact-info p,
.bg-dark .contact-info address {
    color: var(--white-color); /* Postavlja sav tekst na bijelu boju */
}

.bg-dark .contact-info a {
    color: var(--accent-color); /* Linkove postavlja na zlatnu boju radi isticanja */
    font-weight: bold;
}

.bg-dark .contact-info a:hover {
    color: #f1f1f1; /* Svjetlija boja linka na prijelaz mišem */
}
/* Stil za SVG ikonicu društvenih mreža */
.social-links a svg {
    transition: transform 0.3s ease;
}
.social-links a:hover svg {
    transform: scale(1.1) translateY(-2px);
}