
/* Daman theme: approved mockup styles (home + single project).
   Layout: full-bleed bands (hero, map, values, contact) alternating with a 1240px content column; RTL throughout */
:root {
  --ink: #2B2B2B;
  --ink-2: #3A3837;
  --wine: #9D5353;
  --wine-deep: #7E3F40;
  --sand: #AD8873;
  --paper: #F4F5F4;
  --white: #FFFFFF;
  --line: #E4E2DF;
  --muted: #6E6965;
  --on-dark: #F2EFEC;
  --on-dark-muted: #B9B2AD;
  --st-sale: #2F8E3E;
  --st-soon: #CE8E3F;
  --st-sold: #9C5354;
  --wa: #25D366;
  --values-bg: #322E2B;
  --values-accent: #C9A68F;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --wrap: 1240px;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink); direction: rtl;
  font-family: var(--font); font-size: 16px; line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.3; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: calc(var(--wrap) + 32px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(64px, 9vw, 112px); }

/* section heading: brand star + title + subtitle */
.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-head.center { align-items: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--wine); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.eyebrow svg { width: 14px; height: 14px; fill: currentColor; }
.sec-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; color: var(--ink); }
.sec-sub { color: var(--muted); max-width: 56ch; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-head-row .sec-head { margin-bottom: 0; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-wine { background: var(--wine); color: var(--white); }
.btn-wine:hover { background: var(--wine-deep); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.arrow { transform: scaleX(-1); }

/* status chip */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.6; background: var(--white); color: var(--ink); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--muted)); }
.chip.sale { --dot: var(--st-sale); }
.chip.soon { --dot: var(--st-soon); }
.chip.sold { --dot: var(--st-sold); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
.site-header { position: fixed; top: env(safe-area-inset-top, 0px); inset-inline: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.solid { background: rgba(43,43,43,.96); box-shadow: 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; gap: 32px; height: 84px; transition: height .3s; }
.site-header.solid .header-row { height: 70px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 6px; margin-inline-start: 12px; }
.nav a { color: rgba(255,255,255,.82); font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav a.active { color: var(--white); }
.nav a.active::after { content: ""; display: block; height: 2px; background: var(--sand); border-radius: 2px; margin-top: 2px; }
.header-end { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.socials { display: flex; gap: 4px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; color: rgba(255,255,255,.8); border-radius: 50%; transition: background .2s, color .2s; }
.socials a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.socials svg { width: 17px; height: 17px; }
.header-cta { padding: 9px 18px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--white); border-radius: 50%; place-items: center; }
.burger svg { width: 26px; height: 26px; }

.drawer { position: fixed; inset: 0; z-index: 70; background: var(--ink); color: var(--white); padding: calc(24px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 32px max(24px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 28px; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-top img { height: 42px; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { font-size: 22px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer .socials { margin-top: auto; }

/* ---------- hero ---------- */
.hero { position: relative; height: clamp(560px, 88vh, 880px); background: var(--ink); color: var(--white); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.on img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,26,25,.88) 0%, rgba(28,26,25,.35) 42%, rgba(28,26,25,.15) 70%, rgba(28,26,25,.55) 100%); pointer-events: none; }
.hero-content { position: absolute; inset: auto 0 0; z-index: 2; padding-bottom: clamp(28px, 4vw, 44px); }
.hero-caption { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 640px; min-height: 230px; justify-content: flex-end; }
.cap { display: none; flex-direction: column; align-items: flex-start; gap: 14px; }
.cap.on { display: flex; animation: capIn .7s ease both; }
@keyframes capIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cap .meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; color: rgba(255,255,255,.85); }
.cap .meta .pin { display: inline-flex; align-items: center; gap: 6px; }
.cap .meta svg { width: 16px; height: 16px; }
.cap .cap-title { font-size: clamp(40px, 6.4vw, 80px); font-weight: 700; letter-spacing: -.01em; }
.cap .btn { margin-top: 6px; }
.hero-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid rgba(255,255,255,.18); }
.hero-tab { background: none; border: 0; color: rgba(255,255,255,.6); text-align: start; padding: 14px 0 0; position: relative; display: flex; gap: 10px; align-items: baseline; transition: color .2s; }
.hero-tab:hover, .hero-tab.on { color: var(--white); }
.hero-tab .n { font-size: 13px; font-variant-numeric: tabular-nums; opacity: .7; }
.hero-tab .t { font-weight: 600; font-size: 15px; }
.hero-tab .bar { position: absolute; top: -1px; inset-inline: 0; height: 2px; background: transparent; overflow: hidden; }
.hero-tab .bar i { display: block; height: 100%; width: 0; background: var(--sand); }
.hero-tab.on .bar i { animation: fill var(--dur, 6s) linear forwards; }
.hero.paused .hero-tab.on .bar i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }

/* ---------- about ---------- */
.about { position: relative; background: var(--paper) center/cover no-repeat; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-mark { display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); }
.about-mark img { width: min(100%, 440px); }
.about-text { display: flex; flex-direction: column; gap: 18px; }
.about-text p { color: var(--ink-2); font-size: 17px; max-width: 60ch; }
.about-text strong { color: var(--ink); font-weight: 700; }
.about-text .motto { font-size: 19px; font-weight: 600; color: var(--wine); border-inline-start: 3px solid var(--sand); padding-inline-start: 16px; }
.about-text .btn { align-self: flex-start; margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0; border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat b { font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .5em; font-weight: 600; color: var(--sand); margin-inline-start: 4px; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- projects ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, transform .3s; }
.card:hover { box-shadow: 0 18px 40px -18px rgba(43,43,43,.28); transform: translateY(-4px); }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .chip { position: absolute; top: 14px; inset-inline-start: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-loc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.card-loc svg { width: 15px; height: 15px; color: var(--sand); }
.card h3 { font-size: 21px; font-weight: 700; }
.card-type { font-size: 14px; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 16px; font-weight: 600; font-size: 15px; color: var(--wine); }
.card-foot .go { width: 36px; height: 36px; border-radius: 50%; background: var(--wine); color: var(--white); display: grid; place-items: center; transition: background .2s; }
.card:hover .card-foot .go { background: var(--ink); }
.card-foot svg { width: 16px; height: 16px; }

/* ---------- map ---------- */
.map-band { background: var(--paper); }
.map-shell { display: grid; grid-template-columns: 340px 1fr; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.map-side { display: flex; flex-direction: column; border-inline-end: 1px solid var(--line); min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px; border-bottom: 1px solid var(--line); }
.filter { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .2s; }
.filter i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink)); }
.filter em { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filter:hover { border-color: var(--ink); }
.filter.on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter.on em { color: var(--on-dark-muted); }
.plist { list-style: none; margin: 0; padding: 8px; overflow-y: auto; max-height: 520px; }
.pitem { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; cursor: pointer; transition: background .2s; }
.pitem:hover, .pitem.on { background: var(--paper); }
.pitem img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.pitem .tx { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.pitem b { font-size: 15px; font-weight: 700; }
.pitem span { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pitem span i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.map-stage { position: relative; aspect-ratio: 1710 / 1000; min-width: 0; direction: ltr; overflow: hidden; }

/* ---------- values ---------- */
.values { background: var(--values-bg); color: var(--white); position: relative; overflow: hidden; }
.values::before { content: ""; position: absolute; inset-inline-end: -140px; top: -140px; width: 460px; height: 460px; border-radius: 50%; border: 1px solid rgba(201,166,143,.18); box-shadow: 0 0 0 60px rgba(201,166,143,.04); }
.values .eyebrow { color: var(--values-accent); }
.values .sec-title { color: var(--white); }
.values .sec-sub { color: rgba(255,255,255,.75); }
.vgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.value { padding: 32px 24px 8px; display: flex; flex-direction: column; gap: 12px; border-inline-start: 1px solid rgba(255,255,255,.18); }
.value:first-child { border-inline-start: 0; padding-inline-start: 0; }
.value svg { width: 44px; height: 44px; color: var(--values-accent); }
.value h3 { font-size: 22px; font-weight: 700; }
.value p { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.75; }

/* ---------- partners ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1040px; margin-inline: auto; }
.logo-tile { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 24px 32px; background: var(--paper); border: 1px solid transparent; border-radius: var(--radius); transition: background .3s, border-color .3s, box-shadow .3s; }
.logo-tile img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.logo-tile:hover { background: var(--white); border-color: var(--line); box-shadow: 0 14px 32px -18px rgba(43,43,43,.3); }
.logo-tile:hover img { filter: none; opacity: 1; }

/* ---------- contact + footer ---------- */
.contact { background: var(--ink); color: var(--on-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 110px); }
.contact .eyebrow { color: var(--sand); }
.contact .sec-title { color: var(--white); }
.contact .sec-sub { color: var(--on-dark-muted); }
.cinfo { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.cinfo a, .cinfo div { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 16px; }
.cinfo .ic { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.07); display: grid; place-items: center; flex: none; color: var(--sand); }
.cinfo svg { width: 20px; height: 20px; }
.cinfo small { display: block; color: var(--on-dark-muted); font-size: 13px; }
.cinfo .ltr { direction: ltr; unicode-bidi: isolate; }
.contact .socials { margin-top: 22px; }
.contact .socials a { background: rgba(255,255,255,.07); width: 42px; height: 42px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: clamp(20px, 3vw, 32px); align-self: start; }
.form h3 { grid-column: 1 / -1; font-size: 22px; color: var(--white); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--on-dark-muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--white); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, background .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--on-dark-muted) 50%), linear-gradient(135deg, var(--on-dark-muted) 50%, transparent 50%); background-position: 18px 52%, 13px 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sand); background: rgba(255,255,255,.09); }
.form .btn { grid-column: 1 / -1; justify-self: start; border: 0; }
.form-ok { grid-column: 1 / -1; font-size: 14px; color: #9FD8A9; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.08); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px; font-size: 14px; color: var(--on-dark-muted); }
.footer-row img { height: 38px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--white); }

.wa-float { position: fixed; z-index: 40; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); left: calc(22px + env(safe-area-inset-left, 0px)); width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--white); display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37,211,102,.55); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-end .socials, .header-cta { display: none; }
  .burger { display: grid; }
  .vgrid { grid-template-columns: repeat(3, 1fr); row-gap: 8px; }
  .value:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
  .map-shell { grid-template-columns: 1fr; }
  .map-side { order: 2; border-inline-end: 0; border-top: 1px solid var(--line); }
  .plist { display: flex; gap: 8px; overflow-x: auto; max-height: none; }
  .pitem { flex: 0 0 240px; }
}
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-mark { padding: 0; }
  .about-mark img { width: min(70%, 320px); }
  .cards { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .hero-tab .t { font-size: 14px; }
}
@media (max-width: 600px) {
  .header-row { height: 68px; }
  .logo img { height: 38px; }
  .cards { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: 1fr 1fr; }
  .value { border-inline-start: 0 !important; padding-inline-start: 0 !important; padding-inline-end: 12px; }
  .hero-tab .n { display: none; }
  .hero-tab .t { font-size: 13px; }
  .form { grid-template-columns: 1fr; }
  .logos { gap: 12px; }
  .logo-tile { padding: 16px 20px; }
  .logo-tile img { max-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* ================= single project ================= */
.p-hero { position: relative; min-height: clamp(560px, 86vh, 820px); display: flex; align-items: flex-end; background: var(--ink); color: var(--white); overflow: hidden; }
.p-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,26,25,.92) 0%, rgba(28,26,25,.45) 45%, rgba(28,26,25,.2) 70%, rgba(28,26,25,.6) 100%); }
.p-hero .wrap { position: relative; z-index: 2; width: 100%; padding-block: 120px 120px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--white); }
.crumbs .sep { opacity: .5; }
.p-hero .meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; color: rgba(255,255,255,.85); }
.p-hero h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 700; margin-top: 12px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.p-hero h1 small { font-size: .32em; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--values-accent); direction: ltr; }
.p-addr { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 17px; color: rgba(255,255,255,.88); }
.p-addr svg { width: 18px; height: 18px; color: var(--values-accent); }
.p-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.facts-wrap { position: relative; z-index: 5; margin-top: -64px; }
.facts { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--white); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(43,43,43,.35); }
.fact { padding: 24px 26px; display: flex; flex-direction: column; gap: 4px; border-inline-start: 1px solid var(--line); min-width: 0; }
.fact:first-child { border-inline-start: 0; }
.fact span { font-size: 13px; color: var(--muted); }
.fact b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fact b small { font-size: 14px; font-weight: 600; color: var(--sand); margin-inline-start: 4px; }
.fact .chip { align-self: flex-start; background: var(--paper); font-size: 15px; color: var(--ink); }

