/* =========================================
   1. GLOBAL RESETS & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    background-color: #0a0a0a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 1s ease-in;
}

body.loaded {
    opacity: 1;
}

/* =========================================
   2. HERO & BACKGROUND LAYER (DESKTOP)
   ========================================= */
.hero {
    position: relative;
    background: url('hero-image.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

/* Hidden on Desktop - Show only on Mobile */
.mobile-hero-slogan {
    display: none;
}

/* =========================================
   3. MAIN CONTENT (CENTER BOX)
   ========================================= */
.text-block.content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 20px;
    animation: fadeIn 2s ease-in;
}

h1 {
    font-family: 'Old Standard TT', serif;
    line-height: 1.1;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.agency-main {
    font-size: clamp(2.5rem, 8vw, 5rem);
    display: block;
    letter-spacing: 2px;
}

.agency-sub {
    font-size: clamp(1rem, 3vw, 1.8rem);
    display: block;
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 1px;
}

.experience-line {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
    opacity: 0.9;
}

/* =========================================
   4. REVERSE PSYCHOLOGY DISCLAIMER
   ========================================= */
.broker-disclaimer {
    margin: 30px auto;
    padding: 20px;
    font-size: 0.9rem;
    color: #d1d1d1;
    font-style: italic;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 550px;
    background: rgba(255, 255, 255, 0.03);
}

.broker-disclaimer strong {
    color: #ffcc00;
    text-decoration: underline;
}

/* =========================================
   5. BUTTONS
   ========================================= */
.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.email { background-color: #0078D7; }
.whatsapp { background-color: #25D366; }
.facebook { background-color: #4267B2; }
.phone { background-color: #f4b400; }

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* =========================================
   6. UI & SOUND ELEMENTS (DESKTOP)
   ========================================= */
#insurance-tip {
    position: fixed;
    bottom: 25px;
    left: 25px;
    max-width: 350px;
    border-left: 4px solid #ffcc00;
    padding: 12px 18px;
    font-style: italic;
    color: #ffcc00;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

#mute-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 1.5rem;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

#sound-prompt {
    position: fixed;
    bottom: 85px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    z-index: 999;
    backdrop-filter: blur(10px);
    transition: opacity 1s ease-out;
    pointer-events: none;
}

#sound-prompt.fade-out { opacity: 0; }

/* =========================================
   7. ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseFade {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

@media screen and (max-width: 600px) {
    
    /* 1. SLOGAN: Big & Authoritative (Restored) */
    .mobile-hero-slogan {
        display: block !important; 
        text-align: center;
        margin-top: 4dvh;     
        margin-bottom: 5dvh; 
    }

    .slogan-top {
        font-size: 1.8rem !important; 
        font-weight: 900;
        color: #ffcc00;
        text-transform: uppercase;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    }

    /* 2. THE STAR: I.C.I with Gold Shimmer & Motion */
    .agency-main { 
        font-size: 2.8rem !important;
        font-weight: 900;
        letter-spacing: 2px;
        display: block;
        opacity: 1 !important;
        background: linear-gradient(to right, #ffffff 20%, #ffcc00 40%, #ffcc00 60%, #ffffff 80%);
        background-size: 200% auto;
        color: #fff;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: mobileShine 4s linear infinite;
    }

    .agency-sub { 
        font-size: 0.75rem !important; 
        color: white !important;
        -webkit-text-fill-color: white !important;
        margin-top: -5px; 
    }

    /* 3. THE HANDS WINDOW: Perfect spacing for the handshake */
    .buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 45px; 
        margin-bottom: 10px;
    }

    .btn { padding: 10px 2px; font-size: 0.75rem; min-width: unset; }

    /* 4. THE NOTE (DISCLAIMER): The "Guard Rail" padding fix */
    .broker-disclaimer {
        font-size: 0.65rem;
        margin: 5px 0;
        padding: 8px 8px 55px 8px; /* Extra bottom padding so it never touches the tips */
        background: rgba(0,0,0,0.4);
        border: none;
    }

    /* 5. THE TIPS: Solid shield to prevent "Ghosting" */
    #insurance-tip {
        position: absolute; 
        bottom: 105px; 
        left: 15px; 
        right: 15px;
        background-color: #000000 !important; 
        border-left: 3px solid #ffcc00;
        padding: 10px;
        font-size: 0.75rem;
        z-index: 1000;
        display: flex;
        align-items: center;
        min-height: 45px;
        pointer-events: none; /* */
    }

    /* 6. UI & BACKGROUND ELEMENTS */
    body .hero {
        background: url('hero-mobile.jpg') no-repeat center center !important;
        background-size: cover !important;
        height: 100dvh !important; 
        display: flex;
        flex-direction: column;
        justify-content: flex-start; 
        padding: 15px;
    }

    .overlay { background: rgba(0, 0, 0, 0.3) !important; }
    
    #sound-prompt { position: absolute; bottom: 70px; width: 100%; text-align: center; left:0; font-size: 0.7rem; color: #ffcc00;}
    #mute-toggle { position: absolute; bottom: 15px; right: 15px; width: 40px; height: 40px; }

    /* ANIMATION KEYFRAME */
    @keyframes mobileShine {
        0% { background-position: 0% center; }
        100% { background-position: 200% center; }
    }
}