/*
 * About Page Template styles for Richfolds.
 * Loaded only by the About Page Template.
 */

.rf-ab1-hero {
    position: relative;
    min-height: 0;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/04/about_banner-1-scaled.webp');
    background-position: bottom;
    background-size: auto, cover;
    background-repeat: no-repeat;
    text-align: center;
    box-shadow: 0 2px 5px #0003;
}

.rf-ab1-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(8, 18, 27, 0.38), rgba(8, 18, 27, 0.38)),
        linear-gradient(rgba(8, 18, 27, 0.18), rgba(8, 18, 27, 0.48));
}

.rf-ab1-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 9rem 1.5rem 6rem;
}

.rf-ab1-content {
    width: min(100%, 820px);
    margin: 0 auto;
}

.rf-ab1-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: 'Bodoni Moda', serif;
    font-size: 1rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: #ffbf4e;
    margin-bottom: 2rem;
}

.rf-ab1-kicker::before,
.rf-ab1-kicker::after {
    content: "";
    width: 42px;
    height: 1px;
    background-color: rgba(255, 191, 78, 0.88);
}

.rf-ab1-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    line-height: 1;
    text-transform: uppercase;
    color: #ffbf4e;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.rf-ab1-decor-line {
    background-color: #0000;
    background-image: linear-gradient(to right, transparent, #ffbf4e 50%, transparent);
    width: 35%;
    height: 2px;
    margin: 1.2rem auto 0;
    padding-bottom: 0;
    box-shadow: 0 1px 6px #00000061;
}

.rf-about-page {
    padding-top: 3rem;
    padding-bottom: 0;
}

.rf-about-page__body > :first-child {
    margin-top: 0;
}

.rf-about-page__body > :last-child {
    margin-bottom: 0;
}

.rf-ab2-boxed-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

@media screen and (min-width: 1920px) {
    .rf-ab2-boxed-container {
        max-width: 1440px;
    }
}

.rf-ab2-section {
    padding: 120px 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)),
        url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/04/wave-scaled.webp');
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.rf-ab2-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.98fr);
    gap: 25px;
    align-items: center;
}

.rf-ab2-text-wrap {
    z-index: 2;
    max-width: 650px;
}

.rf-ab2-title {
    display: inline-block;
    margin: 0 0 28px;
    padding-bottom: 18px;
    position: relative;
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    line-height: 1.05;
    color: #222;
}

.rf-ab2-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 165px;
    height: 1px;
    background-color: #333;
}

.rf-ab2-desc {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.78;
    color: #4b5563;
}

.rf-ab2-visual-wrap {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 710px;
    margin-left: auto;
}

.rf-ab2-gold-bar {
    position: absolute;
    z-index: 0;
    width: 118px;
    height: 470px;
    left: 34px;
    top: 150px;
    background-color: #9b772f;
}

