/* ==========================================================================
   1. Universal Core Reset & Slate Background Extension
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #1a2129;         /* Premium Pacific Northwest slate gray */
    --bg-surface: #242c36;      /* Lighter slate accent panels */
    --primary-accent: #38bdf8;  /* Vivid Seattle sky blue */
    --cta-bg: #e54d42;          /* Clean brand red */
    --text-main: #f3f4f6;        /* Off-white readability text */
    --text-muted: #9ca3af;       /* Soft mist gray */
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: Arial, sans-serif;
}

/* 🔒 Traps viewport scrolling on desktop ONLY for the homepage */
body.home-page {
    height: 100vh;
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. Global Navigation Header
   ========================================================================== */
header {
    width: 100%;
    min-height: 65px;
    background-color: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: space-between; /* 🚀 Spaces logo to the left, links to the right */
    padding: 0 4%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 100;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo {
    height: 45px;                 /* 🚀 Enforces constant crisp visibility across all devices */
    width: auto;
    object-fit: contain;
}

.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    padding-bottom: 4px;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover, 
.site-nav a.active {
    color: var(--primary-accent);
    border-bottom: 2px solid var(--primary-accent);
}

/* ==========================================================================
   3. Home Page Structural Layout Split
   ========================================================================== */
.home-container {
    width: 100%;
    max-width: 1400px;         
    margin: 0 auto;
    padding: 0 0 0 4%;      
    display: grid;
    grid-template-columns: 4fr 6fr; /* Rock-solid 40/60 split keeps images at full size */
    gap: 4rem;                 
    align-items: center;      
    height: calc(100vh - 65px); 
}

/* ==========================================================================
   4. Left Column - Physically Shifted Leftward
   ========================================================================== */
.left-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 20;
    width: 100%;
    max-width: 440px; 
    transform: translate(-3.76rem, -2rem); /* Tightens the top gap under the navbar for the logo/text stack */
}

/* Clean block alignment for the circular logo */
.logo-image {
    width: 300px;        
    height: 300px;       
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    margin-bottom: 0.9rem;   
    position: relative; 
    top: 8px;
    left: auto;
}

.page-header {
    margin-bottom: 1rem;      
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: block;
}

.page-header h1 {
    font-size: 3.4rem;        
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin: 0 0 0.35rem 0;
}

.page-header .subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary-accent);
    display: block;
    margin: 0;
}

.content-block {
    position: relative; 
    width: 100%;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 1.75rem;    
}

.book-now-button {
    display: inline-block;
    padding: 0.95rem 2.4rem;
    background-color: var(--cta-bg);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(229, 77, 66, 0.35);
    transition: transform 0.2s ease, background-color 0.2s ease;
    text-align: center;
}

.book-now-button:hover {
    background-color: #d43f35;
    transform: translateY(-2px);
}

/* ==========================================================================
   5. Right Column - Clean Editorial Overlap Layout (Full Size Maintained)
   ========================================================================== */
.right-column {
    position: relative; 
    width: 100%;
    height: 540px;      
    display: block;
    transform: translateY(-1rem); /* Lifts the echo composition closer to the navbar */
}

/* Background Canvas Layer (Echo Image Mask) */
.main-image-masked {
    position: absolute;
    top: -5.0%;
    right: -2.5%;            
    width: 111%;          
    height: 114%;        
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.main-image-masked image {
    width: 100%;
    height: 100%;
}

/* Foreground Top Layer Floating Selfie Box (Guide Photo) */
.selfie-image {
    position: absolute;
    top: 4%;            
    left: -18rem;         
    width: 40%;          
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 6px solid var(--bg-surface);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    z-index: 3;
    border-radius: 8px;
}

/* Baseline Intersecting Layer (Sonic Bloom) */
.space-needle-image {
    position: absolute;
    bottom: -67px;       
    left: -12rem;       
    width: 42%;          
    height: auto;
    aspect-ratio: 1.4 / 1;
    object-fit: cover;
    border: 6px solid var(--bg-surface);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    z-index: 2;
    border-radius: 8px;
}

/* ==========================================================================
   6. Subpages Content Layout Structures (Natural Layout Flow)
   ========================================================================== */
.sub-container {
    width: 100%;
    max-width: 1000px;         
    margin: 0 auto;
    padding: 4rem 2rem 0 2rem;  /* 🚀 Dropped bottom padding to 0 to eliminate awkward empty gaps */
    box-sizing: border-box;
}

.sub-container header p {
    color: var(--text-muted) !important; 
    line-height: 1.6;
}

/* Global Subpage Footer Layout: Clean, uniform separation across all viewports */
footer:not(.home-footer) {
    width: 100%;
    padding: 2.5rem 1.5rem;
    background-color: var(--bg-surface);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid #2e3742;
    
    /* 🚀 Forces a clean 4rem gap below content/forms on all screens */
    margin-top: 4rem;           
    position: relative;
    clear: both;
}

footer:not(.home-footer) a {
    color: var(--primary-accent);
    text-decoration: none;
    margin-left: 0.5rem;
}

footer:not(.home-footer) a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   7. Dark Theme Contact Form UI
   ========================================================================== */
.contact-form {
    background-color: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--text-main);
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid #374151; 
    color: var(--text-main);
    padding: 0.85rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15); 
}

