/*
Theme Name: Capital Office
Theme URI: https://capitaloffice.vn
Author: Capital Office
Description: Custom WordPress theme for A Grade office leasing in Hanoi. Built for SEO, speed, schema, custom post types and premium office UI.
Version: 1.0.0
Text Domain: capital-office
*/

:root {
  --navy: #04152f;
  --navy-2: #071d3d;
  --ink: #07152e;
  --muted: #66758c;
  --line: #d9e7fb;
  --blue: #0477ff;
  --blue-2: #23a7ff;
  --soft: 0 16px 44px rgba(4, 21, 47, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.container-page {
  width: min(1880px, calc(100% - 84px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 21, 47, .97);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
}
.logo-mark {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 5px;
  align-items: end;
  height: 34px;
}
.logo-mark span { display: block; width: 8px; border-radius: 8px 8px 1px 1px; background: linear-gradient(#23a7ff, #0477ff); }
.logo-mark span:nth-child(1) { height: 20px; }
.logo-mark span:nth-child(2) { height: 29px; }
.logo-mark span:nth-child(3) { height: 36px; }
.logo small { display: block; margin-top: 2px; color: #b9d9ff; font-size: 10px; letter-spacing: .34em; }
.primary-nav { display: flex; align-items: center; gap: 30px; color: #fff; font-size: 13px; font-weight: 700; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--blue-2); }
.header-actions { display: flex; align-items: center; gap: 16px; color: #fff; font-size: 14px; font-weight: 700; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 0 24px;
  background: linear-gradient(135deg, #0586ff, #005bd6);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(4,119,255,.28);
  cursor: pointer;
}
.btn-ghost {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(210,229,255,.8);
  padding: 0 18px;
  color: var(--blue);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,21,47,.96), rgba(4,21,47,.72), rgba(4,21,47,.08)),
    linear-gradient(0deg, rgba(4,21,47,.86), transparent 55%, rgba(4,21,47,.14));
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  min-height: 660px;
  padding-top: 108px;
}
.hero-copy .eyebrow {
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 690px;
  margin: 20px 0 0;
  font-size: 50px;
  line-height: 1.13;
  letter-spacing: 0;
}
.hero h1 span { color: #0586ff; }
.hero-copy p {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(224,240,255,.9);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 650;
}
.hero .btn-primary { margin-top: 32px; min-width: 250px; text-transform: uppercase; }
.slider-dots { display: flex; align-items: center; gap: 22px; margin-top: 58px; font-size: 14px; font-weight: 800; }
.slider-dots i { width: 38px; height: 1px; background: var(--blue-2); }
.slider-dots span:not(:first-child) { opacity: .45; }
.hero-stats { display: flex; align-items: flex-start; justify-content: flex-end; padding-top: 238px; }
.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(720px, 100%);
  border: 1px solid rgba(185,218,255,.28);
  border-radius: 22px;
  background: rgba(3,19,43,.74);
  box-shadow: 0 20px 60px rgba(2,11,29,.28);
  backdrop-filter: blur(18px);
  padding: 22px 28px;
}
.stat + .stat { border-left: 1px solid rgba(255,255,255,.35); padding-left: 34px; }
.stat strong { display: block; color: var(--blue-2); font-size: 42px; line-height: 1; }
.stat span { display: block; margin-top: 11px; color: rgba(224,240,255,.88); font-size: 14px; font-weight: 700; }
.contact-rail {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  display: grid;
  overflow: hidden;
  border-radius: 13px;
  background: rgba(4,21,47,.72);
  color: #fff;
  backdrop-filter: blur(12px);
}
.contact-rail a { display: grid; place-items: center; width: 46px; height: 46px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; font-weight: 800; }
.contact-rail a:first-child { border-top: 0; }

.search-box {
  position: relative;
  z-index: 5;
  margin-top: -62px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(4,21,47,.12);
  padding: 0 30px 30px;
}
.search-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.search-tabs button {
  border: 0;
  background: transparent;
  padding: 22px 10px 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.search-tabs button.is-active { color: var(--blue); border-bottom: 2px solid var(--blue); }
.search-fields { display: grid; grid-template-columns: repeat(4, 1fr) 140px; gap: 24px; margin-top: 22px; align-items: end; }
.field label { display: block; margin-bottom: 9px; color: #50627c; font-size: 13px; font-weight: 650; }
.field select, .field input, .field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--ink);
  outline: none;
}
.field textarea { min-height: 116px; padding-block: 12px; resize: vertical; }

.section { padding: 56px 0; }
.section-white { background: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section h2 { margin: 10px 0 0; font-size: 32px; line-height: 1.2; }
.link-arrow { color: var(--blue); font-size: 14px; font-weight: 800; }
.building-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.building-card {
  overflow: hidden;
  border: 1px solid #d7e8ff;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--soft);
}
.building-card__image { position: relative; display: block; height: 205px; overflow: hidden; }
.building-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.building-card:hover img { transform: scale(1.045); }
.building-card__image span { position: absolute; top: 16px; left: 16px; border-radius: 8px; background: rgba(4,21,47,.84); padding: 6px 10px; color: #fff; font-size: 12px; font-weight: 700; }
.building-card__body { padding: 16px; }
.building-card h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.building-card p { min-height: 36px; margin: 5px 0 14px; color: #65758d; font-size: 12px; line-height: 1.45; }
.building-card__body > div:not(.building-card__actions) { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.building-card em { color: #65758d; font-style: normal; }
.building-card__actions { display: flex; gap: 10px; margin-top: 16px; }
.building-card__actions a, .building-card__actions button { flex: 1; border: 1px solid #d7e8ff; border-radius: 10px; background: #f5f9ff; padding: 10px; color: var(--blue); font-size: 12px; font-weight: 800; text-align: center; cursor: pointer; }

.benefit-band {
  background: #04152f;
  background-image: linear-gradient(rgba(35,167,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(35,167,255,.07) 1px, transparent 1px);
  background-size: 34px 34px;
  color: #fff;
  padding: 32px 0;
}
.benefit-grid { display: grid; grid-template-columns: 285px 1fr; gap: 48px; align-items: center; }
.benefit-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit-item { padding: 20px 0 20px 34px; border-left: 1px solid rgba(255,255,255,.2); }
.benefit-item:first-child { border-left: 0; }
.benefit-icon { color: var(--blue-2); font-size: 36px; }
.benefit-item h3 { margin: 12px 0 0; font-size: 18px; }
.benefit-item p { max-width: 220px; color: rgba(224,240,255,.78); font-size: 14px; line-height: 1.65; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  overflow: hidden;
  border: 1px solid #d7e8ff;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--soft);
}
.article-card img { width: 100%; height: 100%; object-fit: cover; min-height: 130px; }
.article-card div { padding: 16px; }
.article-card small { color: #66758c; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-card h3 { margin: 9px 0 14px; font-size: 15px; line-height: 1.5; }

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 78px 0;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,21,47,.95), rgba(4,21,47,.62)); }
.page-hero .container-page { position: relative; z-index: 2; }
.page-hero h1 { max-width: 780px; margin: 12px 0 0; font-size: 44px; line-height: 1.16; }
.page-hero p { max-width: 640px; color: rgba(224,240,255,.84); line-height: 1.7; }

.listing-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filter-panel, .premium-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft);
}
.filter-panel { position: sticky; top: 96px; padding: 20px; }
.filter-panel h2 { margin: 0 0 18px; font-size: 18px; }
.filter-panel .field { margin-bottom: 16px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 24px 0; color: #60728b; font-size: 14px; }
.breadcrumb strong { color: var(--ink); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.detail-top { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(300px, .76fr); gap: 22px; align-items: start; }
.gallery { display: grid; grid-template-columns: 1.75fr .9fr; gap: 6px; overflow: hidden; border-radius: 12px; }
.gallery-main, .gallery-side figure { position: relative; margin: 0; overflow: hidden; background: #eef4fb; }
.gallery-main { min-height: 480px; }
.gallery-side { display: grid; gap: 6px; }
.gallery-side figure { min-height: 156px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-badge, .gallery-button { position: absolute; left: 20px; border-radius: 8px; background: rgba(4,21,47,.88); color: #fff; font-size: 13px; font-weight: 800; }
.gallery-badge { top: 20px; padding: 8px 11px; }
.gallery-button { bottom: 20px; padding: 12px 15px; }
.detail-summary { padding-top: 2px; }
.detail-summary h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.14; letter-spacing: 0; }
.stars { color: #ffb72c; font-size: 13px; font-weight: 800; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.tags span { border-radius: 7px; background: #eef6ff; padding: 6px 9px; color: #55657d; font-size: 11px; font-weight: 800; }
.detail-address { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid #dbe6f2; color: #5c6b82; font-size: 13px; font-weight: 700; line-height: 1.55; }
.detail-price { margin-top: 16px; }
.detail-price strong { display: block; font-size: 24px; line-height: 1; }
.detail-price span { display: block; margin-top: 7px; color: #66758c; font-size: 12px; font-weight: 700; }
.quick-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 22px; margin-top: 22px; }
.quick-specs div span { display: block; color: #66758c; font-size: 12px; font-weight: 700; }
.quick-specs div strong { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; }
.tabs { display: flex; gap: 10px; overflow-x: auto; margin-top: 24px; border-bottom: 1px solid #dbe6f2; }
.tabs a { padding: 13px 12px 12px; color: #5a6b83; font-size: 13px; font-weight: 800; white-space: nowrap; }
.tabs a:first-child { color: var(--blue); border-bottom: 2px solid var(--blue); }
.detail-cards { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 16px; margin-top: 18px; }
.detail-cards .info-card:nth-child(3) { grid-column: 1 / -1; }
.info-card { border: 1px solid #dbe6f2; border-radius: 12px; background: #fff; box-shadow: var(--soft); padding: 20px; }
.info-card h2 { margin: 0 0 16px; font-size: 17px; }
.info-card h3 { margin: 18px 0 12px; font-size: 15px; }
.info-card p { color: #5b6b81; font-size: 13px; line-height: 1.75; }
.spec-table { display: grid; gap: 11px; font-size: 13px; }
.spec-table div { display: grid; grid-template-columns: 118px 1fr; gap: 10px; }
.spec-table span { color: #66758c; }
.spec-table strong { line-height: 1.45; }
.check-list { display: grid; gap: 12px; padding: 0; margin: 18px 0; list-style: none; }
.check-list li { color: #12243f; font-size: 13px; font-weight: 700; line-height: 1.55; }
.check-list li::before { content: "✓"; color: var(--blue); margin-right: 10px; font-weight: 900; }
.amenity-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amenity-mini span { display: flex; min-height: 54px; align-items: center; border: 1px solid #dbe6f2; border-radius: 9px; padding: 10px 12px; font-size: 12px; font-weight: 800; line-height: 1.35; }
.floor-img { width: 100%; height: 300px; border-radius: 10px; object-fit: cover; }

.sidebar { display: grid; gap: 16px; position: sticky; top: 96px; }
.lead-form { overflow: hidden; border: 1px solid #dbe6f2; border-radius: 12px; background: #fff; box-shadow: var(--soft); }
.lead-form__head { background: var(--navy); color: #fff; padding: 18px 20px; }
.lead-form__head h2 { margin: 0; font-size: 21px; line-height: 1.2; }
.lead-form__head p { margin: 7px 0 0; color: rgba(224,240,255,.74); font-size: 13px; line-height: 1.55; }
.lead-form form { display: grid; gap: 12px; padding: 16px; }
.lead-form label { display: grid; gap: 6px; }
.lead-form label span { color: #5f7087; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.lead-form input, .lead-form textarea, .lead-form select { width: 100%; border: 1px solid var(--line); border-radius: 9px; min-height: 42px; padding: 0 12px; color: var(--ink); font-size: 13px; font-weight: 600; outline: none; }
.lead-form textarea { min-height: 92px; padding-block: 11px; resize: vertical; }
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(4,119,255,.1); }
.lead-form button { width: 100%; min-height: 42px; border-radius: 9px; font-size: 12px; text-transform: uppercase; }
.lead-form small { color: #66758c; font-size: 11px; font-weight: 700; text-align: center; }
.side-card { display: flex; align-items: center; gap: 12px; border: 1px solid #dbe6f2; border-radius: 12px; background: #fff; box-shadow: var(--soft); padding: 14px; color: var(--ink); font-size: 13px; font-weight: 800; line-height: 1.45; }
.side-card small { color: #66758c; font-size: 11px; font-weight: 700; }
.detail-cta { display: grid; grid-template-columns: 1.2fr .7fr .7fr 1fr; gap: 24px; align-items: center; margin: 28px 0 36px; border-radius: 12px; background: var(--navy); color: #fff; padding: 24px; }
.detail-cta h2 { margin: 0; font-size: 20px; }
.detail-cta p { margin: 8px 0 0; color: rgba(224,240,255,.78); font-size: 13px; }

.seo-content { font-size: 17px; line-height: 1.85; color: #243750; }
.seo-content h2 { margin-top: 34px; font-size: 30px; line-height: 1.2; color: var(--ink); }
.seo-content h3 { margin-top: 22px; color: var(--ink); }
.article-cta { border-radius: 18px; background: #eef6ff; padding: 26px; }

.map-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 24px; }
.mock-map { position: relative; min-height: 620px; overflow: hidden; border-radius: 18px; background: linear-gradient(135deg, #eef6ff, #dcecff); border: 1px solid #dbe6f2; }
.mock-map::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(4,119,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(4,119,255,.12) 1px, transparent 1px); background-size: 64px 64px; }
.marker { position: absolute; width: 22px; height: 22px; border-radius: 999px; border: 4px solid #fff; background: var(--blue); box-shadow: 0 8px 22px rgba(4,119,255,.35); cursor: pointer; }
.map-card { position: absolute; left: 42%; bottom: 80px; width: 320px; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(4,21,47,.2); padding: 14px; }
.map-card img { width: 90px; height: 72px; border-radius: 10px; object-fit: cover; float: left; margin-right: 12px; }

.compare-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: var(--soft); }
.compare-table th, .compare-table td { border-bottom: 1px solid #e1ecfb; padding: 18px; text-align: left; vertical-align: top; }
.compare-table th { background: #eef6ff; color: var(--ink); }

.site-footer { background: #021023; color: #d9e8ff; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 54px; }
.footer-grid h3 { margin: 0 0 18px; color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid p, .footer-grid a { color: rgba(217,232,255,.78); font-size: 14px; line-height: 1.75; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; color: rgba(217,232,255,.65); font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%) translateY(140%); border-radius: 14px; background: var(--navy); color: #fff; padding: 15px 20px; box-shadow: 0 20px 60px rgba(4,21,47,.24); transition: transform .25s ease; }
.toast.is-visible { transform: translateX(-50%) translateY(0); }

@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .hero-grid, .detail-top, .detail-layout, .listing-layout, .map-wrap { grid-template-columns: 1fr; }
  .hero-stats { justify-content: start; padding-top: 28px; }
  .detail-cards, .building-grid, .news-grid, .benefit-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  .container-page { width: min(100% - 24px, 1180px); }
  .header-actions { display: none; }
  .hero { min-height: 720px; }
  .hero-grid { min-height: 720px; padding-top: 72px; }
  .hero h1 { font-size: 36px; }
  .search-tabs, .search-fields, .stats-panel, .benefit-list, .detail-cards, .building-grid, .news-grid, .footer-grid, .detail-cta { grid-template-columns: 1fr; }
  .search-box { margin-top: -44px; padding: 0 16px 20px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-main { min-height: 360px; }
  .gallery-side { grid-template-columns: repeat(3, 1fr); }
  .gallery-side figure { min-height: 110px; }
  .detail-summary h1 { font-size: 26px; }
  .page-hero h1 { font-size: 34px; }
  .quick-specs, .amenity-mini { grid-template-columns: 1fr 1fr; }
  .article-card { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
