/* 
 * Winding Creek Community Website
 * Responsive Stylesheet - Mobile & Tablet Styles
 */

/* ===== TABLET STYLES (1024px and below) ===== */
@media screen and (max-width: 1024px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2.5rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .highlights-grid,
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE STYLES (768px and below) ===== */
@media screen and (max-width: 768px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-lg: 2rem;
        --spacing-md: 1.5rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
    
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        max-height: 500px;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: var(--spacing-sm);
    }
    
    /* Search on Mobile */
    .search-container {
        width: 100%;
        margin: var(--spacing-sm) 0 0 0;
        padding: var(--spacing-sm) var(--spacing-md);
        border-top: 1px solid var(--light-gray);
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .search-box input:focus {
        width: 100%;
    }
    
    #search-results {
        top: 60px;
        width: 95%;
        max-width: 95%;
    }
    
    /* Hero Section */
    .hero {
        height: 400px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    /* Page Header */
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.125rem;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    /* Grids */
    .highlights-grid,
    .overview-grid,
    .gallery-grid,
    .destination-grid,
    .resource-grid,
    .documents-grid,
    .contact-grid,
    .quick-links-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Feature Lists */
    .feature-list-two-column {
        grid-template-columns: 1fr;
    }
    
    /* Service Columns */
    .service-columns {
        grid-template-columns: 1fr;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    /* Location List */
    .location-list {
        grid-template-columns: 1fr;
    }
    
    /* Lightbox */
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    /* Map */
    .map-container iframe {
        height: 350px;
    }
}

/* ===== SMALL MOBILE STYLES (480px and below) ===== */
@media screen and (max-width: 480px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Hero */
    .hero {
        height: 300px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Page Header */
    .page-header {
        padding: var(--spacing-md) 0;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    /* Cards */
    .highlight-card,
    .overview-card,
    .document-card,
    .contact-card,
    .resource-card {
        padding: var(--spacing-sm);
    }
    
    /* Icons */
    .highlight-icon,
    .overview-icon,
    .document-icon,
    .contact-icon,
    .quick-link-icon,
    .portal-icon {
        font-size: 2.5rem;
    }
    
    /* Testimonials */
    .testimonial-quote {
        font-size: 3rem;
    }
    
    /* Map */
    .map-container iframe {
        height: 300px;
    }
    
    /* Gallery */
    .gallery-item {
        aspect-ratio: 16/9;
    }
}

/* ===== LANDSCAPE MOBILE (max-height: 500px) ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 300px;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .mobile-menu-toggle,
    .cta,
    .site-footer,
    .lightbox,
    .search-container,
    #search-results,
    #search-overlay {
        display: none;
    }
    
    .hero {
        page-break-after: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

/* Focus States */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--secondary-blue);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0000CC;
        --secondary-blue: #0066FF;
        --text-dark: #000000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if desired in the future */
}

