/* ==========================================================================
   DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
    /* Brand Colors - Co-Living (Rent) */
    --coliving-primary: #2c5f8d;
    --coliving-light: #3a7ab8;
    --coliving-accent: #ff6b6b;
    --coliving-accent-hover: #ff5252;
    --coliving-bg-gradient: linear-gradient(135deg, rgba(44, 95, 141, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);
    
    /* Brand Colors - Sober Living (Recovery) */
    --sober-primary: #0f766e;
    --sober-light: #14b8a6;
    --sober-accent: #d97706;
    --sober-accent-hover: #b45309;
    --sober-bg-gradient: linear-gradient(135deg, rgba(15, 118, 110, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);

    /* Neutrals */
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Transitions */
    --max-width: 1200px;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.25s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 108px; /* Accounts for header + top bar heights */
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--slate-700);
    background-color: var(--slate-50);
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-bar {
    background-color: var(--slate-900);
    color: var(--slate-300);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    height: 38px;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid var(--slate-800);
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-item i {
    color: var(--coliving-light);
}

.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    z-index: 100;
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--slate-100);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav a {
    text-decoration: none;
    color: var(--slate-700);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav a:hover {
    color: var(--coliving-primary);
}

.nav-apply-btn {
    background-color: var(--coliving-primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.nav-apply-btn:hover {
    background-color: var(--coliving-light);
    transform: translateY(-1px);
}

/* ==========================================================================
   SPLIT HERO SECTION
   ========================================================================== */
.split-hero {
    display: flex;
    height: calc(100vh - 108px);
    margin-top: 108px;
    overflow: hidden;
    width: 100%;
    background-color: var(--slate-900);
    position: relative;
}

.hero-col {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.col-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
    transform: scale(1.02);
}

.col-overlay {
    position: absolute;
    inset: 0;
    transition: var(--transition-smooth);
}

.coliving .col-overlay {
    background: var(--coliving-bg-gradient);
}

.sober .col-overlay {
    background: var(--sober-bg-gradient);
}

.col-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
    padding: 3rem;
    color: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
}

.business-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.1);
}

.tag-coliving {
    color: #ffd8d8;
    border-color: rgba(255, 107, 107, 0.5);
    background-color: rgba(255, 107, 107, 0.1);
}

.tag-sober {
    color: #ffedd5;
    border-color: rgba(217, 119, 6, 0.5);
    background-color: rgba(217, 119, 6, 0.1);
}

.col-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.col-description {
    font-size: 1.1rem;
    margin-bottom: 2.2rem;
    opacity: 0.9;
    font-weight: 400;
}

.col-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

/* INTERACTIVE EXPAND HOVER ACTIONS USING :has() */
.split-hero:has(.coliving:hover) .coliving {
    flex: 1.35;
}
.split-hero:has(.coliving:hover) .coliving .col-bg {
    transform: scale(1.06);
}
.split-hero:has(.coliving:hover) .coliving .col-overlay {
    background: linear-gradient(135deg, rgba(44, 95, 141, 0.55) 0%, rgba(15, 23, 42, 0.9) 100%);
}
.split-hero:has(.coliving:hover) .sober {
    flex: 0.65;
    opacity: 0.5;
}
.split-hero:has(.coliving:hover) .sober .col-content {
    transform: scale(0.95);
    opacity: 0.6;
}

.split-hero:has(.sober:hover) .sober {
    flex: 1.35;
}
.split-hero:has(.sober:hover) .sober .col-bg {
    transform: scale(1.06);
}
.split-hero:has(.sober:hover) .sober .col-overlay {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.55) 0%, rgba(15, 23, 42, 0.9) 100%);
}
.split-hero:has(.sober:hover) .coliving {
    flex: 0.65;
    opacity: 0.5;
}
.split-hero:has(.sober:hover) .coliving .col-content {
    transform: scale(0.95);
    opacity: 0.6;
}

/* ==========================================================================
   BUTTONS STYLING
   ========================================================================== */
