/* CSS Variables */
:root {
    --primary-color: 210 100% 45%; /* #0066E6 */
    --secondary-color: 25 100% 50%; /* #FF8000 */
    --background: 210 11% 98%; /* #F5F7FA */
    --surface: 0 0% 100%; /* #FFFFFF */
    --text-primary: 210 20% 15%; /* #1F2937 */
    --text-secondary: 210 15% 35%; /* #4B5563 */
    --text-muted: 210 12% 55%; /* #6B7280 */
    --border: 210 11% 90%; /* #E5E7EB */
    --shadow: 210 20% 8%; /* #111827 */
    --success: 142 76% 36%; /* #059669 */
    --error: 0 84% 60%; /* #EF4444 */
    --warning: 45 93% 47%; /* #F59E0B */
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 hsla(var(--shadow) / 0.05);
    --shadow-base: 0 1px 3px 0 hsla(var(--shadow) / 0.1), 0 1px 2px 0 hsla(var(--shadow) / 0.06);
    --shadow-md: 0 4px 6px -1px hsla(var(--shadow) / 0.1), 0 2px 4px -1px hsla(var(--shadow) / 0.06);
    --shadow-lg: 0 10px 15px -3px hsla(var(--shadow) / 0.1), 0 4px 6px -2px hsla(var(--shadow) / 0.05);
    --shadow-xl: 0 20px 25px -5px hsla(var(--shadow) / 0.1), 0 10px 10px -5px hsla(var(--shadow) / 0.04);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background));
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: hsl(var(--primary-color));
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: hsl(var(--primary-color) / 0.8);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.btn-primary {
    background-color: hsl(var(--primary-color));
    color: white;
}

.btn-primary:hover {
    background-color: hsl(var(--primary-color) / 0.9);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: hsl(var(--secondary-color));
    color: white;
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary-color) / 0.9);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: hsl(var(--primary-color));
    border: 2px solid hsl(var(--primary-color));
}

.btn-outline:hover {
    background-color: hsl(var(--primary-color));
    color: white;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--surface));
    border-top: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: var(--space-4);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
}

.cookie-content p {
    flex: 1;
    min-width: 300px;
    margin: 0;
    font-size: var(--font-size-sm);
    color: hsl(var(--text-secondary));
}

.cookie-buttons {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
}

/* Navigation */
.navbar {
    background-color: hsl(var(--surface));
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
}

.nav-brand .logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: hsl(var(--primary-color));
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--space-2);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text-primary));
    margin: 2px 0;
    transition: 0.2s;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-6);
}

.nav-link {
    color: hsl(var(--text-primary));
    font-weight: 500;
    padding: var(--space-2) 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--primary-color));
}

.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: hsl(var(--surface));
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 200;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: var(--space-2) var(--space-3);
    color: hsl(var(--text-primary));
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: hsl(var(--background));
    color: hsl(var(--primary-color));
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, hsl(var(--primary-color)) 0%, hsl(var(--primary-color) / 0.8) 100%);
    color: white;
    padding: var(--space-20) 0;
    text-align: center;
}

.hero-content h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.hero-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: var(--space-20) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: hsl(var(--text-primary));
}

.section-header p {
    font-size: var(--font-size-lg);
    color: hsl(var(--text-secondary));
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background-color: hsl(var(--surface));
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.about-card {
    text-align: center;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    background-color: hsl(var(--background));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: hsl(var(--primary-color) / 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    color: hsl(var(--primary-color));
}

.about-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-4);
    color: hsl(var(--text-primary));
}

.about-card p {
    color: hsl(var(--text-secondary));
    line-height: 1.6;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.service-card {
    background-color: hsl(var(--surface));
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
    color: hsl(var(--text-primary));
}

.service-card p {
    color: hsl(var(--text-secondary));
    line-height: 1.6;
}

/* Properties Section */
.properties {
    background-color: hsl(var(--surface));
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.city-card {
    background-color: hsl(var(--background));
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.city-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--border));
}

.city-content {
    padding: var(--space-6);
}

.city-content h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-4);
    color: hsl(var(--text-primary));
}

.city-content p {
    color: hsl(var(--text-secondary));
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

/* Reviews Section */
.reviews {
    background-color: hsl(var(--background));
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.review-card {
    background-color: hsl(var(--surface));
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.stars {
    color: hsl(var(--warning));
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
}

.review-card p {
    color: hsl(var(--text-secondary));
    margin-bottom: var(--space-6);
    line-height: 1.6;
    font-style: italic;
}

.reviewer strong {
    color: hsl(var(--text-primary));
    display: block;
    margin-bottom: var(--space-1);
}

.reviewer span {
    color: hsl(var(--text-muted));
    font-size: var(--font-size-sm);
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, hsl(var(--primary-color)) 0%, hsl(var(--primary-color) / 0.9) 100%);
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.newsletter-text h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
}

.newsletter-text p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
}

.newsletter-form {
    background-color: hsl(var(--surface));
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.form-group {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.form-group input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
}

.form-group input:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px hsl(var(--primary-color) / 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.checkbox-group input[type="checkbox"] {
    margin-top: var(--space-1);
}

.checkbox-group label {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-secondary));
    line-height: 1.5;
}

.checkbox-group a {
    color: hsl(var(--primary-color));
}

/* Contact Section */
.contact {
    background-color: hsl(var(--surface));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: hsl(var(--primary-color) / 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary-color));
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
    color: hsl(var(--text-primary));
}

.contact-item p {
    color: hsl(var(--text-secondary));
    line-height: 1.6;
}

.social-media h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-6);
    color: hsl(var(--text-primary));
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background-color: hsl(var(--background));
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    color: hsl(var(--text-primary));
}

.social-link:hover {
    background-color: hsl(var(--primary-color));
    color: white;
    transform: translateX(5px);
}

/* Footer */
.footer {
    background-color: hsl(var(--text-primary));
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--space-4);
    color: white;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-2);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-8);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Form Styles */
.form-error {
    color: hsl(var(--error));
    font-size: var(--font-size-sm);
    margin-top: var(--space-1);
}

.form-success {
    color: hsl(var(--success));
    font-size: var(--font-size-sm);
    margin-top: var(--space-1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: hsl(var(--surface));
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: var(--space-4) 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: var(--space-2) 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: hsl(var(--background));
        margin-top: var(--space-2);
    }
    
    .hero-content h1 {
        font-size: var(--font-size-3xl);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .hero {
        padding: var(--space-12) 0;
    }
    
    .hero-content h1 {
        font-size: var(--font-size-2xl);
    }
    
    section {
        padding: var(--space-12) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-10);
    }
    
    .section-header h2 {
        font-size: var(--font-size-2xl);
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

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

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid hsl(var(--primary-color));
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: 210 100% 35%;
        --text-primary: 0 0% 0%;
        --text-secondary: 0 0% 20%;
        --border: 0 0% 60%;
    }
}
