/* css/style.css – 완벽 정리 버전 (2025.11.29 기준 최종) */

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Noto Sans KR', sans-serif; line-height:1.6; color:#333; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }
.container, .inner { width:90%; max-width:1200px; margin:0 auto; }
.inner { display:flex; justify-content:space-between; align-items:center; }

/* ==================== 헤더 ==================== */
header {
    position:fixed; top:0; left:0; width:100%;
    background:rgba(255,255,255,0.95); z-index:1000;
    padding:15px 0; box-shadow:0 2px 15px rgba(0,0,0,0.1);
    backdrop-filter:blur(10px);
}
.logo-img { height:52px; }
nav ul { display:flex; gap:45px; list-style:none; }
nav a { font-weight:600; font-size:1.1rem; color:#222; transition:color .3s; }
nav a:hover { color:#00a2e2; }

/* 상단 히어로 배너 전체 */
#top-hero-banner {
    background: #00a2e2;
    color: white;
    padding: 90px 20px 30px;
    overflow: hidden;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    flex-wrap: wrap;
}

/* 왼쪽 텍스트 */
.hero-text {
    flex: 1;
    min-width: 320px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.hero-text .subtitle {
    font-size: 22px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-call {
    background: #ffffff;
    color: #00a2e2;
    font-size: 22px;
    font-weight: 700;
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.btn-call:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.btn-kakao {
    background: #3d1d1b;
    background: #fee500;
    color: #3d1d1b;
    font-size: 20px;
    font-weight: 700;
    padding: 18px 32px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-kakao::before {
    content: "";
    background: url('https://developers.kakao.com/assets/img/about/logos/kakaotalksharing/kakaotalk_sharing_btn_small.png') no-repeat center/contain;
    width: 24px;
    height: 24px;
}

/* 오른쪽 이미지 영역 – 위치 조정 완료 버전 */
.hero-image {
    flex: 1;
    text-align: center;
    min-width: 320px;
    display: flex;
    justify-content: center;
    align-items: flex-end;        /* 핵심: 아래쪽 정렬 */
    padding-bottom: 30px;         /* 아래쪽에 여유 공간 */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    transform: translateY(40px);   /* 이미지 자체를 아래로 40px 내림 */
    transition: transform 0.6s ease;
}

@media (max-width: 968px) {
    .hero-image {
        align-items: center;        padding-bottom: 0;
    }
    .hero-image img {
        transform: translateY(0);       /* 모바일에선 다시 가운데로 */
    }
}

/* 모바일 반응형 */
@media (max-width: 968px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: 30px;
    }
    
    .hero-text h1 {
        font-size: 38px;
    }
    
    .hero-text .subtitle {
        font-size: 19px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 32px;
    }
    .btn-call, .btn-kakao {
        font-size: 18px;
        padding: 16px 28px;
    }
}

/* ==================== 반응형 ==================== */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction:column;
        text-align:center;
        padding:0 5%;
    }
    .hero-text-area,
    .hero-image-area {
        width:100%;
        padding-left:0 !important;
    }
    .hero-text-area { margin-bottom:60px; }
    .hero-image-area {
        justify-content:center;
        margin-top:40px;
    }
    .main-visual-img { max-width:80%; }
    .text-dots { bottom:50px; }
}

@media (max-width: 768px) {
    nav ul { gap:20px; }
    nav a { font-size:0.95rem; }
    
    .hero-text-area h1 { font-size:3.4rem; }
    .hero-text-area p  { font-size:1.35rem; }
    .hero-text-area .btn { padding:18px 50px; font-size:1.25rem; }
    
    .text-dots {
        bottom:40px;
        gap:12px;
    }
    .text-dots .dot {
        width:9px;
        height:9px;
    }
    .main-visual-img { 
        max-width:90%; 
        border-radius:18px;
    }
}

/* ==================== 회사소개 위에 main.gif 크게 노출 ==================== */
.about-main-gif {
    width: 100%;
    padding: 10px 0 10px;        /* 위아래 여백 (원하시면 숫자 조절 가능) */
    text-align: center;
    background: #ffffff;         /* 기존 회사소개 배경색과 동일 */
}

.about-main-gif img {
    max-width: 720px;            /* PC에서 크게 보임 */
    width: 90%;                  /* 모바일에서도 꽉 차게 */
    display: inline-block;
}

/* 모바일에서도 예쁘게 */
@media (max-width: 768px) {
    .about-main-gif {
        padding: 60px 0 40px;
    }
    .about-main-gif img {
        border-radius: 18px;
    }
}

/* ==================== 상품 이미지 배너 (회사소개 바로 위, 흰 배경) ==================== */
#product-banner {
    background: #ffffff;
    padding: 20px 20px 80px;
    text-align: center;
}

.product-img-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.product-banner-img {
    max-width: 100%;
    width: 100%;
    border-radius: 24px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* 마우스 올리면 살짝 확대 + 그림자 진하게 (생동감) */
.product-banner-img:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(0,0,0,0.18);
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    #product-banner {
        padding: 70px 15px 60px;
    }
    .product-banner-img {
        border-radius: 18px;
    }
}

