/* ============================================
   Bravely Go 랜딩페이지 - CSS
   Design by PRD v1.0
   ============================================ */

/* ============================================
   1. CSS Variables & Reset
   ============================================ */

:root {
    /* Colors - Primary */
    --color-white: #FFFFFF;
    --color-warm-gray: #F8F9FA;
    --color-navy: #2C3E50;
    --color-sage-green: #95A5A6;
    
    /* Colors - Accent */
    --color-gold: #F39C12;
    --color-blue: #3498DB;
    --color-kakao: #FEE500;
    --color-instagram-start: #E4405F;
    --color-instagram-end: #833AB4;
    
    /* Typography */
    --font-korean: 'Noto Sans KR', sans-serif;
    --font-english: 'Inter', sans-serif;
    
    /* Font Sizes */
    --fs-h1-desktop: 48px;
    --fs-h1-mobile: 32px;
    --fs-h2-desktop: 36px;
    --fs-h2-mobile: 28px;
    --fs-h3-desktop: 24px;
    --fs-h3-mobile: 20px;
    --fs-body-desktop: 16px;
    --fs-body-mobile: 14px;
    
    /* Spacing */
    --section-padding: 80px;
    --section-padding-mobile: 60px;
    --container-max-width: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-header: 1000;
    --z-mobile-menu: 999;
    --z-modal: 2000;
    --z-scroll-top: 100;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-korean);
    color: var(--color-navy);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   2. Utilities
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 80px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

.section-title {
    font-size: var(--fs-h2-desktop);
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;
    color: var(--color-navy);
    position: relative;
}

/* Maple Leaf Decoration - 실제 이미지 사용 */
.maple-leaf {
    display: inline-block;
    width: 120px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.25;
    position: absolute;
    animation: float 4s ease-in-out infinite;
}

.maple-leaf--1 {
    background-image: url('/photo/2026-02-22-22-40-54_001.png');
}

.maple-leaf--2 {
    background-image: url('/photo/2026-02-22-22-40-54_002.png');
}

.maple-leaf--large {
    width: 150px;
    height: 150px;
    opacity: 0.2;
}

.maple-leaf--medium {
    width: 100px;
    height: 100px;
    opacity: 0.22;
}

.maple-leaf--light {
    opacity: 0.15;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(var(--rotate-start, 0deg));
    }
    50% {
        transform: translateY(-15px) rotate(calc(var(--rotate-start, 0deg) + 8deg));
    }
    100% {
        transform: translateY(0) rotate(var(--rotate-start, 0deg));
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: var(--fs-h2-mobile);
        margin-bottom: 48px;
    }
    
    /* 모바일에서 메이플 리프 조정 */
    .maple-leaf {
        width: 70px !important;
        height: 70px !important;
        opacity: 0.15 !important;
    }
    
    .maple-leaf--large {
        width: 90px !important;
        height: 90px !important;
        opacity: 0.12 !important;
    }
    
    .maple-leaf--medium {
        width: 60px !important;
        height: 60px !important;
        opacity: 0.15 !important;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 28px;
    font-weight: 600;
    font-size: var(--fs-body-desktop);
    transition: all var(--transition-normal);
    text-align: center;
}

.btn--large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn--primary {
    background: var(--color-blue);
    color: var(--color-white);
}

.btn--primary:hover {
    background: #2980B9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: var(--color-gold);
    color: var(--color-white);
}

.btn--secondary:hover {
    background: #E67E22;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--instagram-header {
    background: var(--color-instagram-start);
    color: var(--color-white);
    padding: 12px 24px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.btn--instagram-header:hover {
    background: var(--color-instagram-end);
    transform: translateY(-2px);
}

.btn--instagram-header svg {
    flex-shrink: 0;
}

.btn--instagram-large {
    background: linear-gradient(135deg, var(--color-instagram-start), var(--color-instagram-end));
    color: var(--color-white);
    padding: 18px 40px;
    font-size: 18px;
}

.btn--instagram-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.4s;
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   3. Header
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-header);
    transition: all var(--transition-normal);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header__logo {
    height: 50px;
}

.header__logo img {
    height: 100%;
    width: auto;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
}

.logo-image {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.header__nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-navy);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-blue);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--color-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    transition: all var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--color-white);
    z-index: var(--z-mobile-menu);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    gap: 24px;
}

.mobile-menu__link {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-navy);
    padding: 16px;
    border-bottom: 1px solid var(--color-warm-gray);
}

.mobile-menu__link--instagram {
    color: var(--color-instagram-start);
    font-weight: 600;
}

