/* ════════════════════════════════════════════
   HAUEN 인테리어 - 공통 스타일시트
   style.css
════════════════════════════════════════════ */

/* ─── CSS 변수 ─── */
:root {
    --primary:       #4A5E40;
    --primary-dark:  #2D3E2A;
    --accent:        #4A5E40;
    --accent-light:  #6B8060;
    --green-dark:    #2D3E2A;
    --green-mid:     #4A5E40;
    --bg-cream:      #F5F0E8;
    --bg-white:      #FDFAF6;
    --text-dark:     #1A1A16;
    --text-mid:      #4A4A40;
    --text-light:    #8A8A7A;
    --border:        #E0D8CC;
    --transition:    cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── 리셋 & 기본 ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

/* ════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    height: 88px;
    transition: background 0.4s var(--transition), box-shadow 0.4s var(--transition);
}
nav.scrolled {
    background: rgba(253, 250, 246, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-logo-box {
    width: 160px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-logo-box img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }

/* 로고 전환 */
.logo-light { display: none; }
.logo-dark  { display: block; }
nav.hero-mode .logo-dark  { display: none; }
nav.hero-mode .logo-light { display: block; }
nav.sub-mode .logo-dark   { display: none; }
nav.sub-mode .logo-light  { display: block; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.3px;
    transition: color 0.2s;
}
nav.hero-mode .nav-links a       { color: rgba(255,255,255,0.9); }
nav.hero-mode .nav-links a:hover { color: #fff; }
.nav-links a:hover { color: var(--accent); }

.btn-cta {
    padding: 11px 24px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.btn-cta:hover {
    background: #2D3E2A !important;
    transform: translateY(-1px);
}

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
#hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* 실제 배경 이미지 레이어 */
.hero-bg {
    position: absolute; inset: 0;
    background-color: #1a2e18; /* 이미지 로드 전 초록 fallback */
    background: linear-gradient(135deg, #0e1a0c 0%, #1c2e18 40%, #243822 100%);
}
/* 이미지 위 어두운 오버레이 */
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(10, 8, 4, 0.45) 0%,
            rgba(10, 8, 4, 0.60) 60%,
            rgba(10, 8, 4, 0.75) 100%
    );
}
/* CSS 시뮬레이션 레이어 제거 — 실제 이미지 사용으로 불필요 */
.hero-img-sim { display: none; }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    animation: heroFadeUp 1s var(--transition) both;
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 100px;
    padding: 6px 18px;
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: #8FB080;
    border-radius: 50%;
}
.hero-h1 {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 20px;
}
.hero-h1 em {
    font-style: normal;
    color: #8FB080;
}
.hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.btn-outline-white {
    padding: 14px 32px;
    border: 1.5px solid rgba(255,255,255,0.6);
    color: #fff;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}
.btn-filled-accent {
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.25s;
}
.btn-filled-accent:hover { background: var(--primary-dark); transform: translateY(-2px); }

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-stat-item { text-align: center; }
.hero-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}
.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    letter-spacing: 0.5px;
}
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}
.scroll-arrow {
    width: 20px; height: 20px;
    border-right: 1.5px solid rgba(255,255,255,0.4);
    border-bottom: 1.5px solid rgba(255,255,255,0.4);
    transform: rotate(45deg);
}

