/* Responsive CSS for Cash Eon Real Estate Website */

/* Large screens (desktops) - 1200px and up */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .container {
        max-width: 1400px;
    }
}

/* Medium screens (tablets) - 768px to 1199px */
@media (max-width: 1199px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .about-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        gap: 2rem;
    }
    
    .contact-wrapper {
        gap: 2rem;
    }
    
    .article-content .container {
        gap: 2rem;
    }
}

/* Small tablets - 992px to 1199px */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-actions {
        gap: 1.5rem;
    }
    
    .filter-form {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets - 768px to 991px */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100vh);
        transition: transform 0.3s ease;
        gap: 1rem;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-grid,
    .services-grid,
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .article-content .container {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        order: -1;
    }
    
    .filter-form {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Large phones - 576px to 767px */
@media (max-width: 767px) {
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .about-card,
    .service-card,
    .city-card,
    .review-card {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        grid-template-columns: 1fr;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section {
        padding: 2rem;
    }
    
    .newsletter-form-card {
        padding: 2rem;
    }
    
    .article-body {
        padding: 2rem;
    }
    
    .legal-document {
        padding: 2rem;
    }
    
    .thanks-section {
        padding: 5rem 0;
    }
    
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thanks-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Small phones - up to 575px */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .about-card,
    .service-card,
    .city-card,
    .review-card {
        padding: 1rem;
    }
    
    .card-icon,
    .service-icon,
    .city-icon {
        width: 48px;
        height: 48px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .logo {
        width: 32px;
        height: 32px;
    }
    
    .property-card,
    .blog-card {
        margin: 0 -10px;
        border-radius: 0;
    }
    
    .contact-form-section,
    .newsletter-form-card,
    .article-body,
    .legal-document {
        padding: 1.5rem;
        margin: 0 -10px;
        border-radius: 0;
    }
    
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-buttons .btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .benefit-item,
    .step-item {
        padding: 1.5rem;
    }
    
    .cookie-table {
        font-size: 0.9rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem 0.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .property-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
}

/* Extra small phones - up to 375px */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .article-cta {
        padding: 1.5rem;
        margin: 2rem -10px;
        border-radius: 0;
    }
    
    .warning-box,
    .info-box,
    .contact-box,
    .authority-box,
    .forecast-box {
        margin: 1.5rem -10px;
        padding: 1rem;
        border-radius: 0;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .hero-actions,
    .btn,
    .nav-toggle,
    .social-links {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .page-header {
        padding: 2rem 0;
        margin-top: 0;
    }
    
    .section {
        padding: 1rem 0;
    }
    
    .article-content .container {
        grid-template-columns: 1fr;
    }
    
    .legal-document {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero,
    .page-header,
    .article-header {
        background: white !important;
        color: black !important;
    }
    
    .hero h1,
    .page-header h1,
    .article-header h1 {
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border-color: #000;
    }
    
    .btn-outline {
        border-color: #000;
        color: #000;
    }
    
    .card-icon,
    .service-icon,
    .city-icon,
    .contact-icon {
        color: #000;
    }
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .header {
        background-color: #2d2d2d;
    }
    
    .nav-menu a {
        color: #e0e0e0;
    }
    
    .about-card,
    .service-card,
    .city-card,
    .review-card,
    .property-card,
    .blog-card,
    .contact-card,
    .team-member,
    .faq-item,
    .info-card,
    .resource-card,
    .preview-card,
    .testimonial-card,
    .contact-form-section,
    .newsletter-form-card,
    .article-body,
    .related-articles,
    .contact-widget,
    .legal-document,
    .business-hours {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
    
    input,
    select,
    textarea {
        background-color: #3d3d3d;
        color: #e0e0e0;
        border-color: #555;
    }
    
    .bg-light {
        background-color: #2d2d2d;
    }
}
