.mobile-br { display: none; }

/* ===== 시공사례 사진 테두리 제거 ===== */
.detail-photos img,
.detail-photo-single img {
    background: #ffffff !important;
    box-shadow: none !important;
}

/* ===== ANIMATIONS ===== */
@keyframes mobileAutoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes navCtaPulse {
    0%, 100% { color: var(--orange); }
    50% { color: var(--orange-light); }
}

/* ===== CSS VARIABLES ===== */
:root {
    --navy: #0D2A45;
    --navy-dark: #081B2E;
    --navy-light: #1A3D5C;
    --orange: #E8762B;
    --orange-light: #F5A05A;
    --orange-dark: #C95F15;
    --white: #FFFFFF;
    --cream: #FAF8F4;
    --beige-light: #F7F3EC;
    --beige: #F2EDE5;
    --beige-dark: #E8DDD0;
    --text-primary: #1A1A1A;
    --text-secondary: #5A5A5A;
    --text-muted: #909090;
    --gray-light: #F5F7FA;
    --gray: #888888;
    --gray-dark: #555555;
    --text: #2A2A2A;
    --border: #E0D8CC;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.13);
    --transition: all 0.3s ease;
    --radius: 8px;
}

/* ===== RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

#about .section-header h2,
#gallery .section-header h2 {
    color: var(--text-primary);
}

#about .section-header p,
#gallery .section-header p {
    color: var(--text-secondary);
}

#about .section-tag,
#gallery .section-tag {
    color: var(--orange);
    border-color: var(--orange);
}

.section-header p {
    font-size: 1rem;
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
}

.section-header.light h2 {
    color: var(--white);
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.7);
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--orange);
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 12px;
    border: 1px solid var(--orange);
    border-radius: 20px;
}

.section-header.light .section-tag {
    color: var(--orange-light);
    border-color: var(--orange-light);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 11px 24px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 118, 43, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 11px 24px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== MEGA MENU ===== */
.mega-dropdown {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(8, 27, 46, 0.97);
    display: flex;
    padding: 28px 40px;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 150;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.nav-menu:hover ~ .mega-dropdown,
.mega-dropdown:hover {
    opacity: 1;
    visibility: visible;
}

.mega-col {
    flex: 1;
    padding: 0 32px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.mega-col:first-child { padding-left: 0; }
.mega-col:last-child { border-right: none; }

.mega-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: block;
}

.mega-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    padding: 7px 0;
    transition: color 0.2s, padding-left 0.2s;
    text-decoration: none;
}

.mega-col a:hover {
    color: var(--white);
    padding-left: 6px;
}

/* 메가드롭다운 완전 숨김 - 미사용 */
.mega-dropdown { display: none !important; }

/* 사업분야 하단메뉴 */
.nav-menu > li:nth-child(2) .dropdown-menu {
    left: 44px;
}

/* 건축갤러리 하단메뉴 */
.nav-menu > li:nth-child(3) .dropdown-menu {
    left: 44px;
}

@media (min-width: 769px) {
    /* 다건 메뉴 전체 좌측 이동 (데스크톱 전용) */
    .nav-menu > li:nth-child(1) {
        transform: translateX(-30px);
        z-index: 200;
        position: relative;
    }

    /* 상담신청 버튼 우측 이동 (데스크톱 전용) */
    .nav-menu > li:last-child {
        transform: translateX(20px);
    }
}

/* ===== 호버 메가메뉴 (데스크톱) ===== */
@media (min-width: 769px) {
    /* 아무 has-dropdown에 호버하면 헤더 네이비 */
    #header:has(.has-dropdown:hover) {
        background: var(--navy-dark) !important;
    }

    /* 네이비 확장 패널 */
    #header:has(.has-dropdown:hover)::after {
        content: '';
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        height: 155px;
        background: var(--navy-dark);
        z-index: 99;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    /* 아무 has-dropdown에 호버하면 모든 드롭다운 동시 표시 */
    #header:has(.has-dropdown:hover) .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    /* 개별 hover 효과 제거 (전체 동시 표시로 대체) */
    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* ===== HEADER / NAV ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, transparent 100%);
    transition: var(--transition);
}

