/* =====================================================================
   FOREAL template – inner-page styles (about, blog, listings, detail…)
   ===================================================================== */

/* solid nav on light pages */
body[data-nav="solid"] .nav { background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); color: var(--blue); }
body[data-nav="solid"] .nav .btn { background: var(--blue); color: var(--white); }
.t-white { color: var(--white) !important; }

/* ---------- generic page head ---------------------------------------- */
.page { padding: 140px var(--pad) 80px; }
.page.container { max-width: calc(var(--maxw) + 2 * var(--pad)); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 36px; }
.page-head > div { display: flex; flex-direction: column; gap: 4px; }
.page-head .h2, .page-head .h3 { text-align: left; }
.page-head__sub { max-width: 320px; text-align: left; }
.page .body-m.page-head__sub { font-size: 16px; }
.rule { border: 0; height: 1px; background: var(--blue-12); margin: 0; width: 100%; }
.empty { text-align: center; color: var(--gray); padding: 40px 0; font: 400 16px var(--f-body); }
.listings .container { padding-left: 0; padding-right: 0; }

/* ---------- banners (about / location) ------------------------------- */
.banner { position: relative; display: flex; align-items: flex-end; background: center / cover no-repeat var(--blue); color: var(--white); }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 20, 28, 0.35) 0%, rgba(8, 20, 28, 0) 35%, rgba(8, 20, 28, 0.45) 100%); }
.banner > .container, .banner__center { position: relative; z-index: 1; }
.banner--lg { min-height: 570px; padding: 120px var(--pad) 40px; }
.banner__copy { display: flex; flex-direction: column; gap: 16px; }
.banner__copy .h2 { text-align: left; max-width: 640px; }
.banner--story { min-height: 545px; align-items: center; justify-content: center; padding: 80px var(--pad); }
.banner--story::before { background: rgba(8, 20, 28, 0.32); }
.banner__center { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.banner--loc { min-height: 380px; padding: 120px var(--pad) 40px; }
.banner__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; }
.banner__grid .h2 { text-align: left; line-height: 1.05; }
.banner__desc { max-width: 500px; justify-self: end; }
.banner--loc .container { padding: 0; }

