/* ============================================================
   SRAT Investment Detail Page — mobile-first
   /investments/siscom-realty-asset-tokens/
   ============================================================ */

/* ── Page wrapper ── */
.srat {
    background: #fff;
    width: 100%;
    padding: 48px 0 80px;
}

.srat__inner {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* ══════════════════════════════════════════
   LEFT SECTION
   ══════════════════════════════════════════ */

.srat__left {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

/* ── Title ── */
.srat__title {
    color: #353535;
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

/* ── Image ── */
.srat__image-wrap {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.srat__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    background: lightgray;
}

/* ── Three-column stats ── */
.srat__stats {
    display: flex;
    width: 100%;
}

.srat__stat {
    display: flex;
    flex: 1;
    min-width: 0;
    height: 130px;
    padding: 16px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 23px;
    border-top: 0.5px solid rgba(128, 128, 128, 0.60);
    border-bottom: 0.5px solid rgba(128, 128, 128, 0.60);
    border-left: 0.5px solid rgba(128, 128, 128, 0.60);
}

.srat__stat--left {
    border-radius: 15px 0 0 15px;
}

.srat__stat--mid {
    border-radius: 0;
}

.srat__stat--right {
    border-right: 0.5px solid rgba(128, 128, 128, 0.60);
    border-radius: 0 15px 15px 0;
}

.srat__stat-label {
    color: #334155;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    align-self: stretch;
}

.srat__stat-value {
    color: #353535;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: normal;
}

/* ── Tabs ── */
.srat__tabs {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 48px; /* 80px desktop gap from stats to tabs, combined with existing 32px gap */
}

.srat__tab-nav {
    display: flex;
    align-items: flex-end;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
}

.srat__tab-btn {
    display: flex;
    height: 71px;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    color: #334155;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.srat__tab-btn--active {
    border-bottom: 2px solid #E91E8C;
    color: #353535;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: normal;
}

/* ── Tab Panels ── */
.srat__tab-panel {
    display: none;
}

.srat__tab-panel--active {
    display: block;
}

/* ── Why This Asset subtitle ── */
.srat__why-title {
    color: #353535;
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: normal;
    margin: 0 0 26px;
}

/* ── Highlights list ── */
.srat__highlights {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
}

.srat__highlight {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.srat__highlight-icon {
    display: flex;
    width: 48px;
    height: 48px;
    padding: 12px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 9999px;
    background: #000;
    box-sizing: border-box;
}

.srat__highlight-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.srat__highlight-label {
    color: #353535;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: normal;
}

.srat__highlight-desc {
    color: #334155;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
}

/* ── Data Room tab ── */
.srat__dataroom-card {
    display: flex;
    width: 100%;
    max-width: 708px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-radius: 15px;
    border: 1px solid rgba(226, 232, 240, 0.98);
    box-sizing: border-box;
}

.srat__dataroom-title {
    color: #190046;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

.srat__dataroom-text {
    color: #190046;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    margin: 0;
}

.srat__dataroom-cta {
    display: flex;
    width: 209px;
    height: 40px;
    padding: 20px 16px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 25px;
    background: #000;
    border: none;
    cursor: pointer;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.408px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.srat__dataroom-cta:hover {
    opacity: 0.85;
}

/* ══════════════════════════════════════════
   RIGHT SECTION — Calculator
   ══════════════════════════════════════════ */

.srat__right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* ── Main calc card ── */
.srat__calc {
    display: flex;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    border-radius: 15px;
    background: #fff;
    border: 0.5px solid rgba(128, 128, 128, 0.30);
    box-sizing: border-box;
}

.srat__calc-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.srat__calc-title {
    color: #353535;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: normal;
}

.srat__calc-sub {
    color: #334155;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
}

/* ── Token selector ── */
.srat__token-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.srat__token-label {
    color: #353535;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    align-self: flex-start;
}

.srat__token-row {
    display: flex;
    width: 100%;
    max-width: 263px;
    justify-content: space-between;
    align-items: center;
}

.srat__token-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.srat__token-btn:hover {
    opacity: 0.7;
}

.srat__token-display {
    display: flex;
    width: 56px;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.srat__token-count {
    color: #E91E8C;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: normal;
}

.srat__token-text {
    color: #353535;
    text-align: right;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    height: 24px;
    align-self: stretch;
}

/* ── Total Investment box ── */
.srat__total-box {
    display: flex;
    height: 156px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    align-self: stretch;
    border-radius: 15px;
    background: #040548;
    box-sizing: border-box;
}

.srat__total-label {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: normal;
}

.srat__total-amount {
    color: #E91E8C;
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: normal;
}

.srat__total-breakdown {
    color: #fff;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
}

/* ── Invest form — must stretch so button fills full width ── */
#investForm {
    width: 100%;
    align-self: stretch;
}

/* ── Invest button ── */
.srat__invest-btn {
    display: flex;
    width: 100%;
    height: 48px;
    justify-content: center;
    align-items: center;
    border-radius: 35px;
    background: #E91E8C;
    border: none;
    cursor: pointer;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.srat__invest-btn:hover {
    opacity: 0.88;
}

/* ── Earnings forecast card ── */
.srat__forecast {
    display: flex;
    width: 100%;
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 26px;
    border-radius: 15px;
    border: 0.5px solid rgba(128, 128, 128, 0.60);
    background: #fff;
    box-sizing: border-box;
}

.srat__forecast-title {
    color: #353535;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: normal;
    align-self: flex-start;
}

/* Bar chart */
.srat__bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
    gap: 8px;
}

.srat__bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.srat__bar-amount {
    color: #353535;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: normal;
}

.srat__bar {
    width: 100%;
    background: #008844;
    border-radius: 2px 2px 0 0;
}

.srat__bar--1 { height: 5px; }
.srat__bar--2 { height: 8px; }
.srat__bar--3 { height: 12px; }
.srat__bar--4 { height: 15px; }
.srat__bar--5 { height: 20px; }

.srat__bar-year {
    color: #353535;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
}

/* Totals row */
.srat__totals-row {
    display: flex;
    align-items: center;
    gap: 19px;
    align-self: stretch;
}

.srat__totals-card {
    display: flex;
    flex: 1;
    padding: 16px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-radius: 15px;
    background: #F5F5F5;
}

.srat__totals-label {
    color: #353535;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
}

.srat__totals-amount {
    color: #353535;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: normal;
}

.srat__totals-amount--green {
    color: #008844;
}

/* ── Investment Timeline ── */
.srat__timeline {
    display: flex;
    width: 100%;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    border-radius: 15px;
    border: 0.5px solid rgba(128, 128, 128, 0.30);
    box-sizing: border-box;
}

.srat__timeline-title {
    color: #353535;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: normal;
}

.srat__timeline-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.srat__tl-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.srat__tl-dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.srat__tl-line {
    width: 1px;
    height: 30px;
    background: rgba(148, 163, 184, 0.50);
}

.srat__tl-item--last .srat__tl-dot-wrap {
    /* No line after last item */
}

.srat__tl-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    padding-top: 2px;
}

.srat__tl-label {
    color: #353535;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
}

.srat__tl-date {
    color: #334155;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
}

/* ══════════════════════════════════════════
   RESPONSIVE — Desktop layout (side-by-side)
   ══════════════════════════════════════════ */

@media (min-width: 1024px) {
    .srat__inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 48px;
    }

    .srat__left {
        flex: 1;
        min-width: 0;
        max-width: 736px;
    }

    .srat__title {
        font-size: 44px;
    }

    .srat__image {
        height: 516px;
        object-fit: cover;
    }

    .srat__tabs {
        margin-top: 0; /* gap handled by srat__left gap: 32px + the 80px is bridged through margin-top on the tabs container */
        width: 100%;
        max-width: 720px;
    }

    .srat__right {
        width: 485px;
        flex-shrink: 0;
    }

    .srat__calc {
        width: 485px;
    }

    .srat__forecast {
        width: 489px;
    }

    .srat__timeline {
        width: 489px;
    }
}

/* ── Tablet (640px) ── */
@media (min-width: 640px) {
    .srat__stats {
        max-width: 639px;
    }

    .srat__stat {
        width: 213px;
        flex: none;
    }
}

/* ── Mobile stat label wrapping ── */
@media (max-width: 400px) {
    .srat__stat-value {
        font-size: 14px;
    }

    .srat__stat {
        padding: 12px 10px;
        gap: 12px;
    }

    .srat__stat-label {
        font-size: 13px;
    }
}
