/* ==================================
   SEVENFOLD CONSULTING - CASE STUDY STYLES
   Version: 1.0
   Description: Styles for industry case study pages
   ================================== */

/* ==================================
   1. CASE STUDY HERO SECTION
   ================================== */
.case-study-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 58, 97, 0.85) 0%, rgba(0, 102, 255, 0.75) 100%);
    z-index: 2;
}

.hero-content-case {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 60px 40px;
    text-align: center;
    color: white;
}

.industry-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.case-study-hero h1 {
    font-size: 3.2em;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.4em;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* ==================================
   2. CASE STUDY NAVIGATION
   ================================== */
.case-study-nav {
    background: white;
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.case-study-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.jump-to-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jump-to-menu span {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9em;
}

.jump-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.jump-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.jump-links a:hover {
    color: var(--primary-blue);
}

.jump-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.jump-links a:hover::after {
    width: 100%;
}

.share-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.share-buttons span {
    font-size: 0.85em;
    color: var(--gray);
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

/* ==================================
   3. MAIN CONTENT SECTIONS
   ================================== */
.case-study-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.content-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--light-gray);
}

.content-section:last-of-type {
    border-bottom: none;
}

.section-label {
    display: inline-block;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 20px;
    position: relative;
    padding-left: 35px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 2px;
    background: var(--primary-blue);
}

.content-section h2 {
    font-size: 2.2em;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 30px;
    line-height: 1.3;
}

.content-section p {
    font-size: 1.15em;
    line-height: 1.9;
    color: var(--gray);
    margin-bottom: 25px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* ==================================
   4. HIGHLIGHT BOX / PULL QUOTE
   ================================== */
.highlight-box {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 180, 216, 0.05) 100%);
    border-left: 4px solid var(--primary-blue);
    padding: 30px 35px;
    margin: 40px 0;
    border-radius: 0 15px 15px 0;
}

.highlight-box p {
    font-size: 1.2em;
    font-style: italic;
    color: var(--navy);
    margin: 0;
    line-height: 1.7;
}

.pull-quote {
    padding: 50px 0;
    margin: 50px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    text-align: center;
}

.pull-quote blockquote {
    font-size: 1.6em;
    font-weight: 300;
    color: var(--navy);
    line-height: 1.5;
    margin: 0 0 20px 0;
    position: relative;
}

.pull-quote blockquote::before {
    content: '"';
    font-size: 4em;
    color: var(--primary-blue);
    opacity: 0.2;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, serif;
}

.quote-attribution {
    font-size: 1em;
    color: var(--gray);
}

.quote-attribution strong {
    color: var(--navy);
}

/* ==================================
   5. STATISTICS / METRICS GRID
   ================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.metric-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

.metric-value {
    font-size: 2.8em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--sky-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 1em;
    color: var(--gray);
    line-height: 1.4;
}

/* ==================================
   6. IMAGE SECTIONS
   ================================== */
.image-section {
    position: relative;
    margin: 60px -100px;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: 0.9em;
}

/* Full-width image break */
.full-width-image {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 500px;
    margin-top: 80px;
    margin-bottom: 80px;
}

.full-width-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.full-width-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 58, 97, 0.6) 0%, rgba(0, 102, 255, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-width-image .overlay-text {
    color: white;
    text-align: center;
    max-width: 700px;
    padding: 0 40px;
}

.full-width-image .overlay-text h3 {
    font-size: 2.2em;
    font-weight: 300;
    margin-bottom: 15px;
}

.full-width-image .overlay-text p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* ==================================
   7. KEY POINTS LIST
   ================================== */
.key-points {
    margin: 40px 0;
}

.key-points h4 {
    font-size: 1.3em;
    color: var(--navy);
    margin-bottom: 25px;
}

.key-points ul {
    list-style: none;
    padding: 0;
}

.key-points li {
    padding: 15px 0 15px 40px;
    position: relative;
    border-bottom: 1px solid var(--light-gray);
    font-size: 1.05em;
    color: var(--gray);
    line-height: 1.6;
}

.key-points li:last-child {
    border-bottom: none;
}

.key-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--sky-blue));
    border-radius: 50%;
}

.key-points li::after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 20px;
    color: white;
    font-size: 0.7em;
    font-weight: bold;
}

/* ==================================
   8. SOURCES / CITATIONS
   ================================== */
.sources-section {
    background: var(--light-gray);
    padding: 50px 0;
    margin-top: 60px;
}

.sources-section h4 {
    font-size: 1.2em;
    color: var(--navy);
    margin-bottom: 25px;
}

.sources-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.sources-list li {
    font-size: 0.9em;
}

.sources-list a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sources-list a:hover {
    color: var(--navy);
    text-decoration: underline;
}

/* ==================================
   9. CTA SECTION
   ================================== */
.case-study-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-blue) 100%);
    padding: 100px 40px;
    text-align: center;
    color: white;
}

.case-study-cta h2 {
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 20px;
}

.case-study-cta p {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.case-study-cta .cta-button-white {
    background: white;
    color: var(--primary-blue);
    padding: 18px 50px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.case-study-cta .cta-button-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==================================
   10. RELATED CASE STUDIES
   ================================== */
.related-studies {
    padding: 100px 0;
    background: var(--light-gray);
}

.related-studies h3 {
    text-align: center;
    font-size: 2em;
    font-weight: 300;
    color: var(--navy);
    margin-bottom: 50px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.related-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.related-card-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.1);
}

.related-card-image .industry-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-card-content {
    padding: 25px;
}

.related-card-content h4 {
    font-size: 1.1em;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-card-content p {
    font-size: 0.9em;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.related-card:hover .read-more svg {
    transform: translateX(5px);
}

/* ==================================
   11. RESPONSIVE DESIGN
   ================================== */
@media (max-width: 1024px) {
    .case-study-hero h1 {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .image-section {
        margin: 60px -20px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-study-hero {
        min-height: 60vh;
        margin-top: 60px;
    }

    .case-study-hero h1 {
        font-size: 2em;
    }

    .hero-content-case {
        padding: 40px 20px;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .case-study-nav {
        display: none;
    }

    .case-study-content {
        padding: 0 20px;
    }

    .content-section {
        padding: 50px 0;
    }

    .content-section h2 {
        font-size: 1.8em;
    }

    .content-section p {
        font-size: 1.05em;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .metric-value {
        font-size: 2.2em;
    }

    .image-section {
        margin: 40px 0;
        height: 300px;
        border-radius: 15px;
    }

    .full-width-image {
        height: 350px;
    }

    .full-width-image .overlay-text h3 {
        font-size: 1.6em;
    }

    .pull-quote blockquote {
        font-size: 1.3em;
    }

    .case-study-cta {
        padding: 60px 20px;
    }

    .case-study-cta h2 {
        font-size: 1.8em;
    }

    .related-studies {
        padding: 60px 0;
    }

    .related-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .sources-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .case-study-hero h1 {
        font-size: 1.7em;
    }

    .industry-badge {
        font-size: 0.8em;
        padding: 6px 18px;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .highlight-box {
        padding: 20px 25px;
    }

    .highlight-box p {
        font-size: 1.05em;
    }
}

/* ==================================
   12. IMPACT SECTION - Full Width Background
   ================================== */
.impact-section {
    background: var(--light-gray);
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 80px 0;
}

.impact-section .case-study-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .impact-section {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 50px 0;
    }

    .impact-section .case-study-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .impact-section {
        padding: 40px 0;
    }

    .impact-section .case-study-content {
        padding: 0 15px;
    }
}
