
/* ==========================================
   TERRAIFA - RESEARCH APPROACH V2
   ========================================== */

/* ==========================================
   CONTINUOUS RESEARCH BACKGROUND
   ========================================== */

.section-research.coffee-research {
    padding-bottom: clamp(12px, 1.8vw, 24px);
}

.coffee-research__wave {
    display: none;
}

.content-section.section-approach {
    padding: clamp(8px, 1.3vw, 18px) 0
             clamp(75px, 8vw, 115px);
    background: #f4f9f7;
    color: #173047;
    scroll-margin-top: 85px;
}

/* ==========================================
   INTRODUCTION
   ========================================== */

.section-approach .approach-heading {
    max-width: 980px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-approach .approach-heading .section-title {
    max-width: 980px;
    margin: 0 auto;
    color: #192f45;
    font-size: clamp(38px, 4.6vw, 60px);
    line-height: 1.08;
    letter-spacing: -.05em;
    text-wrap: balance;
}

.section-approach .approach-heading .section-title em {
    display: block;
    font-style: normal;
    background: linear-gradient(
        95deg,
        #45ba86,
        #168fa6
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.section-approach .approach-heading .section-title--question em {
    margin-top: 4px;
}


/* ==========================================
   INTERACTIVE WORKFLOW CONTAINER
   ========================================== */

.section-approach .approach-interface {
    overflow: hidden;
    border: 1px solid #d7e8e1;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 55px rgba(37, 91, 76, .075);
}

/* ==========================================
   WORKFLOW NAVIGATION
   ========================================== */

.section-approach .approach-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid #dceae4;
    background: #eaf5f0;
}

.section-approach .approach-step {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 13px;
    min-width: 0;
    min-height: 91px;
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: #365869;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.section-approach .approach-step:hover {
    border-color: #c6e4d7;
    background: rgba(255, 255, 255, .65);
}

.section-approach .approach-step.is-active {
    border-color: #b5e0d0;
    background: #ffffff;
    box-shadow: 0 9px 26px rgba(27, 106, 85, .10);
}

.section-approach .approach-step.is-active::after {
    content: "";
    position: absolute;
    right: 17px;
    bottom: 0;
    left: 17px;
    height: 3px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(
        90deg,
        #4bbc88,
        #1999ae
    );
}

.section-approach .approach-step:focus-visible {
    outline: 3px solid #149d8b;
    outline-offset: -3px;
}

.section-approach .approach-step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: 1px solid #cde9df;
    border-radius: 13px;
    background: #dff1ea;
    color: #168e91;
    font-size: 26px;
}

.section-approach .approach-step.is-active
.approach-step__icon {
    border-color: #b7e5d5;
    background: #e3f7ed;
    color: #159f83;
}

.approach-step__content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.section-approach .approach-step__content strong {
    color: #18354b;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.35;
    text-wrap: balance;
}

.approach-step__content small {
    color: #67828b;
    font-size: 11px;
    line-height: 1.4;
}

/* ==========================================
   CONTENT PANEL
   ========================================== */

.section-approach .approach-details {
    min-height: 0;
    padding: 0;
    border-top: 0;
    background: #ffffff;
}

.section-approach .approach-panel[hidden] {
    display: none;
}

.approach-panel__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, .9fr);
    align-items: center;
    gap: clamp(28px, 4.5vw, 65px);
    padding: clamp(25px, 3.7vw, 49px);
}

.approach-panel:not([hidden]) .approach-panel__grid {
    animation: approach-panel-enter .4s ease both;
}

@keyframes approach-panel-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   PANEL COPY
   ========================================== */

.approach-panel__copy {
    min-width: 0;
}

.section-approach .approach-panel__label {
    display: block;
    margin-bottom: 13px;
    color: #15948d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.section-approach .approach-panel h3 {
    max-width: 550px;
    margin: 0 0 16px;
    color: #173249;
    font-size: clamp(27px, 2.9vw, 38px);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.approach-panel h3 em {
    display: block;
    margin-top: 3px;
    color: #199f91;
    font-style: normal;
}

.section-approach .approach-panel__copy > p {
    max-width: 560px;
    margin: 0;
    color: #56707c;
    font-size: 14px;
    line-height: 1.8;
}

/* ==========================================
   RESEARCH FEATURES
   ========================================== */

.approach-features {
    display: grid;
    gap: 0;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.approach-features li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 0 13px 23px;
    border-top: 1px solid #e8f0ec;
}

.approach-features li::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    width: 8px;
    height: 8px;
    border: 2px solid #48ba9a;
    border-radius: 50%;
    background: #ffffff;
}

