/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&family=IBM+Plex+Sans+KR:wght@300;400&display=swap');

:root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'IBM Plex Sans KR', sans-serif;
    --color-text: #2c2c2c;
    --color-background: #fdfdfc;
    --color-accent: #f4f1ea;
    --color-text-subtle: #757575;
}

/* Basic Reset and Smooth Scrolling */
html {
    scroll-behavior: smooth;
    font-size: 100%; /* 1rem = 16px */
}

body {
    margin: 0;
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.8;
}

main {
    display: block; /* For older browsers */
}

/* Default Section Structure */
.section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    padding: 8.75rem 2.5rem; /* 140px 40px */
    overflow: hidden;
}

.content-wrapper {
    max-width: 68.75rem; /* 1100px */
    width: 100%;
    z-index: 2;
}

.video-background, .image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

/* Section 1: Hero */
#hero .content-wrapper { color: white; }
#hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 5.5vw, 3.8rem);
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 1.875rem; /* 30px */
}
#hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    letter-spacing: 1px;
}

/* Section 2: Philosophy */
#philosophy { background-color: var(--color-accent); }
#philosophy p {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    line-height: 1.8;
    max-width: 46.875rem; /* 750px */
    margin: 1rem auto;
}
#philosophy strong {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
}

/* Section 3 (영상): Origin */
#origin .content-wrapper { color: white; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
#origin p {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    line-height: 1.8;
    font-weight: 400;
}

/* Section 4 (이미지): Essence */
#essence {
    padding: 0;
    min-height: 100vh;
    display: flex;
}
.two-column-layout {
    display: flex;
    width: 100%;
    align-items: stretch;
}
.text-column {
    flex-basis: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    box-sizing: border-box;
    padding: 5%;
}
.image-column {
    flex-basis: 50%;
    position: relative;
}
.image-column img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.text-column-content {
    max-width: 28.125rem; /* 450px */
}
.text-column h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 1.5rem; /* 25px */
}
.text-column p {
     font-size: clamp(1rem, 2.5vw, 1.1rem);
     line-height: 1.9;
     margin-bottom: 1.2em;
}

/* Section 5: Promise */
#promise { background-color: var(--color-accent); }
#promise h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.0rem, 5vw, 2.8rem);
    line-height: 1.6;
    margin-bottom: 2.5rem; /* 40px */
}
#promise img {
    max-width: 11.25rem; /* 180px */
    height: auto;
    margin-top: 1.25rem; /* 20px */
}

/* Footer */
footer {
    padding: 3.125rem 1.25rem; /* 50px 20px */
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-subtle);
    background-color: var(--color-background);
}

/* Fade-in Animation on Scroll */
.content-wrapper > *, .text-column-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    transition-delay: 0.2s;
}
.section.visible .content-wrapper > *,
.section.visible .text-column-content > * {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================= */
/* == RESPONSIVE DESIGN (TABLET & UP) == */
/* ======================================= */
@media (max-width: 768px) {
    .section {
        padding: 6.25rem 1.5rem; /* 100px 25px */
        min-height: auto; /* Allow sections to shrink on mobile */
    }

    #essence {
        min-height: auto;
    }
    .two-column-layout {
        flex-direction: column;
    }
    .text-column {
        text-align: center;
        padding: 6.25rem 1.5rem; /* 100px 25px */
        flex-basis: auto;
    }
    .image-column {
        position: static;
        flex-basis: auto;
    }
    .image-column img {
        position: static;
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 4 / 5;
        object-fit: cover;
    }
    .text-column-content {
        text-align: center;
    }

    footer {
        font-size: 0.8rem;
    }
}

/* ======================================= */
/* == RESPONSIVE DESIGN (SMALL MOBILE) == */
/* ======================================= */
@media (max-width: 480px) {
    html {
        font-size: 95%; /* Adjust base font size */
    }

    .section {
        padding: 4rem 1.5rem;
    }

    #hero h1 {
        font-size: clamp(2.2rem, 10vw, 2.6rem);
    }

    #philosophy p {
        font-size: clamp(1.1rem, 4.5vw, 1.2rem);
    }

    .text-column {
        padding: 4rem 1.5rem;
    }

    #promise h2 {
        font-size: clamp(1.4rem, 5.5vw, 1.8rem);
        line-height: 1.5;
    }
}
