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

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    background: #fdfdf7;
    color: #1a1a1a;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    line-height: 1.3;
    color: #1e293b;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:focus {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Accessibility Helpers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #1e293b;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

.hidden {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.help-text {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #d97706;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: #f8fafc;
}

.nav-subtitle {
    font-size: 0.875rem;
    color: #d97706;
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
    color: #f8fafc;
}

.nav-link:hover,
.nav-link.active {
    color: #d97706;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #d97706;
    transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #f8fafc;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: #f8fafc;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #f8fafc;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(248, 250, 252, 0.1);
    border-radius: 8px;
    transition: transform 0.2s ease;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.stat:hover {
    transform: translateY(-2px);
    background: rgba(248, 250, 252, 0.15);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    color: #d97706;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #cbd5e1;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
    border: 2px solid #d97706;
}

.hero-img:hover {
    transform: scale(1.01);
}

.hero-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #d97706;
    color: #1e293b;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    position: relative;
}

.btn:focus {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

.btn-primary {
    background: #d97706;
    color: #1e293b;
    font-weight: 600;
}

.btn-primary:hover {
    background: #b45309;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #f8fafc;
    border: 2px solid #d97706;
}

.btn-secondary:hover {
    background: #d97706;
    color: #1e293b;
}

.btn-outline {
    background: transparent;
    color: #1e293b;
    border: 2px solid #1e293b;
}

.btn-outline:hover {
    background: #1e293b;
    color: #f8fafc;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* Service Areas */
.service-areas {
    padding: 6rem 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.area-card {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #d97706;
}

.area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-top-color: #b45309;
}

.area-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.area-card p {
    color: #64748b;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 2rem;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    background: white;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #d97706, #b45309);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.service-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Featured Listings */
.featured-listings {
    padding: 6rem 0;
    background: #1e293b;
    color: #f8fafc;
}

.featured-listings .section-header h2 {
    color: #f8fafc;
}

.featured-listings .section-header p {
    color: #cbd5e1;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.featured-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.featured-card:hover .featured-image {
    transform: scale(1.02);
}

.featured-content {
    padding: 1.5rem;
}

.featured-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.featured-address {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.featured-details {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.featured-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #d97706;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Listings */
.listings {
    padding: 6rem 0;
    background: #f8fafc;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.listing-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.listing-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.listing-card:hover .listing-image {
    transform: scale(1.02);
}

.listing-content {
    padding: 1.5rem;
}

.listing-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.listing-address {
    color: #64748b;
    margin-bottom: 1rem;
}

.listing-details {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.listings-cta {
    text-align: center;
}

/* Featured Listings CTA */
.featured-cta {
    text-align: center;
    margin-top: 3rem;
}

.featured-cta .btn-outline {
    background: transparent;
    color: #f8fafc;
    border: 2px solid #d4af37;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.featured-cta .btn-outline:hover {
    background: #d4af37;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.agent-photo {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #d97706;
}

.about-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: #d97706;
    color: #1e293b;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.about-text h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.about-text h3 {
    color: #d97706;
    margin-bottom: 2rem;
    font-weight: 400;
}

.about-text p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.credentials {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #d97706;
}

.credential {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.credential strong {
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.credential span {
    color: #64748b;
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #d97706;
    transition: transform 0.2s ease;
}

.testimonial:hover {
    transform: translateY(-2px);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #475569;
    line-height: 1.7;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: #d97706;
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-family: 'Cinzel', serif;
    opacity: 0.3;
}

.testimonial-author {
    font-weight: 600;
    color: #1e293b;
}

.testimonial-role {
    font-size: 0.875rem;
    color: #64748b;
}

/* Contact */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.contact-info p {
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.contact-methods {
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: transform 0.2s ease;
    border-left: 4px solid #d97706;
}

.contact-method:hover {
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.25rem;
    margin-right: 1rem;
    width: 35px;
    background: #d97706;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-details strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.contact-details a {
    color: #475569;
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: #d97706;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 0.75rem 1.5rem;
    border: 2px solid #d97706;
    border-radius: 4px;
    color: #d97706;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #d97706;
    color: white;
    transform: translateY(-1px);
}

/* Form */
.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #d97706;
}

.form-title {
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e293b;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.form-group input:invalid {
    border-color: #dc2626;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: #1e293b;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-brand h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #cbd5e1;
}

.footer-links h5 {
    color: #d97706;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #d97706;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    color: #cbd5e1;
    font-size: 0.875rem;
}

/* Legal Pages */
.legal-page {
    min-height: 100vh;
    padding-top: 5rem;
}

.page-hero {
    padding: 4rem 0;
    background: #f8fafc;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.page-hero p {
    color: #64748b;
}

.legal-content {
    padding: 4rem 0;
    background: white;
}

.legal-article {
    max-width: 800px;
    margin: 0 auto;
}

.legal-article h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.legal-article p {
    margin-bottom: 1rem;
    color: #475569;
    line-height: 1.7;
}

.legal-article a {
    color: #d97706;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(30, 41, 59, 0.98);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .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-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .areas-grid,
    .services-grid,
    .featured-grid,
    .listings-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid #d97706;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-title,
    .section-header h2,
    .nav-brand h3,
    .stat-number,
    .listing-price {
        color: #000;
    }
    
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        border-color: #000;
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-img:hover,
    .listing-card:hover,
    .area-card:hover,
    .service-card:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .nav,
    .hero-cta,
    .contact-form,
    .social-links {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero,
    .service-areas,
    .listings,
    .about,
    .testimonials,
    .contact {
        background: white;
        box-shadow: none;
    }
}
