/* ==========================================================================
   URV Estate Agents - Design Tokens & Variables
   ========================================================================== */
:root {
    --primary-dark: #0c2340;      /* Corporate Blue */
    --primary-deep: #061121;      /* Deep background Blue */
    --accent-orange: #f26522;     /* Brand Premium Orange */
    --accent-glow: rgba(242, 101, 34, 0.3);
    --text-white: #ffffff;
    --text-muted: #cbd5e1;
    --text-dark: #0f172a;
    --glass-bg: rgba(12, 35, 64, 0.55);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(242, 101, 34, 0.25);
    --transition-speed: 0.3s;
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: var(--font-body);
    background-color: var(--primary-deep);
    color: var(--text-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Background Image & Masks
   ========================================================================== */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02); /* Slight scale to prevent edge bleed */
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        rgba(255, 255, 255, 0.12) 100%
    );
}

/* ==========================================================================
   Animated SVG Overlay (Kinetic Trails)
   ========================================================================== */
.streak-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
}

.streak-path {
    stroke-dashoffset: 2000;
    will-change: stroke-dashoffset;
    transform: translate3d(0, 0, 0); /* Force GPU acceleration */
}

/* Individual animation speeds, dash patterns, and delays for layered kinetic effects */
.streak-1 {
    stroke-dasharray: 180 1500;
    animation: drawStreaks 14s linear infinite;
}

.streak-2 {
    stroke-dasharray: 240 1800;
    animation: drawStreaks 10s linear infinite;
    animation-delay: 2s;
}

.streak-3 {
    stroke-dasharray: 120 1200;
    animation: drawStreaks 8s linear infinite;
    animation-delay: 4s;
}

.streak-4 {
    stroke-dasharray: 160 1400;
    animation: drawStreaks 9s linear infinite;
    animation-delay: 1s;
}

@keyframes drawStreaks {
    0% {
        stroke-dashoffset: 3000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* ==========================================================================
   Layout Wrapper
   ========================================================================== */
.content-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem 1.5rem;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.logo-container {
    text-align: center;
}

.brand-logo {
    height: 270px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    /* Bright white glow halo to separate logo elements cleanly from the aerial background */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.95));
    transition: transform var(--transition-speed) ease;
    margin-top: -2rem;
    margin-bottom: -3.5rem; /* Pulls the headline up, offsetting the transparent space of the PNG */
}

.brand-logo:hover {
    transform: scale(1.03);
}

.tagline {
    font-family: var(--font-headings);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-white);
    margin-top: 0.75rem;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    max-width: 750px;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-headline {
    font-family: var(--font-headings);
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    color: #0c2340; /* Shifted from #061121 to a softer corporate blue */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.95), 0 0 5px rgba(255, 255, 255, 0.85); /* Outer white glow highlight */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    animation: none; /* Disabled gradient shimmer to preserve high contrast */
}

.sub-headline {
    font-size: 1.15rem;
    font-weight: 500; /* Darker weight */
    line-height: 1.6;
    color: #0c2340; /* Darker corporate blue */
    margin-bottom: 2.5rem;
    max-width: 640px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 0 4px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Glassmorphic Enquiry Form Card
   ========================================================================== */
.form-card {
    background: rgba(255, 255, 255, 0.92); /* Bright white card container */
    border: 1px solid rgba(12, 35, 64, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 25px 50px -12px rgba(12, 35, 64, 0.15);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-card:hover {
    border-color: rgba(242, 101, 34, 0.3);
    box-shadow: 0 25px 50px -12px rgba(242, 101, 34, 0.08);
}

.form-title {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;
    color: var(--primary-dark); /* Changed to corporate blue */
    position: relative;
    padding-bottom: 0.5rem;
}

.form-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-orange);
    border-radius: 2px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-group label {
    font-family: var(--font-headings);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-dark); /* Label color changed to corporate blue */
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: rgba(255, 255, 255, 0.85); /* Light input fields */
    border: 1px solid rgba(12, 35, 64, 0.18);
    border-radius: 8px;
    color: var(--text-dark); /* Text changed to slate black */
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(12, 35, 64, 0.4); /* Placeholder matching corporate blue */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: none;
}

.form-privacy-note {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #64748b; /* Soft slate grey */
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-privacy-note a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}

.form-privacy-note a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-orange);
    border: none;
    border-radius: 8px;
    color: var(--text-white);
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(242, 101, 34, 0.25);
    transition: background-color var(--transition-speed) ease, transform 0.2s ease, box-shadow var(--transition-speed) ease;
}

.submit-btn:hover {
    background-color: #d64d12;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 101, 34, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.footer {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(241, 245, 249, 0.9); /* Grey Slate footer */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(12, 35, 64, 0.08);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #475569; /* Slate grey text */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.footer-link {
    color: var(--primary-dark); /* Link color changed to corporate blue */
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed) ease;
}

.footer-link:hover {
    color: var(--accent-orange);
}

/* ==========================================================================
   WhatsApp Floating Action Button (FAB)
   ========================================================================== */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Standard WhatsApp Green, but matches nicely with our glowing accents */
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    text-decoration: none;
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
}

.whatsapp-fab:hover {
    background-color: #128c7e;
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

/* Pulsing Glowing Circle behind WhatsApp */
.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #25d366;
    border-radius: 50%;
    animation: fabPulse 2s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes fabPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
    .brand-logo {
        height: 120px;
    }

    .main-headline {
        font-size: 2.0rem;
    }

    .sub-headline {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .form-card {
        padding: 1.5rem 1.25rem;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 1rem;
        margin-top: 2rem;
    }

    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
}

@media (max-height: 800px) {
    .content-wrapper {
        justify-content: flex-start;
        gap: 2.5rem;
    }
    .hero-section {
        margin: 0;
    }
}

/* ==========================================================================
   WhatsApp Intent Modal
   ========================================================================== */
.wa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 17, 33, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wa-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.wa-modal-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(12, 35, 64, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(12, 35, 64, 0.25);
    position: relative;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.wa-modal.open .wa-modal-content {
    transform: translateY(0);
}

.wa-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.wa-modal-close:hover {
    color: var(--accent-orange);
}

.wa-modal-title {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.wa-modal-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.wa-options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wa-opt-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid rgba(12, 35, 64, 0.12);
    border-radius: 8px;
    font-family: var(--font-headings);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.wa-opt-btn::after {
    content: '→';
    font-size: 1.1rem;
    color: #64748b;
    transition: transform 0.2s ease, color 0.2s ease;
}

.wa-opt-btn:hover {
    background: rgba(242, 101, 34, 0.04);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 101, 34, 0.08);
}

.wa-opt-btn:hover::after {
    color: var(--accent-orange);
    transform: translateX(4px);
}

