/* 
    Zara Fizio Centar - Premium Navy & Gold Design System
    Colors based on Business Card & Client preference
*/

:root {
    /* Brand Colors (Lighter Vibrant Navy based on update) */
    --navy-vibrant: #00427c;
    --navy-deep: #00427c;
    --navy-dark: #002d55;
    --gold: #c5a04e;
    --gold-light: #f3d790;
    --gold-dark: #a68434;
    --off-white: #ffffff; /* Replaced off-white with pure white */
    --text-main: #2c3e50;
    --text-light: #ffffff;
    --text-muted: #a0aec0;

    /* Gradients & Effects */
    --gradient-navy: linear-gradient(135deg, var(--navy-vibrant) 0%, var(--navy-deep) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    --gradient-fade: linear-gradient(to bottom, rgba(0, 66, 124, 0.9), rgba(0, 66, 124, 0));

    /* Layout */
    --container-width: 1200px;
    --section-padding: 100px 20px;
    --border-radius: 20px;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.05); /* Softer shadow */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
    list-style: none;
    text-decoration: none;
}

html {
    background-color: #ffffff; /* White background as requested for margins */
    scroll-behavior: smooth;
}

body {
    background-color: transparent;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.site-wrapper {
    background-color: white;
    max-width: 1800px; /* Full width for premium feel */
    margin: 15px auto 0; /* Added margin-top to make rounded corners visible */
    width: calc(100% - 8px); 
    border-radius: 50px 50px 0 0; /* Large elegant rounding at the top */
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .site-wrapper {
        width: calc(100% - 40px); /* Expanded white margins (20px each side) */
        margin: 10px auto 0;
        border-radius: 35px 35px 0 0;
        box-shadow: 0 0 30px rgba(0,0,0,0.05); /* Subtle shadow to define the edge against white bg */
    }
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Layout Foundations */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

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

.bg-light {
    background-color: white;
}

.grid {
    display: grid;
    gap: 40px;
}

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

.align-center { align-items: center; }

.rounded { border-radius: var(--border-radius); }
.shadow { box-shadow: var(--shadow); }
.img-responsive { width: 100%; height: auto; display: block; }

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--navy-vibrant);
    margin-bottom: 15px;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    margin: 0 auto;
    border-radius: 2px;
}

/* Expertise Section Custom Styles */
.expertise-section {
    background: white;
}

.expertise-image {
    position: relative;
}

.image-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--navy-vibrant);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.sub-heading {
    display: block;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.expertise-content h2 {
    font-size: 2.8rem;
    color: var(--navy-vibrant);
    margin-bottom: 25px;
}

.expertise-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.expertise-list {
    list-style: none;
    margin-bottom: 40px;
}

.expertise-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.expertise-list i {
    color: var(--gold);
    margin-top: 5px;
    font-size: 0.8rem;
}

.expertise-quote {
    padding-left: 25px;
    border-left: 4px solid var(--gold);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-main);
    line-height: 1.5;
}

/* Typography Utilities */
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy-vibrant); }
.bg-navy { background-color: var(--navy-vibrant); color: var(--text-light); }
.bg-gold { background-color: var(--gold); color: var(--navy-vibrant); }

/* Components */

/* Premium Navigation - Fixed inside site-wrapper workaround */
.navbar {
    position: sticky; /* Changed from fixed to sticky to respect site-wrapper limits */
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--gradient-navy);
    padding: 20px 0;
    transition: var(--transition);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

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

.logo img {
    height: 70px; /* Sized for the full logo with text */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
    list-style: none; /* Removed dots */
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gold); /* Changed to gold */
    text-decoration: none; /* Removed underlines */
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold-light);
    text-decoration: none;
}

.nav-links a.nav-cta {
    background: var(--gradient-gold);
    color: var(--navy-deep) !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(197, 160, 78, 0.3);
    text-decoration: none;
}

