/* /assets/stylesheets/investment.css
 * Investment page layout in the Agadir Investment house style.
 */

.investment-page {
    background: #f9f0ec;
    color: #181d24;
}

.investment-page *,
.investment-page *::before,
.investment-page *::after {
    box-sizing: border-box;
}

.investment-page .ag-section--dark .ag-eyebrow {
    color: #ca9d75;
}

.investment-page .ag-section--dark .ag-heading,
.investment-page .ag-section--dark .ag-copy,
.investment-page .ag-section--dark .ag-copy p {
    color: #f9f0ec;
}

.investment-section-heading {
    margin-bottom: clamp(48px, 6vw, 88px);
}

.investment-chart {
    border-top: 1px solid rgba(249, 240, 236, .20);
    border-bottom: 1px solid rgba(249, 240, 236, .20);
}

.investment-chart__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 0 20px;
    color: #f9f0ec;
    font-family: "Euclid Square", Helvetica, Arial, sans-serif;
    text-transform: none;
}

.investment-chart__top > span {
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(249, 240, 236, .62);
}

.investment-chart__top strong {
    font-family: "SangBleu Empire", Helvetica, Arial, sans-serif;
    font-size: clamp(36px, 4.8vw, 68px);
    line-height: .9;
    font-weight: 400;
    letter-spacing: -.03em;
    color: #ca9d75;
}

.investment-chart__top small {
    display: inline-block;
    margin-left: 8px;
    font-family: "Euclid Square", Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(249, 240, 236, .60);
}

.investment-chart__svg-wrap {
    width: 100%;
    overflow-x: auto;
    padding: 18px 0 12px;
}

.investment-chart svg {
    display: block;
    width: 100%;
    min-width: 720px;
    height: 420px;
    overflow: visible;
}

.investment-chart svg line {
    stroke: rgba(249, 240, 236, .13);
    stroke-width: 1;
}

.investment-chart svg text {
    fill: rgba(249, 240, 236, .58);
    font-family: "Euclid Square", Helvetica, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: .02em;
}

.investment-chart__line {
    fill: none;
    stroke: #ca9d75;
    stroke-width: 4;
    vector-effect: non-scaling-stroke;
}

.investment-chart__points circle {
    fill: #181d24;
    stroke: #ca9d75;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.investment-chart__labels text {
    text-anchor: middle;
}

.investment-market-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(249, 240, 236, .18);
}

.investment-market-stats > div {
    min-height: 132px;
    padding: 27px 24px;
    border-right: 1px solid rgba(249, 240, 236, .14);
}

.investment-market-stats > div:last-child {
    border-right: 0;
}

.investment-market-stats span,
.investment-price-grid span,
.investment-price-grid small {
    display: block;
    font-family: "Euclid Square", Helvetica, Arial, sans-serif;
    text-transform: none;
}

.investment-market-stats span {
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: .04em;
    color: rgba(249, 240, 236, .58);
}

.investment-market-stats strong {
    font-family: "SangBleu Empire", Helvetica, Arial, sans-serif;
    font-size: clamp(28px, 2.8vw, 42px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.025em;
    color: #f9f0ec;
}

.investment-price-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: rgba(24, 29, 36, .16);
    border-top: 1px solid rgba(24, 29, 36, .16);
    border-bottom: 1px solid rgba(24, 29, 36, .16);
}

.investment-price-grid > div {
    min-height: 210px;
    padding: clamp(26px, 3vw, 42px);
    background: #f9f0ec;
}

.investment-price-grid span {
    margin-bottom: 28px;
    font-size: 13px;
    line-height: 1.45;
    letter-spacing: .04em;
}

.investment-price-grid strong {
    display: block;
    margin-bottom: 8px;
    font-family: "SangBleu Empire", Helvetica, Arial, sans-serif;
    font-size: clamp(34px, 3.6vw, 54px);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -.03em;
    color: #ac835e;
}

.investment-price-grid small {
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .62;
}

