/* Responsive Styles - Chris Pollak Campaign Website */

/* Mobile First Approach - Base styles are for mobile */

/* Base Mobile Styles - Default for all devices */
.grid-cols-2,
.grid-cols-3,
.grid-cols-4 {
    grid-template-columns: 1fr; /* Single column on mobile by default */
}

.flex-row {
    flex-direction: column; /* Stack vertically on mobile by default */
}

/* Mobile Styles (320px - 768px) */
@media screen and (max-width: 767px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Container padding for mobile */
    .container {
        padding: 0 15px;
    }
    
    /* Section spacing for mobile */
    section {
        padding: 40px 0;
    }
    
    /* Button adjustments for mobile */
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        padding: 15px 20px;
    }
    
    /* Mobile-specific utilities */
    .mobile-hidden {
        display: none;
    }
    
    .desktop-hidden {
        display: block;
    }
    
    /* Force single column on mobile */
    .mobile-single-col {
        grid-template-columns: 1fr !important;
    }
    
    /* Mobile text alignment */
    .mobile-text-center {
        text-align: center;
    }
}

/* Tablet Styles (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    /* Container adjustments for tablet */
    .container {
        padding: 0 30px;
    }
    
    /* Typography adjustments for tablet */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    /* Tablet grid layouts */
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
    
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Styles (1024px+) */
@media screen and (min-width: 1024px) {
    /* Full typography scale for desktop */
    h1 {
        font-size: var(--font-size-h1);
    }
    
    h2 {
        font-size: var(--font-size-h2);
    }
    
    h3 {
        font-size: var(--font-size-h3);
    }
    
    /* Button inline display for desktop */
    .btn {
        display: inline-block;
        width: auto;
        margin-right: 15px;
        margin-bottom: 0;
    }
    
    /* Restore multi-column layouts on desktop */
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .flex-row {
        flex-direction: row;
    }
    
    /* Desktop-specific utilities */
    .desktop-hidden {
        display: none;
    }
    
    .mobile-hidden {
        display: block;
    }
}

/* Large Desktop Styles (1200px+) */
@media screen and (min-width: 1200px) {
    /* Larger typography for large screens */
    h1 {
        font-size: var(--font-size-hero);
    }
    
    h2 {
        font-size: 2.25rem;
    }
}

/* High DPI / Retina Display Support */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    /* Optimizations for high DPI displays will be added as needed */
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a,
    a:visited {
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid black;
        background: transparent;
        color: black;
    }
    
    /* Hide navigation and interactive elements in print */
    nav,
    .hero-buttons,
    .social-media {
        display: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Smooth
 Transition Utilities */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

/* Responsive Image Utilities */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.img-contain {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/* Responsive Video Utilities */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Container Variations */
.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.container-sm {
    max-width: 576px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-md {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-lg {
    max-width: 992px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-xl {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive Spacing Utilities */
@media screen and (max-width: 767px) {
    .mobile-p-sm { padding: 15px; }
    .mobile-p-md { padding: 20px; }
    .mobile-p-lg { padding: 30px; }
    
    .mobile-m-sm { margin: 15px; }
    .mobile-m-md { margin: 20px; }
    .mobile-m-lg { margin: 30px; }
}

@media screen and (min-width: 768px) {
    .tablet-p-sm { padding: 20px; }
    .tablet-p-md { padding: 30px; }
    .tablet-p-lg { padding: 40px; }
    
    .tablet-m-sm { margin: 20px; }
    .tablet-m-md { margin: 30px; }
    .tablet-m-lg { margin: 40px; }
}

@media screen and (min-width: 1024px) {
    .desktop-p-sm { padding: 30px; }
    .desktop-p-md { padding: 40px; }
    .desktop-p-lg { padding: 60px; }
    
    .desktop-m-sm { margin: 30px; }
    .desktop-m-md { margin: 40px; }
    .desktop-m-lg { margin: 60px; }
}

/* News Section Responsive Styles */
@media screen and (max-width: 767px) {
    .news-section {
        padding: 50px 0;
    }
    
    .news-title {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .news-card {
        max-width: 100%;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-header {
        margin-bottom: 40px;
    }
    
    .news-cta {
        margin-top: 30px;
    }
    
    .btn-view-more {
        width: 100%;
        padding: 15px 20px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .news-section {
        padding: 60px 0;
    }
    
    .news-title {
        font-size: 2.5rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
        max-width: 600px;
        margin: 0 auto 50px auto;
    }
    
    .news-card {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .news-image {
        height: 280px;
    }
}

@media screen and (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 1000px;
        margin: 0 auto 50px auto;
    }
    
    .news-card {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .news-image {
        height: 320px;
    }
}

/* Bottom Banner Responsive Styles */
@media screen and (max-width: 767px) {
    .bottom-banner {
        padding: 40px 0;
    }
    
    .bottom-banner-content {
        gap: 30px;
    }
    
    .banner-logo-image {
        width: 70vw;
        max-width: 250px;
    }
    
    .banner-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .banner-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 0.8rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .bottom-banner {
        padding: 50px 0;
    }
    
    .banner-logo-image {
        width: 60vw;
        max-width: 350px;
    }
    
    .banner-buttons {
        gap: 15px;
    }
    
    .banner-btn {
        font-size: 0.8rem;
        padding: 12px 24px;
    }
}

/* Stay Connected Section Responsive Styles */
@media screen and (max-width: 400px) {
    .stay-connected-section {
        padding: 2rem 0 5rem 0;
    }
    
    .stay-connected-content {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .campaign-title {
        font-size: 1.8rem !important;
    }
    
    .campaign-description {
        font-size: 0.9rem !important;
    }
    
    .contact-info {
        padding: 1.25rem 0.75rem;
    }
    
    .form-title {
        font-size: 1.3rem !important;
    }
}

@media screen and (max-width: 767px) {
    .stay-connected-section {
        padding: 2.5rem 0 6rem 0;
        min-height: auto;
    }
    
    .stay-connected-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .campaign-info {
        padding: 1rem 0;
        max-width: 100%;
    }
    
    .campaign-title {
        font-size: 2.2rem;
        line-height: 1.1;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .campaign-description {
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 100%;
    }
    
    .contact-info {
        margin: 0 auto 2rem auto;
        padding: 1.5rem 1rem;
        border-bottom-width: 8px;
    }
    
    .contact-info::before {
        top: 1rem;
        left: 1rem;
        width: 40px;
        height: 3px;
    }
    
    .form-title {
        font-size: 1.5rem;
        margin: 0.75rem 0 1rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-group.form-spacing {
        margin-bottom: 1rem;
    }
    
    .form-input {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .form-submit-btn {
        padding: 1rem 1.5rem;
        margin-top: 1rem;
    }
    
    .modal-content {
        padding: 2rem;
        width: 95%;
    }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
    .stay-connected-section {
        padding: 3rem 0;
    }
    
    .stay-connected-content {
        grid-template-columns: 1fr !important;
        gap: 3rem;
        padding: 0 1.5rem;
    }
    
    .campaign-info {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .campaign-title {
        font-size: 3rem;
    }
    
    .campaign-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-info {
        margin: 0 auto 8rem auto;
    }
}

@media screen and (min-width: 1200px) {
    .stay-connected-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footer Responsive Styles */
@media screen and (max-width: 767px) {
    .footer .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer p {
        font-size: 0.875rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .footer .container {
        flex-direction: column;
        gap: 1.5rem;
    }
}