.nav-links a.nav-cta:hover {
    color: var(--navy-deep) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 160, 78, 0.5);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.nav-links a:hover:not(.nav-cta) {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 1100;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy-vibrant);
    padding: 0 40px 60px;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background: url('assets/Naslovna1_Zara.jpg') center top / cover no-repeat;
    opacity: 1;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%);
    mask-image: linear-gradient(to right, transparent, black 15%);
    display: block;
}

.hero::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin-top: 100px;
}

.hero-badge {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(0, 18, 38, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--gold-light);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
    color: var(--gold); /* Changed to gold as requested */
    max-width: 750px;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 50px;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--gold); /* Changed description to gold as requested */
    max-width: 650px;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-decoration: none !important;
    text-align: center;
}

.btn-primary, .btn-outline {
    background: linear-gradient(180deg, #f7d788 0%, #e0bc65 45%, #c5a04e 100%);
    color: #1a1a1a !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-primary:hover, .btn-outline:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f7d788 45%, #e0bc65 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Methods Section (Exact Match to Screenshot) */
.methods-section {
    background-color: var(--navy-vibrant);
    color: var(--text-light);
    padding: var(--section-padding);
    border-radius: 50px;
}

.methods-section .section-header h2 {
    color: var(--gold);
}

.method-row {
    display: flex;
    align-items: center;
    gap: 100px;
    margin-bottom: 120px;
}

/* Interleaved effect - disabled as per screenshot focus, but can be enabled if desired */
/* .method-row:nth-of-type(even) {
    flex-direction: row-reverse;
} */

.method-content {
    flex: 1;
}

.method-content h3 {
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 25px;
}

.method-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 35px;
    color: var(--text-light);
    opacity: 0.95;
}

.method-image {
    flex: 1.2;
}

.method-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    display: block;
}

.text-link {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.text-link:hover {
    color: var(--gold);
}

/* Services Cards (New Design) */
.services-section {
    padding: var(--section-padding);
    background: var(--off-white);
    text-align: center;
}

.services-section h2 {
    font-size: 3rem;
    color: var(--navy-vibrant);
    margin-bottom: 15px;
}

.services-section .divider {
    margin-bottom: 30px;
}

.service-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: left;
    transition: var(--transition);
}

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

.card-header {
    background: var(--gradient-navy);
    padding: 60px 30px 80px 30px;
    color: var(--text-light);
    position: relative;
    clip-path: ellipse(110% 100% at 50% 0%); /* More pronounced curve */
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-fade);
    z-index: 1;
}

.card-header i, .card-header h3 {
    position: relative;
    z-index: 2;
}

.card-header i {
    font-size: 3.5rem; /* Larger icon on mobile */
    color: var(--gold);
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.card-header h3 {
    font-size: 1.85rem;
    line-height: 1.1;
    font-weight: 700;
}

.card-body {
    padding: 40px 30px;
}

.card-body p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: var(--text-main);
}

/* Feature & Testimonial Cards */
.feature-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--navy-vibrant);
    margin-bottom: 15px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--gold);
    text-align: left;
}

.stars {
    color: var(--gold);
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-card strong {
    color: var(--navy-vibrant);
}

/* Contact Form */
.contact-section {
    padding: var(--section-padding);
    background: var(--gradient-navy);
    color: var(--text-light);
}

.contact-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 30px;
}

.contact-list li {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.1rem;
}

.contact-list i {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-dark);
    font-size: 1.2rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--gold-light);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.12);
}

