/* CSS Variables & Reset */
:root {
    /* Colors */
    --color-primary: #8B5E3C;
    /* Warm Wood Color */
    --color-primary-dark: #6D4C30;
    --color-secondary: #2C2C2C;
    /* Dark Charcoal */
    --color-accent: #D4A373;
    /* Lighter Wood/Gold tone */
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-bg-light: #F9F9F9;
    --color-white: #FFFFFF;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-accent {
    color: var(--color-primary);
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.section-desc {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-secondary);
}

.btn-submit {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: none;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #000;
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-secondary);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.sub-logo {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-top: 4px;
    font-family: var(--font-body);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.contact-btn {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 4px;
}

.nav-link.contact-btn::after {
    display: none;
}

.nav-link.contact-btn:hover {
    background-color: var(--color-primary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--color-secondary);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1628744448840-55bdb2497bd4?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    /* Navbar height */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay to make text pop */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #e0e0e0;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--color-white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.icon-box {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Portfolio Swiper Styles */
.portfolio {
    background-color: var(--color-bg-light);
}

.portfolio-category {
    margin-bottom: 80px;
}

.portfolio-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
    padding-left: 10px;
    border-left: 5px solid var(--color-primary);
}

.category-desc {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 25px;
    padding-left: 15px;
}

.swiper {
    width: 100%;
    padding-bottom: 50px;
    /* Space for pagination */
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    /* width removed to let Swiper handle responsive width */
    height: 280px;
    /* Highly optimized height for landscape photos */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    /* Indicates clickable */
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

/* Swiper Customization */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background-color: var(--color-primary);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.contact-info {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-desc {
    color: #cccccc;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item ion-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--color-accent);
}

.contact-form {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-note {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 15px;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 40px 0;
    text-align: center;
}

.footer-logo h2 {
    color: var(--color-white);
    font-size: 1.5rem;
}

.footer-logo p {
    font-size: 0.9rem;
    margin-top: 5px;
    margin-bottom: 20px;
}

.footer-biz-info {
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.8;
}

.copyright {
    font-size: 0.85rem;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 40px 30px;
    }

    .contact-form {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 25px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 40px;
    }

    .btn-outline {
        margin-left: 0;
    }
}