/* ============================================
   Armstrong Properties - Premium Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --primary: #c2a672;
    --primary-light: #d4bc8e;
    --primary-dark: #a08650;
    --accent: #e8d5b0;
    --bg-dark: #0a0c10;
    --bg-section: #0f1115;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --text-main: #f0f2f5;
    --text-muted: #8a94a6;
    --text-light: #c5cdd8;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --shadow-gold: 0 8px 32px rgba(194, 166, 114, 0.15);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; }

a { text-decoration: none; color: inherit; }

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

/* ---- Navbar ---- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 40px;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 40px;
    background: rgba(10, 12, 16, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

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

.nav-logo img { height: 42px; width: auto; border-radius: 6px; }

.nav-logo span {
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.3rem;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
    letter-spacing: 0.5px; text-transform: uppercase; position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a0c10 !important; padding: 10px 24px; border-radius: 50px;
    font-weight: 600 !important; letter-spacing: 0.5px;
    transition: all 0.3s !important; box-shadow: var(--shadow-gold);
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(194,166,114,0.3); }
.nav-cta::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger span { width: 24px; height: 2px; background: var(--text-main); transition: 0.3s; }

/* ---- Hero ---- */
.hero {
    position: relative; height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 0 20px;
    overflow: hidden;
}

.hero-carousel { position: absolute; inset: 0; z-index: 0; }
.hero-carousel img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.hero-carousel img.active { opacity: 1; }

/* Video inside property cards */
.card-gallery video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; border: none;
}

.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(10,12,16,0.5) 0%, rgba(10,12,16,0.3) 40%, rgba(10,12,16,0.85) 85%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative; z-index: 2; max-width: 850px;
    animation: heroFadeIn 1.8s ease-out;
}

.hero-content h1 {
    font-size: 4.5rem; font-weight: 800; letter-spacing: -2px; margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-content .hero-sub {
    font-size: 1.15rem; color: var(--accent); letter-spacing: 4px;
    text-transform: uppercase; margin-bottom: 8px; font-weight: 300;
}

.hero-content .hero-tagline {
    font-size: 1.3rem; color: var(--text-light); margin-bottom: 36px;
    font-weight: 300;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-contact {
    margin-top: 28px; text-align: center;
}

.hero-contact-text {
    font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 600;
    color: var(--primary); letter-spacing: 1px; margin-bottom: 10px;
}

.hero-contact-numbers {
    display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
}

.hero-contact-numbers a {
    color: var(--accent); font-size: 1.1rem; font-weight: 500;
    letter-spacing: 1px; transition: color 0.3s;
}

.hero-contact-numbers a:hover { color: #fff; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a0c10; padding: 14px 36px; border-radius: 50px;
    font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
    transition: all 0.3s; box-shadow: var(--shadow-gold);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(194,166,114,0.35); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--primary);
    padding: 14px 36px; border-radius: 50px;
    font-weight: 600; font-size: 1rem; cursor: pointer;
    border: 1.5px solid var(--primary); transition: all 0.3s;
}

.btn-outline:hover { background: rgba(194,166,114,0.1); transform: translateY(-3px); }

/* ---- Section Styles ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

section { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.8rem; margin-bottom: 16px; }
.section-header h2 span { color: var(--primary); }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

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

/* ---- Property Type Tabs ---- */
.property-tabs {
    display: flex; justify-content: center; gap: 8px; margin-bottom: 50px; flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px; border-radius: 50px; border: 1.5px solid var(--border-subtle);
    background: transparent; color: var(--text-muted); font-family: 'Inter', sans-serif;
    font-weight: 500; font-size: 0.95rem; cursor: pointer; transition: all 0.3s;
}

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

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a0c10; border-color: var(--primary); font-weight: 600;
}

/* ---- Property Cards Grid ---- */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 28px;
}

.property-card {
    background: linear-gradient(165deg, rgba(22,25,32,0.95), rgba(12,14,18,0.95));
    border-radius: var(--radius-lg); border: 1px solid var(--border-subtle);
    overflow: hidden; transition: all var(--transition);
}

.property-card:hover {
    transform: translateY(-8px); border-color: rgba(194,166,114,0.25);
    box-shadow: var(--shadow-gold);
}

.property-card .card-gallery {
    position: relative; height: 260px; overflow: hidden;
}

.property-card .card-gallery img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 0.4s ease;
}

.property-card .card-gallery img.active { opacity: 1; }

.card-badge {
    position: absolute; top: 16px; left: 16px;
    padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.5px; text-transform: uppercase; z-index: 3;
}

.badge-rent { background: rgba(16, 185, 129, 0.9); color: #fff; }
.badge-sale { background: rgba(59, 130, 246, 0.9); color: #fff; }

.card-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,0.5); border: none;
    color: #fff; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 3; opacity: 0; transition: opacity 0.3s;
}

.property-card:hover .card-nav { opacity: 1; }
.card-nav:hover { background: rgba(194,166,114,0.7); }
.card-nav-prev { left: 10px; }
.card-nav-next { right: 10px; }

.card-counter {
    position: absolute; bottom: 10px; right: 14px;
    background: rgba(0,0,0,0.6); color: #fff; font-size: 0.75rem;
    padding: 3px 10px; border-radius: 12px; z-index: 3;
}

.card-body { padding: 24px; }

.card-body h3 { font-size: 1.35rem; margin-bottom: 6px; }