.footer {
    padding: 40px;
    text-align: center;
    background: var(--navy-dark);
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive Styles */
@media (max-width: 968px) {
    .menu-toggle {
        display: block;
    }

    :root {
        --section-padding: 80px 20px;
    }

    .container {
        padding: 0 25px;
        overflow: hidden;
    }

    .navbar {
        padding: 15px 0;
    }

    .logo img {
        height: 50px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: auto;
        background: var(--navy-deep);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 0;
        transition: all 0.3s ease-in-out;
        z-index: 1000;
        gap: 25px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hero {
        min-height: 100svh;
        padding: 0 20px 80px;
        text-align: center;
        justify-content: center;
        align-items: flex-end;
        border-radius: 0 0 30px 30px;
    }

    .hero-content {
        margin-top: 50px;
        padding-bottom: 10px;
    }

    .hero::after {
        width: 100%;
        opacity: 0.3;
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 50%);
        mask-image: linear-gradient(to bottom, transparent, black 50%);
    }

    .hero h1 {
        font-size: 2.6rem;
        line-height: 1.1;
    }

    .section-header h2, .services-section h2, .contact-info h2 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .sub-heading {
        font-size: 0.9rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 20px;
    }

    .method-row {
        flex-direction: column !important;
        gap: 40px;
        text-align: center;
    }

    .method-image img {
        height: 350px;
    }

    .service-card-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .card-header {
        padding: 50px 25px 70px 25px;
        gap: 15px;
    }

    .card-header i {
        font-size: 3.2rem;
    }

    .card-header h3 {
        font-size: 1.7rem;
    }

    .card-body {
        padding: 35px 25px;
    }

    .card-body p {
        font-size: 1.05rem;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 30px;
    }
}

/* ============================================
   NAVBAR SCROLL EFFECT
   ============================================ */
.navbar.scrolled {
    padding: 10px 0;
    background: rgba(0, 66, 124, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ============================================
   CONTACT LINKS
   ============================================ */
.contact-link {
    color: inherit;
    text-decoration: none;
    transition: text-decoration 0.2s;
}
.contact-link:hover {
    text-decoration: underline;
    color: inherit;
}

/* ============================================
   FOOTER CONTACTS
   ============================================ */
.footer-contacts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer-contact-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color 0.25s;
}

.footer-contact-link:hover {
    color: var(--gold-light);
    text-decoration: none;
}

.footer-contact-separator {
    color: var(--text-muted);
    font-size: 1.2rem;
    opacity: 0.4;
}

/* ============================================
   FAQ ACCORDION SECTION
   ============================================ */
.faq-section {
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    border-radius: 14px;
    border: 1.5px solid rgba(0, 66, 124, 0.12);
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 66, 124, 0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item.open {
    box-shadow: 0 6px 24px rgba(0, 66, 124, 0.12);
    border-color: rgba(197, 160, 78, 0.4);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    text-align: left;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy-vibrant);
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(0, 66, 124, 0.03);
}

.faq-item.open .faq-question {
    color: var(--gold-dark);
}

.faq-icon {
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                padding 0.3s ease;
}

.faq-answer p {
    padding: 0 28px 24px 28px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
    opacity: 0.85;
    margin: 0;
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 18, 45, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #ffffff;
    border-radius: 24px;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 18, 45, 0.35);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: rgba(0, 66, 124, 0.08);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--navy-vibrant);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 66, 124, 0.15);
    transform: rotate(90deg);
}

.modal-body {
    padding: 52px 44px 32px 44px;
    flex: 1;
}

.modal-badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--navy-dark);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--navy-vibrant);
    margin-bottom: 22px;
    line-height: 1.2;
}

.modal-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-main);
}

.modal-content p {
    margin-bottom: 14px;
}

.modal-content p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 24px 44px 36px 44px;
    border-top: 1px solid rgba(0, 66, 124, 0.08);
    display: flex;
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 14px 36px;
    font-size: 1rem;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-body {
        padding: 50px 24px 24px 24px;
    }

    .modal-footer {
        padding: 20px 24px 28px 24px;
    }

    .modal-title {
        font-size: 1.6rem;
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 20px 20px 20px;
    }

    .footer-contacts {
        flex-direction: column;
        gap: 10px;
    }

    .footer-contact-separator {
        display: none;
    }
}