#header.scrolled {
    background: var(--navy-dark);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.footer-logo .logo-img {
    width: 42px;
    height: 42px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-name {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 2px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    font-weight: 500;
    padding: 10px 36px;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* ===== DROPDOWN ===== */
.nav-item {
    position: relative;
}

.nav-arrow {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 32px);
    left: 36px;
    transform: translateY(-6px);
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    min-width: 120px;
    padding: 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    border: none;
    z-index: 200;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 9px 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--orange);
    color: var(--white);
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
#hero {
    position: relative;
    min-height: 100vh;
    background: var(--navy-dark);
    overflow: hidden;
    padding: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('hero-house.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 27, 46, 0.08) 0%,
        rgba(8, 27, 46, 0.15) 50%,
        rgba(8, 27, 46, 0.30) 100%
    );
}

.hero-bg-shapes {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    background: rgba(10, 20, 40, 0.12);
    backdrop-filter: blur(7px) saturate(110%);
    -webkit-backdrop-filter: blur(7px) saturate(110%);
    border-radius: 24px;
    padding: 36px 48px;
    max-width: 585px;
    width: 90%;
    min-height: 32vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.10);
    margin-top: 29vh;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
    display: inline-block;
    background: rgba(232, 118, 43, 0.2);
    border: 1px solid rgba(232, 118, 43, 0.5);
    color: var(--orange-light);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 21px;
}

.hero-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--orange);
    position: relative;
}

.hero-desc {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 30px;
    line-height: 1.8;
}

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

/* Hero Slideshow */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 88px;
    padding-bottom: 72px;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: -6%;
    background-size: cover;
    transform-origin: center;
}

.hero-slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 27, 46, 0.45);
}

.hero-slide:has(.hero-slide-video) .hero-slide-overlay {
    background: transparent;
}

/* 히어로 하단 그라데이션 (PC) */
#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10%;
    background: linear-gradient(to bottom, transparent 0%, rgba(247,243,236,0.55) 50%, rgba(247,243,236,0.95) 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-slide-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 24px;
    max-width: 860px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
}

.hero-slide.active .hero-slide-text {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide-badge {
    display: inline-block;
    background: rgba(232, 118, 43, 0.2);
    border: 1px solid rgba(232, 118, 43, 0.5);
    color: var(--orange-light);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 21px;
}

.hero-slide-text h1 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.hero-slide-text h1 .highlight {
    color: var(--orange);
}

.hero-slide-text p {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.hero-slide-text .hero-slide-sub {
    font-size: clamp(1rem, 2.4vw, 1.68rem);
    font-weight: 500;
    color: var(--white);
    letter-spacing: 2px;
    margin: 0 0 14px;
}

.hero-slide-divider {
    width: 72px;
    height: 5px;
    background: var(--orange);
    margin: 0 auto 22px;
    border-radius: 2px;
}

.hero-slide-text--wide {
    max-width: 1100px;
}

.hero-slide-text h2.hero-h2-long {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    white-space: nowrap;
}

.hero-slide-text h2 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-btns-wrap {
    position: absolute;
    bottom: 115px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 10;
    flex-wrap: nowrap;
    justify-content: center;
}

.hero-call-btn {
    display: inline-block;
    margin-top: 28px;
    background: var(--orange);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.65rem;
    letter-spacing: 1.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-call-btn:hover {
    background: var(--orange-light);
    transform: scale(1.04);
}

.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--orange);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--orange);
    border: 2px solid var(--orange);
    transform: scale(1.35);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 2px;
    z-index: 10;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--orange);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(8px); opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ABOUT ===== */
#about {
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-area {
    position: relative;
}

.about-img-placeholder {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.about-img-placeholder img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    filter: brightness(0.9);
}

.about-experience-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--orange);
    color: var(--white);
    padding: 20px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(232, 118, 43, 0.4);
}