.subnav { position: sticky; top: calc(70px + env(safe-area-inset-top, 0px)); z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-top: 40px; }
.subnav .wrap { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: 16px 14px; font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--ink); border-color: var(--wine); }
.subnav .btn { margin-inline-start: auto; padding: 8px 18px; font-size: 14px; }
.subnav a.btn, .subnav a.btn:hover { color: var(--white); border-bottom: 0; }
.p-sec { scroll-margin-top: 150px; }

.p-about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.p-about .lead { font-size: clamp(20px, 2vw, 24px); line-height: 1.75; font-weight: 500; color: var(--ink); }
.p-about .lead + p { color: var(--ink-2); margin-top: 18px; max-width: 60ch; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.num { background: var(--paper); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.num b { font-size: clamp(30px, 3vw, 40px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.num b small { font-size: .45em; color: var(--sand); margin-inline-start: 4px; }
.num span { color: var(--ink-2); font-size: 15px; line-height: 1.6; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(160px, 260px)); gap: 12px; }
.g-item { position: relative; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-item:hover img { transform: scale(1.05); }
.g-item:first-child { grid-row: span 2; }
.g-item.more::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(43,43,43,.55); color: var(--white); font-size: 20px; font-weight: 700; }
.video { position: relative; margin-top: 12px; border-radius: 18px; overflow: hidden; aspect-ratio: 21 / 8; background: var(--ink); display: block; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .3s, transform .6s; }
.video:hover img { opacity: .45; transform: scale(1.03); }
.video .vc { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 20px; color: var(--white); text-align: start; padding: 20px; }
.video .play { width: 76px; height: 76px; border-radius: 50%; background: var(--white); color: var(--wine); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 10px rgba(255,255,255,.18); transition: box-shadow .3s; }
.video:hover .play { box-shadow: 0 0 0 16px rgba(255,255,255,.15); }
.video .play svg { width: 28px; height: 28px; margin-inline-end: -4px; }
.video b { display: block; font-size: 22px; }
.video small { color: rgba(255,255,255,.8); font-size: 15px; }

.models { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.model { border: 1px solid var(--line); border-radius: 18px; display: grid; grid-template-columns: 200px 1fr; overflow: hidden; background: var(--white); }
.model .plan { background: var(--paper); display: grid; place-items: center; padding: 20px; }
.model .plan svg { width: 100%; height: auto; max-width: 160px; }
.model .mb { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.model .mh { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.model h3 { font-size: 20px; }
.model .avail { font-size: 13px; font-weight: 600; color: var(--st-sale); background: rgba(47,142,62,.1); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.specs div { display: flex; flex-direction: column; }
.specs dt { font-size: 12px; color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.model .btn { align-self: flex-start; padding: 9px 18px; font-size: 14px; margin-top: auto; }

.highlights { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.highlights .img { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; }
.highlights .img img { width: 100%; height: 100%; object-fit: cover; }
.hl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hl-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.hl-list li:last-child { border-bottom: 0; }
.hl-list svg { width: 14px; height: 14px; fill: var(--wine); flex: none; margin-top: 8px; }

.loc-band { background: var(--paper); }
.loc { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: stretch; }
.loc .map-stage { border-radius: 18px; border: 1px solid var(--line); background: var(--white); aspect-ratio: auto; min-height: 440px; height: 100%; }
.loc-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.loc-addr { background: var(--white); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); }
.loc-addr p { color: var(--ink-2); }
.loc-addr .btn { align-self: flex-start; }
.near { background: var(--white); border-radius: 18px; padding: 22px; border: 1px solid var(--line); flex: 1; }
.near h3 { font-size: 18px; margin-bottom: 8px; }
.near ul { list-style: none; margin: 0; padding: 0; }
.near li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.near li:last-child { border-bottom: 0; padding-bottom: 0; }
.near img { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.near .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; }
.near .tm { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.near .tm svg { width: 16px; height: 16px; color: var(--sand); }

.p-partners .logos { grid-template-columns: repeat(4, 1fr); max-width: none; }

.book { background: var(--ink); color: var(--on-dark); }
.book-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.book .eyebrow { color: var(--sand); }
.book .sec-title { color: var(--white); }
.book .sec-sub { color: var(--on-dark-muted); }
.book-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.book-points li { display: flex; gap: 12px; align-items: center; color: var(--on-dark); }
.book-points .ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.07); color: var(--sand); display: grid; place-items: center; flex: none; }
.book-points svg { width: 18px; height: 18px; }
.book .proj-tag { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); grid-column: 1 / -1; }
.book .proj-tag img { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; }
.book .proj-tag b { color: var(--white); display: block; }
.book .proj-tag span { font-size: 13px; color: var(--on-dark-muted); }


.mini-footer { background: #232120; color: var(--on-dark-muted); }
.mf-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mf-top img { height: 44px; }
.mf-contacts { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; color: var(--on-dark); }
.mf-contacts span { display: inline-flex; align-items: center; gap: 8px; }
.mf-contacts svg { width: 18px; height: 18px; color: var(--sand); }
.mini-footer .socials a { background: rgba(255,255,255,.06); }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20,19,18,.94); display: flex; align-items: center; justify-content: center; padding: 60px max(16px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-height: 82vh; border-radius: 10px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--white); display: grid; place-items: center; }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox .lb-x { top: calc(16px + env(safe-area-inset-top, 0px)); left: 16px; }
.lightbox .lb-prev { right: 16px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lightbox .lb-next { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-n { position: absolute; bottom: 20px; color: rgba(255,255,255,.7); font-size: 14px; font-variant-numeric: tabular-nums; }

.m-cta { display: none; }

@media (max-width: 1080px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(4) { border-inline-start: 0; }
  .fact:nth-child(n+4) { border-top: 1px solid var(--line); }
  .models { grid-template-columns: 1fr; }
  .loc { grid-template-columns: 1fr; }
  .loc .map-stage { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 860px) {
  .p-about, .highlights, .book-grid { grid-template-columns: 1fr; }
  .highlights .img { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 150px; }
  .g-item:first-child { grid-column: span 2; grid-row: span 1; }
  .video { aspect-ratio: 16 / 9; }
  .subnav .btn { display: none; }
  .p-partners .logos { grid-template-columns: 1fr 1fr; }
  .m-cta { display: flex; gap: 10px; position: fixed; z-index: 45; inset: auto 0 0; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--white); box-shadow: 0 -8px 24px -12px rgba(43,43,43,.3); }
  .m-cta .btn { flex: 1; justify-content: center; }
  .wa-float { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .mini-footer { padding-bottom: 72px; }
}
@media (max-width: 600px) {
  .p-hero .wrap { padding-block: 100px 96px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 18px; }
  .fact:nth-child(n) { border-inline-start: 0; border-top: 1px solid var(--line); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact:nth-child(even) { border-inline-start: 1px solid var(--line); }
  .fact:last-child { grid-column: 1 / -1; }
  .model { grid-template-columns: 1fr; }
  .model .plan { padding: 16px; }
  .model .plan svg { max-width: 120px; }
  .specs { grid-template-columns: 1fr 1fr 1fr; }
  .video .vc { flex-direction: column; text-align: center; }
  .video .play { width: 60px; height: 60px; }
}


/* ================= WordPress additions ================= */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .subnav { top: calc(70px + 32px); }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } body.admin-bar .subnav { top: calc(68px + 46px); } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.nav ul, .drawer ul, .footer-links ul { list-style: none; margin: 0; padding: 0; display: contents; }
.nav li, .drawer li, .footer-links li { display: contents; }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav .current-menu-ancestor > a { color: var(--white); }
.nav .current-menu-item > a::after, .nav .current_page_item > a::after, .nav .current-menu-ancestor > a::after { content: ""; display: block; height: 2px; background: var(--sand); border-radius: 2px; margin-top: 2px; }

/* Leaflet maps */
.map-stage .dm-map, .arch-map .dm-map { position: absolute; inset: 0; }
.leaflet-container { font-family: var(--font); background: #F1F0EE; }
.leaflet-tile-pane { filter: grayscale(.9) contrast(.92) brightness(1.04); }
.leaflet-control-attribution { font-size: 10px; direction: ltr; }
.dm-pin { width: 40px; height: 52px; color: var(--c); filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); transition: transform .25s; transform-origin: 50% 100%; }
.dm-pin svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.dm-pin-wrap:hover .dm-pin, .dm-pin-wrap.on .dm-pin { transform: scale(1.18); }
.dm-pin-wrap { background: none; border: 0; }
.dm-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 48px -12px rgba(43,43,43,.35); }
.dm-popup .leaflet-popup-content { margin: 0; width: 260px !important; direction: rtl; position: relative; line-height: 1.7; }
.dm-popup .leaflet-popup-close-button { left: 8px !important; right: auto !important; top: 8px !important; width: 30px !important; height: 30px !important; border-radius: 50%; background: rgba(255,255,255,.92) !important; display: grid !important; place-items: center; font-size: 18px !important; color: var(--ink) !important; z-index: 2; }
.dm-popup img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dm-popup .chip { position: absolute; top: 10px; inset-inline-start: 10px; }
.dm-popup .pb { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.dm-popup h4 { margin: 0; font-size: 17px; color: var(--ink); }
.dm-popup p { margin: 0 !important; font-size: 13px; color: var(--muted); }
.dm-popup .pb a { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--wine); display: inline-flex; align-items: center; gap: 6px; }
.dm-popup .pb a svg { width: 14px; height: 14px; }
.dm-tip { direction: rtl; background: var(--white); border: 0; border-radius: 12px; padding: 10px 14px; box-shadow: 0 12px 30px -12px rgba(43,43,43,.35); font-family: var(--font); }
.dm-tip b { display: block; font-size: 15px; color: var(--ink); }
.dm-tip span { font-size: 13px; color: var(--muted); }
.dm-tip::before { display: none; }

/* inner page banner */
.page-banner { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.page-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,26,25,.9), rgba(28,26,25,.35)); }
.page-banner .wrap { position: relative; z-index: 2; padding-block: 160px 64px; }
.page-banner h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; }
.page-banner p { margin-top: 12px; color: rgba(255,255,255,.82); font-size: 18px; max-width: 60ch; }

/* generic content */
.entry { max-width: 760px; font-size: 17px; color: var(--ink-2); }
.entry > * + * { margin-top: 1em; }
.entry h2 { font-size: 28px; margin-top: 1.6em; color: var(--ink); }
.entry h3 { font-size: 22px; margin-top: 1.4em; color: var(--ink); }
.entry a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.entry ul, .entry ol { padding-inline-start: 1.4em; }

/* about page */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vm-card { background: var(--paper); border-radius: 18px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.vm-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--white); color: var(--wine); display: grid; place-items: center; }
.vm-card .ic svg { width: 26px; height: 26px; }
.vm-card h3 { font-size: 24px; }
.vm-card p { color: var(--ink-2); }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.story .img { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); display: grid; place-items: center; }
.story .img img { width: 100%; height: 100%; object-fit: cover; }
.story .img.mark img { width: 70%; height: auto; object-fit: contain; }
.story .txt { display: flex; flex-direction: column; gap: 16px; }
.story .txt p { color: var(--ink-2); font-size: 17px; }
.cta-band { background: var(--paper); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-row h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-row p { color: var(--muted); margin-top: 6px; }

/* contact page */
.c-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.c-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, box-shadow .2s; min-width: 0; }
a.c-card:hover { border-color: var(--ink); box-shadow: 0 14px 32px -20px rgba(43,43,43,.35); }
.c-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--paper); color: var(--wine); display: grid; place-items: center; }
.c-card .ic svg { width: 22px; height: 22px; }
.c-card small { color: var(--muted); font-size: 13px; }
.c-card b { font-size: 16px; overflow-wrap: anywhere; }
.c-main { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: 24px; align-items: stretch; }
.c-main .form { background: var(--ink); border: 0; }
.c-main .map-stage { aspect-ratio: auto; min-height: 460px; border-radius: 18px; border: 1px solid var(--line); }