/* ════════════════════════════════════════════
   공통 섹션
════════════════════════════════════════════ */
section { padding: 100px 0; }
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 60px;
}
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.section-title {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

/* ════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════ */
#about { background: var(--bg-cream); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-text p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-mid);
    margin-bottom: 20px;
}
.about-nums {
    display: flex;
    gap: 40px;
    margin: 36px 0;
}
.about-num-val {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1;
}
.about-num-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.about-image-wrap { position: relative; }
.about-img-main {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: linear-gradient(145deg, #c8a87a 0%, #8a6040 40%, #4a3020 100%);
    position: relative;
}
.about-img-main::before {
    content: '';
    position: absolute; inset: 0;
    background:
            linear-gradient(to bottom right, rgba(255,220,150,0.08) 0%, transparent 50%),
            radial-gradient(ellipse at 30% 70%, rgba(180,130,60,0.2) 0%, transparent 60%);
}
.about-img-main::after {
    content: 'AWARD WINNING';
    position: absolute;
    top: 20px; left: 20px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 6px 12px;
    border-radius: 100px;
}
.about-award-badge {
    position: absolute;
    bottom: 20px; left: 20px; right: 20px;
    background: rgba(20,15,8,0.85);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.about-award-badge h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.about-award-badge p { font-size: 12px; color: rgba(255,255,255,0.6); margin: 0; line-height: 1.4; }

.about-feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.feature-icon {
    width: 44px; height: 44px;
    background: rgba(200,132,42,0.10);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}
.feature-card h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ════════════════════════════════════════════
   PORTFOLIO
════════════════════════════════════════════ */
#portfolio { background: var(--bg-white); }
.portfolio-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 40px;
}
.portfolio-header p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    text-align: right;
}
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 9px 22px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-mid);
    transition: all 0.2s;
}
.filter-tab.active,
.filter-tab:hover {
    background: var(--text-dark);
    color: #fff;
    border-color: var(--text-dark);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.portfolio-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.portfolio-thumb {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
}
.portfolio-thumb-img {
    width: 100%; height: 100%;
    transition: transform 0.5s var(--transition);
}
.portfolio-card:hover .portfolio-thumb-img { transform: scale(1.06); }

/* 카드별 썸네일 색상 */
.pt-1 { background: linear-gradient(135deg, #e8e0d5 0%, #c8b89a 100%); }
.pt-2 { background: linear-gradient(135deg, #d4c8a8 0%, #a89060 100%); }
.pt-3 { background: linear-gradient(135deg, #3a2a1a 0%, #1a1008 70%, #2a1808 100%); }
.pt-4 { background: linear-gradient(135deg, #dce8f0 0%, #a8c0d0 100%); }
.pt-5 { background: linear-gradient(135deg, #f0ece4 0%, #d8d0c0 100%); }
.pt-6 { background: linear-gradient(135deg, #2a1808 0%, #4a2c10 40%, #6a4020 100%); }

.portfolio-badge {
    position: absolute;
    top: 14px; left: 14px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.badge-new  { background: var(--accent);       color: #fff; }
.badge-best { background: var(--primary-dark);  color: #fff; }

.portfolio-info { padding: 18px 20px; }
.portfolio-info h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}
.portfolio-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}
.portfolio-meta::before {
    content: '';
    display: inline-block;
    width: 12px; height: 1px;
    background: var(--border);
}

/* ════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
#contact {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}
/* 배경 이미지 레이어 */
#contact::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('/images/bg-interior.png');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    z-index: 0;
}
/* 어두운 오버레이 */
#contact::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
            135deg,
            rgba(10, 7, 3, 0.82) 0%,
            rgba(15, 10, 5, 0.78) 50%,
            rgba(10, 7, 3, 0.85) 100%
    );
    z-index: 0;
}
/* 컨텐츠는 오버레이 위로 */
#contact .container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}
.contact-left .section-label { color: var(--accent-light); }
.contact-left .section-title { color: #fff; margin-bottom: 24px; }
.contact-left > p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 40px;
}
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-icon {
    width: 40px; height: 40px;
    background: rgba(200,132,42,0.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}
.contact-info-item div h4 {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.contact-info-item div p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    margin: 0;
}

/* 상담 신청 폼 */
.contact-form-card {
    background: rgba(20, 13, 6, 0.70);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 20px;
    padding: 40px;
}
.contact-form-card h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 28px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.form-group label .req { color: #E8A84A; margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    color: #fff;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #C8842A;
    background: rgba(255,255,255,0.1);
}
.form-group select {
    appearance: none;
    cursor: pointer;
    color: rgba(255,255,255,0.25);
}
.form-group select option { background: #2a1c0c; color: #fff; }
.form-group textarea { height: 120px; resize: none; }
.form-char-count {
    text-align: right;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-top: 6px;
}
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
    margin-top: 8px;
}
.btn-submit:hover { background: #5C3D1E; transform: translateY(-2px); }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
footer {
    background: var(--bg-cream);
    padding: 60px 0 32px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 48px;
}
.footer-brand p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 16px;
    margin-bottom: 24px;
    max-width: 280px;
}
.footer-socials { display: flex; gap: 10px; }
.social-btn {
    width: 38px; height: 38px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.social-btn:hover { background: var(--text-dark); color: #fff; border-color: var(--text-dark); }

.footer-nav h4,
.footer-contact h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text-light);
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item { display: flex; gap: 10px; align-items: center; }
.footer-contact-item span:first-child { font-size: 14px; color: var(--accent); }
.footer-contact-item span:last-child  { font-size: 13px; color: var(--text-mid); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p { font-size: 12px; color: var(--text-light); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--accent); }

/* ════════════════════════════════════════════
   스크롤 애니메이션
════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* JS 로드 실패 시 폴백 */
.no-js .reveal { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ════════════════════════════════════════════
   플로팅 버튼
════════════════════════════════════════════ */
.floating-buttons {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s var(--transition), box-shadow 0.2s var(--transition);
    overflow: hidden;
    padding: 0;
}
.floating-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.floating-btn img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}
.floating-kakao     { background: transparent; }
.floating-instagram { background: transparent; }
.floating-blog      { background: transparent; }

/* ════════════════════════════════════════════
   서브 페이지 공통
════════════════════════════════════════════ */

/* 페이지 헤더 (서브 페이지 상단 배너) */
.page-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 88px;
}
.page-header-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #0e1a0c 0%, #1c2e18 40%, #243822 100%);
}
.page-header-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
}
.page-header-content {
    position: relative;
    z-index: 1;
}
.page-header-title {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: #fff;
    margin: 12px 0 8px;
}
.page-header-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
}

/* 서브 페이지 네비 (초록 고정 배경) */
nav.sub-mode {
    background:
        linear-gradient(to bottom, rgba(10,8,4,0.45) 0%, rgba(10,8,4,0.60) 60%, rgba(10,8,4,0.75) 100%),
        linear-gradient(135deg, #0e1a0c 0%, #1c2e18 40%, #243822 100%);
    box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
nav.sub-mode .nav-links a { color: rgba(255,255,255,0.85); }
nav.sub-mode .nav-links a:hover { color: #fff; }
nav.sub-mode .nav-links a.active { color: #8FB080 !important; font-weight: 600; }

/* 프로세스 섹션 */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.process-item {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s, transform 0.3s;
}
.process-item:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.process-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 16px;
}
.process-item h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.process-item p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* 상담 페이지 섹션 */
.contact-page {
    background: var(--bg-cream);
    padding-top: 80px;
}
@media (max-width: 900px) {
    .contact-page { margin-top: 40px; padding-top: 60px; }
}
@media (max-width: 600px) {
    .contact-page { margin-top: 20px; padding-top: 40px; }
}

/* footer 로고 */
.footer-logo-wrap {
    width: 240px;
    height: 44px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.footer-logo-wrap img {
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius:6px;
}

/* 라디오 버튼 그룹 - 커스텀 태그 스타일 */
.radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.radio-label {
    position: relative;
    cursor: pointer;
}
.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.radio-label span {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Noto Sans KR', sans-serif;
    border: 1.5px solid var(--border);
    color: var(--text-mid);
    background: #fff;
    transition: all 0.2s var(--transition);
    user-select: none;
}
.radio-label input[type="radio"]:checked + span {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.radio-label:hover span {
    border-color: var(--accent);
    color: var(--accent);
}
.radio-label input[type="radio"]:checked + span:hover {
    color: #fff;
}
/* 어두운 폼용 라디오 */
.contact-form-card .radio-label span {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
}
.contact-form-card .radio-label input[type="radio"]:checked + span {
    background: #C8842A;
    border-color: #C8842A;
    color: #fff;
}
.contact-form-card .radio-label:hover span {
    border-color: #C8842A;
    color: #C8842A;
}

/* 달력(date) input */
input[type="date"] {
    color-scheme: light;
}
.contact-form-card input[type="date"] {
    color-scheme: dark;
}

/* 라디오 버튼 그룹 */
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 4px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-mid);
    cursor: pointer;
    font-weight: 400;
}
.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #C8842A;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

/* 상담 페이지 밝은 폼 카드 */
.contact-form-card-light {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.contact-form-card-light h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 28px;
}
.contact-form-card-light .form-group label {
    color: var(--text-mid);
}
.contact-form-card-light .form-group input,
.contact-form-card-light .form-group select,
.contact-form-card-light .form-group textarea {
    background: var(--bg-cream);
    border: 1px solid var(--border);
    color: var(--text-dark);
    max-width: 100%;
    box-sizing: border-box;
}
.contact-form-card-light .form-group input::placeholder,
.contact-form-card-light .form-group textarea::placeholder {
    color: var(--text-light);
}
.contact-form-card-light .form-group input:focus,
.contact-form-card-light .form-group select:focus,
.contact-form-card-light .form-group textarea:focus {
    border-color: #C8842A;
    background: #fff;
}
.contact-form-card-light .form-group select {
    color: var(--text-light);
}
.contact-form-card-light .form-group select option {
    background: #fff;
    color: var(--text-dark);
}
.form-char-count-light {
    text-align: right;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 6px;
}

/* 햄버거 버튼 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 101;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s var(--transition);
    transform-origin: center;
}
nav.scrolled .hamburger span { background: var(--text-dark); }
nav.sub-mode .hamburger span  { background: #fff; }

/* 햄버거 → X 애니메이션 */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 모바일 드롭다운 메뉴 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 88px;
    right: 16px;
    z-index: 99;
    pointer-events: none;
}
.mobile-menu.open {
    pointer-events: auto;
}
.mobile-menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 8px;
}
.mobile-menu ul li a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    background: var(--green-dark);
    border-radius: 100px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.25s var(--transition), transform 0.25s var(--transition), background 0.2s;
}
.mobile-menu ul li a:hover {
    background: var(--primary-dark);
}
.mobile-menu .mobile-cta a {
    display: inline-block;
    padding: 11px 22px;
    background: #C8842A;
    color: #fff;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(200,132,42,0.35);
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.25s var(--transition), transform 0.25s var(--transition), background 0.2s;
}
.mobile-menu .mobile-cta a:hover { background: #5C3D1E; }

/* 열릴 때 순서대로 등장 */
.mobile-menu.open ul li:nth-child(1) a { opacity: 1; transform: none; transition-delay: 0.05s; }
.mobile-menu.open ul li:nth-child(2) a { opacity: 1; transform: none; transition-delay: 0.10s; }
.mobile-menu.open ul li:nth-child(3) a { opacity: 1; transform: none; transition-delay: 0.15s; }
.mobile-menu.open .mobile-cta a       { opacity: 1; transform: none; transition-delay: 0.20s; }

/* 닫힐 때 역순으로 사라짐 */
.mobile-menu ul li:nth-child(3) a { transition-delay: 0.00s; }
.mobile-menu ul li:nth-child(2) a { transition-delay: 0.05s; }
.mobile-menu ul li:nth-child(1) a { transition-delay: 0.10s; }
.mobile-menu .mobile-cta a        { transition-delay: 0.00s; }

@media (max-width: 600px) {
    .hamburger { display: flex; }
    .mobile-menu { display: block; }
}
@media (max-width: 900px) {
    .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .page-header { height: 220px; }
    .process-grid { grid-template-columns: 1fr; }
    .contact-form-card-light { padding: 24px 16px; }
}

/* ════════════════════════════════════════════
   반응형
════════════════════════════════════════════ */

/* ── 태블릿 (900px 이하) ── */
@media (max-width: 900px) {
    nav { padding: 0 24px; }
    .nav-links { gap: 20px; }
    .container { padding: 0 24px; }

    /* Hero */
    #hero { min-height: 600px; }
    .hero-stats { gap: 32px; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrap { max-width: 480px; margin: 0 auto; }
    .about-feature-cards { grid-template-columns: 1fr 1fr; }

    /* Portfolio */
    .portfolio-header { grid-template-columns: 1fr; }
    .portfolio-header p { text-align: left; }
    .portfolio-grid { grid-template-columns: 1fr 1fr; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-card { padding: 28px 24px; }

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

/* ── 모바일 (600px 이하) ── */
@media (max-width: 600px) {
    /* 공통 */
    section { padding: 64px 0; }
    .container { padding: 0 20px; }

    /* Navbar */
    nav { padding: 0 20px; height: 60px; }
    .nav-links { display: none; }
    .nav-logo-box { width: 96px; height: 54px; }

    /* Hero */
    #hero { min-height: 100svh; }
    .hero-h1 { font-size: clamp(32px, 9vw, 48px); }
    .hero-sub { font-size: 14px; padding: 0 8px; }
    .hero-btns { flex-direction: column; align-items: center; gap: 12px; }
    .btn-outline-white,
    .btn-filled-accent { width: 100%; max-width: 280px; justify-content: center; padding: 13px 24px; }
    .hero-stats { gap: 20px; }
    .hero-stat-num { font-size: 30px; }
    .hero-stat-label { font-size: 11px; }
    .hero-scroll { display: none; }

    /* About */
    .about-grid { gap: 32px; }
    .about-nums { gap: 20px; flex-wrap: wrap; }
    .about-num-val { font-size: 28px; }
    .about-feature-cards { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
    .feature-card { padding: 22px 18px; }
    .about-img-main { min-height: 0 !important; aspect-ratio: 4/3; }
    .about-image-wrap { width: 100%; max-width: 100%; overflow: hidden; }

    /* Section 제목 */
    .section-title { font-size: clamp(26px, 7vw, 36px); }

    /* Portfolio */
    .portfolio-header { gap: 12px; margin-bottom: 24px; }
    .filter-tabs { gap: 8px; margin-bottom: 24px; }
    .filter-tab { padding: 7px 16px; font-size: 12px; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 16px; }

    /* Contact */
    #contact { padding: 64px 0; margin-top: 0 }
    .contact-grid { gap: 32px; }
    .contact-form-card { padding: 24px 16px; border-radius: 16px; }
    .contact-form-card h3 { font-size: 18px; margin-bottom: 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-info-list { gap: 16px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom-links { gap: 16px; }

    /* 플로팅 버튼 */
    .floating-buttons { bottom: 20px; right: 16px; gap: 10px; }
    .floating-btn { width: 48px; height: 48px; }
    .floating-btn img { width: 48px; height: 48px; }
}

/* ════════════════════════════════════════════
   포트폴리오 슬라이더 (화살표 페이징)
════════════════════════════════════════════ */
.portfolio-slider-wrap {
    display: flex;
    align-items: center;
}
@keyframes float-updown {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.slider-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    padding: 0;
    opacity: 0.85;
    transition: opacity 0.25s;
    text-decoration: none;
}
.slider-arrow:hover {
    opacity: 1;
    animation: float-updown 1.2s ease-in-out infinite;
}
.slider-arrow.disabled {
    opacity: 0.2;
    pointer-events: none;
    animation: none;
}
.slider-arrow svg { width: 52px; height: 82px; }
.portfolio-slider-wrap .portfolio-grid { flex: 1; min-width: 0; }
.page-indicator {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 1px;
}
a.filter-tab { display: inline-block; text-decoration: none; }

@media (max-width: 600px) {
    .slider-arrow { width: 40px; }
    .slider-arrow svg { width: 32px; height: 54px; }
}