.badge-icon {
    font-size: 2rem;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

.about-text-area {
    padding-right: 20px;
}

.about-lead {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-motto {
    border-left: 4px solid var(--orange);
    padding: 16px 20px;
    margin: 28px 0;
    background: var(--beige);
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    font-style: italic;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== SERVICES ===== */
#services {
    background: var(--beige);
    position: relative;
    overflow: hidden;
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--beige-dark);
    border-radius: 12px;
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-tags span {
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--beige-dark);
    padding: 3px 10px;
    border-radius: 20px;
}

/* 시공사례 카테고리 단 */
.portfolio-cat {
    margin-bottom: 108px;
}
.portfolio-cat-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    margin-left: -80px;
}
.portfolio-cat-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy-dark);
    letter-spacing: -0.02em;
}
.portfolio-cat-more {
    font-size: 0.9rem;
    color: var(--orange);
    font-weight: 600;
    transition: letter-spacing 0.2s;
}
.portfolio-cat-more:hover { letter-spacing: 0.04em; }

/* 시공사례 캐러셀: 3장 표시 */
#portfolio-preview .carousel-wrap {
    overflow: hidden;
    padding: 0;
    margin: 0 -80px;
    cursor: grab;
    user-select: none;
}

#portfolio-preview .carousel-wrap.dragging {
    cursor: grabbing;
}

#portfolio-preview .carousel-track img {
    pointer-events: none;
}

#portfolio-preview .carousel-track .gallery-item {
    flex: 0 0 calc((100% - 40px) / 3.2);
    min-width: unset;
}

#portfolio-preview .carousel-track .gallery-img-wrap {
    aspect-ratio: 4/3;
}

/* 시공사례: PC 자동 슬라이드 (버튼 숨김) */
#portfolio-preview .carousel-btn {
    display: none;
}

.service-more {
    display: inline-block;
    margin-top: 18px;
    font-size: 0.82rem;
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
    transition: letter-spacing 0.2s;
}
.service-more:hover { letter-spacing: 0.04em; }

/* ===== CAROUSEL ===== */
.carousel-wrap {
    position: relative;
    overflow: hidden;
    padding: 0 4px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.carousel-track .gallery-item,
.carousel-track .design-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 260px;
}

/* 추천설계 캐러셀: 좌우 화살표가 wrap의 overflow:hidden에 잘리지 않도록,
   클리핑을 track으로 옮기고 wrap은 보이게 둔다 */
#recommend-design .carousel-wrap {
    overflow: visible;
}

#recommend-design .carousel-track {
    overflow: hidden;
}

.carousel-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--orange);
}

.carousel-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

.prev-btn { left: -24px; }
.next-btn { right: -24px; }

/* ===== GALLERY ===== */
#gallery {
    background: var(--cream);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 9px 22px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 2px solid var(--beige-dark);
    background: var(--white);
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.filter-btn.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

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

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item.hidden {
    display: none;
}

.gallery-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img-wrap img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 27, 46, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-category {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    width: fit-content;
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
}

/* ===== CONTACT ===== */
#contact {
    background: var(--navy);
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 36px;
    line-height: 1.8;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: rgba(232, 118, 43, 0.15);
    border: 1px solid rgba(232, 118, 43, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    display: block;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

a.info-value:hover {
    color: var(--orange-light);
}

.contact-promise {
    margin-top: 32px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    border-left: 3px solid var(--orange);
}

.contact-promise p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
}

/* Form */
.contact-form {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.required {
    color: var(--orange);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--navy);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.field-error {
    display: block;
    font-size: 0.78rem;
    color: #e74c3c;
    margin-top: 6px;
    min-height: 18px;
}

/* Checkbox */
.checkbox-group {
    margin-bottom: 28px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--gray-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--navy);
}

/* Submit button */
.btn-submit {
    width: 100%;
    background: var(--navy);
    color: var(--white);
    padding: 16px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    font-family: inherit;
}

.btn-submit:hover {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 118, 43, 0.4);
}

.btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.btn-submit:hover .btn-arrow {
    transform: translateX(4px);
}

/* ===== SUB PAGE ===== */
.page-hero {
    background: var(--navy-dark);
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #081b2e 0%, #0d3460 100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.page-breadcrumb {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
}

.page-breadcrumb a {
    color: var(--orange);
    text-decoration: none;
}

.page-breadcrumb a:hover { text-decoration: underline; }

.page-breadcrumb span { margin: 0 8px; }

/* 오시는길 */
.location-section {
    padding-bottom: 80px;
}

.map-full {
    width: 100%;
    height: 460px;
}

.map-full iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.location-detail {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    padding: 50px 0;
}