.approach-features strong {
    color: #244357;
    font-size: 13px;
    line-height: 1.45;
}

.approach-features li > span {
    color: #607984;
    font-size: 12px;
    line-height: 1.6;
}

.approach-panel__note {
    margin-top: 18px;
    padding: 13px 16px;
    border-left: 3px solid #41b69b;
    border-radius: 0 9px 9px 0;
    background: #f0f8f4;
    color: #456d6a;
    font-size: 12px;
    line-height: 1.65;
}

/* ==========================================
   VISUAL PREVIEW CONTAINER
   ========================================== */

.approach-preview {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d8ebe3;
    border-radius: 20px;
    background: #f3faf6;
    box-shadow: 0 14px 35px rgba(31, 110, 84, .075);
}

.approach-preview__header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 55px;
    padding: 14px 19px;
    border-bottom: 1px solid #dbede6;
    color: #3a6570;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.approach-preview__dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #42bf9b;
}

.approach-preview__status {
    margin-left: auto;
    padding: 6px 9px;
    border-radius: 20px;
    background: #dfefe8;
    color: #188e7b;
    font-size: 9px;
    letter-spacing: .05em;
}

.approach-preview__body {
    min-height: 300px;
    padding: clamp(18px, 2.4vw, 28px);
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(64, 190, 148, .13),
            transparent 55%
        ),
        #f6fbf8;
}

.approach-preview__title {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 18px;
    color: #1c4050;
    font-size: 17px;
    font-weight: 800;
}

.approach-preview__title small {
    color: #6f8a8d;
    font-size: 11px;
    font-weight: 500;
}

.approach-preview__disclaimer {
    margin: 0;
    padding: 12px 18px;
    border-top: 1px solid #deeee7;
    color: #7a8d90;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.approach-preview__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid #dfebe6;
    color: #548378;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
}

.approach-preview__footer span {
    color: #1fa18b;
    font-size: 18px;
}

/* ==========================================
   COLLECT - SOURCE DOCUMENTS
   ========================================== */

.approach-file {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 13px;
    border: 1px solid #dfebe6;
    border-radius: 11px;
    background: #ffffff;
}

.approach-file__type {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 45px;
    height: 43px;
    border-radius: 9px;
    background: #e0f3ea;
    color: #168e83;
    font-size: 11px;
    font-weight: 800;
}

.approach-file > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.approach-file strong {
    color: #29495b;
    font-size: 12px;
    line-height: 1.4;
}

.approach-file small {
    color: #708a90;
    font-size: 10px;
    line-height: 1.4;
}

.approach-file__check {
    margin-left: auto;
    color: #30a98a;
    font-size: 17px;
}

/* ==========================================
   STRUCTURE - RESEARCH RECORD
   ========================================== */

.approach-record {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.approach-record__field {
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-width: 0;
    min-height: 92px;
    padding: 15px;
    border: 1px solid #deebe6;
    border-radius: 11px;
    background: #ffffff;
}

.approach-record__field span {
    color: #69818a;
    font-size: 10px;
    line-height: 1.45;
}

.approach-record__field strong {
    color: #235367;
    font-size: 12px;
    line-height: 1.5;
}

.approach-preview__callout {
    margin-top: 16px;
    padding: 15px;
    border: 1px solid #cfe9dd;
    border-radius: 11px;
    background: #e8f6ee;
    color: #55756e;
    font-size: 12px;
    line-height: 1.6;
}

.approach-preview__callout strong {
    display: block;
    margin-bottom: 4px;
    color: #168779;
    font-size: 12px;
}

/* ==========================================
   VALIDATE - REVIEW STATES
   ========================================== */

.approach-review {
    position: relative;
    display: grid;
    gap: 13px;
    margin: 0 0 0 9px;
}

.approach-review::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 15px;
    left: 6px;
    width: 2px;
    background: #d4e9df;
}

