/* =========================================
   transactology.xyz - Evolved Minimal Transaction Garden
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.85;
    color: #5A4A3A;
    background-color: #FFFFFF;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    color: #3A1A08;
    letter-spacing: 0.02em;
}

/* --- Parallax Background Layers --- */
.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.pattern-svg {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    opacity: 1;
}

.parallax-celtic .pattern-svg {
    top: 5vh;
    right: 5vw;
}

.parallax-islamic .pattern-svg {
    top: 110vh;
    left: 10vw;
}

.parallax-wave .pattern-svg {
    top: 220vh;
    right: 8vw;
}

.parallax-african .pattern-svg {
    top: 320vh;
    left: 15vw;
}

/* --- Sections --- */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
}

.section-content {
    max-width: 560px;
    padding: 3rem 2rem;
}

.section-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-left {
    margin-left: 8vw;
    margin-right: auto;
    background-color: #F5E8D8;
    border-radius: 6px;
}

.section-right {
    margin-left: auto;
    margin-right: 8vw;
    background-color: #F5E8D8;
    border-radius: 6px;
}

/* --- Hero Section --- */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-family: 'Jost', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 600;
    color: #3A1A08;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #5A4A3A;
    margin-top: 1rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* --- Section Titles --- */
.section-title {
    font-family: 'Jost', sans-serif;
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 600;
    color: #3A1A08;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

/* --- Section Text --- */
.section-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    color: #5A4A3A;
    margin-bottom: 1.2rem;
}

.section-text:last-child {
    margin-bottom: 0;
}

/* --- Closing Section --- */
.closing-title {
    font-family: 'Jost', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #3A1A08;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.closing-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    color: #A06030;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* --- Illustrations --- */
.illustration {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.illustration svg {
    width: 240px;
    height: auto;
}

.illustration-balance svg {
    width: 280px;
}

.illustration-ledger svg {
    width: 220px;
}

/* --- Accent Highlights --- */
.section-flow .section-title {
    color: #3A1A08;
}

.section-flow .section-text strong,
.section-flow .accent {
    color: #C87040;
}

/* --- Burnt orange underline accent for section titles --- */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: #C87040;
    margin-top: 0.75rem;
}

.section-right .section-title::after {
    margin-left: auto;
    margin-right: 0;
}

.section-left .section-title::after {
    margin-left: 0;
    margin-right: auto;
}

.section-center .section-title::after,
.section-center .closing-title::after {
    margin-left: auto;
    margin-right: auto;
}

.closing-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #C87040;
    margin-top: 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* --- Content fade-in on scroll --- */
.section-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero always visible immediately */
.section-hero .section-content {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section-left,
    .section-right {
        margin-left: 5vw;
        margin-right: 5vw;
    }

    .section-content {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .illustration svg {
        width: 200px;
    }

    .illustration-balance svg {
        width: 240px;
    }

    .pattern-svg {
        width: 80vw;
        height: 80vw;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    .section-content {
        padding: 1.5rem 1rem;
    }
}
