/*
Theme Name: Imperial Vitality Zone
Theme URI: https://vitalityzone.rs
Author: Imperial Vitality Zone
Description: Custom wellness theme migrated from Webflow
Version: 1.0
Text Domain: imperial-vitality-zone
*/

.templates-badge-wrapper,
.w-webflow-badge,
[class*="webflow-badge"] { display: none !important; }

/* Extra breathing room between hero CTA buttons */
.hero .button-flex,
.hero.inner .button-flex {
    gap: 10px;
}
@media (max-width: 639px) {
    .hero .button-flex,
    .hero.inner .button-flex {
        gap: 4px;
    }
}

/* ===== BLOG INSTAGRAM STRIP ===== */
.ivz-instagram {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}
.ivz-instagram-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}
.ivz-instagram-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}
.ivz-instagram-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.ivz-instagram-grid a {
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 6px;
}
.ivz-instagram-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.ivz-instagram-grid a:hover img { transform: scale(1.06); }
@media (max-width: 767px) {
    .ivz-instagram-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== HOMEPAGE APARATI GRID ===== */
.ivz-aparati-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}
.ivz-aparat-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ivz-aparat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.ivz-aparat-card-img {
    aspect-ratio: 4 / 3;
    width: 100%;
    background: rgba(0,0,0,0.04);
    overflow: hidden;
}
.ivz-aparat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ivz-aparat-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    margin: 20px 15px;
    letter-spacing: 0.03em;
}
@media (max-width: 991px) {
    .ivz-aparati-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 639px) {
    .ivz-aparati-grid { grid-template-columns: 1fr; }
}

/* ===== SINGLE POSTS (usluga, aparat) ===== */

/* --- Hero: breadcrumb, title, excerpt --- */
.ivz-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    font-family: 'Syne', sans-serif;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    opacity: 0.85;
}
.ivz-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.ivz-breadcrumb a:hover { opacity: 0.7; }
.ivz-breadcrumb-sep { opacity: 0.5; }
.ivz-breadcrumb-current { opacity: 0.7; }

.ivz-single-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.ivz-single-excerpt {
    font-family: 'Syne', sans-serif;
    text-align: center;
    max-width: 680px;
    margin: 1.25rem auto 0;
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* --- Featured image (normalized) --- */
.ivz-single-featured-wrap {
    padding: 40px 0 10px;
}
.ivz-single-featured {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

/* --- Body content (720px column) --- */
.ivz-single-body {
    padding: 50px 0 20px;
}
.ivz-single-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Syne', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.75;
}
.ivz-single-content > *:first-child { margin-top: 0; }
.ivz-single-content > *:last-child { margin-bottom: 0; }
.ivz-single-content p {
    font-family: 'Syne', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.75;
    margin: 0 0 1.25em;
}
.ivz-single-content h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin: 2.5em 0 1em;
    font-size: 1.75rem;
    line-height: 1.25;
    font-weight: 600;
}
.ivz-single-content h3 {
    font-family: 'Playfair Display', serif;
    margin: 2em 0 0.75em;
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 600;
}
.ivz-single-content ul,
.ivz-single-content ol {
    margin: 1em 0 1.5em 1.5em;
    padding: 0;
}
.ivz-single-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}
.ivz-single-content strong { font-weight: 600; }
.ivz-single-content a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ivz-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em auto;
    display: block;
}
.ivz-single-content blockquote {
    margin: 1.75em 0;
    padding: 0.25em 1.25em;
    border-left: 3px solid currentColor;
    font-style: italic;
    opacity: 0.9;
}

/* --- CTA --- */
.ivz-single-cta {
    padding: 30px 20px 60px;
    display: flex;
    justify-content: center;
}
.ivz-single-cta .button-flex {
    justify-content: center;
}

/* --- Related posts --- */
.ivz-single-related {
    padding: 60px 0 80px;
}
.ivz-related-title {
    text-align: center;
    margin: 0 0 2rem;
}
.ivz-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.ivz-related-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ivz-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.18);
}
.ivz-related-card-img {
    aspect-ratio: 4 / 3;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.ivz-related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ivz-related-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ivz-related-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 0.5em;
    font-weight: 600;
}
.ivz-related-card-excerpt {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1em;
    opacity: 0.85;
    flex: 1;
}
.ivz-related-card-more {
    font-family: 'Syne', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .ivz-related-grid { grid-template-columns: repeat(2, 1fr); }
    .ivz-single-featured-wrap { padding: 30px 0 5px; }
    .ivz-single-body { padding: 40px 0 15px; }
}
@media (max-width: 639px) {
    .ivz-related-grid { grid-template-columns: 1fr; gap: 20px; }
    .ivz-single-featured { border-radius: 10px; }
    .ivz-single-content { font-size: 1rem; }
    .ivz-single-content p { font-size: 1rem; }
    .ivz-single-content h2 { font-size: 1.5rem; margin: 2em 0 0.75em; }
    .ivz-single-excerpt { font-size: 1rem; }
    .ivz-single-related { padding: 40px 0 60px; }
}

/* ===== PAGE TEMPLATES ===== */

/* Gallery grid for page-galerija */
.ivz-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.ivz-gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(0,0,0,0.04);
}
.ivz-gallery-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.ivz-gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 991px) { .ivz-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .ivz-gallery-grid { grid-template-columns: 1fr; } }

/* Contact page layout */
.ivz-contact-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}
.ivz-contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-family: 'Syne', sans-serif;
}
.ivz-contact-info .ivz-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.ivz-contact-info img { width: 40px; height: 40px; }
.ivz-contact-info a { color: inherit; text-decoration: none; }
.ivz-contact-form input,
.ivz-contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-bottom: 16px;
    background: #fff;
    transition: border-color 0.2s ease;
}
.ivz-contact-form input:focus,
.ivz-contact-form textarea:focus {
    outline: none;
    border-color: rgba(0,0,0,0.4);
}
.ivz-contact-form textarea { min-height: 140px; resize: vertical; }
.ivz-contact-form .ivz-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ivz-contact-form .ivz-form-row input { margin-bottom: 0; }
@media (max-width: 767px) {
    .ivz-contact-wrap { grid-template-columns: 1fr; gap: 40px; }
    .ivz-contact-form .ivz-form-row { grid-template-columns: 1fr; }
}

/* Archive grids (usluge, aparati listings) */
.ivz-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
@media (max-width: 991px) { .ivz-archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .ivz-archive-grid { grid-template-columns: 1fr; } }

/* ===== HOMEPAGE SECTIONS ===== */
.ivz-homepage-heading {
    text-align: center;
    margin-bottom: 40px;
}
.ivz-homepage-subhead {
    font-family: 'Syne', sans-serif;
    opacity: 0.8;
    margin: 0.5rem 0 0;
    font-size: 1.05rem;
}
