/* ================================================================
   CITY PAGE STYLESHEET - SLAVONSKI BROD
   Modern, responsive design for city pages
   ================================================================ */

/* ========== ROOT VARIABLES ========== */
:root {
    --primary-color: #2C5F8D;
    --primary-dark: #1A3A52;
    --primary-light: #7BA7D1;
    --text-dark: #1F2937;
    --text-gray: #4B5563;
    --text-light: #6B7280;
    --background-light: #F9FAFB;
    --border-color: #E5E7EB;
    --white: #FFFFFF;
    --overlay-dark: rgba(26, 58, 82, 0.7);
    --overlay-light: rgba(26, 58, 82, 0.5);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== GENERAL STYLES ========== */
body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    background-color: var(--background-light);
    padding: 1rem 2rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--text-light);
    margin: 0 0.5rem;
}

.breadcrumb .current {
    color: var(--text-gray);
    font-weight: 600;
}

/* ========== MAIN HERO SECTION ========== */
.hero-main {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-attachment: fixed;
    opacity: 1;
    z-index: 0;
}

.hero-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(26, 58, 82, 0.5) 0%, 
        rgba(26, 58, 82, 0.7) 100%);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 1200px;
    animation: fadeInUp 1s ease;
}

.hero-main h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* ========== SECTION HERO (for Fortress, Riverside, Town) ========== */
.section-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 3rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-attachment: fixed;
    z-index: 0;
    transition: transform 10s ease;
}

.section-hero:hover::before {
    transform: scale(1.05);
}

.section-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(26, 58, 82, 0.5) 0%, 
        rgba(26, 58, 82, 0.75) 100%);
    z-index: 1;
}

.section-hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--white);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
    padding: 4rem 0;
}

.intro-section {
    background-color: var(--background-light);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.content-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 2rem 0;
    position: relative;
    padding-bottom: 1rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.content-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2.5rem 0 1.5rem 0;
}

.content-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.lead-text {
    font-size: 1.35rem !important;
    font-weight: 400;
    color: var(--text-dark) !important;
    line-height: 1.7 !important;
    margin-bottom: 2rem !important;
    text-align: justify !important;
}

/* ========== GALLERY SECTION ========== */
.gallery-section {
    padding: 3rem 0;
    background-color: var(--background-light);
}

.gallery-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

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

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

/* ========== ACCORDION STYLES ========== */
.accordion {
    max-width: 900px;
    margin: 2rem auto 0;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-header button {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    border: none;
    background: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-fast);
}

.accordion-header button:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.accordion-header button::after {
    content: "▾";
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion-header button[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.accordion-header button[aria-expanded="true"] {
    background: var(--background-light);
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.accordion-header button:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: -2px;
}

.accordion-panel {
    padding: 1.5rem;
    line-height: 1.7;
    color: var(--text-gray);
    background: var(--white);
}

.accordion-panel p {
    margin: 0;
    font-size: 1rem;
    text-align: justify;
}

/* ========== CONCLUSION SECTION ========== */
.conclusion-section {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--white) 100%);
    padding: 5rem 0;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========== RESPONSIVE DESIGN ========== */

/* Large screens */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-main h1 {
        font-size: 3.5rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .hero-main {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-main h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-hero {
        height: 45vh;
        min-height: 350px;
    }
    
    .section-hero h2 {
        font-size: 2.5rem;
    }
    
    .content-section h2 {
        font-size: 2.2rem;
    }
    
    .content-section h3 {
        font-size: 1.6rem;
    }
    
    .content-section p,
    .lead-text {
        font-size: 1.05rem;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .breadcrumb {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero-main {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-main h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-hero {
        height: 40vh;
        min-height: 300px;
        margin-top: 2rem;
    }
    
    .section-hero h2 {
        font-size: 2rem;
    }
    
    .hero-overlay {
        padding: 1.5rem;
    }
    
    .content-section {
        padding: 3rem 0;
    }
    
    .intro-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .content-section h2 {
        font-size: 1.9rem;
        margin-bottom: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.4rem;
        margin: 2rem 0 1rem 0;
    }
    
    .content-section p {
        font-size: 1rem;
        text-align: left;
    }
    
    .lead-text {
        font-size: 1.15rem !important;
        text-align: left !important;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-section {
        padding: 2rem 0;
    }
    
    .gallery-section h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .accordion {
        margin: 1.5rem 0 0;
    }
    
    .accordion-header button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .accordion-panel {
        padding: 1rem;
    }
    
    /* Disable parallax effect on mobile */
    .hero-main::before,
    .section-hero::before {
        background-attachment: scroll;
    }
    
    .conclusion-section {
        padding: 3rem 0;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-main h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-hero h2 {
        font-size: 1.7rem;
    }
    
    .content-section h2 {
        font-size: 1.7rem;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
    }
    
    .accordion-header button {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .accordion-panel {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .hero-main,
    .section-hero,
    .breadcrumb,
    nav,
    footer {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
    }
    
    .accordion-panel {
        display: block !important;
    }
    
    .accordion-header button::after {
        display: none;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .section-hero:hover::before {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #1A3A52;
        --text-dark: #000000;
        --text-gray: #1F1F1F;
        --border-color: #000000;
    }
    
    .accordion-item {
        border-width: 2px;
    }
    
    .content-section h2::after {
        height: 5px;
    }
}
