/*
* Madarsko Dialnicna Znamka - Responsive Stylesheet
* Version: 1.0
* Author: Roo
* Website: https://madarsko-dialnicna-znamka.sk
*/

/* ===== EXTRA LARGE DEVICES (large desktops, 1200px and up) ===== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.5rem;
    }
}

/* ===== LARGE DEVICES (desktops, 992px and up) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 1rem 0.75rem;
    }
}

/* ===== MEDIUM DEVICES (tablets, 768px and up) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.15rem;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    .two-column-section .text-column {
        padding-right: 1.5rem;
    }
    
    .sidebar {
        position: static;
        margin-top: 3rem;
    }
}

/* ===== SMALL DEVICES (landscape phones, 576px and up) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .two-column-section {
        flex-direction: column;
    }
    
    .two-column-section .text-column {
        padding-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .sidebar {
        position: static;
        margin-top: 3rem;
    }
    
    .parallax-section {
        background-attachment: scroll;
        padding: 3rem 0;
    }
    
    .parallax-title {
        font-size: 2rem;
    }
    
    .parallax-description {
        font-size: 1.1rem;
    }
    
    .footer-heading {
        margin-top: 2rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* ===== EXTRA SMALL DEVICES (portrait phones, less than 576px) ===== */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.35rem;
        margin-top: 2rem;
    }
    
    h3 {
        font-size: 1.15rem;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .two-column-section {
        flex-direction: column;
    }
    
    .two-column-section .text-column {
        padding-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .parallax-section {
        background-attachment: scroll;
        padding: 2rem 0;
        margin: 2rem 0;
    }
    
    .parallax-title {
        font-size: 1.5rem;
    }
    
    .parallax-description {
        font-size: 1rem;
    }
    
    .cta-section {
        padding: 2rem 0;
        margin: 2rem 0;
    }
    
    .cta-banner {
        padding: 1.5rem 0;
        margin: 2rem 0;
        text-align: center;
    }
    
    .cta-banner .btn {
        margin-top: 1rem;
    }
    
    .price-table {
        font-size: 0.9rem;
    }
    
    .price-table th,
    .price-table td {
        padding: 0.5rem;
    }
    
    .footer-heading {
        margin-top: 2rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .cookie-consent {
        text-align: center;
    }
    
    .cookie-consent .btn {
        margin-top: 1rem;
    }
    
    /* Adjust header for mobile */
    .header-contact {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .language-selector {
        display: block !important;
        margin-top: 0.5rem;
        margin-left: 0 !important;
    }
    
    /* Adjust navigation for mobile */
    .navbar-brand {
        max-width: 70%;
    }
    
    .navbar-brand img {
        max-width: 100%;
    }
    
    /* Adjust form elements for mobile */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    /* Adjust accordion for mobile */
    .accordion-header {
        padding: 0.75rem;
    }
    
    .accordion-content {
        padding: 0.75rem;
    }
}

/* ===== CUSTOM MOBILE NAVIGATION ===== */
@media (max-width: 991.98px) {
    /* Custom mobile dropdown styles */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: auto !important;
        margin-top: 0 !important;
        background-color: rgba(0, 122, 51, 0.15) !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-left: 1rem !important;
        border-radius: 0.375rem !important;
        overflow: hidden !important;
        
        /* Initially hidden */
        display: none !important;
        opacity: 0 !important;
        max-height: 0 !important;
        transition: all 0.3s ease !important;
    }
    
    /* Show dropdown when active */
    .navbar-nav .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        max-height: 500px !important;
        padding: 0.5rem 0 !important;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item {
        padding: 0.75rem 1.5rem !important;
        color: rgba(255, 255, 255, 0.85) !important;
        background-color: transparent !important;
        border: none !important;
        display: block !important;
        width: 100% !important;
        clear: both !important;
        font-weight: 400 !important;
        text-align: inherit !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        transition: all 0.2s ease !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item:last-child {
        border-bottom: none !important;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item:hover,
    .navbar-nav .dropdown-menu .dropdown-item:focus,
    .navbar-nav .dropdown-menu .dropdown-item:active {
        color: #fff !important;
        background-color: rgba(0, 122, 51, 0.3) !important;
        text-decoration: none !important;
        transform: translateX(5px) !important;
    }
    
    .navbar-nav .dropdown-menu .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.2) !important;
        margin: 0.5rem 1rem !important;
    }
    
    /* Dropdown toggle styling */
    .navbar-nav .dropdown-toggle {
        position: relative !important;
    }
    
    .navbar-nav .dropdown-toggle::after {
        transition: transform 0.3s ease !important;
        margin-left: 0.5rem !important;
    }
    
    .navbar-nav .dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg) !important;
    }
    
    /* Add visual feedback for dropdown state */
    .navbar-nav .dropdown.show > .dropdown-toggle {
        background-color: rgba(0, 0, 0, 0.1) !important;
        border-radius: 0.375rem !important;
    }
    
    /* Smooth animations */
    .navbar-nav .dropdown {
        transition: all 0.3s ease !important;
    }
    
    /* Ensure proper spacing */
    .navbar-nav .nav-item.dropdown {
        margin-bottom: 0.25rem !important;
    }
}

/* Desktop dropdown styles - keep Bootstrap default */
@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        z-index: 1000 !important;
        display: none !important;
        min-width: 10rem !important;
        padding: 0.5rem 0 !important;
        margin: 0 !important;
        font-size: 1rem !important;
        color: #212529 !important;
        text-align: left !important;
        list-style: none !important;
        background-color: #fff !important;
        background-clip: padding-box !important;
        border: 1px solid rgba(0, 0, 0, 0.15) !important;
        border-radius: 0.375rem !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .main-header,
    .navbar,
    .breadcrumbs-container,
    .sidebar,
    .cta-section,
    .cta-banner,
    .parallax-section,
    .main-footer,
    .back-to-top,
    .cookie-consent {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    table {
        border-collapse: collapse;
    }
    
    table, th, td {
        border: 1px solid #000;
    }
    
    .main-content {
        padding: 0;
    }
    
    .col-md-8 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}