/* =========================================
   1. FONTS & TYPOGRAPHY
   ========================================= */
@font-face {
    font-family: 'NeueHaas';
    src: url('assets/fonts/NeueHaasDisplayRoman.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NeueHaas';
    src: url('assets/fonts/NeueHaasDisplayMediu.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   2. GLOBAL RESET & SELECTION STYLE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

::selection {
    background: #000000;
    color: #ffffff;
}
::-moz-selection {
    background: #000000;
    color: #ffffff;
}

body {
    font-family: 'NeueHaas', Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    
    font-size: 12px; 
    line-height: 1.35;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.02em;

    padding: 40px 30px 60px 30px; 
    min-height: 100vh;
    
    overflow-x: hidden; 
}

a { 
    color: #000000; 
    text-decoration: none; 
    cursor: pointer; 
    transition: font-weight 0.1s ease;
}

a:hover { font-weight: 700; }

.font-fat { font-weight: 700 !important; }

/* =========================================
   3. HEADER
   ========================================= */
header {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    
    /* Gap between elements inside header */
    gap: 40px; 
    
    /* Matches the gap above (was 70px) */
    margin-bottom: 40px; 
    
    position: relative;
    z-index: 2000; 
}

.logo-link { display: block; line-height: 0; }
.logo-svg { 
    width: 300px; 
    height: auto; 
    display: block; 
    pointer-events: none; 
    -webkit-user-select: none;
    user-select: none;
}

.agency-title h1 {
    font-size: 12px; 
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
    max-width: 340px; 
}

.nav-stack {
    display: flex;
    flex-direction: column;
    gap: 6px; 
    align-items: flex-start;
}
.nav-stack a {
    display: block;
    padding-right: 10px;
}

/* =========================================
   4. CONTENT AREA
   ========================================= */
.content-wrapper {
    width: 100%;
    position: relative;
    z-index: 10;
    min-height: 50vh;
}

.content-section {
    display: none; 
    width: 100%;
    animation: simpleFade 0.3s ease-in-out;
}
.content-section.active { display: block; }

@keyframes simpleFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================================
   5. SECTIONS STYLING
   ========================================= */
.text-columns {
    display: flex;
    gap: 50px; 
    width: 50%; 
}
.text-block { flex: 1; }
.text-block p { margin-bottom: 15px; }

/* LINKS (Email/Phone) */
.email-link, .phone-link {
    font-weight: 700;
    border-bottom: none;
    text-decoration: none;
    cursor: pointer; 
    color: #000;
    display: inline-block; 
    line-height: 1.2;
}

.email-link:hover, .phone-link:hover { 
    border-bottom: 1px solid #000; 
}

/* Carousel */
.carousel-container {
    display: flex;
    flex-wrap: nowrap; 
    gap: 20px; 
    overflow-x: auto; 
    overflow-y: hidden;
    align-items: flex-start;
    padding-bottom: 40px; 
    
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    
    width: 100%;
    min-height: 300px; /* Reduced to fit new image size */
}
.carousel-container::-webkit-scrollbar { display: none; }

.project-card {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    flex-direction: column;
}

.image-wrapper {
    background-color: #f4f4f4;
    margin-bottom: 15px;
    display: flex;
}

.image-wrapper img {
    display: block;
    
    /* --- FINAL ADJUSTMENT: 360px --- */
    height: 360px; 
    width: auto;   
    
    -webkit-user-drag: none;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.project-info h3 { font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.project-info p { font-size: 12px; margin-bottom: 2px; }
.meta { margin-top: 10px; display: block; color: #555; }

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff; 
    padding: 15px 30px;
    z-index: 3000; 
}
#copyright { font-weight: 700; font-size: 12px; margin: 0; }

/* =========================================
   7. MOBILE
   ========================================= */
@media (max-width: 768px) {
    body { padding: 20px 20px 80px 20px; }
    
    /* Matches the gap (30px) so spacing is equal */
    header { gap: 30px; margin-bottom: 30px; }
    
    /* --- UPDATED: Increased negative margin to -5px --- */
    .logo-svg { 
        width: 220px; 
        margin-left: -5px; 
    }
    /* -------------------------------------------------- */
    
    .text-columns { width: 100%; flex-direction: column; gap: 20px; }
    
    .project-card { width: auto; }
    .image-wrapper img {
        /* --- FINAL MOBILE ADJUSTMENT: 250px --- */
        height: 250px; 
    }
    
    footer { padding: 15px 20px; }
}