/* ============================================================
   CUSTOMERS PAGE — specific styles
   ============================================================ */

/* Customers Hero — matches index/platform/services hero pattern */
.customers-hero {
    padding-top: 160px;
    padding-bottom: 0;
}

.customers-hero h1 {
    font-family: 'Instrument Serif', serif;
    font-size: 120px;
    font-weight: 300;
    letter-spacing: -2.4px;
    line-height: 114px;
    margin-bottom: 16px;
}

.customers-hero .subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    margin-bottom: 20px;
    max-width: 600px;
    opacity: 0.8;
}

/* Volume proof strip — body-copy scale, left-aligned */
.customer-proof-strip {
    padding: 0;
}

.customer-proof-strip-line {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    color: rgb(10, 10, 10);
    opacity: 0.8;
    text-align: left;
    margin: 0;
}

.customer-proof-strip-line .dot {
    color: rgba(10, 10, 10, 0.4);
    margin: 0 0.5em;
    display: inline-block;
}

/* Story cards — 2×2 grid with image + text */
.customer-stories {
    padding: 80px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 16px;
    row-gap: 56px;
}

.story-card-image {
    aspect-ratio: 3 / 4;
    background-color: rgb(243, 238, 231);
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

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

/* Company name label on image */
.story-card-label {
    position: absolute;
    top: 16px;
    left: 16px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

/* Article icon — only on linked story cards (case studies) */
.story-card-icon {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 18px;
    height: 18px;
    color: white;
    z-index: 1;
}

.story-card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 8px;
}

.story-card p {
    font-size: 14px;
    line-height: 20px;
    opacity: 0.8;
}

.story-card-meta {
    font-size: 13px;
    color: rgba(10, 10, 10, 0.5);
    display: block;
    margin-top: 12px;
}

/* Linkable story card (Brogrund / COWI case pages) */
a.story-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s ease;
}

a.story-card:hover {
    opacity: 0.85;
}

a.story-card:hover .story-card-link {
    opacity: 1;
}

.story-card-link {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: rgb(10, 10, 10);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Quote section */
.customer-quote {
    background-color: rgb(243, 244, 238);
    padding: 80px 0 80px;
    margin-top: 48px;
}

.customer-quote-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 96px;
    align-items: start;
}

/* Shared quote styles */
.customer-quote .quote-mark {
    font-family: 'Instrument Serif', serif;
    font-size: 48px;
    font-weight: 300;
    line-height: 0.8;
    color: rgb(10, 10, 10);
    display: block;
    margin-bottom: 8px;
}

.quote-text,
.quote-text-sm {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 32px;
    color: rgb(10, 10, 10);
}

.quote-attribution {
    margin-top: 16px;
}

.quote-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgb(10, 10, 10);
}

.quote-role {
    display: block;
    font-size: 13px;
    color: rgba(10, 10, 10, 0.5);
    margin-top: 2px;
}

/* Right column — image + secondary quote */
.customer-quote-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.customer-quote-image {
    overflow: hidden;
}

.customer-quote-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 2;
}

/* Secondary quote — under image in right column */
.quote-secondary {
    max-width: 480px;
}

/* Customer & partner grid */
.customer-logos {
    padding: 80px 0;
}

.customer-logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.customer-logos-card {
    padding: 48px 24px;
    border-right: 1px solid rgba(10, 10, 10, 0.08);
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-logos-card:nth-child(4n) {
    border-right: none;
}

.customer-logos-card:nth-child(n+9) {
    border-bottom: none;
}

.customer-logos-card span {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    font-weight: 300;
    color: rgb(10, 10, 10);
}

/* Logo images — same relative sizing as .trust-logos on the
   homepage hero, scaled up for the larger grid tile context.
   Each base height is ≈1.6x the hero-strip height. */
.customer-logos-card img {
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.customer-logos-card img[alt="NRC Group"] { height: 48px; }
.customer-logos-card img[alt="AFRY"] { height: 42px; }
.customer-logos-card img[alt="Morberg"] { height: 35px; }
.customer-logos-card img[alt="EnTek"] { height: 34px; }
.customer-logos-card img[alt="COWI"] { height: 30px; }
.customer-logos-card img[alt="Lindesbergs Fastigheter"] { height: 27px; }
.customer-logos-card img[alt="Netel"] { height: 26px; }
.customer-logos-card img[alt="Credentia"] { height: 24px; }
.customer-logos-card img[alt="Brogrund"] { height: 24px; }
.customer-logos-card img[alt="Grön Stad"] { height: 49px; }
.customer-logos-card img[alt="Kungsmontage"] { height: 35px; }
.customer-logos-card img[alt="Skeppsviken"] { height: 23px; }

/* Responsive */
@media (max-width: 1200px) {
    .customers-hero h1 {
        font-size: 88px;
        letter-spacing: -1.76px;
        line-height: 83.6px;
    }

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

    .customer-logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .customer-logos-card:nth-child(4n) {
        border-right: 1px solid rgba(10, 10, 10, 0.08);
    }

    .customer-logos-card:nth-child(3n) {
        border-right: none;
    }

    .customer-logos-card:nth-child(n+9) {
        border-bottom: 1px solid rgba(10, 10, 10, 0.08);
    }

    .customer-logos-card:nth-child(n+10) {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .customers-hero {
        padding-top: 120px;
        padding-bottom: 48px;
    }

    .customers-hero h1 {
        font-size: 56px;
        letter-spacing: -1.12px;
        line-height: 53px;
        margin-bottom: 24px;
    }

    .customers-hero .subtitle {
        font-size: 18px;
        line-height: 26px;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .customer-quote-layout {
        grid-template-columns: 1fr;
    }

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

    .customer-logos-card:nth-child(3n),
    .customer-logos-card:nth-child(4n) {
        border-right: 1px solid rgba(10, 10, 10, 0.08);
    }

    .customer-logos-card:nth-child(2n) {
        border-right: none;
    }

    .customer-logos-card:nth-child(n+9),
    .customer-logos-card:nth-child(n+10) {
        border-bottom: 1px solid rgba(10, 10, 10, 0.08);
    }

    .customer-logos-card:nth-child(n+11) {
        border-bottom: none;
    }
}