.btn {
    font-family: var(--font-heading);
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* Co-living Button Styles */
.btn-coliving-pri {
    background-color: var(--coliving-accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.35);
}

.btn-coliving-pri:hover {
    background-color: var(--coliving-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.btn-coliving-sec {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.btn-coliving-sec:hover {
    background-color: var(--white);
    color: var(--coliving-primary);
    transform: translateY(-2px);
}

/* Sober Button Styles */
.btn-sober-pri {
    background-color: var(--sober-accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(219, 119, 6, 0.35);
}

.btn-sober-pri:hover {
    background-color: var(--sober-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 119, 6, 0.5);
}

.btn-sober-sec {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.btn-sober-sec:hover {
    background-color: var(--white);
    color: var(--sober-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   BUSINESS SECTIONS & CONTENT
   ========================================================================== */
.business-section {
    padding: 6.5rem 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--slate-100);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4.5rem auto;
    text-align: center;
}

.section-header .subtitle {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--coliving-light);
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.section-header .sober-sub {
    color: var(--sober-light);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--slate-700);
    line-height: 1.7;
}

.section-title-sub {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 2rem;
}

/* ROOMS GRID */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5.5rem;
}

.room-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid var(--slate-100);
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.room-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.price-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--slate-900);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.room-info {
    padding: 2rem;
}

.room-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.room-info .location {
    font-size: 0.9rem;
    color: var(--coliving-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.room-info .location i {
    margin-right: 0.3rem;
}

.room-info .description {
    font-size: 0.95rem;
    color: var(--slate-700);
    margin-bottom: 1.5rem;
}

.room-features {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.room-features span {
    background-color: var(--slate-100);
    color: var(--slate-700);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.room-features span i {
    color: var(--coliving-primary);
}

.btn-card-apply {
    width: 100%;
    border: none;
    padding: 0.9rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

/* AMENITIES */
.amenities-container {
    background-color: var(--slate-50);
    padding: 4.5rem 3rem;
    border-radius: 24px;
    border: 1px solid var(--slate-100);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--white);
    padding: 2.2rem 1.8rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.amenity-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.amenity-icon {
    font-size: 2.2rem;
    color: var(--coliving-primary);
    margin-bottom: 1.2rem;
}

.amenity-item h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.amenity-item p {
    font-size: 0.9rem;
    color: var(--slate-700);
}

/* ==========================================================================
   SOBER LIVING STYLES (Coming Soon)
   ========================================================================== */
.sober-section {
    background-color: var(--slate-50);
    position: relative;
}

.coming-soon-badge {
    background-color: var(--sober-accent);
    color: var(--white);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
}

.regulatory-alert {
    background: linear-gradient(to right, rgba(15, 118, 110, 0.08), rgba(20, 184, 166, 0.02));
    border-left: 4px solid var(--sober-primary);
    border-radius: 0 16px 16px 0;
    padding: 2.2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 4.5rem;
    border-top: 1px solid rgba(15, 118, 110, 0.1);
    border-right: 1px solid rgba(15, 118, 110, 0.1);
    border-bottom: 1px solid rgba(15, 118, 110, 0.1);
}

.regulatory-alert .alert-icon {
    font-size: 2rem;
    color: var(--sober-primary);
}

.regulatory-alert h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.4rem;
}

.regulatory-alert p {
    font-size: 0.98rem;
    color: var(--slate-700);
    line-height: 1.6;
}

.sober-info-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 3.5rem;
    align-items: start;
}

.sober-text-block h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 1rem;
}

.sober-text-block > p {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.pillar-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background-color: var(--white);
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
}

.pillar-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--sober-primary);
    opacity: 0.3;
    line-height: 1;
}

.pillar-content h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.4rem;
}

.pillar-content p {
    font-size: 0.92rem;
    color: var(--slate-700);
}

.waitlist-cta-box {
    background-color: var(--white);
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--slate-200);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.waitlist-icon {
    font-size: 3.5rem;
    color: var(--sober-primary);
    margin-bottom: 1.5rem;
}

.waitlist-cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.8rem;
}

.waitlist-cta-box p {
    font-size: 0.95rem;
    color: var(--slate-700);
    margin-bottom: 2rem;
}

.waitlist-cta-box .btn {
    width: 100%;
}

/* ==========================================================================
   HOW IT WORKS & STEPS
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.step-card {
    text-align: center;
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    transition: var(--transition-fast);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-icon {
    font-size: 2.8rem;
    color: var(--coliving-primary);
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.8rem;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--slate-700);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.contact-form-box {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
    width: 100%;
    max-width: 600px;
}

.contact-phone-link {
    color: var(--coliving-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-phone-link:hover {
    color: var(--coliving-light);
    text-decoration: underline;
}

.contact-form-box form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ==========================================================================
   FORM CONTROLS (SHARED)
   ========================================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-800);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--slate-200);
    border-radius: 10px;
    font-size: 0.98rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--coliving-primary);
    box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.12);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.required {
    color: var(--coliving-accent);
}

/* ==========================================================================
   NATIVE DIALOG MODAL STYLING
   ========================================================================== */
.native-modal {
    border: none;
    border-radius: 16px;
    padding: 0;
    max-width: 680px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background-color: var(--white);
    overflow: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Open Animation */
.native-modal[open] {
    opacity: 1;
}

/* Native Backdrop styling */
.native-modal::backdrop {
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

/* Header inside Dialog */
.modal-header-bg {
    color: var(--white);
    padding: 2.2rem 2.8rem;
    position: relative;
}

.coliving-header {
    background: linear-gradient(135deg, var(--coliving-primary), var(--coliving-light));
}

.sober-header {
    background: linear-gradient(135deg, var(--sober-primary), var(--sober-light));
}

.modal-header-bg h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    margin-right: 2rem;
    line-height: 1.2;
}

.dialog-close-btn {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    font-size: 1.8rem;
    width: 36px;
    height: 36px;
    line-height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.dialog-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

/* Form layouts inside modal */
.native-modal form {
    padding: 2.8rem;
    max-height: 70vh;
    overflow-y: auto;
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid var(--slate-200);
}

.section-notice {
    font-size: 0.88rem;
    color: var(--slate-700);
    background-color: var(--slate-100);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.coliving-submit-btn {
    background-color: var(--coliving-accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.coliving-submit-btn:hover {
    background-color: var(--coliving-accent-hover);
    transform: translateY(-2px);
}

.sober-submit-btn {
    background-color: var(--sober-accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.sober-submit-btn:hover {
    background-color: var(--sober-accent-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--slate-900);
    color: var(--slate-300);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--slate-800);
    font-size: 0.95rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN / MEDIA QUERIES
   ========================================================================== */
@media (max-width: 991px) {
    .split-hero {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 108px);
    }
    
    .hero-col {
        flex: none;
        height: 50vh;
        width: 100%;
    }
    
    /* Disable interactive zooms & widths on mobile viewports */
    .split-hero:has(.coliving:hover) .coliving,
    .split-hero:has(.sober:hover) .sober,
    .split-hero:has(.coliving:hover) .sober,
    .split-hero:has(.sober:hover) .coliving {
        flex: 1;
        opacity: 1;
    }
    
    .split-hero:has(.coliving:hover) .coliving .col-bg,
    .split-hero:has(.sober:hover) .sober .col-bg {
        transform: scale(1.02);
    }
    
    .col-content {
        padding: 2rem;
    }
    
    .col-title {
        font-size: 2.8rem;
    }
    
    .sober-info-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    

}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .top-bar {
        display: none;
    }
    
    .header {
        top: 0;
    }
    
    .split-hero {
        margin-top: 70px;
        min-height: calc(100vh - 70px);
    }
    
    .logo {
        margin: 0 auto;
    }
    
    .nav {
        display: none; /* In a full project, add burger. Simple for landing */
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .native-modal form {
        padding: 1.5rem;
    }
    
    .modal-header-bg {
        padding: 1.5rem 2rem;
    }
    
    .dialog-close-btn {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .contact-form-box {
        padding: 1.8rem;
    }
}

/* Webkit Scrollbar Styling for Modal Form Content */
.native-modal form::-webkit-scrollbar {
    width: 8px;
}

.native-modal form::-webkit-scrollbar-track {
    background: var(--slate-50);
}

.native-modal form::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 4px;
}

.native-modal form::-webkit-scrollbar-thumb:hover {
    background: var(--slate-700);
}

/* ==========================================================================
   CUSTOM FORM CONTROLS (FILE UPLOAD & REFERENCES GRID)
   ========================================================================== */
.form-group input[type="file"] {
    padding: 0.6rem 0.8rem;
    background: var(--slate-50);
    border: 2px dashed var(--slate-300);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.form-group input[type="file"]::file-selector-button {
    background-color: var(--coliving-primary);
    color: var(--white);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    margin-right: 0.8rem;
    transition: var(--transition-fast);
}

.form-group input[type="file"]::file-selector-button:hover {
    background-color: var(--coliving-light);
}

.form-group input[type="file"]:focus {
    border-color: var(--coliving-primary);
    outline: none;
}

.file-help {
    font-size: 0.8rem;
    color: var(--slate-500);
    margin-top: 0.2rem;
}

.reference-group {
    background-color: var(--slate-50);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--slate-200);
}

.reference-group h4 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--coliving-primary);
    margin-bottom: 1rem;
    border-left: 3px solid var(--coliving-primary);
    padding-left: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 768px) {
    .form-grid-3 {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

.document-instructions {
    background-color: rgba(44, 95, 141, 0.08);
    border-left: 4px solid var(--coliving-primary);
    padding: 1.2rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.document-instructions p {
    font-size: 0.95rem;
    color: var(--slate-800);
    line-height: 1.6;
    margin: 0;
}

.document-instructions a {
    color: var(--coliving-primary);
    text-decoration: underline;
    font-weight: 600;
}

