/* CSS Variables */
:root {
    --primary-color: #0A2342;
    /* Deep Blue - Trust */
    --secondary-color: #004B8D;
    /* Brighter Blue */
    --accent-color: #FF6B00;
    /* Orange - Highlight */
    --text-color: #333333;
    --light-gray: #F4F6F8;
    --white: #ffffff;
    --border-color: #ddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    word-break: keep-all;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.bg-light {
    background-color: var(--light-gray);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-cta {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #e65a00;
    border-color: #e65a00;
}

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

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

.btn-cta {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Header */
#header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    /* Changed to sticky as requested */
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
    width: auto;
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.desktop-nav a:hover {
    color: var(--accent-color);
}

.header-btn {
    display: block;
}

/* Hero Section */
#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero_new.jpg');
    /* Placeholder image */
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    /* margin-top: 80px; Removed header height compensation since sticky is used, but sticky is in flow.
       However, if sticky is top 0, it behaves like fixed while scrolling.
       If it's the very first element, it just sticks. */
    position: relative;
}

.hero-content {
    width: 100%;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Features */
#features {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}

#features .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Common Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

.section-title p,
.sub-title {
    font-size: 1.1rem;
    color: #666;
}

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

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-image {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

/* Placeholders for services */
.bg-install {
    background-image: url('https://images.unsplash.com/photo-1595846519845-68e298c2edd8?auto=format&fit=crop&w=600&q=80');
}

.bg-repair {
    background-image: url('https://images.unsplash.com/photo-1581092921461-eab62e97a782?auto=format&fit=crop&w=600&q=80');
}

/* New window construction image */
.bg-window {
    background-image: url('https://images.unsplash.com/photo-1505330622279-bf7d7fc918f4?auto=format&fit=crop&w=600&q=80');
}


.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-content ul li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
    font-size: 0.95rem;
}

.card-content ul li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* About (Trust/Strengths) */
.trust-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.trust-box {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 10px;
    transition: var(--transition);
    height: 100%;
}

.trust-box:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--transition);
}

.trust-box:hover .icon-circle {
    background: var(--primary-color);
    color: var(--white);
}

.trust-box h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.hidden-item {
    display: none;
}

.gallery-btn-wrapper {
    text-align: center;
    margin-top: 20px;
}

.blue-text {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.blue-text:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.pf-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

.pf-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pf-item:hover img {
    transform: scale(1.05);
}

/* Contact Section & Footer */
#contact {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
}

.contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.big-phone {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-form-wrapper {
    flex: 0 0 450px;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    color: var(--text-color);
}

.contact-form-wrapper h3 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

.contact-form textarea {
    resize: none;
}

.btn-submit {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #e65a00;
}

/* Simple Footer (Below Contact) */
footer {
    background-color: #051426;
    /* Darker than primary */
    color: #aaa;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-info p {
    margin-bottom: 8px;
}

/* Floating Action Button */
.fab-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    padding: 10px 20px 10px 10px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9990;
    transition: transform 0.3s ease;
    border: 2px solid var(--accent-color);
    cursor: pointer;
}

.fab-btn:hover {
    transform: translateY(-5px);
}

.fab-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.2rem;
}

.fab-text {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none;
    /* Hidden on Desktop */
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.sticker-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.sticker-btn.call {
    background-color: var(--accent-color);
}

.sticker-btn.kakao {
    background-color: #FEE500;
    color: #3C1E1E;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 992px) {
    #hero h1 {
        font-size: 2.5rem;
    }

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

    .trust-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-layout {
        flex-direction: column;
        text-align: center;
    }

    .contact-form-wrapper {
        width: 100%;
        max-width: 500px;
    }

    .big-phone {
        justify-content: center;
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    #header .container {
        justify-content: center;
    }

    .desktop-nav,
    .header-btn {
        display: none;
        /* Simplify header for mobile */
    }

    .fab-btn {
        bottom: 80px;
        /* Adjust for sticky footer */
        right: 20px;
    }

    #hero {
        height: 500px;
    }

    #hero h1 {
        font-size: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        padding: 0 30px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .trust-wrapper {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-sticky-bar {
        display: flex;
    }

    /* Add padding to body so content isn't covered by sticky bar */
    body {
        padding-bottom: 60px;
    }

    .big-phone {
        font-size: 2rem;
    }
}