@charset "UTF-8";

/*
Theme Name: Nha Be Estate
Theme URI: https://example.com/nhabe-estate
Author: Nha Be Estate
Description: Theme WordPress cho website bất động sản khu Nam Sài Gòn và Nhà Bè.
Version: 1.4.1
Text Domain: nhabe-estate
*/

:root {
  --ink: #102a2e;
  --muted: #68797b;
  --green: #0b6658;
  --green-dark: #07473e;
  --gold: #d8a43b;
  --cream: #f5f2e9;
  --white: #fff;
  --line: #dfe7e5;
  --shadow: 0 18px 50px rgba(14, 47, 45, .12);
  --radius: 18px;
  --font-sans: "Segoe UI", Tahoma, Arial, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--font-sans); font-synthesis: none; line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: var(--font-sans); }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.section--soft { background: #f6f8f7; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-title { max-width: 680px; margin: 0 0 42px; font-family: var(--font-sans); font-size: clamp(34px, 5vw, 54px); font-weight: 700; line-height: 1.22; letter-spacing: -.025em; }
.btn { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 9px; padding: 0 24px; border: 1px solid transparent; border-radius: 8px; background: var(--gold); color: #172a26; font-size: 14px; font-weight: 800; cursor: pointer; transition: .25s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn--outline { border-color: rgba(255,255,255,.5); background: transparent; color: #fff; }
.btn--green { background: var(--green); color: #fff; }

.site-header { position: absolute; z-index: 30; top: 0; left: 0; width: 100%; color: #fff; transition: .25s; }
.header-inner { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid rgba(255,255,255,.18); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: var(--gold); font-family: var(--font-sans); font-size: 18px; font-weight: 700; }
.brand-name { display: block; font-family: var(--font-sans); font-size: 20px; font-weight: 700; line-height: 1.1; letter-spacing: .01em; }
.brand-sub { display: block; margin-top: 5px; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; opacity: .76; }
.main-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.main-nav a { font-size: 13px; font-weight: 700; }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 26px; }

.hero { position: relative; display: grid; min-height: 790px; align-items: end; overflow: hidden; color: #fff; background: linear-gradient(90deg, rgba(3,29,27,.92), rgba(3,29,27,.36)), url('assets/hero.jpg') center/cover, #164b43; }
.hero:after { position: absolute; right: -140px; bottom: -240px; width: 620px; height: 620px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; content: ""; }
.hero-content { position: relative; z-index: 2; padding: 190px 0 96px; }
.hero-copy { max-width: 760px; }
.hero h1 { margin: 0 0 20px; font-family: var(--font-sans); font-size: clamp(48px, 7vw, 82px); font-weight: 700; line-height: 1.12; letter-spacing: -.045em; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-copy > p { max-width: 600px; margin: 0 0 36px; color: rgba(255,255,255,.78); font-size: 17px; }
.search-panel { display: grid; grid-template-columns: 1.16fr 1.16fr 1fr .94fr 1fr 132px; gap: 8px; width: min(1160px, 100%); margin-top: 54px; padding: 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); color: var(--ink); }
.hero .search-panel { width: min(1160px, calc(100vw - 40px)); }
.search-field { min-width: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.search-field label { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.search-field select, .search-field input { width: 100%; min-height: 30px; padding: 5px 20px 5px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; text-overflow: ellipsis; }
.search-panel > .btn { width: 100%; min-height: 64px; }

.stats { position: relative; z-index: 3; margin-top: -38px; }
.stats-inner { display: grid; grid-template-columns: repeat(4,1fr); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.stat { padding: 30px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; color: var(--green); font-family: var(--font-sans); font-size: 34px; font-weight: 700; line-height: 1; }
.stat span { color: var(--muted); font-size: 12px; }

.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.property-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .3s ease; }
.property-card > a { display: block; height: 100%; cursor: pointer; }
.property-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.property-image { position: relative; height: 260px; overflow: hidden; background: #dfe8e5; }
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.property-card:hover img { transform: scale(1.04); }
.badge { position: absolute; top: 18px; left: 18px; padding: 7px 12px; border-radius: 5px; background: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.property-body { padding: 24px; }
.property-place { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.property-card h3 { margin: 8px 0 13px; font-family: var(--font-sans); font-size: 24px; font-weight: 700; line-height: 1.4; }
.property-meta { display: flex; gap: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.property-price { margin-top: 16px; color: var(--green); font-size: 19px; font-weight: 800; }

.area-section { overflow: hidden; background: var(--green-dark); color: #fff; }
.area-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 80px; }
.area-visual { position: relative; min-height: 530px; border-radius: 220px 220px 18px 18px; background: url('assets/nhabe.jpg') center/cover, #315e57; }
.area-visual:before { position: absolute; inset: 20px; border: 1px solid rgba(255,255,255,.3); border-radius: inherit; content: ""; }
.feature-list { display: grid; gap: 22px; margin-top: 36px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.feature-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: var(--gold); }
.feature h3 { margin: 0 0 4px; font-size: 16px; }
.feature p { margin: 0; color: rgba(255,255,255,.66); font-size: 14px; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-item { padding: 30px; border-top: 2px solid var(--gold); background: var(--cream); }
.process-item:before { counter-increment: step; content: "0" counter(step); color: var(--green); font-family: var(--font-sans); font-size: 38px; font-weight: 700; }
.process-item h3 { margin: 14px 0 6px; font-size: 16px; }
.process-item p { margin: 0; color: var(--muted); font-size: 13px; }

.cta { padding: 78px 0; background: var(--cream); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfc; font: inherit; }
.lead-form textarea, .lead-form .form-wide { grid-column: 1 / -1; }
.lead-form button { grid-column: 1 / -1; }

.site-footer { padding: 64px 0 25px; background: #062f2a; color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 80px; padding-bottom: 48px; }
.site-footer .brand { color: #fff; }
.site-footer h4 { margin: 0 0 18px; color: #fff; font-size: 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 9px 0; font-size: 13px; }
.copyright { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; }
.mobile-contact { display: none; }

.page-hero { padding: 180px 0 80px; background: var(--green-dark); color: #fff; }
.page-hero h1 { margin: 0; font-family: var(--font-sans); font-size: clamp(42px, 6vw, 68px); font-weight: 700; line-height: 1.2; }
.single-sidebar h2 { font-family: var(--font-sans) !important; }
.archive-wrap, .single-wrap { padding: 80px 0; }
.archive-filter { margin: 0 0 44px; border-color: var(--line); background: #fff; }
.single-layout { display: grid; grid-template-columns: 1.5fr .7fr; gap: 50px; }
.single-content img { border-radius: var(--radius); }
.single-sidebar { position: sticky; top: 30px; height: fit-content; padding: 28px; border-radius: var(--radius); background: var(--cream); }

.property-head { padding: 52px 0 42px; background: #f3f6f5; color: var(--ink); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--green); }
.property-head-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
.property-head h1 { max-width: 850px; margin: 0 0 12px; font-size: clamp(38px,5vw,64px); line-height: 1.15; letter-spacing: -.04em; }
.property-address { margin: 0; color: var(--muted); }
.property-head-price { min-width: 220px; padding-left: 32px; border-left: 1px solid var(--line); }
.property-head-price span,.property-head-price small { display: block; color: var(--muted); font-size: 12px; }
.property-head-price strong { display: block; margin: 4px 0; color: var(--green); font-size: 30px; }
.property-gallery { padding: 30px 0 0; }
.single-filter { position: relative; z-index: 3; padding: 132px 0 38px; background: var(--green-dark); }
.single-filter .search-panel { margin: 0; border-color: rgba(255,255,255,.14); box-shadow: 0 16px 40px rgba(2,28,25,.22); }
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 10px; overflow: hidden; border-radius: var(--radius); }
.gallery-item { overflow: hidden; background: #dfe8e5; }
.gallery-item--0 { grid-row: 1 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-placeholder { display: grid; min-height: 390px; place-items: center; border-radius: var(--radius); background: linear-gradient(135deg,#dce8e4,#78968e); color: #fff; }
.property-facts { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 56px; border: 1px solid var(--line); border-radius: 12px; }
.property-facts div { padding: 22px; }
.property-facts div+div { border-left: 1px solid var(--line); }
.property-facts span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.property-facts strong { display: block; margin-top: 5px; font-size: 16px; }
.content-block { padding-bottom: 44px; }
.content-block+.content-block { padding-top: 42px; border-top: 1px solid var(--line); }
.content-block h2 { margin: 0 0 20px; font-size: 30px; }
.entry-content { color: #405255; }
.property-lead-form { display: grid; gap: 13px; margin-top: 22px; }
.property-lead-form label { color: var(--muted); font-size: 11px; font-weight: 700; }
.property-lead-form input,.property-lead-form textarea { width: 100%; margin-top: 5px; padding: 12px 13px; border: 1px solid #d5dedb; border-radius: 7px; background: #fff; font: inherit; }
.advisor-contact { margin-top: 20px; padding-top: 18px; border-top: 1px solid #ddd8ca; text-align: center; }
.advisor-contact span { display: block; color: var(--muted); font-size: 11px; }
.advisor-contact a { color: var(--green); font-size: 22px; font-weight: 800; }
.form-success { padding: 11px 13px; border-radius: 7px; background: #dceee8; color: var(--green); font-size: 13px; font-weight: 700; }

@media (max-width: 1100px) {
  .search-panel { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 920px) {
  .main-nav { position: absolute; top: 88px; left: 20px; right: 20px; display: none; padding: 20px; border-radius: 8px; background: var(--green-dark); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-field { border-bottom: 1px solid var(--line); }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid, .cta-inner, .single-layout { grid-template-columns: 1fr; }
  .property-head-grid { grid-template-columns: 1fr; gap: 24px; }
  .property-head-price { padding: 0; border-left: 0; }
  .property-facts { grid-template-columns: 1fr 1fr; }
  .property-facts div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .property-facts div:nth-child(4) { border-top: 1px solid var(--line); }
  .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { padding-bottom: 68px; }
  body.admin-bar .site-header { top: 46px; }
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 66px 0; }
  .hero { min-height: 760px; }
  .hero-content { padding-top: 145px; }
  .search-panel, .property-grid, .stats-inner, .process-grid, .lead-form, .footer-grid { grid-template-columns: 1fr; }
  .search-field { border-right: 0; }
  .stats { margin-top: 20px; }
  .stat + .stat { border-top: 1px solid var(--line); border-left: 0; }
  .area-grid { gap: 44px; }
  .area-visual { min-height: 380px; }
  .lead-form textarea, .lead-form .form-wide, .lead-form button { grid-column: auto; }
  .footer-grid { gap: 32px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 140px; }
  .gallery-item--0 { grid-column: 1 / 3; grid-row: auto; }
  .property-facts { grid-template-columns: 1fr; }
  .property-facts div+div,.property-facts div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .mobile-contact { position: fixed; z-index: 9999; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; min-height: 64px; box-shadow: 0 -8px 30px rgba(5,35,31,.18); }
  .mobile-contact a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; color: #fff; text-align: center; }
  .mobile-contact span { font-size: 10px; text-transform: uppercase; opacity: .8; }
  .mobile-contact strong { font-size: 15px; }
  .mobile-contact__phone { background: var(--green); }
  .mobile-contact__zalo { background: #0877d1; }
}
