/* ==========================================================================
   BEYOND ME - MASTER "GALLERY WHITE" STYLESHEET
   ========================================================================== */

:root {
    --bg-white: #ffffff;
    --text-navy: #152441;
    --beyond-gold: #C5A059;
    --text-muted: #555555;
    --border-light: #eeeeee;
}

body {
    background-color: var(--bg-white);
    color: var(--text-navy);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- NAVIGATION & MOBILE MENU --- */
/* --- TIGHTENED BRANDED MASTHEAD --- */
header {
    padding: 1.5rem 2rem; /* Reduced from 2.5rem to pull the logo closer to the top */
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px; 
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.logo-img {
    height: 130px; 
    width: auto;
    min-width: 150px;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

nav a {
    color: var(--text-navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    white-space: nowrap;
}

nav a:hover { color: var(--beyond-gold); }

nav a + a {
    position: relative;
}

nav a + a::before {
    content: "|";
    position: absolute;
    left: -11px;
    color: rgba(21, 36, 65, 0.25);
    font-weight: 300;
    pointer-events: none;
}

@media (max-width: 900px) {
    nav a + a::before {
        display: none;
    }
}

.vault-btn {
    background: var(--text-navy);
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
}

/* Hamburger Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    /* Button element resets */
    background: none;
    border: none;
    padding: 0;
    touch-action: manipulation;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--text-navy);
    transition: 0.3s;
}

/* --- TIGHTENED HERO SECTION --- */
.hero { 
    min-height: 60vh; /* Reduced from 75vh to pull content upward */
    display: flex; 
    flex-direction: column; 
    /* Changed from 'center' to 'flex-start' to anchor content higher up */
    justify-content: flex-start; 
    align-items: center; 
    text-align: center; 
    padding: 20px 20px 80px; /* Minimal top padding (20px) to close the gap */
    background-color: var(--bg-white);
}
.hero h1 {
    margin-top: 20px; /* Fine-tune the exact distance from the header here */
}
h1 { 
    font-size: clamp(2.5rem, 8vw, 5rem); 
    margin: 0; 
    letter-spacing: -2px; 
    font-weight: 800; 
    line-height: 1.1;
}

.cta-btn { 
    display: inline-block;
    padding: 18px 45px; 
    background: var(--beyond-gold); 
    color: white !important; 
    text-decoration: none; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    transition: 0.3s; 
}

.cta-btn:hover { background: var(--text-navy); transform: translateY(-2px); }

/* --- FOOTER --- */
footer {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: #f9f9f9;
}

/* --- THE CLEAN MEDIA OVERWRITE --- */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .logo-img {
        height: 80px; /* Strong presence on iPhone without taking over the screen */
    }

    header {
        padding: 1rem 1.5rem;
    }

    nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;           /* fallback */
        height: 100dvh;          /* iOS 15.4+ — excludes browser chrome */
        padding-bottom: env(safe-area-inset-bottom, 20px); /* notch/home-bar clearance */
        box-sizing: border-box;
        width: 80%;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        overflow-y: auto;        /* scroll if content is taller than viewport */
    }

    nav.active {
        display: flex;
    }

    nav a {
        font-size: 1.2rem;
        margin: 15px 0;
        touch-action: manipulation;
    }
}
/* --- CASE STUDY HERO --- */
.case-study-hero {
    padding: 60px 20px;
    background-color: #fff;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Image gets slightly more room */
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-scan {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Gives the "book" some depth */
}

.case-study-content h2 {
    font-size: 2.2rem;
    margin: 15px 0;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.spec-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-family: var(--font-primary);
    color: var(--steward-gray);
    font-size: 0.9rem;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #eee;
    max-width: 80%;
    margin: 0 auto;
}

/* Responsive Squeeze */
@media (max-width: 768px) {
    .case-study-grid {
        grid-template-columns: 1fr;
    }
    .case-study-hero {
        padding: 40px 20px;
    }
}

/* --- SOCIAL LINKS --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}
.social-links a {
    color: var(--text-muted);
    transition: color 0.3s;
    display: flex;
    align-items: center;
}
.social-links a:hover { color: var(--text-navy); }

.login-btn {
    color: var(--text-navy);
    transition: color 0.3s !important;
}
.login-btn:hover { color: var(--beyond-gold); }

/* --- LOGIN BUTTON TOUCH TARGET --- */
.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
}

.login-btn svg {
    width: 22px;
    height: 22px;
}

/* Always show text label, hide icon */
.login-btn svg   { display: none; }
.login-label     { display: inline; }

/* Larger tap target on hamburger (mobile) */
@media (max-width: 768px) {
    .menu-toggle {
        padding: 10px;
        margin: -10px;
    }
}
/*  --- NEWSLETTER SECTION --- */
.newsletter-section {
    background: #f9f9f9;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 80px 20px;
}

.newsletter-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.newsletter-text .section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--beyond-gold);
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-navy);
    margin-bottom: 16px;
    line-height: 1.2;
}

.newsletter-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 420px;
}

@media (max-width: 768px) {
    .newsletter-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
