/* ==========================================================================
   ALFA RED PROPERTIES - BRANDED LUXURY REAL ESTATE STYLESHEET
   Matching official logo: Rich Crimson Red (#d6001c), Metallic Silver & Dark Slate
   ========================================================================== */

:root {
    --color-crimson: #d6001c;
    --color-crimson-hover: #b50017;
    --color-crimson-dark: #8c0012;
    --color-crimson-light: #ff1a35;
    --color-crimson-gradient: linear-gradient(135deg, #e60021 0%, #990011 100%);
    --color-silver-gradient: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    --color-navy: #0f172a;
    --color-navy-dark: #090d1a;
    --color-charcoal: #1e293b;
    --color-slate: #334155;
    --color-silver-light: #f8fafc;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

html, body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--color-slate);
    background-color: #ffffff;
    line-height: 1.6;
    position: relative;
}

img, svg, iframe {
    max-width: 100%;
}

.max-w-700 {
    max-width: 700px;
    width: 100%;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
}

.text-navy { color: var(--color-navy) !important; }
.text-crimson { color: var(--color-crimson) !important; }
.hover-crimson:hover { color: var(--color-crimson) !important; }

.bg-navy { background-color: var(--color-navy) !important; }
.bg-navy-dark { background-color: var(--color-navy-dark) !important; }
.bg-crimson { background-color: var(--color-crimson) !important; }
.bg-crimson-gradient { background: var(--color-crimson-gradient) !important; }
.bg-crimson-subtle { 
    background-color: rgba(214, 0, 28, 0.08) !important; 
    border: 1px solid rgba(214, 0, 28, 0.18) !important;
}
.bg-navy-subtle { background-color: rgba(15, 23, 42, 0.06) !important; }

.fs-xs { font-size: 0.8rem; }
.fs-sm { font-size: 0.9rem; }
.pos-relative { position: relative; }

/* Buttons */
.btn-crimson {
    background: var(--color-crimson-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(214, 0, 28, 0.35);
    transition: all 0.25s ease;
}

.btn-crimson:hover {
    background: linear-gradient(135deg, #ff1a35 0%, #b50017 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(214, 0, 28, 0.5);
    transform: translateY(-1px);
}

.btn-outline-crimson {
    border: 1.5px solid var(--color-crimson);
    color: var(--color-crimson);
    background: transparent;
    transition: all 0.25s ease;
}

.btn-outline-crimson:hover {
    background: var(--color-crimson-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(214, 0, 28, 0.3);
    transform: translateY(-1px);
}

/* Header & Top Bar Layout */
.top-bar {
    background-color: var(--color-navy-dark) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.main-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1040;
    background-color: var(--color-navy) !important;
    border-bottom: 2px solid rgba(214, 0, 28, 0.35) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.header-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    width: 100%;
}

.header-left, .header-right {
    min-width: 0;
}

.header-center {
    min-width: 0;
    max-width: 280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 767.98px) {
    .header-grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .header-center {
        margin: 0 !important;
        justify-content: flex-start !important;
        text-align: left !important;
        max-width: none;
    }

    .brand-logo-link {
        justify-content: flex-start !important;
    }
}

.icon-circle-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.header-phone-link:hover .icon-circle-sm {
    transform: scale(1.08);
    background: var(--color-crimson-gradient) !important;
    color: #ffffff !important;
}

/* Brand Logo (Exact Original Logo with Strict Defensive Sizing) */
.brand-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    max-width: 100%;
    transition: opacity 0.2s ease;
}

.brand-logo-img {
    height: 75px !important;
    max-height: 75px !important;
    max-width: 240px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo-link:hover .brand-logo-img {
    transform: scale(1.03);
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}

.footer-logo-img {
    height: 75px !important;
    max-height: 75px !important;
    max-width: 240px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 60%, rgba(214, 0, 28, 0.04) 100%);
}

.hero-img {
    height: 380px;
    object-fit: cover;
}

/* Badges */
.badge-crimson-themed {
    background: linear-gradient(135deg, rgba(214, 0, 28, 0.12) 0%, rgba(214, 0, 28, 0.04) 100%);
    border: 1px solid rgba(214, 0, 28, 0.25);
    color: var(--color-crimson);
}

/* Property Cards */
.property-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #e2e8f0;
}

.property-card:hover {
    transform: translateY(-6px);
    border-color: #cbd5e1 !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12) !important;
}

.property-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f8fafc;
}

.card-img-top {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.property-card:hover .card-img-top {
    transform: scale(1.04);
}

.icon-circle-bg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Developer Logo Cards */
.dev-card {
    min-height: 80px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dev-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12) !important;
    border-color: #cbd5e1 !important;
}

.dev-card svg {
    max-width: 100%;
    height: auto;
}

/* Form inputs & textarea styling */
.form-control {
    padding: 0.85rem 1.15rem;
    border-radius: 0.85rem;
    border-color: #cbd5e1;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--color-crimson);
    box-shadow: 0 0 0 0.25rem rgba(214, 0, 28, 0.18);
}

/* Footer Section */
footer {
    background-color: var(--color-navy-dark);
    color: #cbd5e1;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating WhatsApp */
.float-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1040;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    color: #ffffff;
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 991.98px) {
    .hero-img {
        height: auto;
        max-height: 380px;
        min-height: 220px;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }

    .brand-logo-img {
        height: 65px !important;
        max-height: 65px !important;
        max-width: 200px !important;
    }
}

@media (max-width: 767.98px) {
    .top-bar-info {
        font-size: 0.75rem;
        word-break: break-word;
        max-width: 100%;
    }
    
    .top-bar-social {
        width: 100%;
        margin-top: 2px;
    }

    .hero-section {
        text-align: left;
    }

    .header-grid {
        gap: 0.5rem;
    }

    .brand-logo-img {
        height: 55px !important;
        max-height: 55px !important;
        max-width: 180px !important;
        margin: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .brand-logo-img {
        height: 48px !important;
        max-height: 48px !important;
        max-width: 150px !important;
        margin: 0 !important;
    }

    .header-right .btn {
        padding: 0.45rem 0.85rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }

    .display-5 {
        font-size: 1.65rem !important;
        line-height: 1.25;
    }

    .hero-img {
        max-height: 270px;
        border-radius: 1rem !important;
    }

    .dev-card {
        padding: 0.5rem !important;
        min-height: 65px;
    }

    .float-whatsapp {
        bottom: 18px;
        right: 18px;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   VISION & MISSION SECTION (BRIGHT FIXED PARALLAX BACKGROUND WITH ARROWS)
   ========================================================================== */
.vision-parallax-section {
    position: relative;
    background-color: #f1f5f9;
    background-image: 
        linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.12) 45%, rgba(15, 23, 42, 0.32) 100%), 
        url('../images/vision_arrows_bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    overflow: hidden;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.vision-parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-crimson), transparent);
    z-index: 1;
}

.vision-title-shadow {
    text-shadow: 0 2px 16px rgba(15, 23, 42, 0.7);
}

.vision-glass-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.24);
}

.vision-card-arrow-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(214, 0, 28, 0.1);
    color: var(--color-crimson);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .vision-parallax-section {
        background-attachment: scroll;
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

@media (max-width: 575.98px) {
    .vision-parallax-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .vision-glass-card {
        padding: 1.25rem !important;
    }
}
