@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
    /* Color System */
    --color-primary: #222222;
    /* Main Black */
    --color-secondary: #444444;
    /* Dark Gray */
    --color-accent: #0066FF;
    /* Trust Blue - adjusted for professional look */
    --color-accent-hover: #0052CC;
    --color-bg-light: #F8F9FA;
    /* Light Gray Section */
    --color-border: #E5E5E5;
    --color-text-main: #111111;
    --color-text-sub: #666666;
    --color-white: #FFFFFF;

    /* Layout */
    --max-width: 1140px;
    --header-height: 80px;
    --section-spacing: 120px;

    /* Components */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--color-text-main);
    line-height: 1.6;
    word-break: keep-all;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

input,
select,
textarea {
    font-family: inherit;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

/* PC */
h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

p {
    font-size: 1.125rem;
    color: var(--color-text-sub);
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section {
    padding: var(--section-spacing) 0;
}

.text-center {
    text-align: center;
}

.sm-hidden {
    display: inline-flex;
}

/* PC only elements logic handled via media query usually, designating class for now */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-text-main);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-light);
    border-color: var(--color-text-main);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: transparent;
    /* Initial transparent */
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    /* Initial White on Hero */
    z-index: 1001;
}

.header.scrolled .logo,
.header.scrolled .nav-menu a {
    color: var(--color-text-main);
}

.header.scrolled .btn-outline {
    color: var(--color-text-main);
    border-color: var(--color-text-main);
}


.nav-menu ul {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--color-white);
}

.header-cta {
    display: flex;
    gap: 12px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-bg,
.hero-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 105%;
    /* Increased height to crop bottom */
    object-fit: cover;
    object-position: top center;
    /* Align to top */
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.2;
}

.sub-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.trust-chips {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    /* Default PC center */
}

.trust-chips span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.icon-check {
    width: 18px;
    height: 18px;
    background: var(--color-accent);
    border-radius: 50%;
    display: inline-block;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.footer-text {
    font-size: 1rem;
    opacity: 0.7;
}

/* Subsidy Check Quiz */
.subsidy-check {
    background: var(--color-bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.option-btn {
    padding: 24px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.option-btn:hover {
    border-color: var(--color-text-main);
    background: var(--color-text-main);
    color: var(--color-white);
}

/* Services */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    height: 100%;
}

.card h3 {
    color: var(--color-text-main);
}

.card p {
    font-size: 1rem;
    margin: 0;
}

.service-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-item {
    padding: 30px;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    text-align: center;
}

.service-item.highlight {
    background: var(--color-text-main);
    color: var(--color-white);
}

.service-item.highlight p {
    color: rgba(255, 255, 255, 0.8);
}

/* Process Timeline */
.process-timeline {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    background: var(--color-white);
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.step .num {
    width: 50px;
    height: 50px;
    background: var(--color-text-main);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Before After Slider */
.before-after-slider {
    max-width: 900px;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius-md);
    overflow: hidden;
    user-select: none;
}

.image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-wrapper.before {
    width: 50%;
    /* Initial pos */
    border-right: 2px solid var(--color-white);
}

.handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--color-white);
    cursor: ew-resize;
    z-index: 10;
}

.handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3Cpolyline points='19 18 13 12 19 6' style='transform: scaleX(-1) translate(-24px,0);'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.label {
    position: absolute;
    top: 20px;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-weight: 600;
    border-radius: 4px;
}

.image-wrapper.after .label {
    right: 20px;
}

.image-wrapper.before .label {
    left: 20px;
}

.caption {
    text-align: center;
    margin-top: 16px;
    font-size: 1rem;
    color: var(--color-text-main);
    font-weight: 600;
}

/* Subsidy Info Section */
.subsidy-info {
    background: var(--color-bg-light);
    overflow: hidden;
}

.subsidy-box {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 60px;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 50px;
    align-items: center;
}

.subsidy-content h3 {
    margin-bottom: 24px;
    font-size: 1.8rem;
    color: var(--color-text-main);
}

.subsidy-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.subsidy-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.check-icon {
    font-size: 1.2rem;
    color: var(--color-accent);
    line-height: 1;
}

.subsidy-image {
    flex: 1;
    min-height: 300px;
    background: #eee;
    background: #eee;
    background-image: url('assets/after.png');
    /* Fallback/Re-use */
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
}


/* Gallery / Portfolio */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ddd;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}


/* Reviews */
.reviews {
    background: var(--color-white);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: var(--color-bg-light);
    padding: 30px;
    border-radius: var(--radius-md);
    position: relative;
}

.review-stars {
    color: #FFD700;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.review-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--color-text-sub);
}

.review-author {
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-author span {
    font-size: 0.85rem;
    font-weight: 400;
    color: #888;
}

@media (max-width: 768px) {
    .subsidy-box {
        flex-direction: column;
        padding: 30px;
    }

    .subsidy-image {
        width: 100%;
        min-height: 200px;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }
}

/* Documents & FAQ */
.documents {
    background: var(--color-bg-light);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.checklist li {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-check-anim {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-text-main);
    border-radius: 50%;
    position: relative;
}

.icon-check-anim::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--color-text-main);
    border-radius: 50%;
}

details {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
}

summary {
    font-weight: 600;
    font-size: 1.1rem;
    list-style: none;
    /* remove default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details p {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Form */
.contact-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    margin-top: 40px;
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--color-text-main);
    outline: none;
}

