/* --- 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: 2px;
}

.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-top: 150px;
}

.subtitle {
    color: #000000;
    letter-spacing: 6px;
    font-size: 2rem;
    padding-bottom: 5rem;
}

.hero-visual {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* MAIN FIX */
.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.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: #F5C518; }
.c2 { background: #fff; }
/* 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;
}

.action-area{
    display: flex;
    justify-content: center;
    align-items: center;
}


.view-project-btn {
    display: inline-block;
    color: #8B1818;
    text-decoration: none;
    font-size: 2.2rem;
    border: 3px solid #000000;
    padding: 15px;
    transition: 0.3s;
}

.view-project-btn:hover {
    background-color: #000000;
    color: #ffffff;
    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;
}


#page4 {
    width: 100%;
    padding: 100px 5%;
    background-color: #EFEAE3;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.contact-left {
    flex: 1.2;
}

.contact-heading {
    font-size: 4rem;
    line-height: 0.9;
    color: #8B1818;
    margin-bottom: 50px;
    font-weight: 800;
}

.contact-form {
    width: 100%;
    max-width: 650px;
}

.form-group {
    margin-bottom: 28px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid rgba(139, 24, 24, 0.35);
    background: transparent;
    padding: 14px 0;
    font-size: 1.05rem;
    color: #222;
    outline: none;
    font-family: Arial, sans-serif;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6d6d6d;
}

.contact-btn {
    margin-top: 10px;
    background-color: #8B1818;
    color: #ffffff;
    border: none;
    padding: 16px 34px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-btn:hover {
    background-color: #6d1212;
}

#form-status {
    margin-top: 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #8B1818;
}

/* FOOTER */
#footer {
    width: 100%;
    background-color: #8B1818;
    bottom: 0;
    padding: 70px 5% 30px;
    color: #ffffff;
    z-index: 1;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    width: 90px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-copy {
    font-size: 0.95rem;
    color: #f2dede;
}

.footer-links h4,
.footer-cta h4 {
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: #ffffff;
}

.footer-links a {
    display: block;
    color: #f2dede;
    margin-bottom: 12px;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-cta p {
    color: #f2dede;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 280px;
}

.footer-mail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #8B1818;
    padding: 14px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s ease;
}

.footer-mail-btn:hover {
    background-color: #f5e9e9;
}

/* 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;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hero-visual {
        height: 70vh;
    }

    .hero-visual img {
        object-position: center top; 
    }
    .footer-container{
        grid-template-columns: 1fr;
    }
}
@media (min-width: 300px) and (max-width: 767px) {
    .hero-visual {
        height: 30vh;
    }

    .hero-visual img {
        object-position: center top; 
    }
      .footer-container{
        grid-template-columns: 1fr;
    }
}
