/* ============================================================
   Case Study: Martin Andrews Glassblowing Ltd
   Page-specific styles only. Shared styles (navbar, footer,
   mobile menu, buttons) are duplicated inline in the template
   to match the existing ZSM Digital convention.
   ============================================================ */

/* ---------- Hero ---------- */
.cs-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 20px 80px;
    position: relative;
    overflow: hidden;
}

.cs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.025) 0%, transparent 70%);
    pointer-events: none;
}

.cs-hero h1 {
    font-size: 3.6rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    color: #fff;
}

.cs-hero h1 strong {
    font-weight: 500;
}

.cs-hero .cs-subtitle {
    font-size: 1.15rem;
    color: #666;
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.6;
    font-weight: 400;
}

/* Pill badges row */
.cs-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.cs-pill {
    background: rgba(255,255,255,0.05);
    color: #bbb;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.cs-pill:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}

/* Hero CTA buttons */
.cs-hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cs-btn-primary {
    background: #fff;
    color: #000;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.cs-btn-primary:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

.cs-btn-secondary {
    background: transparent;
    color: #999;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    display: inline-block;
}

.cs-btn-secondary:hover {
    border-color: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Section containers ---------- */
.cs-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
}

.cs-section-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.cs-section h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: #fff;
}

.cs-section h2 .highlight,
.cs-section-wide h2 .highlight {
    font-weight: 300;
    font-style: italic;
}

.cs-section-wide h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: #fff;
    text-align: center;
}

.cs-section-subtitle {
    color: #888;
    font-size: 1rem;
    margin-bottom: 48px;
    line-height: 1.7;
}

.cs-section-subtitle-center {
    color: #888;
    font-size: 1rem;
    margin-bottom: 48px;
    line-height: 1.7;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Client overview ---------- */
.cs-overview-text {
    color: #bbb;
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 800px;
}

.cs-overview-text strong {
    color: #fff;
    font-weight: 600;
}

/* ---------- Problem cards ---------- */
.cs-problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 36px;
    margin-bottom: 40px;
}

.cs-problem-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.35s cubic-bezier(.2,.9,.2,1);
}

.cs-problem-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
}

.cs-problem-card .card-icon {
    margin-bottom: 14px;
    display: block;
    width: 32px;
    height: 32px;
}

.cs-problem-card .card-icon img {
    width: 100%;
    height: 100%;
}

.cs-problem-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.cs-problem-card p {
    color: #888;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Screenshot placeholder (before/after) */
.cs-screenshot-block {
    margin-top: 36px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
}

.cs-screenshot-label {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.85rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cs-screenshot-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.01);
    overflow: hidden;
}

.cs-screenshot-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Solution cards ---------- */
.cs-solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.cs-solution-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.4s cubic-bezier(.2,.9,.2,1);
}

.cs-solution-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cs-solution-card .card-icon {
    margin-bottom: 18px;
    display: block;
    width: 36px;
    height: 36px;
}

.cs-solution-card .card-icon img {
    width: 100%;
    height: 100%;
}

.cs-solution-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.cs-solution-card p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.65;
}

.cs-solution-card ul {
    list-style: none;
    margin-top: 14px;
    padding: 0;
}

.cs-solution-card ul li {
    color: #999;
    font-size: 0.88rem;
    padding: 5px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.cs-solution-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #555;
    font-size: 0.8rem;
}

/* ---------- Technology stack ---------- */
.cs-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.cs-tech-badge {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.cs-tech-badge:hover {
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    transform: translateY(-3px);
}

.cs-tech-badge .tech-icon {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    margin-right: auto;
}

.cs-tech-badge .tech-icon img {
    width: 100%;
    height: 100%;
}

.cs-tech-badge h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.cs-tech-badge p {
    font-size: 0.78rem;
    color: #666;
}

/* ---------- Results ---------- */
.cs-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.cs-result-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.35s ease;
}

.cs-result-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}

.cs-result-card .result-icon {
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    margin-right: auto;
}

.cs-result-card .result-icon img {
    width: 100%;
    height: 100%;
}

.cs-result-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.cs-result-card p {
    color: #888;
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ---------- Project gallery ---------- */
.cs-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.cs-gallery-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(.2,.9,.2,1);
}

.cs-gallery-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cs-gallery-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(255,255,255,0.01);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
}

.cs-gallery-img img {
    width: 100%;
    height: auto;
    display: block;
}

.cs-gallery-info {
    padding: 20px 22px;
}

.cs-gallery-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.cs-gallery-info p {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
}

/* ---------- Testimonial ---------- */
.cs-testimonial {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.cs-quote-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 48px 40px;
    position: relative;
}

.cs-quote-card::before {
    content: '\201C';
    font-size: 6rem;
    font-family: 'Playfair Display', Georgia, serif;
    color: rgba(255,255,255,0.06);
    position: absolute;
    top: 10px;
    left: 30px;
    line-height: 1;
    pointer-events: none;
}

.cs-quote-text {
    font-size: 1.15rem;
    font-style: italic;
    color: #bbb;
    line-height: 1.75;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.cs-quote-author {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cs-quote-role {
    color: #666;
    font-size: 0.85rem;
}

/* ---------- Final CTA ---------- */
.cs-cta {
    background: rgba(255,255,255,0.02);
    margin: 0 20px 80px;
    padding: 72px 40px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 80px;
}

.cs-cta h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: #fff;
}

.cs-cta p {
    color: #888;
    margin-bottom: 36px;
    font-size: 1rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cs-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Divider ---------- */
.cs-divider {
    max-width: 1000px;
    margin: 0 auto;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ---------- Reveal animations ---------- */
.cs-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.cs-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .cs-hero {
        padding: 130px 20px 60px;
    }

    .cs-hero h1 {
        font-size: 2.6rem;
    }

    .cs-section h2,
    .cs-section-wide h2,
    .cs-cta h2 {
        font-size: 1.8rem;
    }

    .cs-gallery-grid {
        grid-template-columns: 1fr;
    }

    .cs-solution-grid {
        grid-template-columns: 1fr;
    }

    .cs-quote-card {
        padding: 36px 24px;
    }
}

@media (max-width: 600px) {
    .cs-hero h1 {
        font-size: 2rem;
    }

    .cs-hero .cs-subtitle {
        font-size: 1rem;
    }

    .cs-pills {
        gap: 8px;
    }

    .cs-pill {
        font-size: 0.72rem;
        padding: 5px 12px;
    }

    .cs-section,
    .cs-section-wide {
        padding: 60px 16px;
    }

    .cs-problem-grid {
        grid-template-columns: 1fr;
    }

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

    .cs-results-grid {
        grid-template-columns: 1fr;
    }

    .cs-cta {
        padding: 48px 20px;
        margin: 0 10px 60px;
    }

    .cs-cta h2 {
        font-size: 1.5rem;
    }

    .cs-screenshot-img {
        aspect-ratio: 16 / 9;
    }

    .cs-gallery-img {
        aspect-ratio: 16 / 9;
    }
}
