/*
Theme Name: Union House
Theme URI: https://unionhouse.ae
Author: Union House Properties
Description: Abu Dhabi brokerage site for Union House Properties. Buy, rent, off-plan, sell or let, and the house. Activating the theme builds the pages and sample briefs.
Version: 1.5.6
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: union-house
*/

body.elementor-page #content,
body.elementor-default #content { padding: 0; }

:root {
  --ink: #16130f;
  --paper: #f3eee6;
  --sand: #d4af37;
  --linen: #e7dfd2;
  --brass: #5c4024;
  --stone: #5e564c;
  --line: #d9d0c3;
  --max: 80rem;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button,
[role="button"] { cursor: pointer; }

h1, h2, h3, .statement, .price, .logo-name, .footer-name, .place, .advisor-name {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3vw, 3rem); }
h3 { font-size: 1.8rem; }

p { margin: 0; }

::selection { background: var(--brass); color: var(--paper); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
}
.skip:focus { top: 1rem; z-index: 80; }

.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

body.admin-bar .site-header { top: 32px; }

.topbar,
.mainbar,
.overlay-bar,
.footer-end,
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar {
  padding: 0.45rem 0;
  color: var(--stone);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar a:hover { color: var(--ink); }

.hide-sm { display: none; }

.mainbar { min-height: 4rem; }

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo svg { width: 2.25rem; height: 2.25rem; }
.logo-name { display: block; font-size: 1.55rem; letter-spacing: 0.02em; }
.logo-sub {
  display: block;
  margin-top: 0.15rem;
  color: var(--stone);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-list, .overlay-list, .footer-links, .points, .advisors { list-style: none; margin: 0; padding: 0; }

.desktop-nav .nav-list { display: none; gap: 1.4rem; }
.desktop-nav a { color: var(--stone); font-size: 0.92rem; }
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] { color: var(--ink); }

.tools { display: flex; align-items: center; gap: 0.25rem; }

.icon-btn {
  position: relative;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
}
.icon-btn svg, .save svg { width: 1.2rem; height: 1.2rem; }
.save.is-on svg, .icon-btn.is-on svg { fill: currentColor; }

.count {
  position: absolute;
  top: 0.2rem;
  right: 0.15rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  background: var(--brass);
  color: var(--paper);
  font-size: 0.65rem;
  line-height: 1rem;
  text-align: center;
}

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 0.92rem;
}
.btn:hover { background: var(--brass); border-color: var(--brass); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--linen); color: var(--ink); border-color: var(--ink); }

.enquire { display: none; }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding: 0.6rem 0 2rem;
}
.nav-overlay[hidden] { display: none; }
.overlay-list a {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  font-family: var(--serif);
  font-size: 2.4rem;
}
.overlay-nav { width: min(var(--max), calc(100% - 2.5rem)); margin: 2rem auto 0; }
.overlay-ar { margin-top: auto; padding: 0 1.25rem; color: var(--brass); font-family: var(--serif); font-size: 1.4rem; }

