/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    overflow-x: hidden;
    background-color: #edebe1;
    color: #8B1818;
}

body.case-study-dark {
    background-color: #edebe1;
    color: #8B1818;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- Navigation --- */
.case-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;background-color: rgba(239, 235, 225, 0.92);
    backdrop-filter: blur(10px);
    padding: 14px 4%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.yc {
    width: 110px;
    max-width: 100%;
    display: block;
}

.case-nav {
    display: flex;
    align-items: center;
}

.nav-part2 {
    display: flex;
    align-items: center;
    gap: 42px;
    padding-right: 50px;
}

.nav-part2 a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    overflow: hidden;
}

.nav-part2 a::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #000;
    transform: translateY(110%);
    transition: all 0.3s ease;
    z-index: 0;
}

.nav-part2 a span {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111;
    transition: all 0.3s ease;
}

.nav-part2 a:hover {
    background-color: #000;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}


.nav-part2 a:hover span {
    color: #fff;
}

.nav-part2 a:hover::after {
    transform: translateY(0);
}

/* --- Hero Section --- */
.headtext {
    padding-top: 60px;
}

.hero-title h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    margin: 150px 0;
}

.subtitle {
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
}

.hero-visual {
    width: 100%;
    margin: 60px 0;
    padding: 100px 0;
    text-align: center;
}

.case-study-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 80px 80px;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    margin-bottom: 100px;
}

.meta-item h3 {
    font-size: 0.7rem;
    color: #000000;
    letter-spacing: 2px;
    font-weight: 700; 
      margin-bottom: 20px;
}

.brand-section {
    padding: 50px 5%;
    background: #EFEAE3;
}

/* container aligns everything */
.brand-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0px;
    border-radius: 20px;
    background: #edebe1;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
}

/* both sides */
.brand-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* labels */
.label {
    font-size: 1.1rem;
    color: #8B1818;
    letter-spacing: 1px;
    font-weight: 600;
}

/* colors */
.colors {
    display: flex;
    gap: 16px;
}

.circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
}

/* palette colors */
.c1 { background: #1f6b2d; }
.c2 { background: #7ea341; }
.c3 { background: #dcdcdc; border: 1px solid #444; }
.c4 { background: #e39b2f; }

/* divider = KEY element */
.divider {
    width: 1px;
    height: 120px;
    background: rgba(0,0,0,0.15);
}

/* typography side */
.typography-block {
    align-items: flex-end;
    text-align: right;
}

.typography-block h2 {
    font-size: 2.2rem;
    color: #1f6b2d;
    font-weight: 500;
}

.typography-block span {
    font-size: 0.95rem;
    color: #666;
}
.meta-item ul {
    list-style: none;
}

.meta-item li {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* --- Content Rows (Asymmetrical) --- */
.cs-row {
    display: flex;
    margin-bottom: 120px;
}

.cs-label {
    flex: 0 0 35%;
}

.cs-label h2 {
    font-size: 0.9rem;
    letter-spacing: 4px;
    font-weight: 800;
    color: #000000;
}

.cs-content {
    flex: 0 0 65%;
}

.cs-content p {
    font-size: 1.4rem;
    color: #8B1818;
    max-width: 800px;
}


.view-project-btn {
    display: inline-block;
    margin-top: 40px;
    color: #000000;
    text-decoration: none;
    font-size: 1.2rem;
    border-bottom: 1px solid #494848;
    padding-bottom: 5px;
    transition: 0.3s;
}

.view-project-btn:hover {
    color: #BE8540;
    border-color: #BE8540;
}

.live-btn {
    background: #ffffff;
    color: #000;
    border: none;
    padding: 20px 40px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

.live-btn:hover {
    background: #f00606;
    color: #fff;
}
.insight-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stat-item {
    border-top: 1px solid #222;
    padding-top: 20px;
}

.stat-item h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #000000;
    margin-bottom: 10px;
    font-weight: 800;
}

.stat-item p {
    font-size: 1rem;
    color: #8B1818;
    line-height: 1.5;
}

.case-list {
    padding-left: 20px;
    max-width: 850px;
}

.case-list li {
    margin-bottom: 14px;
    font-size: 1.2rem;
    color: #8B1818;
    line-height: 1.7;
}

.full-width-mockup img {
    width: 100%;
    height: auto;
    display: block;
}


/* Responsive */
@media (max-width: 900px) {

     header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 4%;
    }

    .yc {
        width: 85px;
    }

    .nav-part2 {
        justify-content: center;
        flex-flow: row;
    }


    .nav-part2 a {
        flex-direction: row;
        width: 115px;
        min-height: 40px;
        padding: 8px 12px;
    }

    .nav-part2 a h4 {
        font-size: 14px;
    }

    .headtext-container {
        gap: 22px;
    }

    .nav a img{
        width: 100%;
    }
    .case-study-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-row {
        flex-direction: column;
    }

    .cs-label {
        margin-bottom: 20px;
    }
}