﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Noto Sans KR", sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    color: #fff;
    transition: background 0.3s, color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 100px;
}

@media (max-width: 768px) {
    header {
        padding: 14px 40px;
    }

        header h1 {
            font-size: 1.4rem !important;
        }
}


header h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

    header h1 a {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s;
    }

        header h1 a:hover {
            text-decoration: none;
        }

nav {
    display: flex;
    gap: 20px;
}

    nav a {
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.2s;
        font-size: 1.0rem;
    }

        nav a:hover {
            color: #cce0ff;
        }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
}

    .hamburger span {
        height: 3px;
        background: #fff;
        margin: 3px 0;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
/* 헤더 스크롤 시 색상 전환 */
header.scrolled {
    background: #111;
    color: #fff;
}

    header.scrolled nav a, header.scrolled h1 a {
        color: #fff;
    }

        header.scrolled nav a:hover {
            color: #cce0ff;
        }

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: -250px;
        background: #111;
        flex-direction: column;
        width: 250px;
        height: 100vh;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 20px;
        padding-top: 100px;
        padding-left: 30px;
        opacity: 0;
        transition: right 0.4s ease, opacity 0.4s ease;
    }

        nav.active {
            right: 0;
            opacity: 1;
        }

    .hamburger {
        display: flex;
    }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw; /* 화면 전체 너비 */
    min-width: 100vw;
    max-width: 100vw;
    min-height: 70vh;
    background: url('/img/building.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    flex-direction: column;
    margin-top: 0;
    padding: 0;
}

    .hero::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(0,24,56,0.65) 0%, rgba(0,0,0,0.2) 70%, rgba(0,0,0,0) 100%);
        z-index: 1;
    }

    .hero h1, .hero p {
        position: relative;
        z-index: 2;
    }

    .hero h1 {
        font-size: 3rem;
        background-color: rgba(0, 0, 0, 0.4);
        padding: 20px;
        border-radius: 10px;
    }

@media (max-width: 768px) {
    .hero h1 {
        margin: 0 15px;
    }
}

.hero p {
    margin-top: 15px;
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 10px;
}

section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

    section h2 {
        text-align: center;
        margin-bottom: 30px;
        font-size: 2.1rem;
        color: #004d99;
        font-weight: 800;
    }


.marketing-section {
    position: relative;
    overflow: hidden;
}

    .marketing-section::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
    }

.marketing-inner {
    position: relative;
    z-index: 2; /* 내용이 반투명 레이어 위에 표시 */
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 30px;
    text-align: center;
}

.marketing-section h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 70px;
}

.marketing-section .highlight {
    background: linear-gradient(120deg,#ffef9f 0%,#ffe066 100%);
    color: #222;
    padding: 4px 8px;
    border-radius: 4px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: left;
}

    .step-card.reverse {
        flex-direction: row-reverse;
        text-align: right;
    }

.step-illu {
    flex: 1 1 300px;
    max-width: 360px;
}

    .step-illu img {
        width: 100%;
        height: auto;
    }

.step-text {
    flex: 1 1 320px;
    max-width: 480px;
}

.step-index {
    color: #ffb84d;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.step-text .desc {
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .step-card,
    .step-card.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .step-text {
        text-align: center;
    }
}

.about-part {
    background-color: #FFF1DB;
}

#about {
    /* background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);*/

    padding: 90px 25px 100px;
    text-align: center;
    overflow: hidden;
}

    #about h2 {
        font-size: 2.1rem;
        color: #004d99;
        font-weight: 800;
        margin-bottom: 15px;
    }

.about-sub {
    font-size: 1.1rem;
    color: #44506d;
    margin-bottom: 45px;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
}

.about-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(35px);
}

    .about-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .about-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 14px 30px rgba(0,0,0,0.08);
    }

    .about-card .icon {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        margin: 0 auto 20px auto;
        background: linear-gradient(135deg, #4f91ff, #0f4ebf);
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .about-card .icon svg {
            width: 42px;
            height: 42px;
            fill: #fff;
        }

    .about-card h3 {
        font-size: 1.25rem;
        color: #0d3d90;
        margin-bottom: 10px;
    }

    .about-card p {
        font-size: 0.97rem;
        color: #3c4770;
        line-height: 1.7;
    }

/* --- Animation Trigger --- */
[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s ease;
}

    [data-animate="fade-up"].visible {
        opacity: 1;
        transform: translateY(0);
    }
/* ==== 브랜딩 소개 섹션 ==== */

#branding {
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(68, 138, 255, 0.06);
    padding: 60px 25px;
    margin: 60px auto;
    max-width: 1000px;
}

    #branding h2 {
        text-align: center;
        color: #12539e;
        margin-bottom: 35px;
        letter-spacing: 1px;
    }

