/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
    --primary-color: #0066cc;
    /* Trustworthy Blue */
    --secondary-color: #00cc99;
    /* Clean Green */
    --accent-color: #ff9900;
    /* Call to Action Orange */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f4f7f6;
    --gradient-bg: linear-gradient(135deg, #e0f7fa 0%, #e1bee7 100%);
    /* Subtle gradient */
    --hero-gradient: linear-gradient(to right, rgba(0, 51, 102, 0.8), rgba(0, 102, 204, 0.6));
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cta-btn-nav {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700 !important;
    box-shadow: 0 4px 6px rgba(0, 102, 204, 0.2);
}

.cta-btn-nav:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 102, 204, 0.3);
}

.cta-btn-nav::after {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: var(--hero-gradient), url('https://images.unsplash.com/photo-1615873968403-89e068629265?ixlib=rb-4.0.3&auto=format&fit=crop&w=1932&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(255, 153, 0, 0.3);
}

.btn-primary:hover {
    background: #e68a00;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 153, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Sections Common */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Why Needed Section */
.why-needed {
    background-color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Energy Saving Section */
.energy-saving {
    background-color: var(--light-bg);
}

.energy-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.energy-text {
    flex: 1;
}

.energy-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.energy-image img {
    transition: transform 0.5s ease;
}

.energy-image:hover img {
    transform: scale(1.05);
}

.benefits-list {
    margin-top: 30px;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.benefits-list li i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Process Section */
.process {
    background: var(--white);
}

/* Process Section - Timeline Style */
.process {
    background: var(--white);
    overflow: hidden;
    /* For animations if needed */
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
    padding: 0 20px;
}

/* Connecting Line */
.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: #e1e4e8;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 10px;
    flex: 1;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 3px solid #e1e4e8;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step:hover .step-icon {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.4);
    transform: scale(1.1);
}

/* Connect active state if implemented later, for now hover is enough */

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    word-break: keep-all;
}

/* Real Work Gallery Section */
.gallery {
    background: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    /* Consistent aspect ratio */
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay span {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Reviews Section */
.reviews {
    background-color: var(--light-bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Softer shadow like reference */
    display: flex;
    /* Flex layout for Left/Right */
    gap: 25px;
    align-items: flex-start;
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Left components */
.review-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.review-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    /* Rounded square as per image */
    background-color: #f5f5f5;
    margin-bottom: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stars {
    color: #FFD700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: center;
}

/* Right components */
.review-right {
    flex: 1;
}

.review-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.author-name-large {
    font-size: 1.25rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 5px;
}

.author-location {
    font-size: 0.85rem;
    color: #888;
    display: block;
    font-weight: 400;
}

.quote-icon {
    font-size: 2.2rem;
    color: #e0e7ff;
    /* Light blue quote color */
    opacity: 0.8;
}

.review-text-body {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    word-break: keep-all;
    font-weight: 400;
}

/* FAQ Section */
.faq-section {
    background: var(--white);
}

.faq-container {
    max-width: 1000px;
    /* Increased width for 2 columns */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
    /* Prevent items from stretching to match height */
}

.faq-item {
    margin-bottom: 0;
    /* Handled by grid gap */
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: fit-content;
    /* Important for grid alignment */
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.1);
}

.faq-question {
    width: 100%;
    background: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: left;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f4f7f6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust based on content */
    padding: 20px;
    border-top: 1px solid #eee;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Recommendation Section */
.recommendation {
    background: var(--gradient-bg);
    /* Use subtle gradient here */
    color: var(--text-dark);
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.rec-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-sm);
}

.rec-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.rec-item p {
    font-weight: 600;
}

/* CTA Banner */
.cta-banner {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    display: block;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-info strong {
    color: var(--white);
}

.copyright {
    text-align: center;
}

/* Estimate Page Specifics */
.estimate-section {
    padding-top: 150px;
    /* Account for fixed header */
    min-height: 80vh;
    background: var(--light-bg);
}

.form-container {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-dark);
}

.ac-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e1e1e1;
}

.ac-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.ac-item:last-child {
    border-bottom: none;
}

.ac-item span {
    font-weight: 500;
    color: #333;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.qty-controls input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0;
}

.bulk-order-notice {
    margin-top: 15px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0d47a1;
    line-height: 1.5;
}

.bulk-order-notice a {
    color: #0d47a1;
    text-decoration: underline;
}

.form-control,
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Button Content Layout */
.btn-content-wrapper {
    display: flex;
    flex-direction: row;
    /* Changed to row for single line */
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    /* Space between Title group and Subtitle */
}

.btn-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.btn-top-row i {
    font-size: 1.2rem;
}

/* Specific text styles */
.btn-title {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 1;
    /* Make fully visible */
    margin-bottom: 0;
}

.btn-subtitle {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0;
    font-family: inherit;
    /* Unify font */
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-phone,
.btn-kakao {
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    border-radius: 10px;
    /* Consistent square-ish border */
    border: none;
}

.btn-phone {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-phone:hover {
    background-color: #004c99;
}

.btn-kakao {
    background-color: #FEE500;
    color: #000000;
}

.btn-kakao:hover {
    background-color: #FDD835;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    /* Match others */
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #0052a3;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu needed */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        display: none;
        /* Show only when JS implements toggle */
    }

    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .energy-content {
        flex-direction: column;
    }

    .process-steps {
        flex-direction: column;
        gap: 40px;
        margin-top: 20px;
    }

    .process-steps::before {
        width: 3px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(to bottom, transparent, #e1e4e8 10%, #e1e4e8 90%, transparent);
    }

    .step {
        padding: 0;
    }

    .step-icon {
        margin-bottom: 15px;
        background: var(--white);
        /* Ensure background covers line */
    }

    .form-container {
        padding: 30px 20px;
    }

    .faq-container {
        grid-template-columns: 1fr;
    }
}