/* =========================================
   1. 기본 설정 및 변수 (Variables & Reset)
   ========================================= */
:root {
    /* 컬러 팔레트 */
    --primary-color: #1A374D;       /* 딥 네이비 */
    --secondary-color: #406882;     /* 중간 블루 */
    --accent-color: #FFB72B;        /* 머스터드 옐로우 */
    --text-color: #333333;          /* 기본 텍스트 */
    --light-gray: #F5F7FA;          /* 배경용 연회색 */
    --white: #FFFFFF;
    --border-color: #E0E0E0;

    /* 폰트 및 사이즈 */
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    word-break: keep-all;
}

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

ul {
    list-style: none;
}

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

/* =========================================
   2. 유틸리티 클래스 (Utilities)
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-lg {
    padding: 15px 32px;
    font-size: 1.1rem;
}

.text-white {
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header p {
    font-size: 1.1rem;
    color: #bbbbbbad;
}

.text-white .section-header p {
    color: rgba(255,255,255, 0.8);
}

/* =========================================
   4. 히어로 섹션 (Hero)
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('./img/main.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 55, 77, 0.1), rgba(26, 55, 77, 0.2));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 3.9rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -2px;
}

.hero-title .highlight {
    color: var(--accent-color);
}

.hero-desc {
    font-size: 1.29rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* =========================================
   5. 특징 섹션 (Features)
   ========================================= */
#about {
        background-color: var(--white);
}
#about .container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    grid-gap: 96px;
}


   .features {
    background-color: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.feature-card .icon-box {
    width: 80px;
    height: 80px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.feature-card .icon-box i {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* =========================================
   6. 서비스 섹션 (Services)
   ========================================= */
.services {
    background-color: var(--primary-color);
}

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

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    width: 40%;
    position: relative;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-info {
    width: 60%;
    padding: 30px;
}

.service-icon {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.service-icon svg {
    width: 34px;      
    height: 34px;    
    stroke-width: 1.5; 
}
.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-list {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.service-list li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.service-list li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 8px;
}

/* =========================================
   7. 프로세스 섹션 (Process)
   ========================================= */
.process {
    background-color: var(--light-gray);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-num {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 auto 20px;
}

.step h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.step-line {
    flex-grow: 1;
    height: 3px;
    background-color: #ddd;
    margin-top: 30px;
}

/* =========================================
   8. 컨택 섹션 (Contact)
   ========================================= */
.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-sub {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.info-item p {
    color: #555;
    font-size: 1.05rem;
}

.phone-number {
    font-size: 1.8rem !important;
    font-weight: 800;
    color: var(--accent-color) !important;
}

.contact-map {
    flex: 1;
    height: 400px;
    background-color: #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
}

.map-overlay i {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}


/* =========================================
   10. 반응형 및 기타 (Responsive)
   ========================================= */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: transform 0.3s;
    animation: pulse 2s infinite;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn i {
    width: 28px;
    height: 28px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 183, 43, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 183, 43, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 183, 43, 0); }
}

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
    .container { max-width: 960px; }
    .hero-title { font-size: 2.8rem; }
    .service-grid { gap: 20px; }
    .service-info { padding: 20px; }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
    
    .hero { height: 100vh; }
    .hero-title { font-size: 2.45rem; }
    #about .container {
    display: grid;
    grid-template-columns:  1fr;
    grid-gap: 46px;
}
 
    .feature-grid, .service-grid {
        grid-template-columns: 1fr;
    }

    .hero-desc {
        font-size: 1.2em;
    }

    .btn-primary {
        font-size: 14px;
    }
    .btn-outline {
        display: none;
    }

    .section-padding {
        padding: 65px 0;
    }
    
    .service-card {
        flex-direction: column;
    }
    .service-img { width: 100%; height: 200px; }
    .service-info { width: 100%; }

    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .step-line { display: none; }
    
    .contact-container {
        flex-direction: column;
    }
}