@font-face {
    font-family: 'The Blendinroom';
    src: url('../font/THE%20BLENDINROOM.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --nav-bg: #FED1C1;
    --maroon: #591829;
    --color-bg: #5F2029;
    --secondary-bg: #FFF3D8;
    --custom-yellow: #F9C89B;
    --custom-orange: #B54E2A;
    --octopus-bg: #591829;
}

*,
*::after,
*::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--color-bg);
}

body,
button,
input,
textarea,
select,
a {
    font-family: 'Lora', serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'The Blendinroom', serif;
}

a,
button {
    color: inherit;
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
}

.autobiography-hero {
    background-color: var(--secondary-bg);
    height: auto;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    padding: 120px 5% 0;
}

.hero-left {
    flex: 1 1 48%;
    display: flex;
    align-items: flex-end;
}

.tree-img {
    width: 100%;
    max-width: 720px;
    max-height: calc(120vh - 120px);
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    display: block;
}

.hero-right {
    flex: 1 1 52%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 50px;
}

.content-box {
    max-width: 600px;
}

.hero-title {
    font-size: 78px;
    color: var(--maroon);
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 35px;
    line-height: 0.9;
}

.hero-description {
    font-size: 16px;
    color: var(--maroon);
    line-height: 30px;
    margin-bottom: 45px;
    font-weight: 400;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-bottom: 120px;
}

