/* ==========================================================================
   CSR Activity
   Every section uses the site's shared building blocks:
     .section-spacing  - vertical rhythm (100 / 80 / 60px from master-agency.css)
     .hp-section       - heading style (subtitle, title) from custom.css
   This file only adds each section's own layout. Gallery masonry + lightbox
   come from workshop.css, the contact form from common.css.
   ========================================================================== */

/* ---------- shared ---------- */
.csr-section-text {
    font-size: 18px;
    line-height: 1.7;
    color: #5b6478;
}

.hp-section-center .csr-section-text {
    max-width: 620px;
    margin: 18px auto 0;
}

@media only screen and (max-width: 767px) {
    .csr-section-text {
        font-size: 16px;
    }
}

/* ==========================================================================
   1. Intro - photo collage + story
   ========================================================================== */
.csr-intro .csr-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 100px;
    align-items: center;
}

@media only screen and (max-width: 1399px) {
    .csr-intro .csr-intro-grid {
        gap: 70px;
    }
}

@media only screen and (max-width: 991px) {
    .csr-intro .csr-intro-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* --- collage --- */
.csr-intro-media {
    position: relative;
    /* room for the small photo hanging off the bottom-right */
    padding: 0 60px 70px 0;
}

@media only screen and (max-width: 991px) {
    .csr-intro-media {
        max-width: 640px;
    }
}

@media only screen and (max-width: 767px) {
    .csr-intro-media {
        padding: 0 30px 50px 0;
    }
}

.csr-intro-img-main {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 4.4;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(34, 46, 71, 0.18);
}

@media only screen and (max-width: 991px) {
    .csr-intro-img-main {
        aspect-ratio: 4 / 3;
    }

    .csr-intro-img-sub {
        width: 40%;
    }
}

.csr-intro-img-sub {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    width: 46%;
    aspect-ratio: 1 / 1;
    border: 10px solid #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(34, 46, 71, 0.2);
}

@media only screen and (max-width: 767px) {
    .csr-intro-img-sub {
        border-width: 6px;
        border-radius: 16px;
    }
}

.csr-intro-img-main img,
.csr-intro-img-sub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.csr-intro-badge {
    position: absolute;
    z-index: 3;
    top: 40px;
    left: -30px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px 16px 16px;
    border-radius: 16px;
    background-color: var(--fg-amber);
    color: var(--fg-navy);
    box-shadow: 0 18px 40px rgba(251, 174, 48, 0.35);
}

@media only screen and (max-width: 1199px) {
    .csr-intro-badge {
        left: 20px;
    }
}

@media only screen and (max-width: 767px) {
    .csr-intro-badge {
        top: 16px;
        left: 16px;
        padding: 10px 14px 10px 10px;
        gap: 10px;
        border-radius: 12px;
    }
}

.csr-intro-badge-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--fg-amber);
    background-color: var(--fg-navy);
}

.csr-intro-badge-text {
    max-width: 190px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

@media only screen and (max-width: 767px) {
    .csr-intro-badge-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
    }

    .csr-intro-badge-text {
        max-width: 150px;
        font-size: 13px;
    }
}

/* dotted pattern peeking out behind the main photo */
.csr-intro-dots {
    position: absolute;
    z-index: 0;
    left: -40px;
    bottom: 30px;
    width: 180px;
    height: 180px;
    background-image: radial-gradient(var(--fg-amber) 2.4px, transparent 2.4px);
    background-size: 18px 18px;
    opacity: 0.55;
}

@media only screen and (max-width: 1199px) {
    .csr-intro-dots {
        left: -12px;
    }
}

/* --- story --- */
.csr-intro .section-heading {
    margin-bottom: 28px;
}

.csr-intro-lead {
    font-size: 21px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--fg-navy);
    margin-bottom: 18px;
}

.csr-intro-content .text {
    font-size: 17px;
    line-height: 1.75;
    color: #5b6478;
}

@media only screen and (max-width: 767px) {
    .csr-intro-lead {
        font-size: 18px;
    }

    .csr-intro-content .text {
        font-size: 16px;
    }
}

.csr-intro-content .btn-wrapper {
    margin-top: 40px;
}

@media only screen and (max-width: 767px) {
    .csr-intro-content .btn-wrapper {
        margin-top: 30px;
    }
}

/* brand button: navy, amber on hover */
.wc-btn-primary.csr-btn {
    gap: 16px;
    padding: 18px 32px;
    border-radius: 50px;
    background-color: var(--fg-navy);
    border-color: var(--fg-navy);
}

.wc-btn-primary.csr-btn:hover {
    background-color: var(--fg-amber);
    border-color: var(--fg-amber);
    color: var(--fg-navy);
}

/* ==========================================================================
   2. Focus areas - 3 cards on a tinted band
   ========================================================================== */
.csr-focus {
    background-color: #f5f2ed;
    scroll-margin-top: 90px;
}

/* 3 cards: one row down to tablet (no orphan card on a row of its own),
   then a single centred column on phones */
.csr-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

@media only screen and (max-width: 1199px) {
    .csr-focus-grid {
        gap: 20px;
    }
}

@media only screen and (max-width: 767px) {
    .csr-focus-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-inline: auto;
    }
}

.csr-focus-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(34, 46, 71, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* amber line that grows along the bottom on hover */
.csr-focus-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background-color: var(--fg-amber);
    transition: width 0.4s ease;
}

.csr-focus-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(34, 46, 71, 0.14);
}

.csr-focus-card:hover::after {
    width: 100%;
}

.csr-focus-thumb {
    position: relative;
    aspect-ratio: 3 / 2;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .csr-focus-thumb {
        aspect-ratio: 4 / 3;
    }
}

/* absolutely positioned so the photo can't stretch the aspect-ratio box
   (overflow: hidden isn't an option - the number badge hangs off the edge) */
.csr-focus-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.csr-focus-number {
    z-index: 1;
}

.csr-focus-number {
    position: absolute;
    left: 28px;
    bottom: -26px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--fg-navy);
    background-color: var(--fg-amber);
    border: 4px solid #fff;
}

.csr-focus-body {
    flex: 1;
    padding: 46px 28px 34px;
    text-align: left;
}

.csr-focus-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--fg-navy);
    margin-bottom: 12px;
}

.csr-focus-text {
    font-size: 16px;
    line-height: 1.65;
    color: #5b6478;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .csr-focus-body {
        padding: 40px 20px 26px;
    }

    .csr-focus-number {
        left: 20px;
        width: 46px;
        height: 46px;
        bottom: -23px;
        font-size: 14px;
    }

    .csr-focus-title {
        font-size: 19px;
    }

    .csr-focus-text {
        font-size: 15px;
    }
}

@media only screen and (max-width: 767px) {
    .csr-focus-body {
        padding: 42px 22px 28px;
    }

    .csr-focus-number {
        left: 22px;
    }

    .csr-focus-title {
        font-size: 20px;
    }
}

/* ==========================================================================
   3. Gallery - split heading (title left, text right) + masonry
   ========================================================================== */
.csr-gallery-section {
    scroll-margin-top: 90px;
}

.csr-gallery-section .csr-gallery-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 40px;
    align-items: end;
    margin-bottom: 50px;
}

@media only screen and (max-width: 991px) {
    .csr-gallery-section .csr-gallery-heading {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }
}

/* workshop.css adds its own top margin - the heading already spaces it */
.csr-gallery-section .workshop-gallery {
    margin-top: 0;
}
