/* =========================================
   1. 폰트 및 기본 설정 (Imports & Variables)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
    /* 브랜드 컬러 정의 */
    --baquero-orange: #F26522;
    --baquero-dark: #2c2c2c;
    --baquero-light: #f8f9fa;
    --text-gray: #666;
}

/* =========================================
   2. 초기화 및 레이아웃 (Reset & Layout)
   ========================================= */
/* html과 body 모두에 가로 스크롤 방지 적용 (모바일 여백 이슈 해결) */
html, body {
    max-width: 100%;
    overflow-x: hidden !important; /* 가로로 넘치는 요소를 강제로 숨김 */
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--baquero-dark);
    line-height: 1.7;
    position: relative; /* AOS 애니메이션 기준점 보정 */
    padding-top: 60px;
}

/* =========================================
   3. 헤더 및 네비게이션 (Header & Nav)
   ========================================= */
.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--baquero-orange) !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s;
}

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

#header-placeholder {
    position: sticky;       /* 스티키 포지션 적용 */
    position: -webkit-sticky; /* 사파리 브라우저 호환 */
    top: 0;                 /* 최상단에 고정 */
    z-index: 1020;          /* 다른 요소들보다 위에 오도록 설정 (부트스트랩 기준) */
    width: 100%;            /* 가로 꽉 채우기 */
    background-color: white; /* 스크롤 시 본문 내용이 비치지 않도록 배경색 지정 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* 살짝 그림자를 주어 헤더 구분감 주기 */
}
/* =========================================
   4. 공통 UI 컴포넌트 (Components)
   ========================================= */
/* [버튼] 기본 스타일 */
.btn-baquero {
    background-color: var(--baquero-orange);
    color: white;
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3);
}

.btn-baquero:hover {
    background-color: #d95316;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 101, 34, 0.4);
    color: white;
}

/* [카드] 기능/혜택 카드 스타일 */
.feature-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s;
    background: white;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* [아이콘] 원형 아이콘 박스 */
.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(242, 101, 34, 0.1);
    color: var(--baquero-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   5. 섹션별 스타일 (Sections)
   ========================================= */
/* [히어로 섹션] 메인 배너 */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 650px;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3), rgba(0,0,0,0.2));
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* [섹션 공통] 여백 및 타이틀 */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--baquero-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

/* =========================================
   6. 유틸리티 (Utilities)
   ========================================= */
/* 이미지 라운드 처리 */
.img-rounded-custom {
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* =========================================
   7. 플로팅 UI (Floating Button)
   ========================================= */
/* 우측 하단 고정 버튼 */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999; /* 최상단 노출 */
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--baquero-orange);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.4);
    transition: all 0.3s ease;
    animation: floatUp 1s ease-out forwards; /* 등장 애니메이션 */
}

.floating-cta:hover {
    background-color: #d95316;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(242, 101, 34, 0.6);
}

/* 모바일 반응형 조절 */
@media (max-width: 768px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* 등장 키프레임 애니메이션 */
@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}