.btn-primary {
    display: inline-block;
    border: none;
    background-color: var(--maroon);
    color: var(--custom-yellow);
    text-decoration: none;
    padding: 17px 30px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.link-secondary {
    font-size: 16px;
    color: var(--maroon) !important;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: rgb(90 0 40) !important;
}

.scroll-footer {
    font-size: 16px;
    color: var(--maroon);
}

.floating-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1200;
    width: 94px;
    height: 94px;
    cursor: pointer;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.floating-chat-widget img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vision-section {
    background-color: var(--color-bg);
    padding: 140px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.vision-container {
    max-width: 900px;
    width: 100%;
}

.vision-title {
    font-size: 78px;
    color: var(--custom-yellow);
    letter-spacing: 5px;
    margin-bottom: 40px;
    font-weight: 400;
    text-transform: uppercase;
}

.vision-description {
    font-size: 16px;
    color: var(--custom-yellow);
    line-height: 30px;
    letter-spacing: 0.5px;
    font-weight: 300;
    max-width: 775px;
    margin: 0 auto;
}

.core-description {
    font-size: 16px;
    color: var(--custom-yellow);
    line-height: 30px;
    letter-spacing: 0.5px;
    font-weight: 300;
    max-width: 695px;
    margin: 0 auto;
}

.lives-description {
    font-size: 16px;
    color: var(--custom-yellow);
    line-height: 30px;
    letter-spacing: 0.5px;
    font-weight: 300;
    max-width: 603px;
    margin: 0 auto;
}

.process-section {
    display: flex;
    width: 100%;
}

.process-left {
    flex: 1.2;
    position: relative;
    background-image: url('../image/Testimonials_side_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.process-pill {
    background-color: var(--custom-orange);
    padding: 30px 60px;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.process-pill h2 {
    color: var(--custom-yellow);
    font-size: 78px;
    font-weight: 400;
    height: 65px;
    margin: 0;
    letter-spacing: 2px;
}

.process-right {
    flex: 1;
    background-color: var(--custom-orange);
    color: var(--custom-yellow);
    padding: 80px 6%;
    display: flex;
    align-items: center;
}

.process-content {
    display: flex;
    flex-direction: column;
    gap: clamp(35px, 5vh, 60px);
}

.process-item {
    max-width: 470px;
}

.item-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
}

.number {
    font-size: 16px;
}

.process-item h3 {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Lora', serif;
}

.process-item p {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 300;
}

.edition-faq-section {
    min-height: 100vh;
    background-color: var(--color-bg);
    color: var(--custom-yellow);
    padding: 5% 3% 12% 3%;
    text-align: center;
}

.edition-features {
    margin-bottom: 120px;
    padding: 15% 5% 5% 5%;
}

.edition-title {
    font-size: 78px;
    line-height: 1;
    letter-spacing: 4px;
    font-weight: 400;
    margin-bottom: 80px;
    text-transform: uppercase;
}

.features-flex {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20%;
    row-gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.feature-item {
    font-size: 20px;
    letter-spacing: 0;
    font-weight: 400;
    text-transform: uppercase;
    white-space: nowrap;
}

.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-title {
    font-size: 78px;
    font-weight: 400;
    letter-spacing: 6px;
    margin-bottom: 60px;
}

.faq-list {
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid rgba(245, 215, 196, 0.2);
    padding: 25px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 300;
}

.faq-arrow {
    font-size: 24px;
    font-weight: 300;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.faq-item:hover .faq-arrow {
    transform: translateX(5px);
}

.core-publishing {
    height: 100vh;
    min-height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-light);
    padding: clamp(70px, 8vw, 120px) 5%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.core-container {
    width: 100%;
    display: flex;
    align-items: center;
}

.core-visual {
    flex: 1.2;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.octopus-frame {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    isolation: isolate;
}

.octopus-media {
    display: block;
    width: min(120%, 800px);
    height: auto;
    object-fit: contain;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 100%);
}

.core-content {
    flex: 1;
    min-width: 0;
    text-align: center;
    z-index: 1;
    margin-left: -80px;
}

.core-title {
    font-size: 78px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 5px;
    line-height: 1;
}

.core-subtitle {
    font-size: 24px;
    letter-spacing: 4px;
    font-weight: 300;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.tags-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.service-tag {
    background-color: var(--custom-bg);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 17px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 30px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.service-tag:hover {
    background-color: var(--color-light);
    color: var(--custom-bg);
    transform: translateY(-3px);
}

.extended-services {
    background-color: var(--secondary-bg);
    padding: clamp(70px, 8vw, 120px) 20px;
    position: relative;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.illustration-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/extended_service_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

.extended-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.extended-header {
    margin-bottom: 60px;
}

.extended-header .title {
    font-size: 78px;
    color: var(--custom-bg);
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.extended-header .subtitle {
    font-size: 22px;
    color: var(--custom-bg);
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 300;
}

.services-pill-grid {
    --side-pill-width: 150px;
    --center-pill-width: 200px;
    display: grid;
    grid-template-columns: var(--side-pill-width) var(--center-pill-width) var(--side-pill-width);
    grid-auto-rows: 1fr;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    align-items: stretch;
}

.pill {
    background-color: var(--custom-grey);
    color: var(--secondary-bg);
    width: 100%;
    min-height: 75px;
    box-sizing: border-box;
    padding: 12px 20px;
    border-radius: 60px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.pill span {
    font-size: 16px;
    text-transform: none;
    opacity: 0.8;
}

.pill:hover {
    transform: scale(1.05);
    background-color: var(--custom-bg);
    color: var(--color-light);
}

@media (max-width: 1200px) {
    .hero-container {
        flex-direction: row-reverse;
        padding: 120px 0 0 5%;
        height: 100vh;
    }

    .hero-title {
        font-size: 62px;
    }

    .vision-title {
        font-size: 62px;
    }

    .process-section {
        flex-direction: column;
    }

    .process-left {
        flex: 1 1 100%;
        min-height: 500px;
    }

    .process-pill h2 {
        font-size: 60px;
        height: 52px;
    }

    .edition-title {
        font-size: 62px;
    }

    .faq-title {
        font-size: 62px;
    }

    .core-title {
        font-size: 62px;
    }

    .core-subtitle {
        font-size: 20px;
    }

    .extended-header .title {
        font-size: 62px;
    }
}

@media (max-width: 992px) {
    .illustration-overlay {
        background-image: url('../image/extended_service_tab_bg.png');
    }

    .cta-group {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 80px;
    }

    .hero-right {
        padding-left: 0;
        width: 300px;
    }

    .hero-left {
        flex: 1 1 75%;
    }

    .features-flex {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .core-publishing {
        height: auto;
        min-height: 100svh;
        padding: 90px 24px 80px;
        overflow: hidden;
    }

    .core-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
    }

    /* Makes the heading, artwork and tags individually orderable. */
    .core-content {
        display: contents;
    }

    .core-title {
        grid-row: 1;
        margin: 0;
        text-align: center;
        line-height: 1;
    }

    .core-subtitle {
        grid-row: 2;
        margin: 14px 0 8px;
        text-align: center;
        font-size: clamp(16px, 3vw, 20px);
        line-height: 1.25;
    }

    .core-visual {
        grid-row: 3;
        width: min(100%, 520px);
        min-width: 0;
        margin-top: -18px;
    }

    .octopus-frame,
    .octopus-media {
        width: 100%;
        margin-top: 15px;
    }

    .octopus-media {
        max-height: 520px;
    }

    .extended-header .subtitle {
        font-size: 20px;
    }

    .extended-services {
        height: 100vh;
    }
}

@media (max-width: 768px) {
    .floating-chat-widget {
        width: 65px;
    }

    .hero-container {
        flex-direction: column;
        height: auto;
        padding: 120px 0 0 5%;
    }

    .tree-img {
        max-width: 100%;
        max-height: 100%;
    }

    .hero-right {
        width: auto;
        transform: translate(0px, -110px);
        padding: 5% 5% 5% 0;
    }

    .hero-title {
        font-size: 50px;
    }

    .vision-title {
        font-size: 50px;
    }

    .process-pill h2 {
        font-size: 50px;
        height: 42px;
    }

    .process-left {
        min-height: 400px;
    }

    .edition-title {
        font-size: 50px;
    }

    .feature-item {
        font-size: 18px;
    }

    .faq-title {
        font-size: 50px;
        text-align: left;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-container {
        padding: 0 10%;
    }

    .extended-header .title {
        font-size: 50px;
    }
}

@media (max-width: 576px) {
    .autobiography-hero .tree-img {
        content: url('../image/personal_narrative_inner_mobile_img.png');
    }

    .services-pill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 430px;
        gap: 10px;
    }

    .tree-img {
        max-width: 70%;
    }

    .hero-left {
        flex: 1 1 75%;
        justify-content: end;
    }

    .hero-container {
        padding: 70px 0 0 5%;
    }

    .story-modal__dialog--plans .story-modal__content {
        padding: 86px 60px 55px 30px;
    }
}

@media (max-width: 500px) {
    .illustration-overlay {
        background-image: url('../image/extended_service_mobile_bg.png');
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 14px;
    }

    .vision-title {
        font-size: 36px;
    }

    .vision-description {
        font-size: 14px;
    }

    .hero-right {
        transform: translate(0px, -85px);
    }

    .process-item h3 {
        font-size: 18px;
    }

    .process-item p {
        font-size: 14px;
    }

    .process-pill h2 {
        font-size: 40px;
        height: 32px;
    }

    .process-pill {
        padding: 30px 30px;
    }

    .process-left {
        min-height: 300px;
    }

    .feature-item {
        font-size: 16px;
    }

    .faq-question {
        font-size: 14px;
    }

    .core-publishing {
        padding: 72px 16px 64px;
    }

    .core-title {
        font-size: clamp(38px, 12vw, 52px);
    }

    .core-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .core-visual {
        margin-top: -4px;
    }

    .service-tag {
        font-size: 14px;
    }

    .extended-header .title {
        font-size: 36px;
    }

    .extended-header .subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }
}

@media (max-width: 375px) {
    .pill {
        font-size: 12px;
    }
}