.approach-review__state {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.approach-review__marker {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 3px;
    border: 3px solid #80cab4;
    border-radius: 50%;
    background: #ffffff;
}

.approach-review__state > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.approach-review__state strong {
    color: #294a57;
    font-size: 13px;
}

.approach-review__state small {
    color: #718991;
    font-size: 11px;
    line-height: 1.45;
}

.approach-review__state--verified
.approach-review__marker {
    border-color: #22a889;
    background: #22a889;
    box-shadow: 0 0 0 4px #dcf2e7;
}

.approach-review__branch {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: fit-content;
    margin-left: 27px;
    padding: 10px 13px;
    border: 1px solid #f1ddba;
    border-radius: 9px;
    background: #fffaee;
    color: #96703a;
    font-size: 11px;
    font-weight: 750;
}

.approach-review__branch span {
    font-weight: 500;
    font-size: 10px;
}

/* ==========================================
   ANALYZE - READINESS VISUALIZATION
   ========================================== */

.approach-insight {
    display: grid;
    gap: 10px;
}

.approach-insight__row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid #dcebe5;
    border-radius: 12px;
    background: #ffffff;
}

.approach-insight__symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #e3f5ed;
    color: #189c88;
    font-size: 23px;
}

.approach-insight__row > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.approach-insight__row strong {
    color: #26485a;
    font-size: 12px;
    line-height: 1.4;
}

.approach-insight__row small {
    color: #70888e;
    font-size: 11px;
}

/* ==========================================
   SHARED PRINCIPLES
   ========================================== */

.approach-principles {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 19px 25px;
    border-top: 1px solid #e1eee8;
    background: #f7fbf8;
}

.approach-principles span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #557971;
    font-size: 11px;
    font-weight: 700;
}

.approach-principles span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #46b994;
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1000px) {

    .section-approach .approach-step {
        flex-direction: column;
        align-items: flex-start;
        min-height: 120px;
    }

    .approach-panel__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .approach-preview {
        width: 100%;
    }

    .approach-preview__body {
        min-height: 0;
    }
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 620px) {

    .content-section.section-approach {
        padding: 10px 0 75px;
    }

    .section-approach .approach-heading {
        margin-bottom: 22px;
    }

    .section-approach .approach-heading .section-title {
        font-size: clamp(32px, 8vw, 41px);
    }

    .approach-bridge {
        margin: 0 auto 22px;
        padding: 16px 0 20px;
    }

    .approach-bridge__lead {
        font-size: 16px;
        line-height: 1.65;
    }

    .approach-bridge__flow {
        gap: 8px 10px;
        margin-top: 15px;
    }

    .approach-bridge__flow span {
        padding: 8px 11px;
        font-size: 11px;
    }

    .approach-bridge__flow i {
        font-size: 15px;
    }

    .section-approach .approach-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }

    .section-approach .approach-step {
        flex-direction: row;
        align-items: center;
        gap: 9px;
        min-height: 80px;
        padding: 10px;
    }

    .section-approach .approach-step__icon {
        width: 39px;
        height: 39px;
        border-radius: 10px;
        font-size: 23px;
    }

    .section-approach .approach-step__content strong {
        font-size: 13px;
    }

    .approach-step__content small {
        font-size: 10px;
    }

    .approach-panel__grid {
        padding: 22px;
        gap: 25px;
    }

    .section-approach .approach-panel h3 {
        font-size: 28px;
    }

    .section-approach .approach-panel__copy > p {
        font-size: 13px;
    }

    .approach-features {
        margin-top: 18px;
    }

    .approach-preview__body {
        padding: 16px;
    }

    .approach-record {
        grid-template-columns: 1fr;
    }

    .approach-record__field {
        min-height: 0;
        gap: 6px;
    }

    .approach-principles {
        justify-content: flex-start;
        gap: 11px 18px;
        padding: 18px;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .approach-panel:not([hidden])
    .approach-panel__grid {
        animation: none;
    }

    .section-approach .approach-step {
        transition: none;
    }
}
