/* ==========================================================================
   KRISHNA CONSTRUCTION - LUXURY REAL ESTATE LANDING PAGE (AUDITED STYLES)
   Primary: #0F172A | Gold: #D4AF37 | Accent: #2563EB | BG: #F8FAFC | Text: #111827
   Typography: Poppins (Headings) | Inter (Body)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & ROOT VARIABLES
   -------------------------------------------------------------------------- */
:root {
    --primary: #0F172A;        /* Deep Slate Navy */
    --primary-light: #1E293B;  /* Slate Light */
    --gold: #D4AF37;           /* Metallic Luxury Gold */
    --gold-light: #F3E5AB;     /* Soft Champagne Gold */
    --gold-dark: #B8860B;      /* Deep Rich Gold */
    --accent: #2563EB;         /* Vibrant Blue Accent */
    --accent-dark: #1D4ED8;
    --bg: #F8FAFC;             /* Off-white Background */
    --bg-dark-navy: #0F172A;   /* Pitch Dark Navy Footer & Dark Sections */
    --bg-dark-slate: #1E293B;  /* Slate Card Background */
    --card-bg: #FFFFFF;
    --text-dark: #111827;      /* Obsidian Text */
    --text-muted: #64748B;     /* Muted Slate Gray */
    --border-color: #CBD5E1;
    --border-gold: rgba(212, 175, 55, 0.4);

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px -10px rgba(15, 23, 42, 0.15);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.35);

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-dark: rgba(15, 23, 42, 0.88);
    --glass-border: 1px solid rgba(212, 175, 55, 0.35);

    --transition-fast: 0.25s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & TYPOGRAPHY
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Helper Utilities */
.bg-dark-navy { background-color: var(--bg-dark-navy) !important; }
.bg-dark-navy-slate { background-color: var(--bg-dark-slate) !important; }
.bg-light-section { background-color: #F1F5F9 !important; }
.bg-gold { background-color: var(--gold) !important; color: #0F172A !important; }
.bg-gold-subtle { background-color: rgba(212, 175, 55, 0.15) !important; }
.bg-gold-subtle-box { background-color: rgba(212, 175, 55, 0.12) !important; }
.bg-gold-glass { background-color: rgba(212, 175, 55, 0.2); backdrop-filter: blur(10px); }
.bg-gold-light-tag { background-color: var(--gold-light); }
.bg-gold-gradient { background: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #B8860B 100%); }

.text-gold { color: var(--gold) !important; }
.border-gold { border-color: var(--gold) !important; }
.border-gold-subtle { border-color: rgba(212, 175, 55, 0.3) !important; }
.border-gold-light { border-color: rgba(212, 175, 55, 0.5) !important; }

.gradient-text-gold {
    background: linear-gradient(135deg, #FFFFFF 0%, #D4AF37 50%, #F3E5AB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-gold-dark {
    background: linear-gradient(135deg, #0F172A 0%, #D4AF37 60%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-gold {
    box-shadow: var(--shadow-gold) !important;
}

.font-weight-bold { font-weight: 700 !important; }
.font-weight-semibold { font-weight: 600 !important; }
.font-weight-medium { font-weight: 500 !important; }

.fs-7 { font-size: 0.875rem !important; }
.fs-8 { font-size: 0.775rem !important; }
.letter-spacing-1 { letter-spacing: 1px; }

/* --------------------------------------------------------------------------
   3. BUTTONS & INTERACTION STYLES
   -------------------------------------------------------------------------- */
.btn-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #B8860B 100%);
    color: #0F172A !important;
    font-weight: 700;
    border: none;
    transition: var(--transition-normal);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5) !important;
    color: #0F172A !important;
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold) !important;
    background: transparent;
    transition: var(--transition-normal);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #0F172A !important;
    transform: translateY(-3px);
}

.hover-lift {
    transition: var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

.hover-gold:hover {
    color: var(--gold) !important;
}

.hover-bg-gold:hover {
    background-color: var(--gold) !important;
    color: #0F172A !important;
    border-color: var(--gold) !important;
}

/* --------------------------------------------------------------------------
   4. STICKY HEADER (Fix #1: 68px Tight Height & Zero Top Space)
   -------------------------------------------------------------------------- */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    transition: var(--transition-normal);
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sticky-header.scrolled {
    background: #0F172A;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 1px;
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    line-height: 1;
    display: block;
}

/* Hamburger bar */
.hamburger-bar {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--gold);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Mobile Fullscreen Overlay */
.mobile-overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(-100%);
}

.mobile-overlay-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-nav-link {
    font-size: 1.35rem;
    font-weight: 700;
    color: #FFFFFF;
    transition: var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION (Fix #2: Full Height, High Contrast, 4-col Glass Card)
   -------------------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    padding-top: 110px;
    padding-bottom: 60px;
    background-color: var(--bg-dark-navy);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.80) 50%, rgba(15, 23, 42, 0.96) 100%);
}

.hero-glass-card {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

/* --------------------------------------------------------------------------
   6. LEAD FORM (Fix #8: Crisp White Inputs & Rich Gold Focus Glow)
   -------------------------------------------------------------------------- */
.lead-form-card .form-control,
.lead-form-card .form-select {
    background-color: #FFFFFF !important;
    color: #111827 !important;
    border: 1.5px solid #CBD5E1 !important;
    font-weight: 500;
    transition: all 0.25s ease;
}

.lead-form-card .form-control::placeholder {
    color: #94A3B8 !important;
}

.lead-form-card .form-control:focus,
.lead-form-card .form-select:focus {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25) !important;
    outline: none !important;
}

.lead-form-card label {
    color: #F1F5F9 !important;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. GALLERY & LIGHTBOX (Fix #6: 300px Image Height & Hover Scale)
   -------------------------------------------------------------------------- */
.gallery-card {
    cursor: pointer;
    height: 300px;
}

.gallery-img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-filter-btn.active {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #0F172A !important;
}

/* --------------------------------------------------------------------------
   8. STICKY MOBILE BOTTOM BAR & FLOATING BUTTONS
   -------------------------------------------------------------------------- */
.sticky-mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0F172A;
    border-top: 1px solid rgba(212, 175, 55, 0.4);
    z-index: 1040;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.4);
}

.mobile-bar-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px;
}

.mobile-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #94A3B8;
    font-size: 0.725rem;
    gap: 3px;
}

.mobile-bar-item i {
    font-size: 1.2rem;
}

.mobile-bar-item.text-call { color: #38BDF8; }
.mobile-bar-item.text-whatsapp { color: #4ADE80; }
.mobile-bar-item.text-visit { color: var(--gold); }

.floating-btn-group {
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 992px) {
    .floating-btn-group {
        bottom: 30px;
    }
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition-fast);
    border: none;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-whatsapp { background-color: #25D366; }
.float-call { background-color: var(--accent); }
.float-top { background-color: var(--gold); color: #0F172A; display: none; }
