/* Case study styles */

.case-study {
    background-color: var(--lowlight-color);
    color: var(--highlight-color);
    padding: 2em 3em;
    min-height: 70vh;
}

.case-header {
    max-width: 900px;
    margin: 0 auto 3em;
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-bottom: 2em;
    color: var(--highlight-color);
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 1;
}

.case-header h1 {
    font-size: min(10vw, 60px);
    font-weight: 500;
    line-height: 1.2;
    margin: 0.5em 0;
    font-family: "Instrument Serif";
    font-style: italic;
    letter-spacing: 1px;
}

.case-intro {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-top: 1.5em;
    opacity: 0.9;
}

.live-site-link {
    display: inline-block;
    margin-top: 1.5em;
    padding: 0.75em 2em;
    color: var(--highlight-color);
    text-decoration: none;
    font-size: 1rem;
    border: 1.5px solid var(--highlight-color);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.live-site-link:hover {
    background-color: var(--highlight-color);
    color: var(--lowlight-color);
}

.case-image {
    max-width: 1200px;
    margin: 3em auto;
}

.case-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1.5px solid var(--highlight-color);
}

.case-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.case-section {
    margin: 3em 0;
}

.case-content h2 {
    font-size: 2rem;
    font-weight: 500;
    margin: 2em 0 1em;
    font-family: "Instrument Serif";
    font-style: italic;
    letter-spacing: 1px;
}

.case-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 1.5em 0 0.75em;
}

.case-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1em 0;
}

.case-content ul,
.case-content ol {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1em 0;
    padding-left: 2em;
}

.case-content li {
    margin: 0.5em 0;
}

.case-content strong {
    font-weight: 500;
}

.case-content a {
    color: var(--highlight-color);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    transition: opacity 0.3s ease;
}

.case-content a:hover {
    opacity: 0.8;
}

.services-section {
    margin: 2em 0;
    padding: 1.5em;
    background-color: rgba(255, 254, 239, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 254, 239, 0.1);
}

.services-section p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.services-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75em;
}

.services-list li {
    padding: 0.75em 1em;
    border: 1.5px solid var(--highlight-color);
    border-radius: 10px;
    text-align: center;
}

.case-cta {
    max-width: 900px;
    margin: 4em auto 2em;
}

.case-cta .CTAMsg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.case-cta h3 {
    cursor: pointer;
    text-align: center;
    font-family: 'instrument serif';
    font-size: 3.5em;
    font-weight: normal;
    font-style: italic;
    color: var(--highlight-color);
    margin: 0;
}

.case-cta .arrowcircle {
    top: -10px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lowlight-color);
    border: 1.5px solid var(--highlight-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.case-cta .arrowcircle::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 140%; height: 140%;
    background: var(--highlight-color);
    transform: skew(30deg) translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.3,1,0.8,1);
    pointer-events: none;
}

.case-cta .CTAMsg:hover .arrowcircle::before {
    transform: skew(30deg) translateX(0);
}

.case-cta .arrowcircle img {
    width: 20px;
    height: auto;
    mix-blend-mode: difference;
    position: relative;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .case-study {
        padding: 2em 1.5em;
    }

    .case-header h1 {
        font-size: 36px;
    }

    .case-intro {
        font-size: 1.1rem;
    }

    .case-content h2 {
        font-size: 1.6rem;
    }

    .case-content h3 {
        font-size: 1.3rem;
    }

    .case-content p,
    .case-content ul,
    .case-content ol {
        font-size: 1rem;
    }

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

    .case-cta h3 {
        font-size: 1.2rem;
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .case-study {
        padding: 1.5em 1em;
    }

    .case-header h1 {
        font-size: 28px;
    }
}