.card-body .card-location {
    color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px;
    display: flex; align-items: center; gap: 6px;
}

.card-meta {
    display: flex; gap: 16px; margin-bottom: 16px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.card-meta span {
    font-size: 0.85rem; color: var(--text-muted);
    display: flex; align-items: center; gap: 4px;
}

.card-price {
    display: flex; align-items: baseline; justify-content: space-between;
}

.card-price .price {
    font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700;
    color: var(--primary);
}

.card-price .price-label { font-size: 0.85rem; color: var(--text-muted); }

.card-actions { display: flex; gap: 10px; margin-top: 16px; }

.card-actions .btn-sm {
    flex: 1; padding: 10px; border-radius: var(--radius-sm); border: none;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: all 0.3s; text-align: center;
}

.btn-photos {
    background: rgba(194,166,114,0.12); color: var(--primary);
    border: 1px solid rgba(194,166,114,0.2) !important;
}
.btn-photos:hover { background: rgba(194,166,114,0.2); }

.btn-video {
    background: rgba(59,130,246,0.12); color: #60a5fa;
    border: 1px solid rgba(59,130,246,0.2) !important;
}
.btn-video:hover { background: rgba(59,130,246,0.2); }

.btn-call {
    background: rgba(16,185,129,0.12); color: #34d399;
    border: 1px solid rgba(16,185,129,0.25) !important;
}
.btn-call:hover { background: rgba(16,185,129,0.25); }

/* ---- Amenities Carousel ---- */
.amenities-carousel {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.amenities-track {
    display: flex; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.amenity-slide {
    min-width: 33.333%; padding: 10px; flex-shrink: 0;
}

.amenity-slide img {
    width: 100%; height: 280px; object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s;
}

.amenity-slide img:hover { border-color: var(--primary); transform: scale(1.02); }

.amenity-slide .amenity-label {
    text-align: center; padding: 12px 0; color: var(--text-light);
    font-size: 0.95rem; font-weight: 500; text-transform: capitalize;
}

.carousel-controls {
    display: flex; justify-content: center; gap: 16px; margin-top: 20px;
}

.carousel-btn {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(194,166,114,0.12); border: 1.5px solid rgba(194,166,114,0.3);
    color: var(--primary); font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: var(--primary); color: #0a0c10;
    box-shadow: var(--shadow-gold);
}

/* ---- About / Glass Card ---- */
.about-glass {
    background: var(--bg-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
    padding: 48px; text-align: center;
    box-shadow: var(--shadow-lg); transition: transform 0.3s;
}

.about-glass:hover { transform: translateY(-4px); }

.about-glass h2 { font-size: 2rem; margin-bottom: 20px; }
.about-glass h2 span { color: var(--primary); }

.about-glass p { color: var(--text-muted); font-size: 1.05rem; max-width: 800px; margin: 0 auto 16px; }

.stats-row {
    display: flex; justify-content: center; gap: 48px; margin-top: 32px; flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-item .stat-num {
    font-family: 'Outfit', sans-serif; font-size: 2.5rem; font-weight: 800;
    color: var(--primary);
}
.stat-item .stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ---- Contact Section ---- */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 48px; border: 1px solid var(--border-subtle);
}

.contact-details h3 { font-size: 2rem; margin-bottom: 24px; }

.contact-item { margin-bottom: 20px; }

.contact-item .label {
    display: block; color: var(--primary); font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 6px;
}

.contact-item p { font-size: 1.1rem; color: var(--text-light); }

.whatsapp-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25D366; color: #fff; padding: 14px 32px;
    border-radius: 50px; font-weight: 600; font-size: 1rem;
    margin-top: 16px; transition: all 0.3s; border: none; cursor: pointer;
}

.whatsapp-btn:hover { background: #20bd5a; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,0.3); }

/* ---- Lightbox ---- */
.lightbox-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.95); backdrop-filter: blur(8px);
    justify-content: center; align-items: center;
}

.lightbox-overlay.active { display: flex; }

.lightbox-content {
    position: relative; max-width: 90vw; max-height: 85vh;
    display: flex; align-items: center; justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%; max-height: 85vh; border-radius: var(--radius-md);
    object-fit: contain;
}

.lightbox-close {
    position: fixed; top: 24px; right: 24px;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s; z-index: 10000;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 1.3rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s; z-index: 10000;
}

.lightbox-nav:hover { background: rgba(194,166,114,0.3); border-color: var(--primary); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: var(--text-muted); font-size: 0.9rem; z-index: 10000;
}

/* ---- Footer ---- */
footer {
    text-align: center; padding: 40px 24px;
    color: #475569; border-top: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

footer .footer-brand { color: var(--primary); font-weight: 600; }

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

.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .amenity-slide { min-width: 50%; }
    .properties-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

@media (max-width: 768px) {
    .navbar { padding: 12px 20px; }
    .nav-links { 
        display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(10,12,16,0.98); flex-direction: column;
        align-items: center; justify-content: center; gap: 24px;
    }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }

    .hero-content h1 { font-size: 2.6rem; }
    .hero-content .hero-sub { font-size: 0.9rem; letter-spacing: 2px; }

    .section-header h2 { font-size: 2rem; }

    .amenity-slide { min-width: 100%; }
    .properties-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; padding: 28px; }
    .about-glass { padding: 28px; }
    .stats-row { gap: 24px; }
}
