/* =============================================================
   Tate Hannam — main.css
   ============================================================= */

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

:root {
    --white:      #ffffff;
    --off-white:  #f8f8f6;
    --light-gray: #efefed;
    --mid-gray:   #c8c8c4;
    --gray:       #8c8c88;
    --dark-gray:  #3a3a38;
    --black:      #0d0d0c;
    --gold:       #b8992e;
    --gold-light: #d4b84a;
    --gold-pale:  #f0e6c0;
    --gold-dark:  #8a7020;
    --serif: 'Noto Serif KR', serif;
    --sans:  'Noto Sans KR', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--white);
    color: var(--black);
    font-size: 15px;
    line-height: 1.7;
}

/* 워드프레스 관리자 바 여백 보정 */
.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar nav { top: 46px; }
}

/* 이탤릭체 전체 제거 */
em { font-style: normal; }

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--light-gray);
    height: 64px;
    display: flex;
    align-items: center;
}
.nav-inner {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
    font-size: 13px; font-weight: 400; color: var(--gray);
    text-decoration: none; letter-spacing: 0.05em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }
.nav-cta {
    font-size: 12px; font-weight: 400; color: var(--gold-dark);
    text-decoration: none; border: 1px solid var(--gold);
    padding: 7px 20px; letter-spacing: 0.06em;
    transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--gold); color: var(--white); }

/* ── HERO ── */
.hero {
    padding-top: 64px;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: url('../img/background.png') center center / cover no-repeat;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        105deg,
        rgba(255,255,255,0.88) 0%,
        rgba(255,255,255,0.70) 38%,
        rgba(255,255,255,0.22) 65%,
        transparent 100%
    );
    pointer-events: none;
}
.hero-deco {
    position: absolute; right: 0; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold) 40%, var(--gold) 60%, transparent);
    opacity: 0.3;
}
.hero-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 80px;
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 400; letter-spacing: 0.16em;
    color: var(--gold-dark); text-transform: uppercase; margin-bottom: 28px;
}
.hero-eyebrow::before {
    content: ''; display: inline-block; width: 28px; height: 1px; background: var(--gold);
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 300; line-height: 1.18; color: var(--black);
    letter-spacing: -0.01em; margin-bottom: 24px;
    max-width: 900px;
}
.hero-title em { color: var(--gold); }
.hero-desc {
    font-size: 15px; font-weight: 400; color: #2e2e2c;
    max-width: 680px; line-height: 1.85; margin-bottom: 36px;
}
.hero-features {
    list-style: none; display: flex; flex-direction: column;
    gap: 14px; max-width: 680px; margin-bottom: 44px;
}
.hero-features li { display: flex; align-items: baseline; gap: 12px; }
.hero-features li::before {
    content: ''; display: inline-block; width: 20px; height: 1px;
    background: var(--gold); flex-shrink: 0; align-self: flex-start; margin-top: 8px;
}
.hero-feature-title {
    font-size: 12px; font-weight: 600; color: var(--black);
    letter-spacing: 0.06em; white-space: nowrap; flex-shrink: 0;
}
.hero-feature-desc { font-size: 13px; font-weight: 400; color: #3a3a38; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* 버튼 */
.btn-primary {
    display: inline-block; background: var(--black); color: var(--white);
    text-decoration: none; font-size: 12px; font-weight: 400;
    letter-spacing: 0.1em; padding: 14px 36px;
    transition: background 0.2s; text-transform: uppercase;
}
.btn-primary:hover { background: var(--dark-gray); }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 500; color: var(--gold-dark);
    text-decoration: none; letter-spacing: 0.04em;
    border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: color 0.2s;
}
.btn-ghost:hover { color: var(--gold-light); }

.hero-stats {
    display: flex; gap: 48px; margin-top: 72px;
    padding-top: 40px; border-top: 1px solid rgba(0,0,0,0.15);
}
.hero-stat-num {
    font-family: var(--serif); font-size: 32px; font-weight: 300;
    color: var(--black); line-height: 1; margin-bottom: 4px;
}
.hero-stat-num sup { font-size: 14px; color: var(--gold-dark); }
.hero-stat-label { font-size: 11px; font-weight: 400; color: var(--dark-gray); letter-spacing: 0.08em; }

/* Gold Divider */
.gold-divider {
    width: 100%; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
    opacity: 0.35;
}

