/* ==========================================================================
   Case Study — Shared Styles
   Used by: case-study-living-space.html,
            case-study-tomatosphere.html,
            case-study-tvdsb-screening.html
   ========================================================================== */

.page-wrapper {
    overflow: visible;
    overflow-x: hidden;
}

/* ----------  Back Navigation (fixed bar)  ---------- */

.cs-nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26,26,26,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ----------  Hero  ---------- */

.cs-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--thm-black);
    overflow: hidden;
}

.cs-hero__bg {
    position: absolute;
    inset: 0;
    background-color: rgba(26,26,26,0.95);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cs-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0.7) 100%);
}

.cs-hero__content {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
}

.cs-hero__tagline {
    font-family: var(--thm-font);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--thm-base);
    margin-bottom: 24px;
}

.cs-hero__title {
    font-family: 'Lora', serif;
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
}

.cs-hero__subtitle {
    font-family: var(--thm-font);
    font-size: 20px;
    color: rgba(255,255,255,0.7);
    max-width: 640px;
    line-height: 1.6;
}

/* ----------  Meta  ---------- */

.cs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cs-meta__item {
    min-width: 120px;
}

.cs-meta__label {
    font-family: var(--thm-font);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
}

.cs-meta__value {
    font-family: 'Lora', serif;
    font-size: 16px;
    color: #fff;
}

/* ----------  Sections  ---------- */

.cs-section {
    padding: 100px 0;
}

.cs-section--dark {
    background: var(--thm-black);
}

.cs-section--gray {
    background: #111111;
}

.cs-section__label {
    font-family: var(--thm-font);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--thm-base);
    margin-bottom: 16px;
}

.cs-section__title {
    font-family: 'Lora', serif;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 32px;
    line-height: 1.3;
}

/* ----------  Body Text  ---------- */

.cs-body p {
    font-family: var(--thm-font);
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

.cs-body p:last-child {
    margin-bottom: 0;
}

/* ----------  Pull-quote  ---------- */

.cs-pullquote {
    border-left: 3px solid var(--thm-base);
    padding: 24px 0 24px 32px;
    margin: 48px 0;
}

.cs-pullquote p {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    line-height: 1.5;
    font-style: italic;
}

.cs-pullquote cite {
    display: block;
    margin-top: 16px;
    font-family: var(--thm-font);
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    font-style: normal;
}

/* ----------  Stats  ---------- */

.cs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.cs-stat {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
}

.cs-stat__number {
    font-family: 'Lora', serif;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.cs-stat__label {
    font-family: var(--thm-font);
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ----------  Tech List  ---------- */

.cs-tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs-tech-list li {
    font-family: var(--thm-font);
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cs-tech-list li:last-child {
    border-bottom: none;
}

.cs-tech-list li::before {
    content: "\e937";
    font-family: 'icomoon';
    color: var(--thm-base);
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 4px;
}

/* ----------  Flow Steps  ---------- */

.cs-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.cs-flow__step {
    padding: 32px 24px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    position: relative;
}

.cs-flow__number {
    font-family: 'Lora', serif;
    font-size: 14px;
    color: var(--thm-base);
    margin-bottom: 12px;
}

.cs-flow__title {
    font-family: 'Lora', serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.cs-flow__desc {
    font-family: var(--thm-font);
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* ----------  Image (Living Space)  ---------- */

.cs-image {
    border-radius: 4px;
    overflow: hidden;
    margin: 32px 0;
}

.cs-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ----------  Back Link  ---------- */

.cs-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--thm-font);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
    padding: 20px 0;
    transition: color 0.3s;
}

.cs-back:hover {
    color: var(--thm-base);
}

/* ----------  CTA  ---------- */

.cs-cta {
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.cs-cta__title {
    font-family: 'Lora', serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 32px;
}

/* ----------  Results Row  ---------- */

.cs-results-row {
    margin-top: 48px;
}

/* ----------  Footer  ---------- */

.cs-footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: var(--thm-black);
}

.cs-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cs-footer__logo {
    display: inline-block;
}

.cs-footer__logo img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.cs-footer__copy {
    font-family: var(--thm-font);
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

/* ----------  More Case Studies  ---------- */

.cs-more {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.cs-more__card {
    display: block;
    padding: 32px 24px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    text-decoration: none;
    transition: border-color 0.3s, transform 0.2s;
}

.cs-more__card:hover {
    border-color: var(--thm-base);
    transform: translateY(-4px);
}

.cs-more__card-org {
    font-family: var(--thm-font);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--thm-base);
    margin-bottom: 12px;
    display: block;
}

.cs-more__card-title {
    font-family: 'Lora', serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 8px;
    display: block;
}

.cs-more__card-desc {
    font-family: var(--thm-font);
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    display: block;
}

/* ----------  Blog Read More (blog posts)  ---------- */

.blog-read-more {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.blog-read-more__title {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.blog-read-more__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-read-more__links li {
    margin-bottom: 16px;
}

.blog-read-more__links a {
    font-family: var(--thm-font);
    font-size: 16px;
    color: var(--thm-base);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-read-more__links a:hover {
    color: #fff;
}

.blog-read-more__links .blog-read-more__type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    margin-left: 12px;
}

/* ----------  Responsive  ---------- */

@media (max-width: 991px) {
    .cs-hero__title { font-size: 40px; }
    .cs-section__title { font-size: 32px; }
    .cs-pullquote p { font-size: 20px; }
    .cs-stat__number { font-size: 36px; }
}

@media (max-width: 575px) {
    .cs-hero__title { font-size: 32px; }
    .cs-hero__content { padding: 100px 0 60px; }
    .cs-section { padding: 60px 0; }
    .cs-meta { gap: 24px; }
    .cs-section__title { font-size: 28px; }
}