.branding-hero {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #1d2a5d;
}

    .branding-hero .withup {
        color: #1750c7;
        font-weight: 700;
    }

.branding-desc {
    text-align: center;
    color: #2a3556;
    font-size: 1.1rem;
    line-height: 1.7;
}

    .branding-desc .withup {
        color: #1750c7;
        font-weight: bold;
    }

    .branding-desc .highlight {
        background: linear-gradient(110deg, #e6f0ff 60%, #eef5fc 100%);
        color: #1750c7;
        padding: 2px 7px;
        border-radius: 6px;
    }

    .branding-desc .subdesc {
        margin-top: 15px;
        font-style: italic;
        font-size: 1rem;
        color: #334166;
    }

/* === 브랜딩 갤러리 오버레이 스타일 (고정 표시 버전) === */
.branding-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin-top: 35px;
}

.branding-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

    .branding-item img {
        width: 100%;
        height: 300px; /* 더 크게 표시 */
        object-fit: cover; /* 사진 꽉 차게 */
        display: block;
        transition: transform 0.5s ease;
    }

    .branding-item:hover img {
        transform: scale(1.03);
    }

/* 항상 표시되는 오버레이 텍스트 */
.branding-text {
    position: absolute;
    bottom: 18px;
    left: 18px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 3px 8px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.35);
    padding: 8px 16px;
    border-radius: 8px;
    letter-spacing: -0.3px;
}

/* 스크롤 페이드업 */
[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s ease;
}

    [data-animate="fade-up"].visible {
        opacity: 1;
        transform: translateY(0);
    }

.service-part {
    position: relative;
    background: url('/img/hero2.jpg') no-repeat center center / cover;
    color: #fff; /* 예시 텍스트 대비 */
    overflow: hidden; /* 가상요소가 범위를 벗어나지 않게 */
}

    /* 🔹 배경 위 투명 레이어를 씌워 opacity 효과만 주기 */
    .service-part::before {
        content: "";
        position: absolute;
        inset: 0; /* top, right, bottom, left: 0 */
        background: rgba(0, 0, 0, 0.4); /* 검정 반투명 (opacity≈40%) */
        z-index: 1;
    }

    /* 🔹 실제 내용은 그 위에 오게 */
    .service-part > * {
        position: relative;
        z-index: 2;
    }

.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
    margin: 0 auto;
    max-width: 1080px;
}

@media (max-width: 900px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
}



.service-cards .card {
    background: linear-gradient(145deg,#ffffff,#f6f9ff);
    border: 1px solid rgba(0,77,153,0.1);
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 260px;
    box-shadow: 0 6px 16px rgba(0,77,153,0.05);
    position: relative;
    overflow: hidden;
    /* 🔹 더 빠르고 튀는 애니메이션 */
    animation: bounceCard 1.5s ease-in-out infinite;
}

    /* 카드별 시차 */
    .service-cards .card:nth-child(2) {
        animation-delay: 0.3s;
    }

    .service-cards .card:nth-child(3) {
        animation-delay: 0.6s;
    }

    .service-cards .card:nth-child(4) {
        animation-delay: 0.9s;
    }

    /* 이미지도 살짝 튀게 */
    .service-cards .card img {
        width: 90px;
        margin-bottom: 18px;
        border-radius: 12px;
        box-shadow: 0 6px 12px rgba(0,77,153,0.05);
        animation: pulseImg 1.5s ease-in-out infinite;
    }

/* === Keyframes === */
@keyframes bounceCard {
    0%,100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(4px);
    }

    75% {
        transform: translateY(-6px);
    }
}