/* ── SECTION COMMON ── */
section { padding: 96px 32px; }
.inner { max-width: 1100px; margin: 0 auto; }
.sec-eyebrow {
    font-size: 11px; font-weight: 400; letter-spacing: 0.16em;
    color: var(--gold); text-transform: uppercase; margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px;
}
.sec-eyebrow::before {
    content: ''; display: inline-block; width: 20px; height: 1px; background: var(--gold);
}
.sec-title {
    font-family: var(--serif); font-size: clamp(26px, 4vw, 40px);
    font-weight: 300; color: var(--black); line-height: 1.25; margin-bottom: 16px;
}
.sec-title em { color: var(--gold); }
.sec-sub { font-size: 14px; font-weight: 300; color: var(--gray); max-width: 500px; line-height: 1.8; }
.sec-header { margin-bottom: 56px; }

/* ── 대표 매물 ── */
#properties { background: var(--off-white); }
.prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    background: var(--mid-gray);
    border: 1px solid var(--mid-gray);
}
.prop-card {
    background: var(--white);
    overflow: hidden;
    transition: transform 0.25s;
    cursor: pointer;
    position: relative;
}
.prop-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.prop-card:hover::after { transform: scaleX(1); }
.prop-card:hover { transform: translateY(-3px); }
.prop-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--light-gray);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    flex-shrink: 0;
}
.prop-badge {
    position: absolute; top: 14px; left: 14px; background: var(--gold);
    color: var(--white); font-size: 10px; font-weight: 400;
    letter-spacing: 0.12em; padding: 4px 10px; text-transform: uppercase; z-index: 1;
}
.prop-badge.rent { background: var(--black); }
.prop-body { padding: 22px 24px 26px; }
.prop-type {
    font-size: 10px; font-weight: 400; letter-spacing: 0.14em;
    color: var(--gold); text-transform: uppercase; margin-bottom: 6px;
}
.prop-name {
    font-family: var(--serif); font-size: 18px; font-weight: 300;
    color: var(--black); margin-bottom: 6px; line-height: 1.3;
}
.prop-location {
    font-size: 12px; font-weight: 300; color: var(--gray);
    margin-bottom: 16px; display: flex; flex-direction: column; gap: 5px;
}
.prop-addr-row {
    display: flex; align-items: baseline; gap: 7px;
}
.prop-addr-label {
    font-size: 10px; font-weight: 400; color: var(--gold);
    letter-spacing: 0.08em; border: 1px solid rgba(184,153,46,0.3);
    padding: 1px 6px; flex-shrink: 0; white-space: nowrap;
}
.prop-price {
    font-family: var(--serif); font-size: 22px; font-weight: 300; color: var(--black);
}
.prop-price span {
    font-family: var(--sans); font-size: 12px; font-weight: 300;
    color: var(--gray); margin-left: 4px;
}
.prop-meta {
    display: flex; gap: 14px; margin-top: 14px; padding-top: 14px;
    border-top: 1px solid var(--light-gray); font-size: 12px; font-weight: 300; color: var(--gray);
}

