/* Blue Jade Real Estate - Premium Luxury Styles */

/* CSS Variables */
:root {
    --primary-blue: #0a4a6e;
    --secondary-jade: #2d8a7e;
    --accent-gold: #c9a962;
    --accent-coral: #d4785c;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f0;
    --bg-cream: #faf9f6;
    --bg-white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(10, 74, 110, 0.08);
    --shadow-hover: 0 8px 30px rgba(10, 74, 110, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-blue);
}

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

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

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

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

/* Typography */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.text-gold { color: var(--accent-gold); }
.text-jade { color: var(--secondary-jade); }
.text-light { color: var(--text-light); }

/* Header */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--secondary-jade);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
nav {
    display: flex;
    gap: 32px;
}

nav a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    background-image: url('images/overlapping-bluejade-header-1920x375-1440x375.jpg'); background-size: cover; background-position: center;
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    opacity: 0.5;
}

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

.hero h1 {
    color: var(--text-light);
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 32px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background: #ddb870;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
}

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

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-blue);
}

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

.btn-jade:hover {
    background: #3a9a8e;
}

.btn-phone {
    background: var(--accent-coral);
    color: white;
}

.btn-phone:hover {
    background: #e0886c;
}

/* Phone CTA - Mobile */
.phone-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent-coral);
    padding: 16px;
    text-align: center;
    z-index: 99;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.phone-cta-mobile a {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .phone-cta-mobile {
        display: block;
    }
    body {
        padding-bottom: 70px;
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

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

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
}

.section-bg {
    background: var(--bg-white);
}

.section-dark {
    background: #4A1F6B;
    color: var(--text-light);
}

.section-dark h2 {
    color: var(--text-light);
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

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

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.card-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-jade);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

/* Testimonials */
.testimonial-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 24px;
    color: #444;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-jade);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.testimonial-info span {
    color: #888;
    font-size: 0.9rem;
}

/* About Section */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.about-image img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .about-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Bio Section */
.bio-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    background: var(--bg-white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.bio-image {
    position: relative;
}

.bio-image img {
    width: 100%;
    border-radius: 12px;
}

.bio-content h2 {
    margin-bottom: 8px;
}

.bio-role {
    color: var(--secondary-jade);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.bio-content p {
    margin-bottom: 16px;
}

.bio-quote {
    border-left: 4px solid var(--accent-gold);
    padding-left: 24px;
    font-style: italic;
    color: #555;
    margin: 24px 0;
}

@media (max-width: 768px) {
    .bio-card {
        grid-template-columns: 1fr;
    }
}

/* Vendor Cards */
.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.vendor-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--secondary-jade);
}

.vendor-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.vendor-category {
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.vendor-contact {
    color: #666;
    font-size: 0.95rem;
}

.vendor-contact a {
    color: var(--secondary-jade);
}

/* Local Guide */
.guide-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.guide-content h3 {
    margin-bottom: 16px;
}

.guide-list {
    list-style: none;
}

.guide-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.guide-list li::before {
    content: '→';
    color: var(--accent-gold);
    font-weight: bold;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.feature-item {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-item h4 {
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info {
    padding: 48px;
    background: #4A1F6B;
    color: white;
    border-radius: 16px;
}

.contact-info h3 {
    color: white;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.contact-details p {
    opacity: 0.9;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    background: #4A1F6B;
    color: var(--text-light);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-about h3 {
    color: white;
    margin-bottom: 16px;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 24px;
}

.footer h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.8);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Utilities */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    nav {
        display: none;
        position: fixed;
        top: 82px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-hover);
    }
    
    nav.open {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* Image Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Listing Detail */
.listing-detail {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.listing-image {
    position: relative;
}

.listing-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.listing-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 48px 32px 32px;
}

.listing-overlay h2 {
    color: white;
    margin-bottom: 8px;
}

.listing-overlay .price {
    color: var(--accent-gold);
    font-size: 1.75rem;
    font-weight: 700;
}

.listing-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 32px;
    border-bottom: 1px solid #eee;
}

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

.listing-stat span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-jade);
}

.listing-stat label {
    color: #888;
    font-size: 0.9rem;
}

.listing-description {
    padding: 32px;
}

.listing-description h3 {
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .listing-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Privacy Page */
.legal-content {
    background: var(--bg-white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.legal-content h2 {
    margin: 32px 0 16px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
}