/* Global Styles */
:root {
    --primary-color: #1a1a1a;
    /* Rich Black */
    --accent-color: #e3b04b;
    /* Logo Gold */
    --accent-hover: #c49639;
    --text-dark: #333;
    --text-light: #f8f8f8;
    --text-muted: #666;
    --bg-light: #f4f4f4;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOUCH & ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Ensure all clickable elements have minimum touch target size (44x44px) */
a,
button,
input[type="submit"],
.btn,
.option-btn,
.nav-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Better focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Remove outline for mouse users, keep for keyboard users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Prevent text selection on buttons and interactive elements */
.btn,
.option-btn,
.mobile-menu-btn,
.filter-btn {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Touch-friendly hover states - handled by existing hover styles */

/* Active states for touch devices */
@media (hover: none) and (pointer: coarse) {

    /* Touch device specific styles */
    .btn:active,
    .option-btn:active,
    .nav-link:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    /* Remove hover effects on touch devices */
    .area-card:hover .area-img {
        transform: none;
    }

    .area-link {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improve form inputs for mobile */
input,
textarea,
select {
    font-size: 16px;
    /* Prevents zoom on iOS */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Better tap highlighting */
* {
    -webkit-tap-highlight-color: rgba(227, 176, 75, 0.2);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.gold-text {
    color: var(--accent-color);
}

.text-center {
    text-align: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--primary-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 60px;
    /* Adjust as needed */
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.phone-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.phone-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: var(--header-height);
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    overflow: hidden;
    display: flex;
    /* justify-content: center;  Removed to allow full width container control */
    align-items: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    /* Side-by-side */
    justify-content: space-between;
    /* Text Left, Form Right */
    align-items: center;
    height: 100%;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 40px;
}

/* Hero Form */
.hero-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    /* Made bigger */
    margin: 0;
    /* Align left */
    transition: all 0.3s ease;
}

/* Initially hide form, show only options */
.lead-form {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.lead-form.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 25px 15px;
    /* Bigger padding */
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
    /* Bigger text */
    transition: all 0.3s;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 2/1;
    /* Rectangular block shape */
}

.option-btn:hover,
.option-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.lead-form h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: #333;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-submit {
    width: 100%;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px;
    font-size: 1.1rem;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* About Section */
.section {
    padding: 80px 0;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.sub-title {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.about-lead {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

.signature {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signature span {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-style: italic;
}

.signature small {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Stats Section */
.bg-dark {
    background-color: var(--primary-color);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.bg-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/img/hero_luxury_villa.png') no-repeat center center/cover;
    background-attachment: fixed;
    /* Parallax Effect */
    opacity: 0.1;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.stat-card {
    padding: 20px;
}

.stat-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 5px;
    color: #fff;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-info {
    grid-column: 1 / -1;
    margin-top: 40px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Areas Section */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.area-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.area-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.area-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.area-card:hover .area-img {
    transform: scale(1.1);
}

.area-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: 100%;
    transition: all 0.3s;
}

.area-overlay h3 {
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.area-link {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.area-card:hover .area-link {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: #111;
    color: #fff;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #aaa;
    max-width: 300px;
}

.footer h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer ul li {
    margin-bottom: 15px;
}

.footer ul li a {
    color: #aaa;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: var(--accent-color);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
}

.footer-contact i {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================ */

/* Tablet Landscape & Small Desktop (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .nav-list {
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-options {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .option-btn {
        font-size: 1.1rem;
        padding: 20px 12px;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {

    /* Header & Navigation */
    .header {
        height: 70px;
    }

    :root {
        --header-height: 70px;
    }

    .logo-img {
        height: 50px;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--primary-color);
        padding: 30px 20px;
        text-align: center;
        gap: 20px;
        overflow-y: auto;
        z-index: 999;
        animation: slideDown 0.3s ease-in-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        font-size: 1.1rem;
        display: block;
        padding: 10px;
    }

    .contact-cta {
        width: 100%;
        margin-top: 20px;
    }

    .phone-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 1rem;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.8rem;
        padding: 10px;
        cursor: pointer;
        transition: transform 0.3s;
    }

    .mobile-menu-btn:active {
        transform: scale(0.95);
    }

    /* Hero Section */
    .hero {
        min-height: 500px;
        height: auto;
        padding: 40px 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding: 20px 0;
        gap: 30px;
    }

    .hero-text {
        text-align: center;
        margin-bottom: 20px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-form-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 25px 20px;
    }

    .form-options {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .option-btn {
        font-size: 1rem;
        padding: 18px 10px;
        letter-spacing: 1px;
    }

    .lead-form h3 {
        font-size: 1.3rem;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .sub-title {
        font-size: 0.85rem;
    }

    .about-text {
        text-align: left;
    }

    /* Stats Section */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .stat-info {
        grid-column: 1 / -1;
        margin-top: 20px;
        font-size: 1rem;
    }

    /* Areas Grid */
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Footer */
    .footer {
        padding-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-contact li {
        justify-content: center;
        text-align: left;
    }

    .footer-logo {
        height: 50px;
        margin: 0 auto 15px;
    }

    /* Floating Actions */
    .floating-actions {
        width: 90%;
        max-width: 400px;
        bottom: 15px;
        padding: 8px 15px;
    }

    .float-btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    /* Testimonials */
    .testimonial-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .testimonial-slide .card-inner {
        padding: 20px;
    }
}

/* Mobile Landscape & Small Tablets (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {

    /* Typography */
    body {
        font-size: 15px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .about-lead {
        font-size: 1.1rem;
    }

    /* Header */
    .header {
        height: 60px;
    }

    :root {
        --header-height: 60px;
    }

    .logo-img {
        height: 45px;
    }

    .mobile-menu-btn {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero {
        min-height: 450px;
    }

    .hero-form-wrapper {
        padding: 20px 15px;
    }

    .form-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .option-btn {
        font-size: 1rem;
        padding: 15px;
        aspect-ratio: auto;
    }

    .input-group input {
        padding: 10px 10px 10px 35px;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 12px;
        font-size: 1rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    /* Floating Actions */
    .floating-actions {
        width: 95%;
        padding: 8px 10px;
        gap: 10px;
    }

    .float-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
        gap: 5px;
    }

    /* Footer */
    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* Extra Small Devices (320px - 374px) */
@media (max-width: 374px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .option-btn {
        font-size: 0.9rem;
        padding: 12px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .float-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

/* Large Screens (1440px and above) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* Ultra-Wide Screens (1920px and above) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 20px;
    /* Floats at bottom */
    left: 50%;
    transform: translateX(-50%);
    /* Centered */
    z-index: 9999;
    display: flex;
    gap: 15px;
    align-items: center;
    width: auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    white-space: nowrap;
}

.float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* WhatsApp Green */
.whatsapp-float {
    background: #25D366;
    border: 1px solid #1ebe57;
}

/* Call Button (Primary Theme) */
.call-float {
    background: var(--primary-color);
    border: 1px solid var(--accent-color);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .floating-actions {
        width: 90%;
        bottom: 15px;
        justify-content: space-around;
        padding: 10px;
    }

    .float-btn {
        flex: 1;
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Testimonial Styles */
.testimonial-slider {
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    /* Increased to fit 3 items comfortably */
    margin: 40px auto;
    padding: 20px 0;
    /* Removed side padding to align better */
}

.testimonial-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 33.3333%;
    /* 3 items in a row */
    max-width: 33.3333%;
    text-align: center;
    padding: 20px;
    background: #fff;
    /* border-right: 1px solid #f0f0f0; Optional separator */
}

.testimonial-slide .card-inner {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-slide p {
    font-size: 1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-slide h4 {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Responsive for Slider */
@media (max-width: 768px) {
    .testimonial-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
}