@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");
@import url("https://cdn.jsdelivr.net/npm/remixicon@4.1.0/fonts/remixicon.css");

/* =========================================
   Reset & Global (Minimal)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background: #ffffff;
    color: #111827;
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: -0.025em;
}

ul, ol, li { list-style: none; }
a { text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
button { background: none; border: none; cursor: pointer; font-family: inherit; }
img { width: 100%; height: 100%; object-fit: cover; vertical-align: middle; }
input, textarea, select { font-family: inherit; outline: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

/* Line Break Utilities */
.pc_br { display: inline; }
.m_br { display: none; }

@media (max-width: 1024px) {
    .pc_br { display: none; }
    .m_br { display: inline; }
}

/* Animations */
[data-aos] { opacity: 0; transform: translateY(30px); transition: 1s cubic-bezier(0.215, 0.61, 0.355, 1); }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

/* =========================================
   1. Header Component
   ========================================= */
.header-wrap {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 80px;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-wrap.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-inner {
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-list { display: flex; height: 100%; gap: 50px; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; cursor: pointer; }

.nav-link {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: #0050bb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover .nav-link { color: #0050bb; }
.nav-item:hover .nav-link::after { width: 100%; }

/* Dropdown */
.dropdown-box {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border-radius: 16px;
    padding: 16px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.nav-item:hover .dropdown-box {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
    color: #4b5563;
    font-weight: 500;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.dropdown-link:hover {
    background: #f3f4f6;
    color: #0050bb;
}

.mobile-menu-btn { display: none; font-size: 28px; cursor: pointer; color: #111827; }

@media (max-width: 1024px) {
    .nav-list { display: none; }
    .mobile-menu-btn { display: block; }
    .header-wrap { height: 60px; }

    .header-logo-img { height: 35px; }
}

/* =========================================
   Mobile Menu (Hamburger)
   ========================================= */
.gnb-mo-wrap {
    position: fixed;
    top: 0; right: -100%; /* Hidden by default */
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.gnb-mo-wrap.active {
    right: 0; /* Slide in */
}

.gnb-mo-header {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #eee;
}

.mo-logo img { height: 30px; width: auto; }

.btn-mo-close {
    font-size: 28px;
    color: #111;
    padding: 5px;
}

.gnb-mo-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.gnb-mo-list > li {
    border-bottom: 1px solid #f9fafb;
}

/* Main Menu Items */
.gnb-mo-list > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 10px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.gnb-mo-list > li > a i {
    transition: transform 0.3s;
    color: #999;
}

/* Accordion Active State */
.gnb-mo-list > li.on > a {
    color: #0050bb;
}
.gnb-mo-list > li.on > a i {
    transform: rotate(180deg);
    color: #0050bb;
}

/* Sub Menu (Accordion Config) */
.gnb-mo-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #f8f9fa;
    border-radius: 8px;
}

.gnb-mo-list > li.on .gnb-mo-sub {
    max-height: 500px; /* Arbitrary large height for expansion */
    margin-bottom: 10px;
}

.gnb-mo-sub li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    color: #555;
    font-weight: 500;
}
.gnb-mo-sub li a:hover {
    color: #0050bb;
    background: #eff6ff;
}

.gnb-mo-footer {
    padding: 20px;
    background: #f1f5f9;
    text-align: center;
}
.gnb-mo-footer p { font-size: 14px; color: #666; }
.gnb-mo-footer p strong { color: #0050bb; font-size: 18px; display: block; margin-top: 5px; }

/* =========================================
   2. Hero Slider Component
   ========================================= */
.hero-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 1;
}

.hero-bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.hero-slide.active .hero-bg-img {
    transform: scale(1);
}

/* Hero Background Images */
.hero-bg-1 { background-image: url('/img/main_slide/m1.webp'); }
.hero-bg-2 { background-image: url('/img/main_slide/m2.webp'); }
.hero-bg-3 { background-image: url('/img/main_slide/m3.webp'); }

.hero-slide.active { opacity: 1; z-index: 2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)); z-index: 3; }

.hero-content {
    position: relative; z-index: 5;
    max-width: 1320px; height: 100%; margin: 0 auto; padding: 0 24px;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    color: #fff;
}

.hero-category {
    display: inline-block;
    font-size: 22px; /* Tiny label, keeping small */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0fa7ff;
    margin-bottom:5px;
    position: relative;
}



/* Hero Title - PC: 30px */
.hero-title {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 22px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Hero Desc - PC: 20px (Body) */
.hero-desc {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 56px;
    max-width: 600px;
}

.hero-btn {
    background: #0050bb; color: #fff;
    font-size: 18px; font-weight: 700;
    padding: 18px 48px; border-radius: 9999px;
    display: inline-flex; align-items: center; gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0, 80, 187, 0.4);
}
.hero-btn:hover { background: #fff; color: #0050bb; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 80, 187, 0.5); }

.slide-controls {
    position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 20px; z-index: 10;
}

.control-dot {
    width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative;
}
.control-dot::after {
    content: ''; position: absolute; top: -5px; left: -5px; bottom: -5px; right: -5px;
    border: 1px solid transparent; border-radius: 50%; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.control-dot.active { background: #fff; }
.control-dot.active::after { border-color: #fff; transform: scale(1.5); }

/* Responsive Fonts (70-80%) */
@media (max-width: 1024px) {
    .hero-category { font-size: 16px; }
    .hero-title { font-size: 24px; } /* ~80% of 30px */
    .hero-desc { font-size: 16px; }  /* ~80% of 20px */
    .hero-btn { padding: 16px 36px; font-size: 16px; }
}
@media (max-width: 768px) {
    .hero-wrap { height: 60vh; min-height: 500px; }
    .hero-category { font-size: 12px; }
    .hero-title { font-size: 26px; margin-bottom: 10px;} /* ~73% */
    .hero-desc { font-size: 15px; margin-bottom: 20px; } /* ~75% */
    .hero-btn { width: auto; justify-content: center; font-size: 14px; padding: 12px 15px; }
    .slide-controls { bottom: 30px; }
}

/* =========================================
   3. Project Section
   ========================================= */
.project-wrap { padding: 120px 0; background: #ffffff; }
.project-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.project-header { text-align: center; margin-bottom: 60px; }

.project-badge {
    display: inline-block; background: rgba(0, 80, 187, 0.1); color: #0050bb;
    font-size: 14px; font-weight: 700; padding: 8px 20px; border-radius: 30px; margin-bottom: 20px;
}

/* Project Title - PC: 30px */
/* Project Title - PC: 30px */
.project-title { font-size: 30px; font-weight: 700; color: #111827; margin-bottom: 20px; }

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

.project-card {
    position: relative; height: 480px; border-radius: 24px;
    overflow: hidden; cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

.project-img-box { width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.project-card:hover .project-img-box { transform: scale(1.1); }

.project-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 50px 30px; color: #fff;
    transform: translateY(20px); opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover .project-info { transform: translateY(0); opacity: 1; }

.project-cat { font-size: 12px; font-weight: 600; color: #0050bb; margin-bottom: 0px; text-transform: uppercase; letter-spacing: 2px;}

/* Project Name (Subtitle) - PC: 24px */
.project-name { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 0px; }

/* Project Desc - PC: 16px */
.project-desc {
    font-size: 18px; color: rgba(255, 255, 255, 0.9);
    line-height: 1.6; font-weight: 400;
}

@media (max-width: 1024px) {
    .project-wrap { padding: 80px 0; }
    .project-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .project-card { height: 400px; }

    /* Responsive Fonts */
    .project-title { font-size: 24px; }
    .project-name { font-size: 20px; }
    .project-desc { font-size: 15px; }
}
@media (max-width: 600px) {
    .project-grid { grid-template-columns: 1fr; }
    .project-title { font-size: 22px; }
}

/* =========================================
   4. Solution Intro Component
   ========================================= */
.intro-wrap { padding: 120px 0; background:url("/img/md.webp") no-repeat; position: relative; overflow: hidden; background-size: cover; background-position: center center; }
.intro-inner {
    max-width: 1320px; margin: 0 auto; padding: 0 24px 80px;
    display: flex; align-items: center; gap: 60px;
}

.intro-text-box { flex: 1; }

/* Intro Title - PC: 30px */
/* Intro Title - PC: 30px */
.intro-title { font-size: 36px; font-weight: 700; color: #111827; margin-bottom: 20px; }
.intro-title span { color: #0050bb; position: relative; display: inline-block; }
.intro-title span::after {
    content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 8px;
    background: rgba(0, 80, 187, 0.15); z-index: -1;
}

/* Intro Desc - PC: 20px */
/* Intro Desc - PC: 18px */
.intro-desc { font-size: 18px; color: #303030; margin-bottom: 48px; line-height: 1.7; }

.intro-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 40px; background: transparent; color: #111827;
    border: 1px solid #111827; border-radius: 9999px; font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.intro-btn:hover { background: #111827; color: #fff; transform: translateY(-2px); }

.intro-img-box { flex: 1; display: flex; justify-content: flex-end; }
.intro-main-img {
    max-height: 550px; width: auto; object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    transition: transform 0.5s ease;
}
.intro-main-img:hover { transform: translateY(-10px); }

.intro-grid { display: grid; grid-template-columns: repeat(4, 1fr); height: 300px; }
.intro-grid-item { overflow: hidden; height: 100%; position: relative; }
.intro-grid-img { transition: transform 0.8s; width: 100%; height: 100%; object-fit: cover; }
.intro-grid-item:hover .intro-grid-img { transform: scale(1.1); }

@media (max-width: 1024px) {
    .intro-wrap { padding: 40px 0 160px; background:url("/img/m_md.jpg") no-repeat; position: relative; overflow: hidden; background-size: cover; background-position: center center; }
    .intro-inner { flex-direction: column; text-align: center; }
    .intro-img-box { justify-content: center; margin-top: 20px; }

    /* Responsive Fonts */
    .intro-title { font-size: 22px; margin-bottom: 10px; }
    .intro-desc { font-size: 15px; margin-bottom: 10px; }

    .intro-grid { grid-template-columns: repeat(2, 1fr); height: auto; }
    .intro-grid-item { height: 250px; }

    .intro-btn { padding: 6px 20px; font-size: 14px; }
}

/* =========================================
   5. Service List Component
   ========================================= */
.service-wrap { padding: 120px 0; background: #ffffff; }
.service-inner { max-width: 1024px; margin: 0 auto; padding: 0 24px; }

.service-header { text-align: center; margin-bottom: 20px; }

/* Service Title - PC: 30px */
.service-title { font-size: 36px; font-weight: 700; margin-bottom: 0px; color: #111827; }
.service-title span { color: #0050bb; }

/* Service Subtitle - PC: 24px */
.service-sub { font-size: 20px; color: #9ca3af; letter-spacing: 3px; font-weight: 600; }

.service-list { display: flex; flex-direction: column; gap: 30px; }

.service-item {
    position: relative; height: 300px; border-radius: 16px;
    overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    cursor: pointer;
}

.service-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: transform 0.8s; }
.service-item:hover .service-bg { transform: scale(1.1); }

.overlay-black {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.9) 100%);
    z-index: 2;
}

.service-content {
    position: absolute; right: 0; top: 0; height: 100%; width: 50%;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
    padding-right: 60px; z-index: 3; color: #fff; text-align: right;
}

.service-eng { font-size: 12px; opacity: 0.8; letter-spacing: 2px; text-transform: uppercase; margin-bottom:0; }

/* Service Name (Subtitle style) - PC: 24px */
.service-name {
    font-size: 38px; font-weight: 700; margin-bottom: 0;
    transform: translateX(0); transition: transform 0.3s;
    color: #ffffff;
}

.service-desc-brief {
    margin-bottom: 20px; font-size: 16px; opacity: 0.9; color: #fff;
}

.service-btn {
    padding: 12px 30px; border: 1px solid rgba(255,255,255,0.6); color: #fff;
    border-radius: 9999px; font-size: 14px; font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-item:hover .service-name { transform: translateX(-10px); }
.service-item:hover .service-btn { background: #fff; color: #111827; border-color: #fff; }

@media (max-width: 1024px) {
    .service-wrap { padding: 80px 0; }
    /* Responsive Fonts */
    .service-title { font-size: 24px; }
    .service-sub { font-size: 18px; }
    .service-name { font-size: 24px; }
    .service-desc-brief { font-size: 15px; margin-bottom: 10px; }
    .overlay-black {background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 80%, rgba(0,0,0,0.8) 100%);
}
}

@media (max-width: 768px) {
    .service-content { width: 100%; align-items: center; text-align: center; padding: 0 20px; background: rgba(0,0,0,0.4); align-items: center; justify-content: center; }
    .service-item:hover .service-name { transform: translateX(0); }
    .service-title { font-size: 22px; }
    .service-item { height: 250px; }
    .overlay-mask { display: none; }
    .service-btn { padding: 6px 20px; font-size: 14px; }
}

/* =========================================
   6. Solutions (Features) Component
   ========================================= */
.feature-wrap {
    position: relative; padding: 120px 0; background: #002256; color: #fff; overflow: hidden;
}
.feature-bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.15; filter: grayscale(100%);
    background: url('/img/icon_bg.webp') center/cover;
}
.feature-inner { position: relative; z-index: 10; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.feature-header { text-align: center; margin-bottom: 60px; }

/* Feature Title - PC: 30px */
/* Feature Title - PC: 30px */
.feature-title { font-size: 30px; font-weight: 700; margin-bottom: 20px; }

/* Feature Desc - PC: 20px */
/* Feature Desc - PC: 18px */
.feature-desc { font-size: 18px; color: #cbd5e1; max-width: 700px; margin: 0 auto; }

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

.feature-item {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px);
    padding: 40px 24px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-item:hover {
    background: rgba(255, 255, 255, 0.1); transform: translateY(-10px); border-color: rgba(255, 255, 255, 0.3);
}

.icon-box {
    width: 80px; height: 80px; margin: 0 auto 24px;
    background: rgba(0, 80, 187, 0.5); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: #fff; margin-bottom: 24px;
}

/* Feature Name (Subtitle) - PC: 24px */
.feature-name { font-size: 24px; font-weight: 700; margin-bottom: 12px; color: #fff; }

/* Feature Text (Body) - PC: 20px */
/* Feature Text (Body) - PC: 16px */
.feature-text { font-size: 16px; color: #cfd8e3; line-height: 1.6; word-break: keep-all; }

@media (max-width: 1024px) {
    .feature-wrap { padding: 80px 0; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    /* Responsive Fonts */
    .feature-title { font-size: 24px; }
    .feature-desc { font-size: 15px; }
    .feature-name { font-size: 20px; }
    .feature-text { font-size: 15px; }
}
@media (max-width: 600px) {
    .feature-grid { grid-template-columns: 1fr; }
    .feature-title { font-size: 22px; }
}

/* =========================================
   7. Why CareOne Component
   ========================================= */
.why-wrap { padding: 120px 0; background: #f3f4f6; }
.why-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: flex; gap: 80px; }
.why-left { width: 35%; position: sticky; top: 120px; height: fit-content; }

/* Why Title - PC: 30px */
/* Why Title - PC: 30px */
.why-title { font-size: 30px; font-weight: 700; margin-bottom: 20px; color: #111827; }
.why-title span { color: #0050bb; }

/* Why Desc - PC: 20px */
/* Why Desc - PC: 18px */
.why-desc { font-size: 18px; color: #4b5563; margin-bottom: 40px; }

.why-btn {
    background: #0050bb; color: #fff; padding: 16px 40px;
    border-radius: 9999px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 80, 187, 0.3); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.why-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 80, 187, 0.4); }

.why-right { width: 65%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.why-card {
    background: #fff; border-radius: 15px; padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid transparent;
}
.why-card:hover {
    transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border-color: rgba(0, 80, 187, 0.1);
}

.why-img-box { height: 220px; border-radius: 10px; overflow: hidden; margin-bottom: 24px; }
.why-img-box img { transition: transform 0.5s; }
.why-card:hover .why-img-box img { transform: scale(1.1); }

/* Why Card Title (Subtitle) - PC: 24px */
.why-card-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; color: #111827; }

/* Why Card Text (Body) - PC: 20px */
/* Why Card Text (Body) - PC: 16px */
.why-card-text { font-size: 16px; color: #4b5563; line-height: 1.6; }

/* Before/After Overlay */
.ba-container { position: relative; width: 100%; height: 100%; display: flex; }
.ba-half { width: 50%; height: 100%; position: relative; overflow: hidden; }
.ba-half.left { border-right: 2px solid #fff; }
.ba-half img { width: 200%; height: 100%; object-fit: cover; }
.ba-half.left img { transform: translateX(0); }
.ba-half.right img { transform: translateX(-50%); }

.ba-label {
    position: absolute; bottom: 12px;
    font-size: 11px; font-weight: 700; color: #fff;
    padding: 4px 10px; border-radius: 4px; text-transform: uppercase;
}
.ba-label.before { left: 12px; background: rgba(0,0,0,0.7); }
.ba-label.after { right: 12px; background: #0050bb; }

@media (max-width: 1024px) {
    .why-wrap { padding: 80px 0; }
    .why-inner { flex-direction: column; }
    .why-left { width: 100%; position: static; text-align: center; margin-bottom: 40px; }
    .why-right { width: 100%; }
    .why-btn { margin: 0 auto; }

    /* Responsive Fonts */
    .why-title { font-size: 24px; }
    .why-desc { font-size: 15px; }
    .why-card-title { font-size: 20px; }
    .why-card-text { font-size: 15px; }
}
@media (max-width: 600px) {
    .why-right { grid-template-columns: 1fr; }
    .why-title { font-size: 22px; }
}

/* =========================================
   7-1. Construction Gallery Component
   ========================================= */
.gallery-wrap { padding: 120px 0; background: #ffffff; overflow: hidden; }
.gallery-inner { max-width: 100%; padding: 0; } /* Full width for slider */
.gallery-header { text-align: center; margin-bottom: 60px; padding: 0 24px; }

/* Gallery Title - PC: 30px */
/* Gallery Title - PC: 30px */
.gallery-title { font-size: 30px; font-weight: 700; margin-bottom: 20px; color: #111827; }
.gallery-title span { color: #0050bb; }

/* Gallery Desc - PC: 20px */
/* Gallery Desc - PC: 18px */
.gallery-desc { font-size: 18px; color: #6b7280; }

.gallery-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0; /* Space for shadow */
}

.gallery-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    gap: 24px;
    padding-left: 24px; /* Initial offset */
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50%)); } /* Moves 50% because we will duplicate the list */
}

.gallery-slide-item {
    width: 380px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: transform 0.3s;
}

.gallery-slide-item:hover {
    transform: translateY(-5px);
}

.gallery-slide-img-box {
    height: 260px;
    width: 100%;
    overflow: hidden;
}

.gallery-slide-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-slide-item:hover .gallery-slide-img {
    transform: scale(1.1);
}

.gallery-slide-txt {
    padding: 24px;
    border: 1px solid #f3f4f6;
    border-top: none;
    border-radius: 0 0 16px 16px;
}

.gallery-slide-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-slide-date {
    font-size: 14px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 1024px) {
    .gallery-wrap { padding: 80px 0; }
    .gallery-title { font-size: 24px; }
    .gallery-desc { font-size: 15px; }
    .gallery-slide-item { width: 320px; }
    .gallery-slide-img-box { height: 220px; }

    /* Header Margin Optimization */
    .gallery-header, .project-header, .feature-header { margin-bottom: 30px; }
    .partners-header { margin-bottom: 20px; }
}

@media (max-width: 768px) {
    .gallery-title { font-size: 22px; }
    .gallery-slide-item { width: 280px; }
    .gallery-slide-img-box { height: 200px; }
}

/* =========================================
   7-2. Partners Component
   ========================================= */
.partners-wrap { padding: 120px 0; background: #f9fafb; }
.partners-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.partners-header { text-align: center; margin-bottom: 30px; }
.partners-title { font-size: 30px; font-weight: 700; color: #111827; }

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.partner-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.3s;
}

.partner-item:hover {
    border-color: #0050bb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.partner-item img {
    width: 70%;
    object-fit: contain;
    transition: all 0.3s;
}

.partner-item:hover img {
    width: 100%;
    height: 100%;
    opacity: 1;
}

@media (max-width: 1024px) {
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
    .partners-title { font-size: 24px; }
}

@media (max-width: 640px) {
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-item { height: 80px; }
}

/* =========================================
   8. Online Consultation Component
   ========================================= */
.consult-wrap {
    position: relative; padding: 120px 0; background: #111; color: #fff;
    min-height: 100vh; display: flex; align-items: center;
}
.consult-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('/img/online_bg.webp') center/cover;
    opacity: 0.2;
}
.consult-inner {
    position: relative; z-index: 5; max-width: 1320px; width: 100%;
    margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: center; align-items: center; gap: 80px;
}

.consult-form-box {
    width: 550px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 48px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.form-header { text-align: center; margin-bottom: 32px; }

/* Form Title - PC: 30px */
.form-title { font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 8px; }

/* Form Subtitle (Body) - PC: 24px (Subtitle) */
/* Form Subtitle (Body) - PC: 18px (Subtitle) */
.form-subtitle { font-size: 18px; color: #9ca3af; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.input-field, .textarea-field {
    width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px; border-radius: 8px; color: #fff; font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.input-field:focus, .textarea-field:focus { border-color: #0050bb; background: rgba(0, 0, 0, 0.5); }
.textarea-field { height: 140px; resize: none; margin-bottom: 24px; }

.submit-btn {
    width: 100%; padding: 18px; background: #0050bb; color: #fff;
    font-weight: 700; font-size: 16px; border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.submit-btn:hover { background: #fff; color: #0050bb; }

.form-check {
    display: flex; justify-content: center; align-items: center;
    margin-top: 20px; font-size: 13px; color: #9ca3af;
}
.form-check input { margin-right: 8px; accent-color: #0050bb; }

.consult-info-box { color: #fff; }
.info-top-text { font-size: 28px; color: #3d91ff; font-weight: 700; margin-bottom:0px; letter-spacing: 1px; }


/* Info Main Title - PC: 30px */
/* Info Main Title - PC: 30px */
.info-main-title { font-size: 30px; font-weight: 700; margin-bottom: 40px; line-height: 1.2; }

.info-label { font-size: 32px; color: #ffffff; font-weight: 700; margin-bottom:0px; padding:0;}

.info-tel { font-size: 64px; font-weight: 800; color: #fff; margin-bottom: 20px; }

.contact-row { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.contact-tag {
    width: 140px; text-align: center; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50px;
    font-size:22px; font-weight: 600; color: rgba(255,255,255,0.8);
}
.contact-val { font-size: 22px; font-weight: 500; }
.contact-val-addr { font-size: 22px; font-weight: 500; }

@media (max-width: 1024px) {
    .consult-wrap { padding: 80px 0; }
    .consult-inner { flex-direction: column; gap: 60px; }
    .consult-form-box { width: 100%; max-width: 600px; padding: 32px; }
    .consult-info-box { text-align: center; }
    .contact-row { justify-content: center; }

    /* Responsive Fonts */
    .form-title, .info-main-title { font-size: 24px; }
    .form-subtitle { font-size: 15px; }
    .info-tel { font-size: 48px; }
}

/* =========================================
   9. Footer Component
   ========================================= */
.footer-wrap { background: #0f172a; color: #94a3b8; padding: 80px 0 30px; border-top: 1px solid rgba(255,255,255,0.05); }

.footer-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.footer-top {
    display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 60px;
    margin-bottom: 60px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ft-logo {
    width: 200px;
    margin-bottom: 20px;
}
.ft-logo img {
    width: 100%;
}

/* Ft Desc (Body) - PC: 20px */
.ft-desc { font-size: 14px; line-height: 1.7; }

.ft-cs-area h4, .ft-menu-area h4 { color: #fff; font-size: 18px; margin-bottom: 24px; }
.ft-tel { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.ft-contact-detail { margin-top: 20px; font-size: 15px; }

/* Ft Links (Body) - PC: 20px */
.ft-links li { margin-bottom: 12px; }
.ft-links a { font-size: 16px; transition: color 0.2s; }
.ft-links a:hover { color: #fff; text-decoration: underline; }

.footer-btm {
    display: flex; justify-content: space-between; align-items: flex-end; font-size: 14px;
}
.ft-info span { margin-right: 15px; display: inline-block; margin-bottom: 5px; }
.ft-copy { margin-top: 15px; font-weight: 500; color: #64748b; }

@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-btm { flex-direction: column; align-items: flex-start; gap: 20px; }
    .ft-tel { font-size: 28px; }

    /* Responsive Fonts */
    .ft-desc { font-size: 16px; }
    .ft-links a { font-size: 16px; }
}

/* =========================================
   10. Mobile Navigation (Overlay & Menu)
   ========================================= */
.mobile-nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }

.mobile-nav-container {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100%;
    background: #ffffff;
    z-index: 1200;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.mobile-nav-container.active { right: 0; }

.mobile-nav-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px; border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-title { font-size: 20px; font-weight: 800; color: #111827; letter-spacing: 1px; }

.mobile-nav-close { font-size: 28px; color: #111827; transition: transform 0.3s; }
.mobile-nav-close:hover { transform: rotate(90deg); color: #0050bb; }

.mobile-nav-list {
    flex: 1; overflow-y: auto; padding: 24px 0;
}

.mobile-nav-item { border-bottom: 1px solid #f9fafb; border-color: #f3f4f6; }
.mobile-nav-item:last-child { border-bottom: none; }

.mobile-link-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 24px; cursor: pointer;
    transition: background 0.2s;
}
.mobile-link-header:hover { background: #f9fafb; }

.mobile-link-text { font-size: 18px; font-weight: 600; color: #111827; }

.mobile-arrow {
    font-size: 24px; color: #9ca3af; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.active .mobile-arrow { transform: rotate(180deg); color: #0050bb; }
.active .mobile-link-text { color: #0050bb; }

/* Submenu Accordion */
.mobile-submenu {
    max-height: 0; overflow: hidden;
    background: #f9fafb;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-submenu li { border-bottom: 1px solid #f3f4f6; }
.mobile-submenu li:last-child { border-bottom: none; }

.mobile-sublink {
    display: block; padding: 14px 24px 14px 40px;
    font-size: 15px; color: #4b5563; font-weight: 500;
    transition: all 0.2s;
}
/* =========================================
   11. Quick Menu & Quote Modal
   ========================================= */
.quick-menu-wrap {
    position: fixed; bottom: 20%; right: 0;
    display: flex; flex-direction: column; gap: 0;
    z-index: 990;
    box-shadow: -4px 4px 10px rgba(0,0,0,0.1);
    background: #fff;
}

.quick-btn {
    width: 55px; height: 55px; border-radius: 0;
    background: #0050bb; color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; font-size: 24px; text-decoration: none;
    box-shadow: none;
}
.quick-btn:hover { background: #003c8f; transform: none; }

.quick-btn.phone { color: #fff; }
.quick-btn.kakao { background: #FEE500; color: #3C1E1E; }
.quick-btn.blog { background: #03C75A; color: #fff; }
.quick-btn.quote-trigger { background: #0050bb; color: #fff; }
.quick-btn.quote-trigger:hover { background: #003c8f; }

.quick-top-btn {
    width: 55px; height: 55px; border-radius: 0;
    background: #333; color: #fff;
    margin-top: 0; align-self: center;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.quick-top-btn:hover { background: #111827; }

.quick-tooltip {
    position: absolute; right: 65px; top: 50%; transform: translateY(-50%);
    background: #111827; color: #fff; padding: 6px 12px; border-radius: 4px;
    font-size: 13px; font-weight: 700; white-space: nowrap;
    opacity: 0; visibility: hidden; transition: all 0.3s;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
.quick-tooltip::after {
    content: ''; position: absolute; right: -4px; top: 50%; transform: translateY(-50%);
    border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 4px solid #111827;
}
.quick-btn:hover .quick-tooltip { opacity: 1; visibility: visible; right: 60px; }

.mo-bottom-bar {
    display: none;
}


@media (max-width: 768px) {
    .quick-menu-wrap { bottom: 80px; box-shadow: -2px 2px 5px rgba(0,0,0,0.1); }
    .quick-btn, .quick-top-btn { width: 45px; height: 45px; font-size: 20px; }
    .quick-tooltip { display: none; } /* Hide tooltips on mobile */

    /* Mobile Bottom Bar */
    .mo-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    .mo-bt-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 50px;
        font-size: 18px;
        font-weight: 700;
        color: #fff;
    }
    .mo-bt-btn.call {
        background: #0050bb;
    }
    .mo-bt-btn.sms {
        background: #111827;
    }

    /* Consult Info Optimization */
    .consult-inner { padding: 0 20px; }
    .consult-form-box { padding: 24px; }
    .info-top-text { font-size: 18px; margin-bottom: 5px; }
    .info-main-title { font-size: 22px; margin-bottom: 30px; }
    .info-label { font-size: 20px; margin-bottom: 0px; }
    .info-tel { font-size: 34px; margin-bottom: 30px; }

    .contact-row { flex-direction: column; gap: 5px; margin-bottom: 20px; }
    .contact-tag { font-size: 13px; padding: 4px 10px; width: auto; min-width: 80px; margin-bottom: 5px; }
    .contact-val, .contact-val-addr { font-size: 16px; word-break: keep-all; }
}




/* Premium Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    z-index: 2000;
    display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; }

.modal-container {
    background: #fff; width: 95%; max-width: 600px;
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transform: scale(0.95) translateY(20px); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-container { transform: scale(1) translateY(0); }

.modal-header-premium {
    background: linear-gradient(135deg, #0050bb, #00c4cc);
    padding: 30px 40px; color: #fff;
    position: relative; overflow: hidden;
}

.modal-header-premium::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.modal-title-box { position: relative; z-index: 2; }
.modal-subtitle { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; font-weight: 600; display: block; margin-bottom: 8px; }
.modal-title-box h3 { font-size: 28px; font-weight: 800; margin-bottom: 8px; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.modal-title-box p { font-size: 15px; opacity: 0.9; font-weight: 400; }

.modal-close-premium {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255,255,255,0.2); width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff;
    transition: all 0.3s; z-index: 10;
}
.modal-close-premium:hover { background: #fff; color: #0050bb; transform: rotate(90deg); }

.modal-body-premium { padding: 40px; background: #fff; }

.premium-quote-form { display: flex; flex-direction: column; gap: 20px; }

.input-grid-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.premium-input-box { display: flex; flex-direction: column; gap: 8px; }
.premium-input-box.full { grid-column: 1 / -1; }

.premium-input-box label { font-size: 14px; font-weight: 700; color: #374151; }

.premium-input, .premium-select, .premium-textarea {
    width: 100%; padding: 14px 16px;
    border: 1px solid #e5e7eb; border-radius: 12px;
    background: #f9fafb; font-size: 15px; color: #111827;
    transition: all 0.3s;
}
.premium-input:focus, .premium-select:focus, .premium-textarea:focus {
    background: #fff; border-color: #00fafe; box-shadow: 0 0 0 4px rgba(0, 80, 187, 0.1);
}
.premium-textarea { height: 120px; resize: none; }

.premium-privacy-box {
    margin-top: 10px; margin-bottom: 10px;
    padding: 16px; background: #f3f4f6; border-radius: 12px;
}
.privacy-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.privacy-check input { display: none; } /* Hide default checkbox */
.privacy-check label { display: flex; align-items: center; font-size: 14px; color: #4b5563; cursor: pointer; font-weight: 600; }

.check-icon { font-size: 20px; color: #d1d5db; margin-right: 8px; transition: color 0.3s; }
.privacy-check input:checked + label .check-icon { color: #0050bb; }

.premium-submit-btn {
    width: 100%; padding: 18px; border-radius: 12px;
    background: #111827; color: #fff; font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-top: 10px;
}
.premium-submit-btn:hover { background: #0050bb; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 80, 187, 0.3); }

@media (max-width: 600px) {
    /* Compact modal for mobile to fit in one screen */
    .modal-container {
        width: 90%;
        height: auto;
        max-height: 90vh; /* Prevent full height */
        border-radius: 16px; /* Restore radius */
        max-width: none;
        overflow-y: auto;
    }

    .modal-header-premium { padding: 16px 20px; }
    .modal-title-box h3 { font-size: 20px; margin-bottom: 4px; }
    .modal-title-box p { font-size: 13px; margin: 0; }
    .modal-subtitle { font-size: 11px; margin-bottom: 4px; }

    .modal-close-premium { top: 12px; right: 12px; width: 32px; height: 32px; font-size: 20px; }

    .modal-body-premium { padding: 16px 20px; }

    .premium-quote-form { gap: 10px; } /* Reduce vertical gap */

    .input-grid-row { grid-template-columns: 1fr 1fr; gap: 10px; } /* Keep 2 cols even on mobile for compactness, or 1 col but tight? Let's try 2 cols for Name/Phone to save vertical space. */

    .premium-input-box label { font-size: 13px; margin-bottom: 4px; }

    .premium-input, .premium-select, .premium-textarea {
        padding: 10px 12px; /* Smaller padding */
        border-radius: 8px;
        font-size: 14px;
    }

    .premium-textarea { height: 70px; } /* Reduce textarea height */

    .premium-privacy-box { margin: 5px 0; padding: 10px; }
    .privacy-check label { font-size: 12px; }

    .premium-submit-btn { padding: 14px; margin-top: 5px; font-size: 15px; }
}