/* ---------- about ---------------------------------------------------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 90px var(--pad) 50px; }
.intro__copy { display: flex; flex-direction: column; gap: 22px; }
.intro__lead { font: 400 30px/1.2 var(--f-head); letter-spacing: -0.03em; }
.stats-wrap { padding: 20px var(--pad) 90px; }
.stats-wrap .stats__row { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.expertise { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 76px; padding: 90px var(--pad); }
.expertise__item { display: flex; flex-direction: column; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--blue-12); }
.small-body { font-size: 14px; max-width: 460px; }
.office { padding: 40px var(--pad) 70px; display: flex; flex-direction: column; gap: 36px; }
.office__p { max-width: 620px; margin-top: 10px; }
.mapcard { position: relative; height: 430px; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--blue-12); }
.mapcard--sm { height: 380px; }
.map { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85) contrast(.98); }
.mapcard__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 170px; padding: 8px; border-radius: 20px; background: var(--blue); color: var(--white); display: flex; flex-direction: column; gap: 10px; text-align: center; box-shadow: 0 16px 40px rgba(22, 35, 43, .3); }
.mapcard__pin img { width: 100%; height: 100px; object-fit: cover; border-radius: 14px; }
.mapcard__pin p { font: 500 12px/1.35 var(--f-body); letter-spacing: -0.03em; }
.mapcard__pin .btn { height: 36px; font-size: 14px; padding: 0; width: 100%; }
.quote { max-width: 1020px; margin: 0 auto; padding: 80px var(--pad); }
.quote blockquote { margin: 0; font: 400 56px/1 var(--f-head); letter-spacing: -0.04em; max-width: 800px; }
.quote__by { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote__by img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.quote__by div { display: flex; flex-direction: column; gap: 2px; font: 400 14px/1.3 var(--f-body); letter-spacing: -0.04em; color: var(--gray); }
.quote__by b { text-transform: uppercase; color: var(--blue); font-weight: 600; letter-spacing: -0.02em; }
.team-page { padding: 40px var(--pad) 100px; display: flex; flex-direction: column; gap: 50px; }
.experts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 20px; }
.experts-grid .expert__img { aspect-ratio: 255 / 295; }

/* ---------- blog ----------------------------------------------------- */
.post-card { display: block; background: var(--white); border-radius: var(--radius); overflow: hidden; transition: transform .5s var(--spring), box-shadow .4s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22, 35, 43, .08); }
.post-card__img { height: 220px; overflow: hidden; border-radius: 14px 14px 0 0; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: 20px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.post-card__body time { color: var(--gray); }
.post-card__title { font: 500 16px/20px var(--f-head); letter-spacing: -0.02em; }
.post-card__ex { color: var(--gray); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card--featured { margin-bottom: 20px; }
.post-card--featured .post-card__img { height: 380px; }
.post-card--featured .post-card__body { padding: 24px 40px 30px; gap: 12px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.posts-grid--3 { margin-top: 32px; }

/* ---------- blog post ------------------------------------------------ */
.post { padding-bottom: 60px; }
.post__head { max-width: 1000px; margin: 0 auto 28px; text-align: center; display: flex; flex-direction: column; gap: 10px; color: var(--gray); }
.post__head .h3 { color: var(--blue); }
.post__hero { height: 430px; border-radius: var(--radius); overflow: hidden; }
.post__hero img, .post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__col { max-width: 904px; margin: 0 auto; padding-top: 40px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.post__intro { font: 400 24px/1.25 var(--f-head); letter-spacing: -0.03em; }
.post__img { width: 100%; height: 500px; border-radius: var(--radius); overflow: hidden; margin: 10px 0; }
.post__h { font: 400 24px/1.2 var(--f-head); letter-spacing: -0.03em; margin-top: 12px; }
.post .btn { margin-top: 12px; }
.more { padding: 70px var(--pad) 90px; }
.more.container { max-width: calc(var(--maxw) + 2 * var(--pad)); }

/* ---------- contacts ------------------------------------------------- */
.contacts { display: grid; grid-template-columns: 1fr 388px; gap: 60px; align-items: start; }
.contacts__main { display: flex; flex-direction: column; gap: 16px; }
.contacts__main .h2 { text-align: left; margin-bottom: 14px; }
.contacts__info { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 20px; }
.contacts__hours { margin-top: 14px; color: var(--blue); }
.contacts__phone { display: block; font: 400 30px/1.2 var(--f-head); letter-spacing: -0.03em; color: var(--gray); margin-bottom: 10px; }
.contacts__form { background: var(--white); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.contacts__intro { font: 500 16px/1.3 var(--f-body); letter-spacing: -0.04em; }
.contacts__form .form { gap: 14px; }

/* ---------- listings page ------------------------------------------- */
.filters-bar { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px 0; margin-bottom: 26px; border-top: 1px solid var(--blue-12); border-bottom: 1px solid var(--blue-12); }
.fb-title { display: block; font: 500 14px/1.3 var(--f-body); letter-spacing: -0.06em; margin-bottom: 12px; }
.checks { display: flex; gap: 30px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: 400 14px/1 var(--f-body); letter-spacing: -0.04em; color: var(--gray); }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; border: 1px solid var(--light); background: var(--white); display: grid; place-items: center; transition: background-color .25s, border-color .25s; }
.check input::after { content: "✓"; color: #fff; font-size: 13px; opacity: 0; transform: scale(.5); transition: .25s var(--spring); }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { opacity: 1; transform: none; }
.selects { display: flex; gap: 20px; flex-wrap: wrap; }
.select select { appearance: none; -webkit-appearance: none; height: 40px; min-width: 100px; padding: 0 38px 0 16px; border-radius: 12px; border: 1px solid var(--light); font: 400 14px var(--f-body); color: var(--gray); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%234f5f69' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }
.select:nth-child(2) select { min-width: 200px; }

/* ---------- listing detail ------------------------------------------ */
.ld { padding: 130px var(--pad) 40px; max-width: calc(var(--maxw) + 2 * var(--pad)); }
.ld-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ld-meta .chip { height: 26px; font-size: 12px; padding: 0 10px; }
.ld-meta__loc { display: inline-flex; align-items: center; gap: 6px; color: var(--gray); margin-right: 4px; }
.ld-meta__loc .ico { width: 14px; height: 17px; color: var(--mid); }
.ld-title { text-align: left; padding-bottom: 18px; font-size: 56px; line-height: 1.05; }
.ld-sub { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; padding: 16px 0 22px; }
.ld-sub .body-l { max-width: 330px; }
.ld-price { text-align: right; display: flex; flex-direction: column; gap: 4px; }
.ld-price small { font: 400 13px var(--f-body); color: var(--gray); letter-spacing: -0.04em; }
.ld-price b { font: 500 28px/1 var(--f-head); letter-spacing: -0.03em; }
.ld-hero { height: 650px; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.ld-hero img { width: 100%; height: 100%; object-fit: cover; }
.ld-grid { display: grid; grid-template-columns: 1fr 368px; gap: 40px; align-items: start; padding-top: 10px; }
.ld-main { display: flex; flex-direction: column; gap: 28px; }
.ld-block { display: flex; flex-direction: column; gap: 18px; }
.ld-block .h4 { text-align: left; }
.ld-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.ld-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.ld-lists ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font: 400 14px/1.35 var(--f-body); letter-spacing: -0.03em; color: var(--blue); }
.ld-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ld-gallery img { width: 100%; aspect-ratio: 1.43; object-fit: cover; border-radius: 14px; background: var(--white); }
.tour { position: sticky; top: 100px; background: var(--white); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.tour .h4 { text-align: left; }
.tour__agent { display: flex; gap: 14px; align-items: center; }
.tour__agent img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.tour__agent div { display: flex; flex-direction: column; gap: 2px; font: 400 14px/1.3 var(--f-body); letter-spacing: -0.04em; }
.tour__agent small { color: var(--gray); }
.tour__agent b { font-weight: 600; }
.tour .form { gap: 14px; }
.listings__bar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 26px; gap: 20px; }
.listings__bar > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.listings__bar .h3 { text-align: left; }
.listings .container:has(.listings__bar) { align-items: stretch; }

/* ---------- full-screen message pages -------------------------------- */
.fullhero { position: relative; min-height: 100vh; min-height: 100svh; background: center bottom / cover no-repeat var(--blue); color: var(--white); display: flex; align-items: flex-start; padding: 190px var(--pad) 90px; }
.fullhero__line { position: absolute; left: var(--pad); right: var(--pad); top: 84px; height: 1px; background: rgba(255, 255, 255, 0.35); }
.fullhero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 0 !important; }
.fullhero__title { font: 500 clamp(52px, 8vw, 96px)/0.87 var(--f-head); letter-spacing: -0.05em; margin: 0 0 40px; }
.fullhero__title .serif { font-size: 1.04em; letter-spacing: -0.03em; line-height: 1.05; display: inline-block; }
.fullhero__side { max-width: 260px; font: 400 16px/1.5 var(--f-body); letter-spacing: -0.05em; padding-top: 8px; justify-self: start; margin-left: 224px; }
.fullhero__code { font: 400 30px/1 var(--f-head); letter-spacing: -0.03em; margin-bottom: 14px; }

/* ---------- legal ---------------------------------------------------- */
.legal { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.legal .h3 { text-align: left; }
.legal__date { color: var(--gray); }
.legal .h4 { text-align: left; margin-top: 18px; }

/* ---------- responsive ---------------------------------------------- */
@media (max-width: 1199px) {
  .posts-grid, .experts-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr; }
  .ld-grid { grid-template-columns: 1fr; }
  .tour { position: static; }
  .ld-hero { height: 480px; }
  .ld-title { font-size: 46px; }
  .intro { grid-template-columns: 1fr; }
  .quote blockquote { font-size: 44px; }
  .fullhero__grid { grid-template-columns: 1fr; }
  .fullhero__side { margin-left: 0; }
}
@media (max-width: 809px) {
  .page { padding-top: 110px; }
  .page-head, .listings__bar, .ld-sub { flex-direction: column; align-items: flex-start; }
  .ld-price { text-align: left; }
  .posts-grid, .posts-grid--3, .experts-grid { grid-template-columns: 1fr; }
  .post-card--featured .post-card__img { height: 220px; }
  .post-card--featured .post-card__body { padding: 20px; }
  .banner--lg { min-height: 480px; }
  .banner__grid { grid-template-columns: 1fr; }
  .banner__desc { justify-self: start; }
  .expertise { grid-template-columns: 1fr; padding: 50px var(--pad); }
  .ld-hero { height: 300px; }
  .ld-title { font-size: 36px; }
  .ld-lists, .ld-gallery, .contacts__info { grid-template-columns: 1fr; }
  .post__hero { height: 240px; }
  .post__img { height: 280px; }
  .quote blockquote { font-size: 32px; }
  .mapcard { height: 340px; }
  .contacts__form { padding: 28px 22px; }
  .filters-bar { flex-direction: column; }
  .fullhero { padding-top: 140px; }
}
