:root {
    --bloom-gold: #c5a059;
    --bloom-black: #0a0a0a;
    --bloom-gray: #1f1f1f;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bloom-black);
    color: #e0e0e0;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
}

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

.bg-gold {
    background-color: var(--bloom-gold) !important;
}

.hero-section {
    min-height: calc(100vh - 55px);
    /* Adjusted to 100vh to remove gap on laptop */
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/heros/home-cityscape-singapore-large.jpg') center/cover no-repeat;
    position: relative;
}

.credential-badge {
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-right: 10px;
    color: #888;
}

.btn-forensic {
    background-color: var(--bloom-gold);
    color: #000;
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-forensic:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

.blur-data {
    filter: blur(4px);
    user-select: none;
}

.sc-player {
    width: 100%;
    height: 166px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--bloom-gold);
    color: #000;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

.btn-outline-gold {
    color: var(--bloom-gold);
    border: 1px solid var(--bloom-gold);
    background: transparent;
}

.btn-outline-gold:hover {
    background-color: var(--bloom-gold);
    color: #000;
}

.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bloom-black);
    border: 1px solid var(--bloom-gold);
    color: var(--bloom-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.chatbot-toggler:hover {
    transform: scale(1.1);
    background-color: var(--bloom-gold);
    color: #000;
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 110px;
    /* Positioned left of the toggler */
    width: 350px;
    height: 500px;
    max-height: calc(100vh - 120px);
    /* Prevent header overlap */
    background-color: #000;
    border: 1px solid var(--bloom-gold);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Typing Indicator Animation */
.typing-dot {
    animation: blink 1.4s infinite both;
    display: inline-block;
    font-weight: bold;
    font-size: 1.2rem;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

/* Mobile Adjustments for Chatbot */
@media (max-width: 500px) {
    .chatbot-window {
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: calc(100% - 80px) !important;
        border-radius: 10px 10px 0 0 !important;
    }
}

.chatbot-window.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.chatbot-header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.chatbot-body {
    flex-grow: 1;
    background-color: #0a0a0a;
}

.chatbot-footer {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

.pdpa-consent-text {
    font-size: 12px;
}

@media (min-width: 768px) {
    .pdpa-consent-text {
        font-size: 14px;
    }
}

@media (min-width: 992px) {
    .pdpa-consent-text {
        font-size: 16px;
    }
}

.disclaimer-text {
    font-size: 11px;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .disclaimer-text {
        font-size: 13px;
    }
}

.lead-compact {
    font-size: 1.15rem;
}

@media (min-width: 992px) {
    .lead-compact {
        font-size: 1.1rem;
    }
}

.methodology-text {
    font-size: 12px;
}

@media (min-width: 768px) {
    .methodology-text {
        font-size: 1rem;
    }
}


/* --- Footer Refactor (Moved to footer.css) --- */
/* Bloom Realty - Hybrid Theme (60% Dark / Emotional Pivot) */
:root {
    --bg-main: #F5F0E4;
    /* Beige Background */
    --bg-card: #1e1e24;
    /* Charcoal Card */
    --text-primary: #1a1a1a;
    /* Dark Text for Body */
    --text-card: #e0e0e0;
    /* AAA Light Text for Cards */
    --bloom-gold: #c5a059;
    /* Gold Emphasis */
    color-scheme: light dark;
    /* Allow both, but we override manually below */
}

/* User Fix: Darken muted text for Beige Background visibility... */
.text-muted {
    color: #212529 !important;
    /* Default: Dark for Beige BG */
}

/* User Request: Specific PDPA Font Size */
.pdpa-consent-text {
    font-size: 0.9rem !important;
}

/* ...BUT invert it to Light if inside a Dark Section (Charcoal) */
.bg-black .text-muted,
.bg-black .pdpa-consent-text,
.form-container .text-muted,
.form-container .pdpa-consent-text {
    color: #e0e0e0 !important;
    /* Light for Charcoal BG */
}

/* Ensure links in consent text are visible (Gold on Beige might be low contrast, but maintaining branding for now) */
.pdpa-consent-text a {
    font-weight: 600;
}

/* User Fix: Override Dark Backgrounds to match Hybrid Theme */
.bg-darker,
.bg-black {
    background-color: var(--bg-card) !important;
    /* Turn black sections to Charcoal */
    color: var(--text-card) !important;
}

.bg-darker h1,
.bg-darker h2,
.bg-darker h3,
.bg-darker p,
.bg-black h1,
.bg-black h2,
.bg-black h3,
.bg-black p {
    color: #fff !important;
    /* Ensure text on Charcoal is light */
}

/* User Fix: Restore "Matrix Green" for Diagnostic Block */
.bg-black.font-monospace {
    color: #0f0 !important;
    font-family: 'Courier New', Courier, monospace !important;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    /* Add glow back */
}

/* Force Consistent Theme (Ignore System Prefs) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--bg-main) !important;
        color: var(--text-primary) !important;
    }

    .card,
    .glass-panel,
    .feature-card {
        background-color: var(--bg-card) !important;
        color: var(--text-card) !important;
    }
}

@media (prefers-color-scheme: light) {
    body {
        background-color: var(--bg-main) !important;
        color: var(--text-primary) !important;
    }
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

/* --- Navigation (Moved to header.css) --- */

/* --- Hero Section --- */
.hero-section {
    color: #fff !important;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p {
    color: #fff !important;
}

/* --- Buttons (Gold Emphasis) --- */
.btn-forensic,
.btn-primary,
.btn-outline-gold {
    background: #c5a059;
    border-color: #c5a059;
    color: #1e1e24;
    /* Black text on gold */
    font-weight: 700 !important;
    /* Visual Emphasis */
    box-shadow: 0 4px 6px rgba(197, 160, 89, 0.3);
}

.btn-forensic:hover,
.btn-outline-gold:hover,
.btn-primary:hover {
    background-color: #e0b050;
    /* Lighter Gold */
    color: #000;
    transform: translateY(-2px);
}

/* --- Cards (Charcoal) --- */
.card,
.glass-panel,
.feature-card {
    background-color: var(--bg-card);
    color: var(--text-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Gold Border on Hover */
.card:hover,
.glass-panel:hover,
.feature-card:hover {
    border-color: #c5a059;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

h1,
h2,
h3,
h4,
h5,
h6,
.card-title {
    color: var(--text-primary);
}

/* Inside cards, headers must be light */
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
    color: #fff;
}

/* --- Footer (Keep Dark) --- */
/* --- Footer Styles (Moved to footer.css) --- */

/* --- Contact Form Specifics (Bloom AIX / Gold Style) --- */
.form-container {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.form-container:hover {
    border-color: #c5a059;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

/* User Request: Form Checkbox Gold when Ticked */
.form-check-input:checked {
    background-color: #c5a059 !important;
    border-color: #c5a059 !important;
}

/* --- Utility Classes (Refactored from Inline Styles) --- */
.mw-300 {
    max-width: 300px;
}

.mw-600 {
    max-width: 600px;
}

.mw-700 {
    max-width: 700px;
}

.mw-800 {
    max-width: 800px;
}

.mw-1200 {
    max-width: 1200px;
}

.resize-none {
    resize: none !important;
}

.mt-header {
    margin-top: 100px;
}

/* Font Sizes */
.fs-075 {
    font-size: 0.75rem !important;
}

.fs-085 {
    font-size: 0.85rem !important;
}

/* Sidebar & Sticky */
.sticky-offset {
    top: 100px;
    z-index: 1;
}

.sidebar-widget-clean {
    border: none !important;
}

/* Progress Bars */
.progress-thin {
    height: 5px;
}

/* Ads/Placeholders */
.ad-block {
    display: block;
}

.ad-sidebar {
    display: block;
    width: 100%;
    height: 600px;
    background: #eee;
}

.ad-square {
    width: 300px;
    height: 300px;
}

/* Pagination */
.page-link-fixed {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Backgrounds */
.bg-almost-black {
    background-color: #0f0f0f;
}

/* Hero Icon */
.hero-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.9;
}


/* For the form section gradient */
.bg-gradient-form {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
}

/* Make the play button better */
.btn-outline-gold.rounded-circle {
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    /* Ensure no padding messes up centering */
    font-size: 1.2rem !important;
}

.icon-star-large {
    font-size: 3rem;
    color: #c5a059;
    margin-bottom: 10px;
}

/* Form Focus Override (Gold Glow) */
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    border-color: var(--bloom-gold);
    box-shadow: 0 0 0 0.25rem rgba(197, 160, 89, 0.25);
    /* Low intensity gold glow */
}

/* Checkbox Checked State */
.form-check-input:checked {
    background-color: var(--bloom-gold);
    border-color: var(--bloom-gold);
}