/* =========================================================
   다드림 배달대행 서비스 - Renewal Stylesheet
   Base font & reset
========================================================= */
:root{
    --color-primary: #1a4fd6;
    --color-secondary: #e8305a;
    --color-accent: #32bedc;
    --color-dark: #16181d;
    --color-navy: #12213f;
    --color-bg-soft: #e9f5f8;
    --color-text: #333;
    --color-text-light: #6b7280;
    --max-width: 1024px;
    --header-height: 84px;
}

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

html{ scroll-behavior: smooth; }

body{
    font-family: 'Noto Sans KR', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

a{ text-decoration: none; color: inherit; }
ul{ list-style: none; }
img{ max-width: 100%; display: block; }
button{ font-family: inherit; cursor: pointer; }

.inside{
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section{ padding: 90px 0; }

.section-head{ text-align: center; margin-bottom: 50px; }
.section-title{
    font-size: 34px;
    font-weight: 900;
    color: var(--color-navy);
    letter-spacing: -0.5px;
}
.section-title.light{ color: #fff; }
.section-sub{
    margin-top: 14px;
    font-size: 16px;
    color: var(--color-text-light);
}

/* =========================================================
   Buttons
========================================================= */
.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-primary{
    background: var(--color-secondary);
    color: #fff;
}
.btn-primary:hover{ background: #c92049; transform: translateY(-2px); }

.btn-outline{
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.8);
}
.btn-outline:hover{ background: rgba(255,255,255,0.15); transform: translateY(-2px); }

.btn-white{
    background: #fff;
    color: var(--color-navy);
    font-size: 16px;
    padding: 16px 32px;
}
.btn-white i{ color: var(--color-accent); font-size: 20px; }
.btn-white:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }

.btn-kakao{
    background: #FEE500;
    color: #191919;
    width: 100%;
    margin-top: 22px;
    font-size: 16px;
    padding: 16px 20px;
}
.btn-kakao:hover{ background: #f5d500; transform: translateY(-2px); }

/* =========================================================
   Header
========================================================= */
.site-header{
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    z-index: 1000;
}
.header-inner{
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}
.logo-link{
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img-full{
    height: 40px;
    width: auto;
    object-fit: contain;
}

.gnb ul{
    display: flex;
    gap: 40px;
}
.gnb .nav-link{
    font-size: 15px;
    font-weight: 700;
    color: var(--color-navy);
    position: relative;
    padding: 6px 0;
}
.gnb .nav-link::after{
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.25s ease;
}
.gnb .nav-link:hover::after{ width: 100%; }

.menu-toggle{
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
}
.menu-toggle span{
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-navy);
    transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2){ opacity: 0; }
.menu-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero Section
========================================================= */
.hero-section{
    position: relative;
    min-height: 640px;
    height: 88vh;
    max-height: 780px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}
.hero-bg{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}
.hero-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232,48,90,0.72) 0%, rgba(18,33,63,0.78) 55%, rgba(26,79,214,0.8) 100%);
}
.hero-content{
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 24px;
}
.hero-eyebrow{
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 18px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 999px;
    margin-bottom: 22px;
    letter-spacing: 1px;
}
.hero-title{
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero-desc{
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 36px;
    opacity: 0.95;
}
.hero-btns{
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.mobile-only{ display: none; }

/* =========================================================
   Intro / Service cards
========================================================= */
.intro-section{ background: #f7fafc; }

.card-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card{
    background: #fff;
    border-radius: 20px;
    padding: 36px 30px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(18,33,63,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(18,33,63,0.14);
}
.card-img{
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1/1;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.card-title{
    font-size: 19px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 12px;
}
.card-desc{
    font-size: 14.5px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* =========================================================
   Program Section (운영 프로그램 설치)
========================================================= */
.program-section{
    background: #f7fafc;
    padding: 0 0 90px;
}

/* ---- 상단 배너 (전체 배경이미지) ---- */
.program-banner{
    position: relative;
    background-color: #12213f;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    margin-bottom: 64px;
    overflow: hidden;
}
.program-banner-deco{
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(18,33,63,0.92) 0%, rgba(18,33,63,0.72) 40%, rgba(26,79,214,0.55) 75%, rgba(31,143,201,0.45) 100%);
    pointer-events: none;
}
.program-banner-inside{
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.program-banner-text{
    flex: none;
    max-width: 620px;
    text-align: center;
}
.program-eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.3);
    margin-bottom: 20px;
}
.program-eyebrow i{ color: var(--color-accent); }
.program-title{
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.25;
}
.program-desc{
    font-size: 16.5px;
    margin-top: 18px;
    opacity: 0.92;
    line-height: 1.6;
}
.program-badge-row{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}
.program-badge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(4px);
}
.program-badge i{ color: var(--color-accent); }

/* ---- 다운로드 그룹 ---- */
.program-download-inside{ padding-top: 0; }

.download-group{ margin-bottom: 46px; }

.download-group-title{
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 21px;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 2px solid #eef1f5;
}
.download-group-title-text{
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.3;
}
.download-group-title-text small{
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
    letter-spacing: 0;
}
.download-group-icon{
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.download-group-icon.pc{ background: linear-gradient(135deg, #ef4166 0%, #c92049 100%); }
.download-group-icon.mobile{ background: linear-gradient(135deg, #34c2e0 0%, #1f8fc9 100%); }

.download-btn-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.download-btn-grid.three-col{
    grid-template-columns: repeat(3, 1fr);
}
.download-btn-grid.four-col{
    grid-template-columns: repeat(4, 1fr);
}
.download-btn-grid.four-col .download-btn{
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 18px;
}
.download-btn-grid.four-col .download-btn-label{
    width: 100%;
    justify-content: center;
}

.download-btn{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px;
    border-radius: 16px;
    color: #fff;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(18,33,63,0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.download-btn::after{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 40%);
    pointer-events: none;
}
.download-btn.pc{
    background: linear-gradient(135deg, #f0567a 0%, #c92049 100%);
}
.download-btn.mobile{
    background: linear-gradient(135deg, #3fcbe8 0%, #1f8fc9 100%);
}
.download-btn:hover{
    transform: translateY(-5px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.2);
}
.download-btn-tag{
    font-size: 16.5px;
    font-weight: 800;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.download-btn-tag.has-sub{
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.download-btn-tag-sub{
    font-size: 12.5px;
    font-weight: 600;
    opacity: 0.85;
    white-space: nowrap;
}
.download-btn-tag::before{
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.85;
}
.download-btn-label{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--color-navy);
    font-size: 13.5px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 999px;
    white-space: nowrap;
}
.download-btn.pc .download-btn-label i{ color: var(--color-secondary); }
.download-btn.mobile .download-btn-label i{ color: var(--color-accent); }

/* ---- 설치 유의사항 ---- */
.install-notice{
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #fffaf0 0%, #fff3d9 100%);
    border: 1px solid #ffe3a3;
    border-radius: 18px;
    padding: 28px 30px;
    margin-top: 14px;
    box-shadow: 0 8px 20px rgba(255,201,60,0.12);
}
.install-notice-icon{
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd166 0%, #ffb238 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(255,178,56,0.35);
}
.install-notice-text h4{
    font-size: 17px;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 10px;
}
.install-notice-text ul{ list-style: none; }
.install-notice-text li{
    font-size: 14.5px;
    color: var(--color-text);
    line-height: 1.8;
    position: relative;
    padding-left: 14px;
}
.install-notice-text li::before{
    content: '-';
    position: absolute;
    left: 0;
    color: var(--color-text-light);
}

/* =========================================================
   Contact Section
========================================================= */
.contact-section{ background: #f7fafc; }

.contact-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.kakao-box, .map-box{
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.kakao-box{
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.kakao-icon{
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #FEE500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #191919;
    margin-bottom: 20px;
}
.kakao-box h3, .map-box h3{
    font-size: 20px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 12px;
}
.kakao-box p{
    color: var(--color-text-light);
    font-size: 15px;
    margin-bottom: 6px;
}
.contact-info-list{
    margin-top: 26px;
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: left;
}
.contact-info-list li{
    font-size: 14.5px;
    color: var(--color-text);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.contact-info-list i{
    color: var(--color-secondary);
    width: 16px;
    margin-top: 3px;
}

.map-box{ display: flex; flex-direction: column; }
.map-frame{
    width: 100%;
    flex: 1;
    min-height: 260px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
}
.map-frame iframe{ width: 100%; height: 100%; min-height: 260px; }
.map-address{
    font-size: 14.5px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.map-address i{ color: var(--color-secondary); }

/* =========================================================
   Footer
========================================================= */
.site-footer{
    background: var(--color-dark);
    color: #a9adb5;
    padding: 46px 0;
}
.site-footer .inside{
    display: flex;
    align-items: center;
    gap: 28px;
}
.footer-logo{
    width: auto;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}
.footer-text p{
    font-size: 13px;
    line-height: 1.9;
}
.footer-text .copyright{
    margin-top: 6px;
    color: #6c7178;
}

/* =========================================================
   Floating Kakao Button
========================================================= */
.floating-kakao{
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #FEE500;
    color: #191919;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 900;
    transition: transform 0.25s ease;
}
.floating-kakao:hover{ transform: scale(1.08); }

/* =========================================================
   Responsive - Tablet
========================================================= */
@media (max-width: 1024px){
    .inside{ padding: 0 20px; }

    .download-btn-grid.four-col{
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   Responsive - Mobile
========================================================= */
@media (max-width: 767px){
    :root{ --header-height: 64px; }

    .logo-img-full{ height: 30px; }

    .gnb{
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0;
        background: #fff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    }
    .gnb.open{ max-height: 320px; }
    .gnb ul{
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    .gnb .nav-link{
        display: block;
        padding: 16px 24px;
        border-bottom: 1px solid #f0f0f0;
    }
    .gnb .nav-link::after{ display: none; }

    .menu-toggle{ display: flex; }

    .section{ padding: 60px 0; }
    .section-title{ font-size: 26px; }
    .section-sub{ font-size: 14.5px; }

    .hero-section{ min-height: 520px; height: 78vh; max-height: 640px; text-align: center; }
    .hero-title{ font-size: 30px; }
    .hero-desc{ font-size: 15px; }
    .hero-btns{ flex-direction: column; align-items: stretch; }
    .hero-btns .btn{ width: 100%; }
    .mobile-only{ display: inline; }

    .card-grid{
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .card-img{ max-width: 220px; margin-left: auto; margin-right: auto; }

    .program-section{ padding-bottom: 60px; }

    .program-banner{ padding: 48px 0 52px; margin-bottom: 40px; }
    .program-banner-inside{
        text-align: center;
        padding: 0 10px;
    }
    .program-eyebrow{ font-size: 12px; }
    .program-title{ font-size: 27px; }
    .program-desc{ font-size: 13.5px; white-space: normal; padding: 0 4px; }
    .program-badge-row{ justify-content: center; }
    .program-badge{ font-size: 12.5px; padding: 8px 12px; }

    .download-group{ margin-bottom: 34px; }
    .download-group-title{ font-size: 18px; padding-bottom: 14px; margin-bottom: 20px; }
    .download-group-icon{ width: 42px; height: 42px; font-size: 17px; border-radius: 12px; }
    .download-group-title-text small{ font-size: 12px; }

    .download-btn-grid,
    .download-btn-grid.three-col,
    .download-btn-grid.four-col{
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .download-btn{
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 20px;
    }
    .download-btn-label{ width: 100%; justify-content: center; }

    .install-notice{
        flex-direction: column;
        padding: 22px 20px;
    }

    .contact-grid{
        grid-template-columns: 1fr;
    }
    .kakao-box, .map-box{ padding: 28px 22px; }

    .site-footer .inside{
        flex-direction: column;
        text-align: center;
    }

    .floating-kakao{
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

@media (max-width: 380px){
    .hero-title{ font-size: 26px; }
}
