/* =========================================
   4C METHOD — faded photo bg + intro + tabbed card
   ========================================= */

.method {
    position: relative;
    padding: clamp(70px, 9vw, 130px) 0 clamp(80px, 10vw, 150px);
    overflow: hidden;
    isolation: isolate;
    background: #fff;
}

/* Faded team photo as background */
.method-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.method-bg-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.method-bg-veil {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
}

/* Container */
.method-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    position: relative;
}

/* Intro headline */
.method-intro {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.5rem, 2.2vw, 2.05rem);
    line-height: 1.32;
    letter-spacing: -0.005em;
    color: var(--clr-navy);
    text-align: center;
    max-width: 620px;
    margin: 0 auto clamp(40px, 5vw, 70px);
}

.method-intro strong {
    font-weight: 500;
}

/* Tabs assembly */
.method-tabs {
    max-width: 920px;
    margin: 0 auto;
    position: relative;
}

/* Tab strip — sits along bottom edge so tabs visually rise out of the card top */
.method-tabs-header {
    display: flex;
    align-items: flex-end;
    gap: 0;
    padding-left: 60px; /* indent the tabs from the card's left edge */
    position: relative;
    z-index: 2;
}

/* Individual tab */
.method-tab {
    flex: 1 1 0;
    max-width: 188px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--clr-navy);
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    text-align: center;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    margin-bottom: -1px; /* overlap the card border by 1px so the active tab merges with it */
}

/* Tab brand colors */
.method-tab--message  { background: #fff;             color: var(--clr-navy); }
.method-tab--brand    { background: var(--clr-red);    color: #fff; }
.method-tab--marketing{ background: var(--clr-yellow); color: var(--clr-navy); }
.method-tab--people   { background: var(--clr-blue);   color: #fff; }

/* Active tab sits forward */
.method-tab.active {
    z-index: 3;
}

.method-tab:not(.active):hover {
    transform: translateY(-1px);
}

/* Card body */
.method-card {
    background: #fff;
    border: 1px solid var(--clr-navy);
    border-radius: 0;
    padding: 44px 56px 36px 80px;
    position: relative;
    min-height: 320px;
    overflow: hidden;
}

/* Left vertical color bar — color swaps with active tab */
.method-card-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 100%;
    background: #8090ff; /* default = Your Message (lavender-blue) */
    transition: background 0.25s ease;
}

.method-tabs[data-active="message"]   .method-card-bar { background: #8090ff; }
.method-tabs[data-active="brand"]     .method-card-bar { background: var(--clr-red); }
.method-tabs[data-active="marketing"] .method-card-bar { background: var(--clr-yellow); }
.method-tabs[data-active="people"]    .method-card-bar { background: var(--clr-blue); }

/* Panes */
.method-pane {
    display: none;
    animation: methodFade 0.28s ease;
}
.method-pane.active { display: block; }

@keyframes methodFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.method-pane-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.7rem, 2.5vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--clr-navy);
    margin: 0 0 18px;
}

.method-pane-body {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0.2px;
    color: var(--clr-navy);
    max-width: 760px;
    margin: 0;
}

/* Footer row: shape icons + step number */
.method-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 36px;
    gap: 20px;
}

.method-shapes {
    width: 132px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.method-num {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2rem, 2.8vw, 2.6rem);
    color: #8090ff;
    line-height: 1;
    letter-spacing: -0.01em;
}

/* Responsive */
@media (max-width: 1024px) {
    .method-tabs-header {
        padding-left: 24px;
        gap: 2px;
    }
    .method-tab {
        font-size: 0.82rem;
        padding: 0 10px;
        height: 36px;
    }
    .method-card {
        padding: 32px 28px 28px 36px;
    }
    .method-pane-body { font-size: 0.92rem; }
}

/* Phone — restack tabs to 2×2 grid for larger touch targets, drop the rising-tab effect */
@media (max-width: 560px) {
    .method-tabs-header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 0;
        margin-bottom: 18px; /* breathing room between tabs and the card */
    }
    .method-tab {
        max-width: none;
        height: 44px;
        font-size: 0.78rem;
        border: 1px solid var(--clr-navy);
        border-radius: 12px;
        margin-bottom: 0;
    }
    .method-card {
        border-radius: 14px;
        padding: 28px 22px 24px 32px;
    }
    .method-shapes { width: 88px; }
    .method-pane-title { font-size: 1.4rem; }
    .method-pane-body { font-size: 0.88rem; line-height: 1.6; }
    .method-card-footer { gap: 12px; }
}
