/* ===== CASE STUDIES PAGE ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1a1a1a;
    background: #f1f1f2;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f1f1f2;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 16px 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 95px;
}

.nav {
    display: flex;
    gap: 26px;
}

.nav a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-login {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.btn-demo {
    background: linear-gradient(90deg, #02c3ef 0%, #015bf8 100%);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* ===== CASE STUDIES HERO (Owner-like) ===== */
.cs-hero {
    background: #f1f1f2;
    padding: 180px 24px 0px;
}

.cs-hero__inner {
    max-width: 1120px;
    /* Owner uses tighter max than 1240 in hero */
    margin: 0 auto;
    text-align: center;
}

.cs-hero__title {
    font-size: 50px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #181f1f;
    margin: 0 0 20px;
}

.cs-hero__sub {
    max-width: 860px;
    margin: 0 auto 25px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    color: rgba(11, 15, 20, 0.65);
}

/* Badges row */
.cs-hero__badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 396px;
    margin: 0 auto 18px;
}

/* Badge card */
.cs-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #d9d4cc;
    /*closetoownerbadgetone*/
    /*border: 1px solid rgba(11, 15, 20, 0.06);
    */
    border-radius: 12px;
    padding: 5px 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}

/* IMPORTANT: icon fixed size (no % width) */
.cs-badge__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 999px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.35);
}

.cs-badge__icon img {
    width: 90%;
    height: 90%;
    object-fit: cover;
}

.cs-badge__text {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    color: rgba(11, 15, 20, 0.8);
}

/* Reviews note */
.cs-hero__note {
    font-size: 13px;
    font-weight: 600;
    color: rgb(0 92 244);
    margin-top: 30px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .cs-hero {
        padding: 120px 18px 0px;
    }

    .cs-hero__title {
        font-size: 44px;
    }

    .cs-hero__sub {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

@media (max-width: 640px) {
    .cs-hero {
        padding: 104px 16px 0px;
    }


    .cs-hero__inner {
        padding-top: 55px;
    }

    .cs-hero__title {
        font-size: 34px;
        line-height: 1.1;
    }

    .cs-hero__badges {
        grid-template-columns: 1fr;
        /* stack like Owner on mobile */
    }

    .cs-badge {
        padding: 14px;
    }
}

/* ===== CASE STUDIES SECTION ===== */
.case-studies-section {
    padding: 80px;
    background: #f1f1f2;
}

.case-studies-container {
    max-width: 1010px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* CASE CARD */
.case-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    /*gap: 40px;
    */
    background: #ffff;
    border-radius: 35px;
    overflow: hidden;
    /*padding: 24px;
    */
    transition: all 0.3s;
    -webkit-border-radius: 35px;
    -moz-border-radius: 35px;
    -ms-border-radius: 35px;
    -o-border-radius: 35px;
}

/* .case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
} */

/* CASE IMAGE */
.case-image {
    position: relative;
    border-radius: 35px;
    overflow: hidden;
    height: 390px;
    -webkit-border-radius: 35px;
    -moz-border-radius: 35px;
    -ms-border-radius: 35px;
    -o-border-radius: 35px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;

}

.case-image {
    overflow: hidden;
    /* important */
}


.case-image img:hover {
    transform: scale(1.08);
    /* zoom level */
}

.case-image img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.case-image img:hover {
    transform: scale(1.08);
    filter: brightness(0.95);
}


.play-button {
    position: absolute;
    bottom: 20px;
    right: 45px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* CASE CONTENT */
.case-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px 35px;
}

.case-content h3 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 28px;
    color: #181f1f;
    letter-spacing: -.0125em;
}

/* CASE STATS */
.case-stats {
    display: flex;
    gap: 50px;
    margin-bottom: -44px;
}

/* .stat-item {
    flex: 1;
} */

.stat-value {
    font-size: 15px;
    font-weight: 600;
    color: #181f1f;
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 12px;
    color: #a1a3a5;
    line-height: 1.4;
    font-weight: 600;
}

/* CASE META */
.case-meta {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 15px;
}

.case-info {
    display: grid;
}

.case-info .name {
    font-size: 15px;
    font-weight: 600;
}

.location {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.case-link {
    color: #0077cc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-link:hover {
    color: #005fa3;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: #cdb89e;
    padding: 100px 80px;
}

.cta-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cta-text h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 32px;
    color: #000;
}

.cta-button {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 80px 80px 40px;
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    width: 95px;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    color: #999;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #666;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .case-card {
        grid-template-columns: 1fr;
    }

    .case-meta {
        padding-top: 70px;
    }

    .case-image {
        height: 300px;
    }

    .stats-row {
        flex-direction: column;
    }

    .cta-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .cs-hero__inner {
        padding-top: 55px;
    }

    .case-meta {
        padding-top: 55px;
    }

    .hero-section,
    .case-studies-section,
    .cta-section,
    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .case-card {
        padding: 16px;
    }

    .case-content h3 {
        font-size: 22px;
    }

    .case-stats {
        flex-direction: column;
        gap: 20px;
    }

    .cta-text h2 {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}