/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    /* Brand Colors */
    --primary: #0a2540; /* Deep, luxury blue */
    --primary-light: #16406c;
    --primary-dark: #051424;
    
    /* Secondary/Accent */
    --accent: #d4af37;
    --accent-hover: #c5a030;

    /* Neutrals */
    --bg-main: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #111827;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --border: #e5e7eb;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Shadows & Radii */
    --radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.section { padding: var(--spacing-xl) 0; }
.section-badge {
    display: inline-block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

/* ==========================================================================
   Top Bar & Navigation
   ========================================================================== */
.top-bar {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar span, .top-bar a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.top-bar a:hover {
    color: var(--accent);
}

.top-bar i {
    width: 16px;
    height: 16px;
}

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9375rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ==========================================================================
   Hero Section & Search Widget
   ========================================================================== */
.hero {
    position: relative;
    padding: 4rem 0;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    background-image: url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5, 20, 36, 0.95) 0%, rgba(5, 20, 36, 0.8) 50%, rgba(5, 20, 36, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: #ffffff;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2rem;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
}

/* Search Widget */
.search-widget {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.search-field input, .search-field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.search-field input:focus, .search-field select:focus {
    outline: none;
    border-color: var(--primary);
}

.search-btn {
    padding: 0.75rem 2rem;
    height: 48px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item span {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.amenity i {
    color: var(--accent);
}

/* ==========================================================================
   Property Grid (Featured Listings)
   ========================================================================== */
.section-header {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.property-card {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.property-img {
    position: relative;
    height: 240px;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.property-info {
    padding: 1.5rem;
}

.property-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.property-address {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.property-specs {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.property-specs span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.property-specs i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.property-price span {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.property-grid-expanded {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* ==========================================================================
   Discover Section
   ========================================================================== */
.discover {
    background-color: var(--primary-dark);
    color: #ffffff;
}

.discover h2 {
    color: #ffffff;
    font-size: 2.5rem;
}

.discover .lead {
    color: rgba(255,255,255,0.8);
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 4rem;
}

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

.discover-card h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.discover-card p {
    color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   Trust / Why Us
   ========================================================================== */
.trust-banner h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.trust-item i {
    color: var(--accent);
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.trust-item h4 {
    font-size: 1.25rem;
}

/* ==========================================================================
   Contact Form & Details
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.contact-details p {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    margin: 0;
    color: var(--text-main);
}

.contact-details p:last-child {
    border-bottom: none;
}

.contact-form-wrapper {
    background: #ffffff;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group.half {
    flex: 1;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-dark);
    color: #ffffff;
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h2 {
    color: #ffffff;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: rgba(255,255,255,0.6);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    color: rgba(255,255,255,0.6);
}

.footer-col ul a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    font-size: 0.875rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--primary-dark);
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item .faq-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

.faq-item .faq-content p {
    margin: 0;
}

/* ==========================================================================
   Floating Call Widget
   ========================================================================== */
.floating-call-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
}

.floating-call-widget i {
    width: 24px;
    height: 24px;
}

.floating-call-widget:hover {
    background-color: var(--primary-light);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(10, 37, 64, 0.6);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .search-widget { flex-direction: column; align-items: stretch; }
    .hero-stats { flex-wrap: wrap; }
    .about-container, .contact-container { grid-template-columns: 1fr; }
    .property-grid { grid-template-columns: repeat(2, 1fr); }
    .discover-grid, .trust-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-badge { font-size: 0.65rem; padding: 0.35rem 0.75rem; }
    .property-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .footer-container { grid-template-columns: 1fr; }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-links, .nav-actions {
        display: none;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }
    .nav-links.active, .nav-actions.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .nav-container {
        flex-wrap: wrap;
    }
    .top-bar-container {
        flex-direction: column;
        gap: 0.5rem;
    }
}
