/* Global Variables & Reset */
:root {
    --primary: #1a5f7a;
    --accent: #ff9f1c;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.7;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 70px;
    overflow: visible;
}

.logo img {
    display: block;
    width: auto;
    height: 100%;
    transform: scale(1.2);
    
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    gap: 6px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    display: block;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent);
}

/* Floating Action Buttons */
.wa-float,
.phone-float {
    position: fixed;
    bottom: 20px;
    color: white;
    padding: 16px;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

.wa-float {
    right: 20px;
    background: #25d366;
}

.phone-float {
    left: 20px;
    background: var(--primary);
}

.wa-float:hover,
.phone-float:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Mobile Sticky CTA Bar */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 20px;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.cta-call {
    background: var(--primary);
    color: white;
}

.cta-wa {
    background: #25d366;
    color: white;
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 12px 5%;
        position: relative;
    }

    .logo {
        gap: 10px;
        height: 54px;
        overflow: visible;
    }

    .logo img {
        height: 100%;
        transform: scale(1.1);
        transform-origin: left center;
    }

    .nav-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 20px 5%;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        z-index: 999;
    }

    nav.open ul {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        font-size: 14px;
        padding: 14px 0;
        color: var(--dark);
        width: 100%;
    }

    .mobile-cta-bar {
        display: grid;
    }

    .wa-float,
    .phone-float {
        bottom: 80px;
    }
}

/* Footer Styles */
footer {
    background: #1e293b;
    color: white;
    padding: 50px 8% 20px 8%;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: var(--accent);
}

/* Common Section Intro */
.section-intro {
    padding: 0 8% 0 8%;
    max-width: 1400px;
    margin: auto;
}

.section-intro h2 {
    font-size: 34px;
    color: var(--primary);
    font-weight: 700;
}

.section-intro h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent);
    margin-top: 10px;
}

/* Hero Section Base */
.hero {
    position: relative;
    width: 100%;
    height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 0;
}

.hero-content {
    z-index: 1;
    position: relative;
    padding: 0 20px;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}

.hero-slideshow img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.hero-slideshow img.active {
    opacity: 1;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 1024px;
    opacity: 0.9;
    
}

/* Trust Bar */
.trust-bar {
    background: #f1f5f9;
    text-align: center;
    padding: 18px;
    font-weight: 500;
    font-size: 14px;
}

.about-hero {
    min-height: 50vh;
    background: url('../images/villas-view-hero.webp') center/cover;
}
.about-wrapper {
    display: grid;
    grid-template-rows: 1fr 380px;
    gap: 50px;
    padding: 50px 8% 100px 8%;
    max-width: 1400px;
    margin: auto;
}


.about-intro {
    margin-bottom: 60px;
    font-size: 1.1rem;
    color: #334155;
    line-height: 1.8;
}

.about-intro p + p {
    margin-top: 20px;
}

.about-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-feature-card {
    background: #fff;
    padding: 40px 40px 0 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-feature-card--mission {
    border-top: 4px solid var(--primary);
}

.about-feature-card--vision {
    border-top: 4px solid var(--accent);
}

.about-feature-card__icon {
    display: inline-block;
    font-size: 40px;
    margin-bottom: 20px;
}

.about-feature-card__icon--accent {
    color: var(--accent);
}

.about-feature-card__icon--primary {
    color: var(--primary);
}

.about-feature-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 24px;
}