/* ==================== 푸터 위 카카오 상담 배너 (흰 배경 + 클릭 가능) ==================== */
#kakao-banner {
    background: #ffffff;
    padding: 10px 20px;
    text-align: center;
}

.kakao-link {
    display: inline-block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.kakao-link:hover {
    transform: translateY(-10px) scale(1.02);
}

.kakao-banner-img {
    max-width: 900px;
    width: 92%;
    transition: all 0.3s ease;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    #kakao-banner {
        padding: 60px 15px;
    }
    .kakao-banner-img {
        border-radius: 16px;
        width: 95%;
    }
}

/* 모바일에서만 보이는 하단 고정 전화 배너 */
.mobile-fixed-call-banner {
    display: none; /* 기본 숨김 */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    text-align: center;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    animation: slideUp 0.6s ease-out;
}

.mobile-fixed-call-banner .call-banner-link {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
}

.mobile-fixed-call-banner .call-banner-img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
}

/* 텍스트 버전 사용할 때 */
.mobile-fixed-call-banner .call-text strong {
    color: #ffeb3b;
    font-size: 22px;
}

/* 모바일에서만 보이게 (768px 이하) */
@media (max-width: 768px) {
    .mobile-fixed-call-banner {
        display: block;
    }
    
    /* 푸터와 겹치지 않게 body에 패딩 추가 */
    body {
        padding-bottom: 80px !important;
    }
}

/* iOS 사파리에서 하단 주소창 때문에 가려지는 문제 방지 */
@media (max-width: 768px) and (display-mode: browser) {
    .mobile-fixed-call-banner {
        bottom: env(safe-area-inset-bottom);
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

/* 기존에 .membership-wrap이 있으면 아래 코드로 덮어쓰기 */
.membership-wrap {
    max-width: 1280px;
    margin: 60px auto;           /* 상하 여백 + 가운데 정렬 */
    padding: 0 20px;
    display: flex;               /* 핵심: 좌우 배치 */
    justify-content: center;     /* 가운데 정렬 */
    align-items: center;
    gap: 40px;                   /* 두 이미지 사이 간격 */
    flex-wrap: wrap;             /* 모바일에서 줄바꿈 허용 */
}

.membership-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

/* 모바일에서는 위아래로 쌓이게 */
@media (max-width: 968px) {
    .membership-wrap {
        flex-direction: column;
        gap: 30px;
    }
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;   /* 16:9 비율 유지 */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    margin: 40px 0;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==================== 나머지 섹션 (기존 그대로) ==================== */
#youtube-video { padding:140px 0; background:linear-gradient(135deg,#f8fbff,#e8f4ff); text-align:center; }
#youtube-video .section-title { font-size:3.4rem; font-weight:900; color:#222; margin-bottom:20px; }
#youtube-video .section-subtitle { font-size:1.5rem; color:#555; margin-bottom:70px; line-height:1.7; }

.video-wrapper {
    position:relative;
    max-width:1000px;
    margin:0 auto;
    padding-bottom:56.25%;
    height:0;
    overflow:hidden;
    border-radius:24px;
    box-shadow:0 25px 70px rgba(0,122,245,0.25);
    background:#000;
}
.video-wrapper iframe {
    position:absolute;
    top:0; left:0;
    width:100%; height:100%;
    border:0;
    border-radius:24px;
}

section { padding:120px 0; }
h2 { font-size:3.2rem; text-align:center; margin-bottom:70px; color:#222; font-weight:900; }
#about { background:#f9f9f9; }
.intro-text { font-size:1.45rem; text-align:center; line-height:2.2; color:#555; }

#service .services { display:flex; justify-content:center; gap:50px; flex-wrap:wrap; }
.service-card { width:360px; background:#fff; border-radius:18px; overflow:hidden; box-shadow:0 15px 35px rgba(0,0,0,0.1); transition:transform .4s; }
.service-card:hover { transform:translateY(-20px); }
.card-body { padding:35px; text-align:center; }
.card-body h3 { font-size:1.7rem; margin-bottom:18px; color:#00a2e2; font-weight:700; }

#counsel { background:linear-gradient(135deg,#00a2e2,#005edc); color:#fff; text-align:center; }
#counsel h2 { color:#fff; }
.btn.large { padding:28px 90px; font-size:1.9rem; background:#fff; color:#00a2e2; }
.btn.large:hover { background:#f0f0f0; }

footer { background:#222; color:#ccc; padding:90px 0 50px; font-size:0.95rem; }
.footer-top { display:flex; justify-content:space-between; flex-wrap:wrap; gap:50px; margin-bottom:60px; }
.footer-logo { font-size:2rem; font-weight:900; color:#fff; margin-bottom:12px; }
.footer-links a, .footer-contact a { display:block; margin:10px 0; color:#aaa; }
.tel { font-size:2.4rem; font-weight:900; color:#fff; margin:20px 0; }
.footer-bottom { border-top:1px solid #444; padding-top:30px; text-align:center; color:#888; }

/* 모바일 유튜브 섹션 */
@media (max-width: 768px) {
    #youtube-video { padding:100px 0; }
    #youtube-video .section-title { font-size:2.6rem; }
    #youtube-video .section-subtitle { font-size:1.3rem; margin-bottom:50px; }
    .video-wrapper { border-radius:18px; }
}