/* projects archive */
.arch-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.arch-bar .filters { padding: 0; border: 0; }
.arch-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.arch-tools select { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.view-toggle button { border: 0; background: var(--white); padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
.view-toggle button.on { background: var(--ink); color: var(--white); }
.arch-map { height: clamp(420px, 60vh, 640px); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }

/* forms feedback */
.form-ok, .form-err { grid-column: 1 / -1; font-size: 14px; }
.form-err { color: #F2A7A7; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
.light-form .field label { color: var(--muted); }
.light-form .field input, .light-form .field select, .light-form .field textarea { color: var(--ink); background: var(--white); border-color: var(--line); }

/* 404 */
.nf { text-align: center; padding-block: 200px 120px; }
.nf b { font-size: clamp(80px, 14vw, 160px); line-height: 1; color: var(--paper); -webkit-text-stroke: 2px var(--line); display: block; }
.nf h1 { font-size: 30px; margin: 16px 0 10px; }
.nf p { color: var(--muted); margin-bottom: 24px; }

.video-modal { position: fixed; inset: 0; z-index: 95; background: rgba(20,19,18,.94); display: grid; place-items: center; padding: 16px; }
.video-modal .vm-in { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.video-modal iframe, .video-modal video { width: 100%; height: 100%; border: 0; display: block; }
.video-modal .lb-x { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); left: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--white); display: grid; place-items: center; }
.video-modal .lb-x svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .c-cards { grid-template-columns: 1fr 1fr; }
  .c-main { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .vm, .story { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .c-cards { grid-template-columns: 1fr; }
  .page-banner .wrap { padding-block: 130px 48px; }
}

/* project page: data-driven variants */
.gallery.g-few { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-template-rows: none; grid-auto-rows: 260px; }
.gallery.g-few .g-item:first-child { grid-row: auto; grid-column: auto; }
button.video { width: 100%; border: 0; padding: 0; cursor: pointer; font: inherit; }
.model .avail.none { color: var(--st-sold); background: rgba(156,83,84,.1); }
.model .plan img { max-height: 160px; width: auto; object-fit: contain; }
.book-points a:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 1080px) { .facts { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr 1fr !important; } }
.leaflet-container { direction: ltr; }
.contact-socials .socials a { color: var(--ink); background: var(--paper); }
.contact-socials .socials a:hover { background: var(--ink); color: var(--white); }
.mf-contacts a:hover { color: var(--white); }