.about-trust-grid {
    background: white;
    text-align: left;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.about-trust-item {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.about-trust-item i {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 10px;
}

.about-trust-item h4 {
    font-weight: 700;
}

.about-stats-section {
    padding: 80px 8%;
    background: linear-gradient(135deg, #1a5f7a 0%, #0a4d68 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.about-stats-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
}

.about-stats-inner {
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.about-stats-title {
    text-align: center;
    color: white;
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.about-stats-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.9);
    margin-bottom: 50px;
    font-size: 16px;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.about-stat-icon-wrap {
    width: 70px;
    height: 70px;
    background: rgba(255,159,28,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.about-stat-icon {
    font-size: 32px;
    color: #ff9f1c;
}

.about-stat-value {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.about-stat-label {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    font-weight: 500;
}

.about-faq-section {
    padding: 60px 8%;
    max-width: 900px;
    margin: auto;
    background: white;
}

.about-faq-section h2 {
    text-align: center;
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 15px;
}

.about-faq-section p {
    text-align: center;
    color: #64748b;
    margin-bottom: 40px;
    font-size: 15px;
}

.about-faq-item {
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.about-faq-question {
    width: 100%;
    padding: 20px 25px;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.about-faq-question h3 {
    color: var(--primary);
    font-size: 17px;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.about-faq-question i {
    color: var(--accent);
    font-size: 16px;
    transition: transform 0.3s ease;
}

.about-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #f8fafc;
}

.about-faq-answer p {
    padding: 0 25px 20px 25px;
    color: #475569;
    line-height: 1.8;
    margin: 0;
    text-align: left;
    font-size: 15px;
}

.about-footer {
    background: #1e293b;
    color: white;
    padding: 50px 8% 20px 8%;
}

.about-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.about-footer h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 20px;
}

.about-footer p {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 14px;
}

.about-footer ul {
    list-style: none;
    padding: 0;
}

.about-footer li {
    margin-bottom: 10px;
}

.about-footer a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
}

.about-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
}

.about-footer-bottom p {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

.hero-ventures {
    min-height: 40vh;
    background: url('../images/villas-view-hero.webp') center/cover;
}

.nav-link-accent {
    color: var(--accent);
}

.project-badge-row {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-badge {
    font-size: 10px;
    font-weight: 700;
    background: #f1f5f9;
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-badge--success i {
    color: #22c55e;
}

.project-badge--blue {
    color: var(--primary);
}

.project-badge--blue i {
    color: #2196f3;
}

.status-tag--blue {
    background: #2563eb;
    color: #ffffff;
}

.lead-form-note {
    font-size: 13px;
    margin-bottom: 15px;
}

.stats-section {
    padding: 80px 8%;
    background: linear-gradient(135deg, #1a5f7a 0%, #0a4d68 100%);
    position: relative;
    overflow: hidden;
}

.stats-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
}

.stats-inner {
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.stats-title {
    text-align: center;
    color: white;
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.stats-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.9);
    margin-bottom: 50px;
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-icon-wrap {
    width: 70px;
    height: 70px;
    background: rgba(255,159,28,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.stat-icon {
    font-size: 32px;
    color: #ff9f1c;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    font-weight: 500;
}

.faq-section {
    padding: 60px 8%;
    max-width: 900px;
    margin: auto;
    background: white;
}

.faq-title {
    text-align: center;
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 15px;
}

.faq-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 40px;
    font-size: 15px;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question h3 {
    color: var(--primary);
    font-size: 17px;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.faq-question i {
    color: var(--accent);
    font-size: 16px;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #f8fafc;
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    color: #475569;
    line-height: 1.8;
    margin: 0;
    text-align: left;
    font-size: 15px;
}

.site-footer {
    background: #1e293b;
    color: white;
    padding: 50px 8% 20px 8%;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.site-footer h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 20px;
}

.site-footer p {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 14px;
}

.site-footer-list {
    list-style: none;
    padding: 0;
}

.site-footer-list-item {
    margin-bottom: 10px;
}

.site-footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
}

.site-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
}

.site-footer-bottom p {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

/* Layout Wrappers */
.wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    padding: 50px 8% 100px 8%;
    max-width: 1400px;
    margin: auto;
}

/* Project Cards */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.project-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.img-box {
    width: 42%;
    min-width: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.status-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
}

.content-box {
    width: 58%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-box h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.feature-grid span {
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-grid i {
    color: var(--accent);
}

/* Buttons & Forms */
.hero-btn,
.btn-action {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    width: 100% !important;
}

.hero-btn:hover,
.btn-action:hover {
    background: #e68900;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    color: white !important;
    width: 100% !important;
    margin-top: 15px !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: 0.3s !important;
}

.btn-whatsapp:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-2px);
}

.lead-form {
    background: var(--primary);
    color: white;
    padding: 40px;
    border-radius: 30px;
    margin-top: 200px;
}

.lead-form input,
.lead-form select {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: none;
}

/* Stats Section */
.stats-section {
    padding: 80px 8%;
    background: linear-gradient(135deg, #1a5f7a 0%, #0a4d68 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.stat-card {
    text-align: center;
    padding: 35px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 159, 28, 0.5);
}

/* FAQ */
.faq-item {
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .wrapper {
        grid-template-columns: 1fr;
    }

    .project-card {
        flex-direction: column;
    }

    .img-box {
        width: 100%;
        height: 260px;
    }

    .content-box {
        width: 100%;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    nav {
        padding: 8px 5%;
        flex-wrap: wrap;
    }

    nav ul {
        gap: 15px;
        width: 100%;
        justify-content: center;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-intro h2 {
        font-size: 24px;
    }

    .wrapper {
        padding: 30px 5% 60px 5%;
        gap: 30px;
    }

    .lead-form {
        position: sticky;
        bottom: 0;
        top: 100px;
    }

    .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .trust-bar {
        font-size: 12px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 8px;
        font-size: 11px;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .wrapper {
        padding: 20px 4% 80px 4%;
    }

    .lead-form {
        padding: 25px 15px;
        border-radius: 20px;
    }

    .lead-form h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .lead-form input,
    .lead-form select {
        padding: 12px;
        font-size: 14px;
    }

    .cta-btn {
        font-size: 12px;
        padding: 10px 8px;
    }
}

/* Performance: Image Optimization Helpers */
img {
    max-width: 100%;
    display: block;
}

/* Reduce animation on mobile for performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Touch-friendly buttons on mobile */
@media (hover: none) and (pointer: coarse) {
    button,
    a {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px !important;
    }

    .wa-float,
    .phone-float {
        padding: 20px;
    }
}