.location-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy-dark);
}

.location-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 12px 0;
}

.location-label {
    flex-shrink: 0;
    width: 110px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    background: var(--navy);
    border-radius: 4px;
    padding: 6px 12px;
    text-align: center;
}

.location-label.highlight {
    background: var(--orange);
}

.location-value p {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.7;
}

.location-buttons {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-map-naver {
    background: #03C75A;
    color: white;
}

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

.btn-map-share {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-map:hover { opacity: 0.88; transform: translateY(-2px); }

/* 공유하기 모달 */
.share-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.share-modal-overlay.active {
    display: flex;
}

.share-modal {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.share-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-dark);
}

.share-modal-close {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    border: none;
    background: var(--orange);
    color: var(--white);
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.share-modal-close:hover { opacity: 0.85; }

.share-modal-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.share-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: none;
    background: none;
    font-family: inherit;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.share-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    transition: var(--transition);
}

.share-icon:hover .share-icon-circle { transform: translateY(-3px); }

.share-icon-kakao .share-icon-circle { background: #FEE500; color: #3C1E1E; }
.share-icon-blog .share-icon-circle { background: #03C75A; color: var(--white); }
.share-icon-url .share-icon-circle { background: #EFEFEF; color: var(--text); }

/* 사업분야 서브페이지 */
.service-coming {
    padding: 80px 0;
    text-align: center;
}

.service-coming-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.service-coming h2,
.service-coming h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 16px;
}

.service-coming p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.service-coming-sub {
    font-size: 0.88rem !important;
    color: #aaa !important;
    margin-bottom: 36px !important;
}

/* 추천설계 */
.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 36px;
    padding: 60px 0;
}

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

.design-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.design-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #e8edf2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.design-card-body {
    padding: 24px;
}

.design-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 12px;
}

.design-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.design-spec-tag {
    background: var(--beige);
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.design-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* 추천설계 상세 */
.design-detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.design-detail-img {
    aspect-ratio: 4/3;
    background: #e8edf2;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.design-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.design-detail-caption {
    margin-top: 10px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.design-concept-text {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.design-concept-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.spec-table {
    max-width: 760px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.spec-row {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.spec-label {
    flex-shrink: 0;
    width: 160px;
    padding: 16px 24px;
    background: var(--beige-light);
    font-weight: 700;
    color: var(--navy-dark);
    font-size: 0.92rem;
}

.spec-value {
    flex: 1;
    padding: 16px 24px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* 상담신청 */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
}

.contact-lead {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.7;
    color: var(--navy-dark);
    margin-bottom: 28px;
}

.contact-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.contact-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.contact-hours {
    border-left: 4px solid var(--orange);
    padding: 16px 20px;
    background: var(--beige);
    border-radius: 0 8px 8px 0;
}

.contact-hours p {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.8;
}

.contact-hours p strong {
    color: var(--navy-dark);
}

.contact-hours a {
    color: var(--orange);
    font-weight: 700;
}

.contact-form-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 22px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 10px;
}

.form-group .required {
    color: var(--orange);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #D9534F;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-error {
    display: block;
    font-size: 0.78rem;
    color: #D9534F;
    margin-top: 6px;
    min-height: 1em;
}

.form-honeypot {
    display: none;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--orange);
}

.btn-submit {
    width: 100%;
    text-align: center;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}

/* 상담 신청 완료 모달 */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 44px 32px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--beige);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover { background: var(--beige-dark); }

.modal-icon {
    font-size: 2.6rem;
    margin-bottom: 16px;
}

.modal-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 12px;
}

.modal-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== 사업분야 상세 페이지 ===== */
.service-overview {
    padding: 70px 0 10px;
    text-align: center;
}

.service-overview p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.scope-section {
    padding: 60px 0;
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.scope-card {
    background: var(--white);
    border: 1px solid var(--beige-dark);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.scope-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.scope-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.scope-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 10px;
}

.scope-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* 시공 프로세스 */
.process-section {
    background: var(--navy);
    padding: 70px 0;
}

.process-section .section-header h2 {
    color: var(--white);
}

.process-section .section-header p {
    color: rgba(255, 255, 255, 0.65);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.process-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 28px 18px;
    text-align: center;
}

.process-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 14px;
}

.process-step h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.process-step p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    line-height: 1.6;
}