/* ── 사업영역 ── */
#services { background: #0a0a08; padding: 112px 32px; }
#services .sec-eyebrow { color: var(--gold); }
#services .sec-eyebrow::before { background: var(--gold); }
#services .sec-title { color: var(--white); font-size: clamp(30px, 4.5vw, 48px); }
#services .sec-title em { color: var(--gold); }
#services .sec-sub { color: rgba(255,255,255,0.5); font-size: 15px; max-width: 560px; }
#services .sec-header { margin-bottom: 64px; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(255,255,255,0.07);
}
.service-item {
    background: #111110;
    border-right: 1px solid rgba(255,255,255,0.07);
    position: relative; overflow: hidden;
    transition: background 0.3s; cursor: default;
    display: flex; flex-direction: column;
}
.service-item:last-child { border-right: none; }
.service-item::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(to right, var(--gold-dark), var(--gold-light));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; z-index: 2;
}
.service-item::after {
    content: attr(data-num);
    position: absolute; bottom: -12px; right: 20px;
    font-family: var(--serif); font-size: 100px; font-weight: 300;
    color: rgba(255,255,255,0.025); line-height: 1;
    pointer-events: none; user-select: none;
}
.service-item:hover { background: #1c1c18; }
.service-item:hover::before { transform: scaleX(1); }
.service-img-wrap { width: 100%; height: 180px; overflow: hidden; flex-shrink: 0; }
.service-img {
    width: 100%; height: 180px; object-fit: cover; object-position: center; display: block;
    filter: brightness(0.82) saturate(0.9); transition: filter 0.35s, transform 0.4s;
}
.service-item:hover .service-img { filter: brightness(0.92) saturate(1); transform: scale(1.03); }
.service-body {
    padding: 32px 32px 40px; position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column;
}
.service-num {
    font-family: var(--serif); font-size: 11px; color: var(--gold);
    letter-spacing: 0.12em; margin-bottom: 16px; display: block;
}
.service-name {
    font-family: var(--serif); font-size: 23px; font-weight: 300;
    color: var(--white); margin-bottom: 14px; line-height: 1.2; letter-spacing: -0.01em;
}
.service-divider { width: 28px; height: 1px; background: var(--gold); opacity: 0.55; margin-bottom: 16px; }
.service-desc { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.45); line-height: 1.8; flex: 1; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.service-tag {
    font-size: 10px; font-weight: 400; letter-spacing: 0.08em;
    color: rgba(184,153,46,0.7); border: 1px solid rgba(184,153,46,0.22);
    padding: 3px 10px; text-transform: uppercase;
}

/* ── 중개사 소개 ── */
#agents { display: none; }
.agents-intro { max-width: 560px; margin-bottom: 56px; }
.agents-intro p { font-size: 14px; font-weight: 300; color: var(--gray); line-height: 1.85; margin-bottom: 14px; }

/* ── 오시는 길 ── */
#contact { background: var(--off-white); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info-block { margin-bottom: 32px; }
.contact-label { font-size: 10px; font-weight: 400; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.contact-value { font-size: 15px; font-weight: 300; color: var(--black); line-height: 1.7; }
.contact-value a { color: var(--black); text-decoration: none; }
.contact-value a:hover { color: var(--gold); }
.map-img { width: 100%; height: 280px; object-fit: cover; object-position: center; display: block; border: 1px solid var(--mid-gray); margin-bottom: 32px; }

/* 폼 (CF7 포함) */
.form-group { margin-bottom: 16px; }
.form-label,
.wpcf7 label {
    display: block; font-size: 10px; font-weight: 400;
    letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; margin-bottom: 7px;
}
.form-control,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%; background: var(--white);
    border: 1px solid var(--light-gray); border-bottom: 1px solid var(--mid-gray);
    padding: 11px 14px; font-family: var(--sans); font-size: 14px; font-weight: 300;
    color: var(--black); outline: none; transition: border-color 0.2s; resize: none; appearance: none;
}
.form-control:focus,
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { border-color: var(--gold); }
.form-control::placeholder,
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: var(--mid-gray); }
.form-submit,
.wpcf7 input[type="submit"] {
    width: 100%; background: var(--black); color: var(--white); border: none;
    padding: 14px 24px; font-family: var(--sans); font-size: 12px; font-weight: 400;
    letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
    transition: background 0.2s; margin-top: 4px;
}
.form-submit:hover,
.wpcf7 input[type="submit"]:hover { background: var(--gold); }
.wpcf7-response-output { margin-top: 12px !important; border: none !important; font-size: 13px; color: var(--gray); }
.wpcf7 p { margin-bottom: 0; }