.kicker {
  margin: 0 0 0.55rem;
  color: var(--brass);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker-sand { color: var(--sand); }
.stone { color: var(--stone); }
.meta { color: var(--stone); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.sand { color: var(--sand); }

.hero, .split, .detail, .community-row {
  display: grid;
}
.hero-photo { position: relative; min-height: 26rem; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-copy, .split-copy, .detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
  padding: 2.5rem 1.25rem;
}
.ar { color: var(--brass); font-family: var(--serif); font-size: 1.6rem; font-style: italic; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.searchband { background: var(--linen); border-bottom: 1px solid var(--line); }
.search-form, .filters {
  display: grid;
  gap: 0.8rem;
  padding: 1.1rem 0;
}
label { display: grid; gap: 0.4rem; color: var(--stone); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
input, select, textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.55rem 0.75rem;
}
textarea { min-height: 8rem; }
input:focus, select:focus, textarea:focus { border-color: var(--brass); outline: none; }

.section { padding: 4rem 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.strip-inner { flex-wrap: wrap; align-items: end; }
.page { padding: 3rem 0 4rem; }
.lede { max-width: 40rem; margin-top: 1rem; }
.note { max-width: 40rem; margin-top: 1.4rem; font-size: 0.92rem; }

.grid-3, .grid-2, .standards, .facts, .advisors, .columns, .gallery, .contact { display: grid; gap: 1.4rem; }

.card, .tile { border: 1px solid var(--line); background: var(--paper); }
.tile a, .card a { display: block; }
.frame-photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.frame-photo img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .frame-photo img { transform: scale(1.02); transition: transform 200ms ease; }
.save {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.card-body, .tile-body { padding: 1.15rem 1.2rem 1.3rem; }
.card-body h3, .tile-body h3 { margin-top: 0.35rem; }
.card-body h3 a:hover { color: var(--brass); }
.card-body .stone, .tile-body .stone { margin-top: 0.55rem; font-size: 0.92rem; }
.specs { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin-top: 1rem; font-size: 0.92rem; }

.band { background: var(--ink); color: var(--paper); }
.band .stone, .band .sand { color: var(--sand); }
.band-grid { padding: 4rem 0; }
.statement { font-size: clamp(2rem, 4vw, 3rem); }
.standards { margin-top: 2.2rem; }
.standards div, .facts div { border-top: 1px solid rgba(212, 175, 55, 0.45); padding-top: 0.9rem; }
.standards dt, .facts dd, .advisor-name { font-family: var(--serif); font-size: 1.8rem; }
.standards dd, .facts dt { margin: 0.4rem 0 0; font-size: 0.92rem; }
.facts dt { color: var(--stone); font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.facts dd { margin-top: 0.35rem; }
.facts { border-block: 1px solid var(--line); }
.facts div { border-top: 0; border-bottom: 1px solid var(--line); padding: 1.5rem 1.25rem; }

.careers-strip { background: var(--linen); }
.careers-strip .wrap, .visit .wrap { padding: 3rem 0; }
.strip-inner h2 { max-width: 36rem; }

.stack { display: grid; gap: 1.5rem; margin-top: 2rem; }
.community-row { border: 1px solid var(--line); }
.text-link { color: var(--ink); text-decoration: underline; text-underline-offset: 0.3rem; }
.text-link:hover { color: var(--brass); }

.filters { margin: 2rem 0; padding: 1rem; background: var(--linen); border: 1px solid var(--line); }
.empty { margin-top: 2rem; border: 1px solid var(--line); padding: 3rem 1.4rem; }
.empty .btn { margin-top: 1rem; }

.detail-copy { border-top: 1px solid var(--line); }
.price { font-size: 2.4rem; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.spec-grid dt { color: var(--stone); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.spec-grid dd { margin: 0.2rem 0 0; }
.story { display: grid; gap: 2rem; padding-bottom: 3rem; }
.prose p { margin: 0 0 0.8rem; }
.points li { border-top: 1px solid var(--line); padding: 0.75rem 0; font-size: 0.95rem; }
.gallery { grid-template-columns: 1fr; padding-bottom: 3rem; }

.practice { border-top: 1px solid var(--line); }
.practice-grid { padding: 2.5rem 0; }
.practice h2 { font-size: 3rem; }
.practice ol { list-style: none; margin: 0; padding: 0; }
.practice li { display: flex; gap: 1rem; border-top: 1px solid var(--line); padding: 0.85rem 0; }
.practice li span { width: 2rem; color: var(--brass); font-family: var(--serif); font-size: 1.4rem; }

.advisors { margin-top: 1.5rem; }
.advisors li { display: flex; align-items: center; gap: 1rem; border: 1px solid var(--line); padding: 1rem; }
.mono {
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.3rem;
}
.advisor-name { display: block; font-size: 1.5rem; }

.columns { padding: 3rem 0 1rem; }
.visit { padding: 0; }
.visit .statement { font-size: 2.4rem; }

.contact { padding: 3rem 0 4rem; }
.contact address { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; font-style: normal; }
.place { display: block; font-size: 2rem; margin-bottom: 0.4rem; }
.project-dialog {
  width: min(32rem, calc(100% - 2rem));
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 1.5rem;
}
.project-dialog::backdrop { background: rgba(22, 19, 15, 0.55); }
.dialog-x { margin-left: auto; display: block; min-height: 2.75rem; background: none; border: 0; }
.enquiry, .sent { display: grid; gap: 1rem; border: 1px solid var(--line); padding: 1.2rem; }
.uh-form { max-width: 40rem; }
.uh-form h2 { margin-top: 0.4rem; }
.pair { display: grid; gap: 1rem; }
.brief-flag { margin-bottom: 1rem; border: 1px solid var(--line); background: var(--linen); padding: 0.75rem 0.9rem; font-size: 0.92rem; }
.error { color: var(--brass); letter-spacing: 0; text-transform: none; font-size: 0.85rem; min-height: 1em; }
.missing { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }

.site-footer { background: var(--ink); color: var(--paper); }
.footer-grid { display: grid; gap: 2rem; padding: 3.5rem 0; }
.footer-name { font-size: 2.6rem; }
.footer-ar { margin-top: 1rem; color: var(--sand); font-family: var(--serif); font-size: 1.6rem; }
.site-footer address { margin-top: 0.8rem; font-style: normal; font-size: 0.95rem; line-height: 1.7; }
.map-link, .footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.95rem; }
.map-link { color: var(--sand); text-decoration: underline; text-underline-offset: 0.3rem; }
.footer-links a:hover { color: var(--sand); }
.footer-end {
  border-top: 1px solid rgba(243, 238, 230, 0.15);
  padding: 1rem 0 1.2rem;
  color: var(--sand);
  font-size: 0.75rem;
  align-items: flex-start;
  flex-direction: column;
}

@media (min-width: 40rem) {
  .hide-sm { display: inline; }
  .enquire { display: inline-flex; }
  .hero-copy, .split-copy, .detail-copy { padding: 3rem 2.5rem; }
  .pair, .gallery { grid-template-columns: 1fr 1fr; }
  .grid-2, .advisors { grid-template-columns: 1fr 1fr; }
  .search-form, .filters { grid-template-columns: 1fr 1fr; }
  .footer-end { flex-direction: row; align-items: center; }
}

@media (min-width: 64rem) {
  .desktop-nav .nav-list { display: flex; }
  .menu-toggle { display: none; }
  .hero, .split, .detail { grid-template-columns: 1.3fr 0.9fr; }
  .hero-photo { min-height: 40rem; }
  .detail .hero-photo { min-height: 100%; }
  .detail-copy { border-top: 0; border-left: 1px solid var(--line); }
  .search-form { grid-template-columns: 1fr 2fr auto; align-items: end; }
  .filters { grid-template-columns: repeat(4, 1fr); }
  .grid-3, .standards, .columns { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts div { border-bottom: 0; border-right: 1px solid var(--line); }
  .facts div:last-child { border-right: 0; }
  .band-grid, .story, .practice-grid, .contact, .footer-grid { grid-template-columns: 1fr 1.6fr; }
  .band-grid { grid-template-columns: 0.6fr 1.6fr; }
  .story { grid-template-columns: 1.3fr 0.9fr; align-items: start; }
  .community-row { grid-template-columns: 1.3fr 1fr; }
  .community-row.flip .hero-photo { order: 2; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .advisors { grid-template-columns: repeat(3, 1fr); }
  .section-head, .strip-inner { flex-direction: row; }
}

.map-frame { margin-top: 1rem; border: 1px solid var(--line); height: 22rem; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.news-list { display: grid; gap: 0; margin-top: 2rem; }
.news-card { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.news-card h2 { font-size: 2.2rem; }
.news-card time { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; color: var(--stone); }
.entry { max-width: 42rem; }
.entry p + p { margin-top: 1rem; }

.hero-copy > * { animation: uh-rise 0.8s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-photo img { animation: uh-zoom 1.4s ease both; }
@keyframes uh-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes uh-zoom { from { transform: scale(1.08); } to { transform: none; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.frame-photo img { transition: transform 0.8s ease; }
.card:hover .frame-photo img { transform: scale(1.06); }
.doors { display: grid; border-bottom: 1px solid var(--line); }
.doors a { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.4rem 1.25rem; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.doors span { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.doors strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.doors em { font-style: normal; color: var(--stone); font-size: 0.9rem; }
.doors a:hover { background: var(--linen); }
.filters-3 { grid-template-columns: 1fr; }

@media (min-width: 64rem) {
  .doors { grid-template-columns: repeat(4, 1fr); }
  .doors a { border-bottom: 0; border-right: 1px solid var(--line); }
  .doors a:last-child { border-right: 0; }
  .filters-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-photo img, .reveal { animation: none; opacity: 1; transform: none; }
  .card:hover .frame-photo img { transform: none; }
}
