/* =========================================
   1. SETUP, VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #FAFAFA; 
    --text-main: #111111; 
    --text-muted: #555555; 
    --accent: #B7791F; 
    --border-light: #E5E5E5; 
    --font-display: 'Montserrat', sans-serif; 
    --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }

/* =========================================
   2. NAVIGATION (DESKTOP & MOBILE)
   ========================================= */
nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.98);
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
}

.logo { font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; color: var(--text-main); }

/* Centered Desktop Links */
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2.5rem;
}

.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-hidden { transform: translateY(-100%); transition: transform 0.4s ease; }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    min-height: 80vh;
    padding: 8rem 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Adjusted clamp for mobile */
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.hero-tag {
    display: inline-block;
    font-size: 0.9rem; 
    color: var(--accent); 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--accent);
    padding: 4px 10px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 10px;
    transform: translateY(-4px);
}

.status-pill {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--accent);
    display: block;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.8fr 1fr; 
    gap: 4rem;
    margin-top: 1rem;
    align-items: start;
}

.hero-intro p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 700px;
}

/* --- NEW CONTACT BLOCK STYLING --- */
.contact-block {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    font-weight: 500;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid transparent;
}

.contact-item:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.intro-bridge {
    margin-top: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.foundations-hero-card {
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.foundations-hero-card:hover { border-color: var(--accent); }
.foundations-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.foundations-link { font-weight: 600; font-size: 0.9rem; color: var(--accent); display: flex; align-items: center; gap: 0.5rem; }

/* =========================================
   4. BENTO GRID
   ========================================= */
.grid-container {
    padding: 0 5% 8rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.bento-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s ease;
}
.bento-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.card-meta { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 1rem; display: block;}
.card-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.focus-text { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.key-ideas-label { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; }
.ideas-list li { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.25rem; padding-left: 1rem; position: relative; }
.ideas-list li::before { content: '•'; color: var(--accent); position: absolute; left: 0; }

.card-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-light); }
.role-tag { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.view-link { font-size: 0.9rem; font-weight: 700; color: var(--text-main); }

/* =========================================
   5. PROFILE & CASE STUDY PAGES
   ========================================= */
.case-header {
    padding-top: 8rem; padding-bottom: 3rem; 
    max-width: 800px; margin: 0 auto; text-align: left;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 4rem;
}

.case-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.subtitle { font-size: 1.1rem; color: var(--text-muted); font-weight: 400; line-height: 1.6; }
.case-container { max-width: 800px; margin: 0 auto; padding-bottom: 8rem; }
.content-block { margin-bottom: 4rem; }

.block-title {
    font-family: var(--font-display); font-size: 1rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--accent); margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light); padding-bottom: 0.5rem; display: block;
}

.content-block p { font-size: 1.15rem; line-height: 1.8; color: var(--text-main); margin-bottom: 1rem; }

/* Profile Photo */
.profile-pic {
    width: 120px; height: 120px; object-fit: cover;
    border-radius: 20px; border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem; display: block;
}

/* Strategy Lists */
.strategy-list { margin-top: 1rem; }
.strategy-list li { margin-bottom: 2.5rem; }
.strategy-phase { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; display: block; }
.strategy-details p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 0.5rem; }

.email-sequence { margin-top: 1rem; padding: 1.5rem; background: #fff; border: 1px solid var(--border-light); border-radius: 4px; }
.email-step { font-family: 'Inter', monospace; font-size: 0.95rem; color: var(--text-main); margin-bottom: 0.5rem; }

.conclusion-box { margin-top: 3rem; padding: 2rem; background: #fff; border: 1px solid var(--border-light); border-left: 4px solid var(--accent); }

/* Images & Downloads */
.img-hero { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--border-light); margin-bottom: 3rem; display: block; }
.visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 3rem 0; }
.img-grid-item { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; border: 1px solid var(--border-light); }

.download-button {
    display: flex; justify-content: center; align-items: center;
    width: fit-content; min-width: 300px; margin: 2rem auto 0;
    padding: 1.5rem 2rem; background-color: var(--text-main); color: #fff;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    border-radius: 4px; transition: all 0.3s ease;
}
.download-button:hover { background-color: var(--accent); color: #fff; transform: translateY(-2px); }

footer { padding: 4rem 5%; border-top: 1px solid var(--border-light); text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* =========================================
   6. MOBILE OPTIMIZATIONS (CRITICAL)
   ========================================= */
@media (max-width: 900px) {
    /* Stack navigation cleanly */
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        gap: 2rem;
    }

    /* Stack Hero Layout */
    .hero-split, .grid-container, .visual-grid { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
    }
    
    .hero { 
        padding-top: 9rem; /* Extra space for stacked nav */
        padding-bottom: 3rem;
    }

    .hero h1 { font-size: 2.5rem; } /* Prevent massive text on phone */
    .hero-tag { display: inline-block; margin-left: 0; margin-top: 0.5rem; }

    /* Adjust padding for readability */
    .case-header, .case-container { 
        padding-left: 5%; 
        padding-right: 5%; 
    }
    
    .case-header { padding-top: 9rem; }
    
    /* Contact block stacking */
    .contact-block { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}