.rf-ab2-image-portrait {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: min(88%, 570px);
    height: 100%;
    background-image: url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/03/doctor-tahki-black.jpg');
    background-position: center;
    background-size: cover;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.rf-ab2-blue-block {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: -38px;
    width: 105px;
    height: 430px;
    background-color: #2b5876;
    background-image: linear-gradient(to bottom, #17425e, #557b95);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -6px 8px 20px rgba(0, 0, 0, 0.12);
}

.rf-ab2-blue-text {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    line-height: 1;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.rf-ab3-boxed-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

@media screen and (min-width: 1920px) {
    .rf-ab3-boxed-container {
        max-width: 1440px;
    }
}

.rf-ab3-section {
    padding: 120px 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
        url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/04/wave-scaled.webp');
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.rf-ab3-grid {
    display: grid;
    grid-template-columns: minmax(420px, 0.98fr) minmax(0, 1fr);
    gap: 25px;
    align-items: center;
}

.rf-ab3-visual-wrap {
    position: relative;
    width: 100%;
    max-width: 640px;
    height: 690px;
}

.rf-ab3-gold-bar {
    position: absolute;
    z-index: 0;
    width: 118px;
    height: 460px;
    left: 6px;
    top: 188px;
    background-color: #9b772f;
}

.rf-ab3-image-portrait {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: min(90%, 570px);
    height: 100%;
    background-image: url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/04/What-I-do-scaled.webp');
    background-position: center;
    background-size: cover;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.rf-ab3-blue-block {
    position: absolute;
    z-index: 2;
    left: -28px;
    bottom: -36px;
    width: 108px;
    height: 430px;
    background-color: #2b5876;
    background-image: linear-gradient(to bottom, #17425e, #557b95);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -6px 8px 20px rgba(0, 0, 0, 0.12);
}

.rf-ab3-blue-text {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 46px;
    line-height: 1;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.rf-ab3-text-wrap {
    z-index: 2;
}

.rf-ab3-subtitle {
    margin: 0 0 8px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 30px;
    line-height: 1.2;
    color: #17425e;
}

.rf-ab3-title {
    display: inline-block;
    margin: 0 0 28px;
    padding-bottom: 18px;
    position: relative;
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    line-height: 1.05;
    color: #222;
}

.rf-ab3-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 165px;
    height: 1px;
    background-color: #333;
}

.rf-ab3-desc {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.78;
    color: #4b5563;
}

@media (max-width: 767px) {
    .rf-ab1-hero {
        height: 78vh;
    }

    .rf-ab1-inner {
        padding: 7.5rem 1.25rem 4.5rem;
    }

    .rf-ab1-kicker {
        font-size: 0.8rem;
        letter-spacing: 0.24em;
        gap: 10px;
        margin-bottom: 1.5rem;
    }

    .rf-ab1-kicker::before,
    .rf-ab1-kicker::after {
        width: 28px;
    }

    .rf-ab1-title {
        font-size: 38px;
    }

    .rf-ab1-decor-line {
        width: min(78%, 260px);
    }

    .rf-about-page {
        padding-top: 2rem;
    }
}

@media screen and (max-width: 1180px) {
    .rf-ab2-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .rf-ab2-text-wrap {
        max-width: none;
    }

    .rf-ab2-visual-wrap {
        max-width: 560px;
        height: 610px;
        margin: 0 auto;
    }

    .rf-ab3-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .rf-ab3-visual-wrap {
        max-width: 560px;
        height: 610px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 767px) {
    .rf-ab2-section {
        padding: 80px 0;
    }

    .rf-ab2-boxed-container {
        padding: 0 20px;
    }

    .rf-ab2-title {
        font-size: 46px;
    }

    .rf-ab2-title::after {
        width: 120px;
    }

    .rf-ab2-desc {
        font-size: 15px;
        line-height: 1.7;
    }

    .rf-ab2-visual-wrap {
        height: 430px;
    }

    .rf-ab2-gold-bar {
        width: 72px;
        height: 250px;
        left: 18px;
        top: 105px;
    }

    .rf-ab2-image-portrait {
        width: calc(100% - 36px);
    }

    .rf-ab2-blue-block {
        left: 0;
        bottom: -10px;
        width: 72px;
        height: 240px;
    }

    .rf-ab2-blue-text {
        font-size: 34px;
        letter-spacing: 2px;
    }

    .rf-ab3-section {
        padding: 80px 0;
    }

    .rf-ab3-boxed-container {
        padding: 0 20px;
    }

    .rf-ab3-visual-wrap {
        height: 430px;
    }

    .rf-ab3-gold-bar {
        width: 72px;
        height: 250px;
        left: 8px;
        top: 105px;
    }

    .rf-ab3-image-portrait {
        width: calc(100% - 24px);
    }

    .rf-ab3-blue-block {
        left: -8px;
        bottom: -10px;
        width: 72px;
        height: 240px;
    }

    .rf-ab3-blue-text {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .rf-ab3-subtitle {
        font-size: 24px;
    }

    .rf-ab3-title {
        font-size: 46px;
    }

    .rf-ab3-title::after {
        width: 120px;
    }

    .rf-ab3-desc {
        font-size: 15px;
        line-height: 1.7;
    }
}
