/* ===== RESPONSIVE DESIGN ===== */

/* TABLET (768px - 1024px) */
@media (max-width: 1024px) {
    .logo {
        font-size: 20px;
    }

    .nav-list {
        gap: 15px;
        font-size: 13px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-about-with-aside {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-deco-branch-left,
    .hero-deco-branch-right {
        width: 130px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-content h2 {
        font-size: 24px;
    }

    /* ---- "Čime se sve bavimo?" menu list ---- */
    .menu-section {
        margin-top: 60px;
        padding-top: 56px;
    }

    .menu-section-head h2 {
        font-size: 32px;
    }

    .menu-row-media {
        width: 80px;
        height: 80px;
    }

    .menu-row-title {
        font-size: 21px;
    }
}

/* MOBILE (< 768px) */
@media (max-width: 768px) {
    /* header row: logo left, hamburger right */
    .header-top {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 12px 0;
    }

    .logo {
        font-size: 16px;
        text-align: left;
        width: auto;
        flex: 1;
    }

    /* show hamburger button */
    .hamburger {
        display: flex;
    }

    /* nav hidden by default on mobile, full-width dropdown when open */
    .nav {
        display: none;
        width: 100%;
        order: 10;
        padding: 8px 0 12px;
        border-top: 1px solid #e8f0e0;
    }
    .nav.nav-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
        text-align: left;
    }

    .nav-list a {
        display: block;
        padding: 10px 14px;
        border-radius: 6px;
        font-size: 14px;
    }

    /* lang-switch in column nav: remove right border, add bottom separator */
    .lang-switch-item {
        border-right: none;
        border-bottom: 1px solid #dde8d4;
        padding-right: 0;
        margin-right: 0;
        padding-bottom: 10px;
        margin-bottom: 4px;
        width: 100%;
    }

    .lang-switch {
        padding: 4px 14px;
    }

    /* hide auth buttons on mobile (accessible via nav or footer) */
    .header-auth {
        display: none;
    }

    /* ---- HERO SECTION ---- */
    .hero {
        padding: 0 20px 110px;
    }

    .hero h2 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

    /* keep the small screen focused on the message, not the decoration */
    .hero-deco-branch-left,
    .hero-deco-branch-right {
        display: none;
    }

    .hero-deco-skyline {
        opacity: 0.12;
    }

    .site-logo {
        height: 34px;
    }

    /* ---- HERO ABOUT (Tko smo mi?) ---- */
    .hero-about {
        margin-top: 52px;
        padding-top: 44px;
    }

    .hero-about h2 {
        font-size: 28px;
    }

    .hero-about p {
        font-size: 15px;
    }

    /* ---- "Čime se sve bavimo?" menu list ---- */
    .menu-section {
        margin-top: 48px;
        padding-top: 40px;
    }

    .menu-section-head {
        margin-bottom: 34px;
    }

    .menu-section-head h2 {
        font-size: 26px;
    }

    .menu-row {
        flex-direction: column;
        gap: 14px;
        padding: 24px 0;
    }

    .menu-row-num {
        display: none;
    }

    .menu-row-media {
        width: 100%;
        height: 160px;
    }

    .menu-row-head {
        flex-wrap: wrap;
        gap: 8px;
    }

    .menu-row-leader {
        display: none;
    }

    .menu-row-title {
        font-size: 21px;
    }

    .menu-row-desc {
        max-width: none;
    }

    /* ---- CONTENT SLIDER ---- */
    .slide-img {
        height: 180px;
    }

    .festival-card {
        min-height: 300px;
    }

    .hero-arrow {
        top: 64px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .hero-arrow-prev { left: 10px; }
    .hero-arrow-next { right: 10px; }


    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    /* ---- NEWS SECTION (homepage) ---- */
    .news {
        padding: 60px 20px 65px;
    }

    /* Collapse the inline-styled 1fr 360px news grid to single column
       and move the aside (Latest News card) below the sections list */
    .news .container > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
    }

    .news .container > div > aside {
        order: 2;
    }

    .news .container > div > div:first-child {
        order: 1;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .news h3,
    .info h3 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    /* ---- CATEGORY FILTER BUTTONS ---- */
    #category-filters {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        gap: 8px !important;
    }

    #category-filters .filter-btn,
    #category-filters .btn {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 10px 14px;
        font-size: 13px;
    }

    /* ---- CONTACT PAGE TWO-COLUMN GRID ---- */
    /* Targets the inline grid: grid-template-columns: 1fr 1fr on contact page */
    .page-content .container > div[style*="grid-template-columns"] {
        display: block !important;
    }

    .page-content .container > div[style*="grid-template-columns"] > div + div {
        margin-top: 40px;
    }

    /* ---- LAYOUT HELPER GRIDS ---- */
    .grid.grid-2,
    .grid.grid-3 {
        grid-template-columns: 1fr !important;
    }

    /* ---- CARD & NEWS-ITEM PADDING ---- */
    .card {
        padding: 16px;
    }

    .news-item {
        padding: 16px;
    }

    /* ---- INFO & PAGE SECTIONS ---- */
    .info {
        padding: 50px 20px;
    }

    .page-header {
        padding: 40px 20px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .page-content {
        padding: 40px 20px;
    }

    .page-content h2 {
        font-size: 20px;
    }

    .page-content h3 {
        font-size: 18px;
    }

    .page-content p,
    .page-content li {
        font-size: 15px;
    }

    /* ---- FOOTER ---- */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer {
        padding: 40px 20px 20px;
    }

    .footer-bottom {
        padding-top: 16px;
        font-size: 12px;
    }
}

/* SMALL MOBILE (< 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 16px;
    }

    .nav-list {
        gap: 8px;
        font-size: 12px;
    }

    /* ---- HERO ---- */
    .hero {
        padding: 36px 15px 48px;
    }

    .hero h2 {
        font-size: 22px;
    }

    .hero p {
        font-size: 13px;
    }

    /* ---- CONTENT SLIDER ---- */
    .slide-img {
        height: 150px;
    }

    .festival-card {
        min-height: 240px;
    }

    /* ---- NEWS ---- */
    .news {
        padding: 36px 15px;
    }

    .news-item {
        padding: 14px;
    }

    /* ---- CARD ---- */
    .card {
        padding: 14px;
    }

    /* ---- CATEGORY FILTER BUTTONS ---- */
    #category-filters .filter-btn,
    #category-filters .btn {
        font-size: 12px;
        padding: 9px 11px;
        min-height: 40px;
    }

    /* ---- INFO ---- */
    .info {
        padding: 36px 15px;
    }

    .info-content {
        font-size: 14px;
    }

    /* ---- PAGE SECTIONS ---- */
    .page-header {
        padding: 28px 15px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .page-content {
        padding: 28px 15px;
    }

    .page-content h2 {
        font-size: 18px;
    }

    .page-content h3 {
        font-size: 16px;
    }

    .page-content p,
    .page-content li {
        font-size: 14px;
    }

    /* ---- BUTTONS ---- */
    .btn-small {
        min-width: 100px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* ---- NEWS ITEM TYPOGRAPHY ---- */
    .news-item h4 {
        font-size: 16px;
    }

    /* ---- FOOTER ---- */
    .footer {
        padding: 32px 15px 16px;
    }

    .footer-section h5 {
        font-size: 14px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 12px;
    }

    .footer-content {
        gap: 24px;
    }
}
