/*
* Newcastle Racecourse Website
* Responsive Stylesheet
*/

/* ===== Large Desktops (1200px and up) ===== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ===== Desktops (992px to 1199px) ===== */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    /* Header */
    .header-contact {
        gap: 10px;
    }
    
    .contact-item {
        font-size: 0.8rem;
    }
    
    .menu-item a {
        padding: 15px 12px;
        font-size: 0.85rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    /* Experience Section */
    .experience-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Tablets (768px to 991px) ===== */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Header */
    .header-top {
        padding: 10px 0;
    }
    
    .header-top-inner {
        padding: 0;
    }
    
    .logo img {
        height: 60px;
    }
    
    .header-contact {
        display: none;
    }
    
    .header-buttons .btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    
    .header-bottom {
        display: none;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--navy);
        padding: 1rem 0;
        z-index: 100;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .menu-item {
        margin: 0;
        width: 100%;
    }
    
    .menu-item a {
        padding: 0.75rem 1.5rem;
        color: var(--white);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: auto;
        padding: 0;
        display: none;
        background-color: rgba(0, 48, 108, 0.8);
    }
    
    .dropdown-menu.active {
        display: block;
    }
    
    .dropdown-menu a {
        padding-left: 3rem;
    }
    
    .has-dropdown > a::after {
        content: '\f107';
    }
    
    .has-dropdown.active > a::after {
        content: '\f106';
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero Section */
    .hero-section {
        height: 80vh;
    }
    
    .hero-slide {
        height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Events Section */
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Experience Section */
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .experience-card:last-child {
        grid-column: span 2;
    }
    
    /* Blog Section */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Social Media Section */
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Newsletter Section */
    .form-row {
        flex-direction: column;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-column:last-child {
        grid-column: span 2;
    }
}

/* ===== Mobile Landscape (576px to 767px) ===== */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }

    /* Header */
    .header-top {
        padding: 8px 0;
    }
    
    .logo img {
        height: 55px;
    }
    
    .header-buttons {
        display: none;
    }
    
    .main-nav.active {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .main-nav.active .menu-item a {
        padding: 12px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Section Headers */
    .section-title {
        font-size: 2rem;
    }
    
    /* Hero Section */
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-slide {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Events Section */
    .events-filter {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        margin-bottom: 0.5rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    /* Experience Section */
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-card:last-child {
        grid-column: auto;
    }
    
    /* Blog Section */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Social Media Section */
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-column:last-child {
        grid-column: auto;
    }
    
    .app-buttons {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===== Mobile Portrait (up to 575px) ===== */
@media (max-width: 575px) {
    /* Header */
    .logo img {
        height: 50px;
    }
    
    .mobile-menu-toggle {
        padding: 5px;
    }
    
    /* Hero Section */
    .hero-section {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-slide {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    /* Section Headers */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Events Section */
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Social Media Section */
    .social-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Back to Top Button */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
    }
}