/* ===================================
   CASE STUDIES TILE GRID REDESIGN
   =================================== */

/* Section Header */
.case-studies .section-label-with-accent {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.case-studies .accent-bar {
    width: 3px;
    height: 18px;
    background: #E07856;
}

.case-studies .section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #E07856;
}

.case-studies .section-title {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    color: var(--color-navy);
    text-align: left;
    margin-bottom: 8px;
}

.case-studies .section-subtitle {
    font-size: 13px;
    color: #8A9BA5;
    text-align: left;
    margin-bottom: 24px;
}

/* Tile Grid Layout */
.case-tile-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Tile - Full Width */
.case-tile-hero {
    grid-column: 1 / -1;
    background: #2C4251;
    border-radius: 10px;
    padding: 24px 32px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    position: relative;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    height: auto;
    min-height: 0;
    width: 100%;
}

.case-tile-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 66, 81, 0.2);
}

.hero-cluster {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: white;
    line-height: 1.2;
    margin: 0 0 6px 0;
}

.hero-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.hero-cta {
    font-size: 12px;
    font-weight: 600;
    color: #E07856;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    display: inline-block;
    width: fit-content;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-number {
    position: absolute;
    bottom: 16px;
    right: 24px;
    font-family: 'Space Grotesk', monospace;
    font-size: 56px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    pointer-events: none;
}

/* Small Tiles */
.case-tile-small {
    background: #FFFFFF;
    border: 1px solid #EAE6E1;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    position: relative;
    text-align: left;
    transition: all 0.2s ease;
}

.case-tile-small:hover {
    box-shadow: 0 4px 16px rgba(44, 66, 81, 0.08);
    transform: translateY(-2px);
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tile-cluster {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8A9BA5;
}

.tile-number {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    font-weight: 700;
    color: rgba(44, 66, 81, 0.2);
}

.tile-title {
    font-size: 13px;
    font-weight: 700;
    color: #2C4251;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.tile-subtitle {
    font-size: 11px;
    color: #8A9BA5;
    line-height: 1.4;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .case-tile-grid {
        grid-template-columns: 1fr;
    }
    
    .case-tile-hero {
        padding: 24px;
    }
    
    .hero-number {
        font-size: 40px;
        position: static;
        margin-top: 16px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .case-tile-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Scroll Offset for Anchor Links */
.case-content[id] {
    scroll-margin-top: 80px;
}

section[id] {
    scroll-margin-top: 80px;
}

div[id] {
    scroll-margin-top: 80px;
}
