/* 
   DREAM HOUSE BRAND STYLES v2.5 (FINAL CONTRAST & FORCE READABILITY)
   Luxury Nature-Tech Experience with Guaranteed Clarity
*/

:root {
    --forest-deep: #061C14;
    --forest-mid: #0B2A20;
    --gold-1: #D4AF37;
    --gold-2: #F6E27A;
    --dh-white: #FFFFFF;
    --dh-container: 1180px;
}

body {
    background-color: var(--forest-deep) !important;
    color: var(--dh-white) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Global Heading & Text Contrast Force */
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
span,
div {
    color: inherit;
    /* Allow parent container to control color, but defaults to white in glass */
}

.front-page-template h1,
.front-page-template h2,
.front-page-template h3,
.front-page-template h4 {
    color: var(--dh-white) !important;
    font-family: 'Outfit', sans-serif !important;
}

/* Tri-lingual Branding Styles (Harmony Fix) */
.dh-brand-trilingual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.dh-brand-main {
    font-size: clamp(40px, 8vw, 85px) !important;
    font-weight: 800 !important;
    line-height: 0.9 !important;
    background: #FFFFFF !important;
    /* Force Solid White for max contrast */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.dh-brand-sub {
    font-size: 20px !important;
    letter-spacing: 0.45em !important;
    color: #FFFFFF !important;
    opacity: 1 !important;
    text-transform: uppercase;
    font-weight: 500;
}

.dh-brand-vn {
    font-size: 18px !important;
    letter-spacing: 0.25em !important;
    color: var(--gold-2) !important;
    font-weight: 600;
    text-transform: uppercase;
}

/* Enhanced Glass 2.5 (Absolute Contrast) */
.dh-glass-2 {
    background: rgba(6, 28, 20, 0.85) !important;
    /* Darker, more solid glass */
    backdrop-filter: blur(40px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
    color: #FFFFFF !important;
    /* Force white for all children */
}

.dh-glass-2 * {
    color: #FFFFFF !important;
}

.dh-glass-2 h3,
.dh-glass-2 h4 {
    color: var(--gold-2) !important;
    /* Gold highlights still allowed */
    margin-bottom: 24px;
}

.dh-glass-2 p,
.dh-glass-2 li {
    font-weight: 400 !important;
    opacity: 1 !important;
    line-height: 1.8 !important;
}

/* Button System */
.dh-cta-primary {
    display: inline-block !important;
    padding: 22px 50px !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2)) !important;
    color: var(--forest-deep) !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4) !important;
}

.dh-cta-primary:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.6) !important;
    background: #FFFFFF !important;
}

/* Sun Mask (Subtle Nature Cue) */
.dh-sun-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(246, 226, 122, 0.05) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
    animation: dhSunMove 20s infinite linear;
}

@keyframes dhSunMove {
    0% {
        transform: translate(-5%, -5%) scale(1.1);
    }

    50% {
        transform: translate(5%, 5%) scale(1);
    }

    100% {
        transform: translate(-5%, -5%) scale(1.1);
    }
}

/* Layout Utilities */
.dh-container {
    max-width: var(--dh-container);
    margin: 0 auto;
    padding: 0 32px;
}

.dh-section {
    padding: 160px 0;
}

@media (max-width: 768px) {
    .dh-section {
        padding: 100px 0;
    }
}

/* Fix Typography */
.dh-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.dh-reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}