/* 강점 */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.strength-card {
    text-align: center;
    padding: 20px;
}

.strength-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.strength-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

.strength-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA */
.cta-section {
    background: var(--beige);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

@media (max-width: 1024px) {
    .process-steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .location-detail { grid-template-columns: 1fr; gap: 16px; }
    .map-full { height: 320px; }
    .page-hero h1 { font-size: 1.8rem; }
    .design-grid { grid-template-columns: 1fr; }
    .scope-grid { grid-template-columns: 1fr 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-section { padding: 30px 0; }
}

@media (max-width: 480px) {
    .scope-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .location-row { flex-direction: column; gap: 8px; }
    .location-label { width: auto; align-self: flex-start; }
    .location-buttons { flex-direction: column; }
    .share-modal { padding: 20px; }
    .share-modal-icons { gap: 10px; }
    .share-icon-circle { width: 48px; height: 48px; font-size: 1.2rem; }
}

/* ===== FOOTER ===== */
#footer {
    background: var(--navy-dark);
}

.footer-top {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 2.6fr 1.3fr;
    gap: 60px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo .logo-name {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 2px;
}

.footer-logo .logo-sub {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.footer-phone {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-phone-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.footer-phone-number {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--orange-light);
    letter-spacing: 1px;
    transition: color 0.2s;
}

.footer-phone-number:hover {
    color: var(--orange);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: var(--orange-light);
}

.footer-contact p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.footer-contact a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--orange-light);
}

.footer-hours {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.85rem !important;
}

.footer-bottom {
    padding: 24px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-business p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.7;
}

.footer-copyright {
    white-space: nowrap;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--white);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.modal-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.modal-box p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 28px;
    line-height: 1.7;
}

.modal-close {
    background: var(--navy);
    color: var(--white);
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--orange);
}

