/* ================================
   Dakshin Real Estate - Stylesheet
   ================================ */

/* --------------------------------
   CSS Variables
   -------------------------------- */
:root {
    --primary: #0f172a;
    /* Midnight */
    --accent: #f59e0b;
    /* Amber Gold */
    --accent-hover: #d97706;
    --secondary: #6366f1;
    /* Indigo highlight */
}

/* --------------------------------
   Base Styles
   -------------------------------- */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
    background-color: #f8fafc;
}

/* --------------------------------
   Color Utilities
   -------------------------------- */
.bg-midnight {
    background-color: var(--primary);
}

.text-midnight {
    color: var(--primary);
}

.bg-gold {
    background-color: var(--accent);
}

.text-gold {
    color: var(--accent);
}

.border-gold {
    border-color: var(--accent);
}

/* --------------------------------
   Page Section Transitions
   -------------------------------- */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------
   Header Styles
   -------------------------------- */
.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* --------------------------------
   Hero Section
   -------------------------------- */
.gradient-text {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-gradient {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6));
}

/* --------------------------------
   Service Cards
   -------------------------------- */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --------------------------------
   WhatsApp Floating Button
   -------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --------------------------------
   Image Fallback
   -------------------------------- */
.img-fallback {
    background-color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
}

/* --------------------------------
   Mobile Responsive Styles
   -------------------------------- */

/* Mobile base adjustments */
@media (max-width: 768px) {

    /* Hero Section */
    .page-section.active section.relative.h-\[85vh\] {
        min-height: 100vh;
        height: auto;
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    /* Hero content container - extra top margin */
    .page-section.active section.relative .container {
        padding-top: 1rem;
    }

    /* Trust Bar - Stack on mobile */
    .grid.grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }

    /* Trust Bar wrapper - remove negative margin on mobile */
    section.relative.-mt-16 {
        margin-top: 2rem !important;
    }

    .grid.grid-cols-2.md\:grid-cols-4>div {
        border-right: none !important;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 1rem;
    }

    .grid.grid-cols-2.md\:grid-cols-4>div:nth-child(3),
    .grid.grid-cols-2.md\:grid-cols-4>div:nth-child(4) {
        border-bottom: none;
    }

    /* About section image badge */
    .absolute.-bottom-10.-right-10 {
        position: relative !important;
        bottom: 0 !important;
        right: 0 !important;
        margin-top: 1rem;
        display: inline-block;
    }

    /* Footer grid */
    footer .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* WhatsApp button - smaller on mobile */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    /* Contact section grid */
    #contact .grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    /* Form container padding */
    #contact .bg-white.p-10.md\:p-12 {
        padding: 1.5rem;
    }

    /* Services section padding */
    #services .p-12 {
        padding: 1.5rem;
    }

    /* About section grid */
    #about .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    /* Hero text sizing */
    h2.text-5xl.md\:text-7xl {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    /* Section headings */
    h2.text-4xl.md\:text-5xl,
    h2.text-4xl {
        font-size: 1.75rem !important;
    }

    /* Hero buttons - full width on mobile */
    .flex.flex-col.sm\:flex-row.gap-5 button {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    /* Services preview cards padding */
    .service-card.p-10 {
        padding: 1.5rem;
    }

    /* Contact page heading */
    #contact h2.text-5xl {
        font-size: 2rem !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {

    /* Hero badge text */
    .inline-flex.items-center.gap-2 {
        font-size: 0.625rem;
        padding: 0.5rem 0.75rem;
    }

    /* Trust bar icons */
    .grid.grid-cols-2 .w-12.h-12 {
        width: 2.5rem;
        height: 2.5rem;
    }

    /* Trust bar text */
    .grid.grid-cols-2 .text-sm.font-bold {
        font-size: 0.75rem;
    }

    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Footer social icons */
    footer .w-12.h-12.rounded-xl {
        width: 2.5rem;
        height: 2.5rem;
    }
}