@media (max-width: 768px) {
    .header__nav,
    .btn--instagram-header {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
}

/* ============================================
   4. Hero Section
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero__content {
    text-align: center;
    color: var(--color-white);
    z-index: 1;
    padding: 20px;
}

.hero__title {
    font-size: var(--fs-h1-desktop);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }
    
    .hero__title {
        font-size: var(--fs-h1-mobile);
    }
    
    .hero__subtitle {
        font-size: 16px;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn--large {
        width: 100%;
        max-width: 300px;
    }
}

/* ============================================
   5. About Section
   ============================================ */

.about {
    padding: var(--section-padding) 0;
    background: var(--color-warm-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.feature-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.feature-card__title {
    font-size: var(--fs-h3-desktop);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-navy);
}

.feature-card__description {
    font-size: var(--fs-body-desktop);
    color: var(--color-sage-green);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about {
        padding: var(--section-padding-mobile) 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-card__title {
        font-size: var(--fs-h3-mobile);
    }
    
    .feature-card__description {
        font-size: var(--fs-body-mobile);
    }
}

/* ============================================
   6. Programs Section
   ============================================ */

.programs {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.program-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.program-item {
    display: flex;
    gap: 48px;
    align-items: center;
}

.program-item--reverse {
    flex-direction: row-reverse;
}

.program-item__image {
    flex: 0 0 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.program-item__image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.program-item:hover .program-item__image img {
    transform: scale(1.05);
}

.program-item__content {
    flex: 1;
}

.program-item__title {
    font-size: var(--fs-h3-desktop);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-navy);
}

.program-item__description {
    font-size: var(--fs-body-desktop);
    color: var(--color-sage-green);
    line-height: 1.8;
}

@media (max-width: 1024px) {
    .program-item__image {
        flex: 0 0 300px;
    }
    
    .program-item__image img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .programs {
        padding: var(--section-padding-mobile) 0;
    }
    
    .program-list {
        gap: 60px;
    }
    
    .program-item,
    .program-item--reverse {
        flex-direction: column;
    }
    
    .program-item__image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .program-item__image img {
        height: 200px;
    }
    
    .program-item__title {
        font-size: var(--fs-h3-mobile);
    }
    
    .program-item__description {
        font-size: var(--fs-body-mobile);
    }
}

/* ============================================
   7. Gallery Section
   ============================================ */

.gallery {
    padding: var(--section-padding) 0;
    background: var(--color-warm-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item__button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--color-white);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.gallery-item__button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gallery__cta {
    text-align: center;
}

@media (max-width: 768px) {
    .gallery {
        padding: var(--section-padding-mobile) 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ============================================
   8. Gallery Modal
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal__nav--prev {
    left: 24px;
}

.modal__nav--next {
    right: 24px;
}

.modal__content {
    max-width: 90%;
    max-height: 90%;
}

.modal__image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

@media (max-width: 768px) {
    .modal__nav {
        width: 40px;
        height: 40px;
    }
    
    .modal__nav--prev {
        left: 12px;
    }
    
    .modal__nav--next {
        right: 12px;
    }
}

/* ============================================
   9. Contact Section
   ============================================ */

.contact {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.contact__subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--color-sage-green);
    margin-bottom: 48px;
}

.contact__buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.contact-card {
    background: var(--color-white);
    padding: 48px 40px;
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.contact-card--kakao {
    background: var(--color-kakao);
    color: var(--color-navy);
}

.contact-card--kakao:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.contact-card--instagram {
    background: linear-gradient(135deg, var(--color-instagram-start), var(--color-instagram-end));
    color: var(--color-white);
}

.contact-card--instagram:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.contact-card__icon {
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.contact-card__title {
    font-size: 24px;
    font-weight: 700;
}

.contact-card__description {
    font-size: 16px;
    opacity: 0.9;
}

.contact__info {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    text-align: center;
}

.contact__info-item {
    font-size: 14px;
    color: var(--color-sage-green);
}

.contact__info-item strong {
    color: var(--color-navy);
    font-weight: 600;
}

@media (max-width: 768px) {
    .contact {
        padding: var(--section-padding-mobile) 0;
    }
    
    .contact__buttons {
        grid-template-columns: 1fr;
    }
    
    .contact__info {
        flex-direction: column;
        gap: 16px;
    }
}

/* ============================================
   10. Footer
   ============================================ */

.footer {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 60px 0;
    position: relative;
    overflow: visible;
}

/* 섹션들의 overflow 설정 */
.about,
.programs,
.gallery,
.contact {
    position: relative;
    overflow: visible;
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.footer__logo-image {
    height: 40px;
    width: auto;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
}

.footer__text {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}

.footer__sns {
    display: flex;
    gap: 24px;
}

.footer__sns-link {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer__sns-link:hover {
    opacity: 1;
}

.footer__copyright {
    font-size: 12px;
    opacity: 0.6;
}

/* ============================================
   11. Scroll to Top Button
   ============================================ */

.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--color-blue);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-scroll-top);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--color-gold);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }
}