/* ===== SCROLL TOP ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: var(--transition);
    z-index: 500;
    font-family: inherit;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.scroll-top-btn:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-links-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 72px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Mobile Nav */
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 0 0 12px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-item {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-link {
        padding: 13px 24px;
        width: 100%;
        font-size: 0.95rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-arrow {
        display: inline-block;
        transition: transform 0.25s ease;
    }

    .nav-item.open .nav-arrow {
        transform: rotate(180deg);
    }

    /* 모바일 드롭다운 - 인라인 펼침 */
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
        background: rgba(255,255,255,0.04);
        border-radius: 0;
        border: none;
        min-width: unset;
        width: 100%;
        display: none !important;
        padding: 4px 0 8px;
        box-shadow: none;
        list-style: none;
    }

    .nav-item.open .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu li a {
        padding: 10px 24px 10px 36px;
        font-size: 0.88rem;
        color: rgba(255,255,255,0.7);
        display: block;
    }

    /* 모바일 transform 강제 리셋 */
    .nav-menu > li:nth-child(1) {
        transform: none !important;
        position: static !important;
        z-index: auto !important;
    }

    /* 상담신청 버튼 - 구분선 아래 */
    .nav-menu > li:last-child {
        transform: none !important;
        padding: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
        border-bottom: none;
    }

    .nav-cta {
        display: block;
        text-align: left;
        width: 100%;
        padding: 13px 24px 5px;
        background: transparent;
        color: var(--orange);
        border-radius: 0;
        font-weight: 700;
        animation: navCtaPulse 1.8s ease-in-out infinite;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero */
    #hero {
        min-height: 114vw;
    }

    .mobile-br { display: inline; }

    .hero-slide {
        background-size: cover;
        background-position: center center !important;
    }

    .hero-slide--panel {
        background-image: url('hero-4-mobile.jpg') !important;
        background-position: center center !important;
    }

    /* 히어로 하단 자연스러운 페이드 */
    #hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 10%;
        background: linear-gradient(to bottom, transparent 0%, rgba(247,243,236,0.55) 50%, rgba(247,243,236,0.95) 100%);
        z-index: 3;
        pointer-events: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image-area {
        order: 2;
    }

    .about-text-area {
        order: 1;
        padding-right: 0;
    }

    .about-experience-badge {
        right: 16px;
        bottom: -16px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 28px 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-links-group {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 16px;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-phone {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

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

    .spec-label {
        width: 110px;
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .spec-value {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .hero-dots {
        bottom: 28px;
    }
}

/* ===== 모바일 반응형 보완 ===== */

/* 가로 스크롤 방지 */
html, body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    /* 캐러셀: 공통 */
    .carousel-wrap {
        overflow: hidden;
        padding: 0;
    }

    .carousel-btn {
        display: none;
    }

    /* 포트폴리오 카테고리 헤더: 모바일 왼쪽 정렬 */
    .portfolio-cat-head {
        margin-left: 0;
    }

    /* 포트폴리오: 모바일 터치 스와이프 */
    #portfolio-preview .carousel-wrap {
        margin: 0;
        overflow: hidden;
        cursor: grab;
    }

    #portfolio-preview .carousel-wrap.dragging {
        cursor: grabbing;
    }

    #portfolio-preview .carousel-track {
        display: flex;
        gap: 12px;
        will-change: transform;
    }

    #portfolio-preview .carousel-track .gallery-item {
        flex: 0 0 62vw;
        min-width: unset;
        opacity: 1 !important;
        transform: none !important;
    }

    /* 추천설계 버튼 색상 수정 */
    #recommend-design .btn-secondary {
        color: var(--navy);
        border-color: var(--navy);
    }

    #recommend-design .btn-secondary:hover {
        background: var(--navy);
        color: var(--white);
    }

    /* 추천설계: 모바일 터치 스와이프 */
    #recommend-design .carousel-wrap {
        overflow: hidden;
        margin: 0;
        padding: 0;
    }

    #recommend-design .carousel-track {
        display: flex;
        gap: 12px;
        will-change: transform;
        align-items: flex-start;
    }

    #recommend-design .carousel-track .design-card {
        flex: 0 0 75vw;
        min-width: unset;
    }

    #recommend-design .carousel-btn {
        display: none;
    }

    #recommend-design .design-card-body {
        padding: 16px;
    }

    #recommend-design .design-specs {
        gap: 6px;
        margin-bottom: 10px;
    }

    #recommend-design .design-spec-tag {
        font-size: 0.72rem;
        padding: 3px 8px;
    }

    #recommend-design .design-card-desc {
        font-size: 0.82rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 히어로 텍스트 */
    .hero-slide-text {
        padding: 0 16px;
    }

    .hero-slide-text h2 {
        font-size: clamp(1.3rem, 4vw, 2rem);
    }

    .hero-slide-text h2.hero-h2-long {
        white-space: normal;
        word-break: keep-all;
        font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    }

    .hero-slide-text--wide {
        max-width: 100%;
    }

    /* 히어로 전화 버튼 */
    .hero-call-btn {
        font-size: 1.1rem;
        padding: 10px 24px;
    }

    /* 상단 페이지 히어로 패딩 */
    .page-hero {
        padding: 100px 0 48px;
    }

    /* 섹션 헤더 */
    .section-header h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    /* 캐러셀: 모바일에서 1개씩 */
    .carousel-track .gallery-item,
    .carousel-track .design-card {
        flex: 0 0 100%;
        min-width: unset;
    }

    /* 캐러셀 버튼 위치 조정 */
    .prev-btn { left: 4px; }
    .next-btn { right: 4px; }

    /* 히어로 전화 버튼 */
    .hero-call-btn {
        font-size: 0.95rem;
        padding: 9px 20px;
        letter-spacing: 0.5px;
    }

    /* 히어로 구분선 */
    .hero-slide-divider {
        width: 48px;
        margin-bottom: 14px;
    }

    /* 갤러리 필터 버튼 */
    .filter-btn {
        padding: 7px 14px;
        font-size: 0.82rem;
    }

    /* 섹션 헤더 여백 */
    .section-header {
        margin-bottom: 36px;
    }

    /* 섹션 헤더 제목 */
    .section-header h2 {
        font-size: 1.5rem;
    }

    /* 상단 페이지 히어로 */
    .page-hero {
        padding: 90px 0 40px;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    /* 푸터 링크 2열로 줄이기 */
    .footer-links-group {
        grid-template-columns: repeat(2, 1fr);
    }
}