.form-footer {
    margin-top: 16px;
    font-size: 0.9rem;
    text-align: center;
}

/* Footer */
.footer {
    padding: 60px 0 100px 0;
    /* Extra bottom padding for mobile sticky */
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-sub);
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Sticky Footer (Mobile) */
.sticky-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    padding: 12px;
    border-top: 1px solid var(--color-border);
    z-index: 1000;
    /* Flex defined in media query */
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-content {
        padding: 120px 24px 0 24px;
        /* Increase top padding to avoid header overlap */
        text-align: left;
        /* Align text to left as requested for chips context, usually looks better on mobile if requested */
    }

    .trust-chips {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .trust-chips span {
        justify-content: flex-start;
    }

    .hero-content h1 {
        text-align: center;
    }

    .badge {
        display: inline-block;
        margin: 0 auto 24px auto;
        /* Keep badge centered if title is centered, or align left if desired. User said 'text overlapping', let's center badge but push down. */
    }

    .hero-content .sub-text {
        text-align: center;
    }

    /* User asked to align blue circle and text to LEFT, not center */
    .hero-content {
        text-align: center;
        /* Keep main title centered? User said 'blue circle and text to left'. Usually titles are centered. */
    }

    .trust-chips {
        align-items: flex-start;
        padding-left: 10%;
        /* Indent slightly to look balanced or just left align */
        width: 100%;
    }

    .hero-content .sub-text {
        font-size: 0.95rem;
        margin-top: 24px;
        margin-bottom: 24px;
        opacity: 0.9;
        line-height: 1.6;
    }

    .hero-cta-group {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .hero-cta-group .btn {
        flex: 1;
        padding: 16px 8px;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .nav-menu,
    .sm-hidden {
        display: none;
    }

    .why-grid,
    .service-details,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
        gap: 40px;
    }

    .process-timeline::before {
        width: 2px;
        height: 100%;
        left: 45px;
        /* Adjust for centering with icon */
        top: 0;
    }

    .step {
        flex-direction: row;
        text-align: left;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .slider-container {
        height: 300px;
    }

    .sticky-footer {
        display: flex;
        gap: 8px;
        padding-bottom: 24px;
        /* Save area */
    }

    .btn-sticky {
        flex: 1;
        text-align: center;
        padding: 12px;
        border-radius: var(--radius-sm);
        font-weight: 600;
        font-size: 0.9rem;
    }

    .btn-sticky.primary {
        background: var(--color-text-main);
        color: white;
    }

    .btn-sticky.secondary {
        background: var(--color-bg-light);
        color: var(--color-text-main);
    }

    .btn-sticky.outline {
        border: 1px solid var(--color-border);
    }

    .contact-box {
        padding: 0 20px 80px 20px;
    }

    /* Space for sticky footer */
}