/* --- 1. BRAND VARIABLES (Quiet Luxury) --- */
:root {
    --bg-app: #F9F9F8;
    --bg-card: #FFFFFF;
    --ink-primary: #111111;
    --ink-secondary: #4A4A4A;
    --ink-tertiary: #A1A1AA;
    --accent-gold: #C6A87C;
    --shadow-resting: 0 2px 15px rgba(0,0,0,0.04);
    --shadow-lift: 0 20px 50px -12px rgba(0,0,0,0.12);
}

body {
    background-color: var(--bg-app);
    color: var(--ink-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1 0 auto; /* Pushes the footer down */
}

/* THE FIX: Removed position: absolute */
.footer {
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    flex-shrink: 0;
}

/* --- 2. TYPOGRAPHY --- */
h1, h2, h3, h4, .navbar-brand, .modal-title {
    font-family: 'Playfair Display', serif;
    color: var(--ink-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

p, span, label, input, .btn {
    font-family: 'Inter', sans-serif;
}

.text-muted { color: var(--ink-secondary) !important; }
.text-legacy-brown { color: var(--accent-gold) !important; }

/* --- 3. BUTTONS (Refined Pill) --- */
.btn-luxury, .btn-primary {
    background-color: var(--ink-primary);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-luxury:hover, .btn-primary:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.btn-outline-luxury {
    border: 1.5px solid var(--ink-primary);
    color: var(--ink-primary);
    background: transparent;
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
}

.btn-outline-luxury:hover {
    background-color: var(--ink-primary);
    color: #fff;
}

/* --- 4. MODALS (Clean & Visible) --- */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-lift);
}


.modal-header {
    border-bottom: none;
    padding: 2rem 2rem 0.5rem;
    background: transparent !important;
}

.modal-title {
    color: var(--ink-primary) !important; /* Fixed visibility */
    font-size: 1.75rem;
}

.modal-body {
    padding: 1rem 2rem 2.5rem;
    color: var(--ink-secondary) !important;
}

/* --- 5. PROGRESS & CARDS --- */
.progress {
    background-color: #E5E5E5;
    height: 3px !important;
}

.progress-bar {
    background-color: var(--ink-primary) !important;
}

.card {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    box-shadow: var(--shadow-resting);
}

.card-header {
    color: #111111;
}

/* --- 6. INPUTS --- */
.form-control {
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(198, 168, 124, 0.1);
}

.input-room-code {
    letter-spacing: 4px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.5rem;
}

/* =========================================================
   GLOBAL MOBILE OVERRIDES (Phones Only)
   ========================================================= */
@media (max-width: 768px) {
    /* 1. Crush the massive desktop H1s (Discovery, Refine Your Legacy, etc.) */
    h1, .display-1, .display-2 {
        font-size: 2.25rem !important; 
        line-height: 1.15 !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* 2. Reign in H2s (Legacy Secured, Family DNA headers) */
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
    }

    /* 3. Soften the sub-paragraphs so they don't look like walls of text */
/* 3. Soften the sub-paragraphs but keep them bold and legible */
    p {
        font-size: 1.1rem !important; /* Bumped up for readability */
        line-height: 1.6 !important;
    }

    /* 4. Tweak the tiny "Phase One / Phase Two" uppercase headers */
    h6 {
        font-size: 0.7rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 0.5rem !important;
    }

    /* 5. Add universal breathing room to main containers so text doesn't touch the glass */
    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}