.investment-calculator {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 1px;
    margin-top: 12px;
    background: rgba(24, 29, 36, .15);
    border: 1px solid rgba(24, 29, 36, .15);
}

.investment-calculator__fields,
.investment-calculator__result {
    background: #f9f0ec;
    padding: clamp(28px, 4vw, 58px);
}

.investment-calculator__fields label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 24px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(24, 29, 36, .14);
    font-family: "Euclid Square", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

.investment-calculator__fields label:first-child {
    padding-top: 0;
}

.investment-calculator__fields label:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.investment-calculator__fields output {
    color: #ac835e;
    white-space: nowrap;
}

.investment-calculator__fields input[type="range"] {
    grid-column: 1 / -1;
    width: 100%;
    height: 20px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.investment-calculator__fields input[type="range"]::-webkit-slider-runnable-track {
    height: 2px;
    background: rgba(24, 29, 36, .25);
}

.investment-calculator__fields input[type="range"]::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -7px;
    border: 1px solid #ac835e;
    border-radius: 50%;
    background: #ca9d75;
    appearance: none;
    -webkit-appearance: none;
}

.investment-calculator__fields input[type="range"]::-moz-range-track {
    height: 2px;
    background: rgba(24, 29, 36, .25);
}

.investment-calculator__fields input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 1px solid #ac835e;
    border-radius: 50%;
    background: #ca9d75;
}

.investment-calculator__result {
    display: flex;
    flex-direction: column;
    background: #181d24;
    color: #f9f0ec;
}

.investment-calculator__result > span {
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: rgba(249, 240, 236, .58);
}

.investment-calculator__result > strong {
    display: block;
    margin-bottom: 34px;
    font-family: "SangBleu Empire", Helvetica, Arial, sans-serif;
    font-size: clamp(42px, 5vw, 72px);
    line-height: .95;
    font-weight: 400;
    letter-spacing: -.035em;
    color: #ca9d75;
}

.investment-calculator__result > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-top: 1px solid rgba(249, 240, 236, .14);
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

.investment-calculator__result b {
    font-weight: 400;
    color: #f9f0ec;
}

.investment-calculator__result p {
    margin: auto 0 0;
    padding-top: 34px;
    font-size: 11px;
    line-height: 1.65;
    letter-spacing: .02em;
    text-transform: none;
    color: rgba(249, 240, 236, .50);
}

.investment-management {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(42px, 7vw, 110px);
    align-items: center;
}

.investment-management__image {
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #d8cdc4;
}

.investment-management__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.investment-management__copy .ag-copy {
    margin-top: 26px;
}

.investment-management-list {
    margin-top: 40px;
    border-top: 1px solid rgba(24, 29, 36, .18);
}

.investment-management-list > div {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(24, 29, 36, .18);
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0;
    text-transform: none;
}

.investment-management-list b {
    font-weight: 400;
    color: #ac835e;
}

@media (max-width: 979px) {
    .investment-market-stats,
    .investment-price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .investment-market-stats > div:nth-child(2) {
        border-right: 0;
    }

    .investment-market-stats > div:nth-child(-n+2) {
        border-bottom: 1px solid rgba(249, 240, 236, .14);
    }

    .investment-calculator,
    .investment-management {
        grid-template-columns: 1fr;
    }

    .investment-management__image {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 567px) {
    .investment-section-heading {
        margin-bottom: 38px;
    }

    .investment-chart__top {
        display: block;
    }

    .investment-chart__top strong {
        display: block;
        margin-top: 18px;
    }

    .investment-chart svg {
        min-width: 620px;
        height: 340px;
    }

    .investment-market-stats,
    .investment-price-grid {
        grid-template-columns: 1fr;
    }

    .investment-market-stats > div {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(249, 240, 236, .14);
    }

    .investment-market-stats > div:last-child {
        border-bottom: 0;
    }

    .investment-price-grid > div {
        min-height: auto;
    }

    .investment-calculator__fields,
    .investment-calculator__result {
        padding: 26px 20px;
    }

    .investment-calculator__result > strong {
        font-size: 44px;
    }
}