.contact-form button[type="submit"] {
    align-self: flex-start;
    background-color: var(--cta-bg);
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(229, 77, 66, 0.3);
    transition: background-color 0.2s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: #d43f35;
}

/* ==========================================================================
   8. Unified Mobile Adaptive Media Query Framework (All Conflicts Resolved)
   ========================================================================== */
@media (max-width: 768px) {
    /* 🚀 UNLOCKS SCROLLING ON HOMEPAGE FOR PHONE USERS */
    body.home-page {
        height: auto !important;
        overflow: visible !important;
    }

    header {
        flex-direction: column;   /* Stacks brand logo directly above navigation links on phone viewports */
        gap: 0.75rem;
        padding: 1rem 1.5rem;
        height: auto;
    }
    
    .site-nav {
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    .home-container {
        grid-template-columns: 1fr; 
        gap: 2rem;
        padding: 2rem 1.5rem 0 1.5rem;
        height: auto;
    }

    .left-column { 
        align-items: center; 
        text-align: center; 
        max-width: 100%; 
        transform: none; 
    }
    
    .logo-image { 
        width: 130px; 
        height: 130px; 
    }
    
    .page-header h1 { 
        font-size: 2.6rem; 
    }

    .right-column {
        height: auto;
        display: block;
        width: 100%;
        transform: none;
        margin-bottom: 3rem;      /* 🚀 Cushion to push the home footer far below the content area */
    }

    /* HIDES SECONDARY PHOTOS TO PREVENT DENSE MOBILE OVERLAPS */
    .selfie-image, 
    .space-needle-image {
        display: none !important;
    }

    /* COMPACT ECHO SVG MASK SCALING SPECIFIC FOR PHONES */
    .main-image-masked {
        position: relative !important; 
        top: auto !important; 
        left: auto !important; 
        right: auto !important; 
        bottom: auto !important;
        width: 100%; 
        max-width: 420px;       
        height: auto;
        aspect-ratio: 700 / 800; 
        margin: 0 auto !important;
        transform: none !important; 
        display: block !important;
        border: 4px solid var(--bg-surface);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); 
        border-radius: 8px;
    }

    .sub-container { 
        padding: 2.5rem 1.25rem 0 1.25rem; 
    }
    
    .sub-container h1 { 
        font-size: 2.2rem; 
    }
    
    /* 🚀 RESOLVES CONTACT & SUBPAGE FOOTER BLOCKS OVERLAPPING FORM WIDGETS */
    footer:not(.home-footer) {
        margin-top: 6rem !important; 
        display: block !important;
        clear: both !important;
        position: relative !important;
    }

    .contact-form { 
        padding: 1.5rem; 
        margin-bottom: 2rem !important; /* 🚀 Safety boundary wall for input boxes */
    }
    
    .contact-form button[type="submit"] { 
        width: 100%; 
    } 

    /* 🚀 RESOLVES HOMEPAGE FOOTER CREEPING OVER THE MASKED ECHO GRAPHIC */
    .home-footer {
        position: relative !important;       
        bottom: auto !important;
        left: auto !important;
        text-align: center;
        padding: 2rem 1.5rem;
        width: 100%;
        background-color: var(--bg-surface);
        border-top: 1px solid #2e3742;
        margin-top: 6rem !important; /* 🚀 Forces an explicit gap separation from the Echo artwork layout */
        clear: both !important;
        display: block !important;
    }
}


/* ==========================================================================
   9. Homepage Specific Floating Footer (Zero-Scroll Widescreen Desktop Only)
   ========================================================================== */
.home-footer {
    position: absolute;
    bottom: 1.5rem;
    left: 4%;                   
    z-index: 99;                
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

.home-footer a {
    color: var(--primary-accent);
    text-decoration: none;
    margin-left: 0.75rem;
}