@keyframes pulseImg {
    0%,100% {
        transform: scale(1);
    }

    25%,75% {
        transform: scale(1.08);
    }

    50% {
        transform: scale(0.95);
    }
}

.service-cards .card ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0 0;
    text-align: left;
    font-size: 1.08rem;
}

    .service-cards .card ul li {
        position: relative;
        padding-left: 20px;
        margin-bottom: 8px;
        color: #2a3557;
        font-weight: 400;
    }

        .service-cards .card ul li::before {
            content: "✔";
            color: #448aff;
            font-size: 0.95em;
            position: absolute;
            left: 0;
            top: 1.2px;
        }

.service-cards .card img {
    display: block;
    margin: 0 auto 16px auto;
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(68,138,255,0.05);
}

.service-cards .card h3 {
    margin-bottom: 8px;
    color: #12539e;
    letter-spacing: -1px;
}

.card {
    flex: 1 1 250px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

    .card:hover {
        transform: translateY(-5px);
    }

.gallery {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

    .gallery h2 {
        text-align: center;
        margin-bottom: 10px;
        color: #004d99;
    }

.gallery-desc {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

    .gallery-grid img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 10px;
        cursor: pointer;
        transition: transform 0.3s, box-shadow 0.3s;
        border: 2px solid #eee;
    }

        .gallery-grid img:hover {
            transform: scale(1.03);
            box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        }

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.samplegallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.samplegallery-grid a {
    display: block; /* 수정: a를 인라인에서 block으로 바꿈 */
    height: 100%;   /* 선택사항: 세로도 꽉 채우려면 */
}

.samplegallery-grid img {
    width: 100%;   
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #eee;
}

.samplegallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .samplegallery-grid {
        /*grid-template-columns: repeat(2, 1fr);*/
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-content {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

#caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ccc;
    font-size: 1rem;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

    .close:hover {
        color: #bbb;
    }

#map-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

    #map-section h2 {
        text-align: center;
        margin-bottom: 10px;
        color: #004d99;
    }

/* === Floating KakaoTalk Button === */
.kakao-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fae100;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.3s;
}

    .kakao-float img,
    .kakao-float svg {
        width: 32px;
        height: 32px;
        transition: transform 0.3s;
    }

    .kakao-float:hover {
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    }

        .kakao-float:hover img,
        .kakao-float:hover svg {
            transform: scale(1.08);
        }

@media (max-width: 768px) {
    .kakao-float {
        right: 20px;
        bottom: 20px;
        width: 52px;
        height: 52px;
    }

        .kakao-float img, .kakao-float svg {
            width: 28px;
            height: 28px;
        }

    .footer-links {
        display: none !important;
    }
}

/* === 고정 전화 버튼 === */
.phone-float {
    position: fixed;
    bottom: 100px; /* ✅  카카오톡 버튼보다 약간 위 */
    right: 26px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366; /* 녹색 계열, 원하시면 색 변경 (#007aff 등) */
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.3s;
}

    .phone-float:hover {
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    }

    .phone-float svg {
        width: 32px;
        height: 32px;
        transition: transform 0.3s;
    }

    .phone-float:hover svg {
        transform: scale(1.08);
    }

@media (max-width: 768px) {
    .phone-float {
        bottom: 90px; /* 모바일에서도 조금 위로 */
        right: 20px;
        width: 52px;
        height: 52px;
    }

        .phone-float svg {
            width: 28px;
            height: 28px;
        }
}

footer {
    background: linear-gradient(160deg, #333 0%, #111 100%);
    color: #fff;
    padding: 40px 25px 20px 25px;
    font-size: 0.95rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto 25px auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 25px;
}

.footer-logo h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.footer-logo p {
    color: #cfe4ff;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-info p {
    margin: 5px 0;
    color: #e5ecfa;
    font-size: 0.9rem;
}

.footer-info strong {
    color: #a8cbff;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .footer-links a {
        color: #cfe4ff;
        text-decoration: none;
        font-size: 0.95rem;
        transition: color 0.2s ease;
    }

        .footer-links a:hover {
            color: #fff;
            text-decoration: underline;
        }

.footer-bottom {
    text-align: center;
    color: #cfe4ff;
    font-size: 0.85rem;
    margin-top: 15px;
}

    .footer-bottom strong {
        color: #fff;
    }
