/* Responsive Design */

/* Large Desktops */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        text-align: center;
        transition: top 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        top: 100%;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-background {
        width: 100%;
        opacity: 0.05;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-image {
        order: -1;
    }
    
    /* Catalog */
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        order: -1;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Cookie Banner */
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    /* Thank You Page */
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-details ul {
        text-align: center;
    }
    
    .thank-you-details li {
        padding-left: 0;
    }
    
    .thank-you-details li:before {
        display: none;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Typography */
    .hero h1 {
        font-size: 1.875rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-brand .logo {
        height: 35px;
    }
    
    .nav-menu {
        padding: 1.5rem 0;
        gap: 0.75rem;
    }
    
    /* Hero */
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Cards */
    .service-card,
    .property-card,
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Property Cards */
    .property-image {
        height: 180px;
    }
    
    .property-price {
        font-size: 1.25rem;
    }
    
    /* Contact */
    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-item img {
        width: 20px;
        height: 20px;
    }
    
    .social-icons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .checkbox-label {
        font-size: 0.8rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-social {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-content {
        gap: 0.75rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    /* Modal */
    .modal-content {
        width: 100%;
        margin: 0.5rem;
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .cookie-category {
        margin-bottom: 1.5rem;
    }
    
    /* Thank You Page */
    .thank-you-page {
        padding: 100px 0 60px;
    }
    
    .thank-you-content {
        padding: 0 1rem;
    }
    
    .thank-you-details,
    .thank-you-contact {
        padding: 1.5rem;
    }
    
    .thank-you-icon svg {
        width: 60px;
        height: 60px;
    }
    
    /* Legal Pages */
    .legal-page {
        padding: 100px 0 60px;
    }
    
    .legal-content {
        padding: 0 1rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
    }
    
    .legal-section ul {
        margin-left: 1rem;
    }
    
    /* Utilities */
    .text-center-mobile {
        text-align: center;
    }
    
    .hide-mobile {
        display: none;
    }
    
    .show-mobile {
        display: block;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.625rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .property-price {
        font-size: 1.125rem;
    }
    
    .service-card,
    .property-card,
    .testimonial-card {
        padding: 1rem;
    }
    
    .thank-you-details,
    .thank-you-contact {
        padding: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 0.75rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg-image,
    .logo,
    .service-icon img,
    .contact-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .hero-buttons,
    .btn,
    .nav-toggle {
        display: none !important;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .service-card,
    .property-card,
    .testimonial-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        color: inherit;
        text-decoration: underline;
    }
    
    .property-image,
    .hero-background {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-bg-image {
        animation: none !important;
    }
    
    .btn:hover,
    .service-card:hover,
    .property-card:hover {
        transform: none !important;
    }
}

/* Large Text Support */
@media (min-width: 1px) {
    .large-text {
        font-size: 1.25em;
        line-height: 1.8;
    }
    
    .large-text .btn {
        padding: 15px 35px;
        font-size: 1.125rem;
    }
    
    .large-text .form-group input,
    .large-text .form-group select,
    .large-text .form-group textarea {
        padding: 15px;
        font-size: 1.125rem;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .thank-you-page {
        padding: 80px 0 40px;
    }
    
    .legal-page {
        padding: 80px 0 40px;
    }
}