/* ── FOOTER ── */
footer { background: var(--black); color: rgba(255,255,255,0.45); padding: 48px 32px; }
.footer-inner {
    max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap;
    justify-content: space-between; gap: 32px; align-items: flex-start;
}
.footer-corp { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.3); line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.4); text-decoration: none; letter-spacing: 0.06em; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
    max-width: 1100px; margin: 32px auto 0; padding-top: 24px;
    border-top: 1px solid rgba(184,153,46,0.15); font-size: 11px; font-weight: 300;
    color: rgba(255,255,255,0.2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ── FLOATING CTA ── */
.float-cta {
    position: fixed; bottom: 32px; right: 32px; z-index: 200;
    display: flex; flex-direction: column; gap: 10px;
    align-items: stretch; width: 140px;
}
.float-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; width: 100%; text-decoration: none; padding: 12px 0;
    font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    transition: transform 0.15s, filter 0.2s; white-space: nowrap;
}
.float-btn:hover { transform: translateY(-2px); filter: brightness(0.92); }
.float-btn.kakao-btn { background: #FEE500; color: #3A1D1D; }
.float-btn.phone-btn { background: var(--black); color: var(--white); }

/* ── 매물 모달 ── */
.prop-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 500; display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.prop-modal-overlay.is-open { opacity: 1; pointer-events: all; }
.prop-modal {
    background: var(--white); width: 100%; max-width: 420px; padding: 32px;
    position: relative; transform: translateY(16px); transition: transform 0.25s;
}
.prop-modal-overlay.is-open .prop-modal { transform: translateY(0); }
.prop-modal-close {
    position: absolute; top: 16px; right: 18px;
    background: none; border: none; font-size: 18px; color: var(--gray);
    cursor: pointer; line-height: 1; padding: 4px; transition: color 0.2s;
}
.prop-modal-close:hover { color: var(--black); }
.prop-modal-header { margin-bottom: 20px; }
.prop-modal-category {
    font-size: 11px; font-weight: 400; color: var(--gold);
    letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 8px;
}
.prop-modal-title {
    font-family: var(--serif); font-size: 22px; font-weight: 300;
    color: var(--black); line-height: 1.25; margin: 0;
}
.prop-modal-address {
    border-top: 1px solid var(--light-gray); padding: 16px 0;
    display: flex; flex-direction: column; gap: 8px;
}
.prop-modal-addr-row {
    display: flex; align-items: baseline; gap: 8px;
    font-size: 13px; color: var(--gray);
}
.prop-modal-addr-label {
    font-size: 10px; font-weight: 400; color: var(--gold);
    letter-spacing: 0.08em; border: 1px solid rgba(184,153,46,0.3);
    padding: 2px 7px; flex-shrink: 0; white-space: nowrap;
}
.prop-modal-price-box {
    background: var(--off-white); padding: 16px; margin-bottom: 16px;
}
.prop-modal-price {
    font-family: var(--serif); font-size: 26px; font-weight: 300;
    color: var(--black); margin: 0 0 6px;
}
.prop-modal-price span {
    font-family: var(--sans); font-size: 13px; font-weight: 300;
    color: var(--gray); margin-left: 4px;
}
.prop-modal-meta { font-size: 12px; font-weight: 300; color: var(--gray); margin: 0; }
.prop-modal-inquiry {
    background: #fffbe6; border: 1px solid rgba(184,153,46,0.2);
    padding: 14px 16px; margin-bottom: 16px;
}
.prop-modal-inquiry-title { font-size: 13px; font-weight: 500; color: #5a4a00; margin: 0 0 4px; }
.prop-modal-inquiry-desc { font-size: 12px; color: #7a6a10; margin: 0; line-height: 1.7; }
.prop-modal-call-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; background: var(--black); color: var(--white); text-decoration: none;
    padding: 15px; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; transition: background 0.2s;
}
.prop-modal-call-btn:hover { background: var(--dark-gray); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-item { border-bottom: 1px solid rgba(255,255,255,0.07); }
    .service-item:nth-child(2) { border-right: none; }
    .service-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.07); }
    .service-item:nth-child(4) { border-right: none; }
}
@media (max-width: 900px) {
    .agent-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    section { padding: 72px 20px; }
    #services { padding: 80px 20px; }
    nav { height: 56px; }
    .nav-inner { padding: 0 20px; }
    .nav-links { display: none; }
    .hero-inner { padding: 60px 24px; }
    .hero-title { max-width: 100%; }
    .hero-desc { max-width: 100%; }
    .hero-features { max-width: 100%; }
    .hero-stats { gap: 28px; flex-wrap: wrap; }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .footer-inner { flex-direction: column; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 4px; }
    .float-cta { bottom: 20px; right: 16px; width: 120px; }
    .float-btn { font-size: 11px; padding: 11px 0; }
    .service-grid { grid-template-columns: 1fr 1fr; }

    /* 모바일 매물 카드 — 좌사진 우정보 가로 레이아웃 */
    .prop-grid { grid-template-columns: 1fr; }
    .prop-card { display: flex; flex-direction: row; align-items: stretch; }
    .prop-card:hover { transform: none; }
    .prop-img { width: 42%; min-width: 42%; aspect-ratio: 1 / 1; height: auto; flex-shrink: 0; }
    .prop-body {
        padding: 14px 16px; flex: 1; min-width: 0; overflow: hidden;
        display: flex; flex-direction: column; justify-content: center;
    }
    .prop-type { font-size: 9px; margin-bottom: 3px; }
    .prop-name { font-size: 14px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .prop-location { font-size: 11px; margin-bottom: 8px; gap: 3px; }
    .prop-addr-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
    .prop-addr-label { font-size: 9px; padding: 1px 4px; }
    .prop-price { font-size: 15px; }
    .prop-price span { font-size: 11px; }
    .prop-meta { display: none; }

    /* 모달 */
    .prop-modal { padding: 24px 20px; }
    .prop-modal-title { font-size: 19px; }
    .prop-modal-price { font-size: 22px; }
}
@media (max-width: 480px) {
    .agent-grid { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .nav-cta { display: none; }
    .prop-img { width: 38%; min-width: 38%; }
    .prop-body { padding: 12px 12px; }
    .prop-name { font-size: 13px; }
    .prop-price { font-size: 14px; }
}