/* ==========================================================
   VILLA PIANO - MINIMALIST LUXURY STYLESHEET
   Primarna boja: #f59b96 (boja vile)
   Dopunska boja: #a2c2e0
   Neutralna boja: #e0e0e0
   Čist, elegantan dizajn bez suvišnih widgeta i emotikona
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

:root {
    --primary: #f59b96;
    --primary-hover: #e88782;
    --primary-dark: #cf6b65;
    --primary-light: #fff3f2;

    --secondary: #a2c2e0;
    --secondary-hover: #8db5d8;
    --secondary-light: #f2f7fc;

    --border: #e0e0e0;
    --border-light: #ececec;

    --bg-page: #fdfcfb;
    --bg-card: #ffffff;
    --bg-footer: #f5f1ed; /* Topla, svijetla neutralna nijansa umjesto crne */

    --text-main: #24292e;
    --text-muted: #57606a;
    --text-light: #8c959f;

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow-subtle: 0 4px 18px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* BASE RESET */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* <picture> s WebP ne smije mijenjati raspored — img ostaje izravno dijete roditelja */
picture {
    display: contents;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-main);
}

h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER & BRANDING */
header.site-header {
    text-align: center;
    padding: 36px 0 24px;
}

header.site-header h1 {
    margin-bottom: 6px;
}

header.site-header h2 {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-muted);
}

/* NAVIGATION */
.site-nav {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand img {
    height: 44px;
    width: auto;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.nav-brand-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 6px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links li.active a {
    color: var(--primary-dark);
}

.nav-links li.active a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

.nav-lang {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-icon {
    display: inline-flex;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-icon:hover, .lang-icon.active {
    opacity: 1;
    transform: scale(1.08);
}

.lang-icon img {
    width: 26px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* MOBILE TOGGLE */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-main);
}

.mobile-drawer {
    display: none;
}

/* MAIN CONTENT SECTIONS */
main.main-content {
    padding: 30px 0 60px;
}

/* HERO / FEATURE IMAGE */
.feature-image-block {
    margin-bottom: 36px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.feature-image-block img {
    width: 100%;
    height: auto;
    display: block;
}

/* MINIMAL CONTENT CARD / TEXT BOX */
.content-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 40px;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 40px;
}

.content-box h2.section-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.content-box p {
    margin-bottom: 24px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    letter-spacing: 0.03em;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 155, 150, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* SPLIT ROW (Image + Text) */
.media-text-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 48px;
}

.media-text-row.reverse {
    direction: rtl;
}

.media-text-row.reverse > * {
    direction: ltr;
}

.media-text-row .image-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.media-text-row .image-wrap img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.media-text-row .image-wrap:hover img {
    transform: scale(1.02);
}

.media-text-row .text-wrap h3 {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.media-text-row .text-wrap p {
    font-size: 1.02rem;
    margin-bottom: 18px;
}

/* SADRŽAJI (Villa Contents) */
.contents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 36px 0 50px;
}

.content-group-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    box-shadow: var(--shadow-subtle);
}

.content-group-card h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 14px;
}

.content-group-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.content-group-card li {
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 14px;
}

.content-group-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* MINIMAL CLEAN GALLERY */
.gallery-heading {
    text-align: center;
    margin: 40px 0 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-subtle);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

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

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

.gallery-caption {
    padding: 12px 16px;
    font-size: 0.92rem;
    color: var(--text-main);
    font-weight: 500;
    text-align: center;
    background-color: #ffffff;
    border-top: 1px solid var(--border-light);
}

/* LIGHTBOX MODAL */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(18, 20, 24, 0.88);
}

.lightbox-content {
    position: relative;
    z-index: 1010;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
    width: 100%;
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-size: 0.95rem;
}

.lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--primary);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* PRICING & TERMS (Cjenik) */
.pricing-container {
    max-width: 860px;
    margin: 0 auto;
}

.pricing-table-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    margin: 28px 0 40px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th, .pricing-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.pricing-table th {
    background-color: #faf8f6;
    font-weight: 600;
    color: var(--text-main);
}

.pricing-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
}

.terms-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 36px;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 50px;
}

.terms-card h3 {
    margin-bottom: 18px;
    font-size: 1.4rem;
}

.terms-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terms-card li {
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 18px;
}

.terms-card li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* REVIEWS PLACEHOLDER */
.reviews-section {
    margin: 50px 0;
    padding: 40px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    text-align: center;
}

.reviews-section h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 14px;
}

.reviews-placeholder-note {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.reviews-grid-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.review-slot {
    background-color: #faf9f7;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* CONTACT FORM */
.contact-form-wrap {
    max-width: 680px;
    margin: 0 auto 50px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-subtle);
}

.contact-form-wrap h2 {
    color: var(--text-main);
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-align: center;
}

.contact-form-wrap h3 {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background-color: #faf9f8;
    color: var(--text-main);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    outline: none;
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* FOOTER (WARM, ELEGANT PALETTE INSTEAD OF BLACK) */
footer.site-footer {
    background-color: var(--bg-footer);
    color: var(--text-main);
    border-top: 1px solid var(--border);
    padding: 50px 0 30px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 36px;
}

.footer-map-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-subtle);
    height: 280px;
}

.footer-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-info p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-main);
}

.footer-info em {
    font-style: normal;
    color: var(--text-muted);
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-social-icons a {
    display: inline-flex;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social-icons a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.footer-social-icons img {
    width: 28px;
    height: 28px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .media-text-row,
    .media-text-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .media-text-row .image-wrap img {
        height: 300px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -280px;
        width: 260px;
        height: 100%;
        background-color: #ffffff;
        z-index: 200;
        box-shadow: -4px 0 16px rgba(0,0,0,0.1);
        padding: 24px;
        transition: right 0.25s ease;
    }

    .mobile-drawer.open {
        right: 0;
    }

    .mobile-drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 20px;
    }

    .mobile-drawer-close {
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--text-muted);
    }

    .mobile-nav-list {
        display: flex;
        flex-direction: column;
        gap: 14px;
        list-style: none;
    }

    .mobile-nav-list a {
        font-size: 1.1rem;
        color: var(--text-main);
    }

    .mobile-nav-list li.active a {
        color: var(--primary-dark);
        font-weight: 600;
    }

    .drawer-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(0,0,0,0.4);
        z-index: 150;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .drawer-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .content-box {
        padding: 24px 20px;
    }

    .contact-form-wrap {
        padding: 24px 20px;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}
