/* ===================================
   Carmichael Realty - Main Stylesheet
   =================================== */

/* CSS Variables */
:root {
    --primary-navy: #1a3a52;
    --accent-gold: #d4af37;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --text-gray: #666666;
    --border-color: #e0e0e0;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-navy);
}

.gold {
    color: var(--accent-gold);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-navy);
    border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--primary-navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 42px;
    font-size: 18px;
}

.btn-contact {
    background: var(--accent-gold);
    color: var(--primary-navy);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-contact:hover {
    background: var(--primary-navy);
    color: var(--accent-gold);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 8px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-navy);
}

.nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 16px;
    position: relative;
}

.nav-link:not(.btn-contact):hover {
    color: var(--accent-gold);
}

.nav-link:not(.btn-contact)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-link:not(.btn-contact):hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-navy);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2c5f7f 100%),
                url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&h=1080&fit=crop') center/cover;
    background-blend-mode: overlay;
    margin-top: 76px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 82, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 48px;
    color: var(--accent-gold);
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.search-bar {
    display: flex;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto 48px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.search-input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group i {
    position: absolute;
    left: 20px;
    color: var(--text-gray);
    font-size: 18px;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    background: var(--white);
}

.search-input:focus {
    outline: 3px solid var(--accent-gold);
}

.search-btn {
    padding: 18px 36px;
    white-space: nowrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 14px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 16px;
    color: var(--primary-navy);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Properties */
.featured-properties {
    background: var(--light-gray);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.property-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.property-image {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-navy), #2c5f7f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
    background-image: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=800&h=600&fit=crop');
    background-size: cover;
    background-position: center;
}

.property-card:nth-child(2) .property-image {
    background-image: url('https://images.unsplash.com/photo-1600047509807-ba8f99d2cdde?w=800&h=600&fit=crop');
}

.property-card:nth-child(3) .property-image {
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=800&h=600&fit=crop');
}

.property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--white);
    color: var(--primary-navy);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.property-badge.featured {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

.property-price {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary-navy);
    color: var(--accent-gold);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.property-info {
    padding: 28px;
}

.property-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary-navy);
}

.property-location {
    color: var(--text-gray);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-location i {
    color: var(--accent-gold);
}

.property-features {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
}

.property-features i {
    color: var(--accent-gold);
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-navy), #2c5f7f);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.about-placeholder i {
    font-size: 120px;
    color: var(--accent-gold);
    opacity: 0.3;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 8px;
}

.title-label {
    color: var(--accent-gold);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-bio p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-gray);
}

.about-contact {
    display: flex;
    gap: 32px;
    margin: 32px 0;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-item i {
    font-size: 24px;
    color: var(--accent-gold);
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-navy);
}

.contact-value:hover {
    color: var(--accent-gold);
}

/* Service Areas */
.service-areas {
    background: var(--white);
}

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

.area-card {
    background: var(--light-gray);
    padding: 40px 32px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.area-card:hover {
    background: var(--white);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.area-card i {
    font-size: 48px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.area-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary-navy);
}

.area-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2c5f7f 100%),
                url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?w=1920&h=800&fit=crop') center/cover;
    background-blend-mode: overlay;
    color: var(--white);
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 82, 0.85);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cta-buttons .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-navy);
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 64px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
    transform: translateY(-4px);
}

.footer-heading {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    color: var(--accent-gold);
    width: 20px;
}

.footer-bottom {
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
    color: var(--accent-gold);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background: var(--white);
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 40px;
        gap: 24px;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .about-contact {
        flex-direction: column;
        gap: 24px;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-subtitle {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .property-price {
        font-size: 18px;
        padding: 8px 16px;
    }
    
    .property-features {
        flex-direction: column;
        gap: 12px;
    }
}
