/*
Theme Name: Beit - بيت
Theme URI: https://beit.com.eg
Author: بيت للتسويق العقاري
Description: ثيم بيت للتسويق العقاري. صفحة رئيسية فيها بحث وفلاتر للوحدات، وصفحة لكل وحدة، وصفحات للمناطق، وفورم بيبعت الطلب على واتساب. الوحدات والمناطق وبيانات التواصل كلها بتتعدل من لوحة التحكم.
Version: 1.2.0
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: beit
Tags: rtl-language-support, custom-logo, custom-menu, featured-images
*/

/* ==========================================================
   بيت للتسويق العقاري — Styles
   ========================================================== */

:root {
  --bg: #F7F2E9;
  --surface: #FFFFFF;
  --tint: #EFE6D6;
  --ink: #1B2421;
  --muted: #5F665F;
  --line: #E2D7C3;
  --green: #1E4A42;
  --green-deep: #14342E;
  --green-soft: #DCE7E2;
  --terra: #BF5D36;
  --terra-dark: #A34C2A;
  --sand: #E6D3B3;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(27, 36, 33, .06), 0 8px 24px rgba(27, 36, 33, .06);
  --shadow-lg: 0 2px 4px rgba(27, 36, 33, .06), 0 20px 48px rgba(27, 36, 33, .12);

  --font-head: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.3; margin: 0; letter-spacing: 0; }
p { margin: 0; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-accent { background: var(--terra); color: #fff; }
.btn-accent:hover { background: var(--terra-dark); }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover { background: var(--green-soft); }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-block { width: 100%; }

.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--terra); margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--sand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(247, 242, 233, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand > img, .brand-key { width: 68px; height: 34px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.05; color: var(--green); }
.brand-sub { font-size: 12px; color: var(--muted); }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: rgba(255,255,255,.7); }

.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink);
  padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--tint); color: var(--green); }

.menu-toggle {
  display: none; margin-inline-start: auto; width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer; padding: 10px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.hero h1 .accent { color: var(--green); }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); max-width: 54ch; }

.search-box {
  margin-top: 28px; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 10px;
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 4px; align-items: stretch;
}
.search-box .field { padding: 8px 14px; border-radius: 12px; }
.search-box .field + .field { border-inline-start: 1px solid var(--line); border-radius: 0; }
.search-box .field span { font-size: 12px; font-weight: 600; color: var(--muted); }
.search-box select {
  border: 0; padding: 2px 0; background: transparent; font-size: 15px; font-weight: 500;
}
.search-btn { border-radius: 14px; padding-inline: 30px; }

.hero-art { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.arch {
  aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden; background: var(--green); box-shadow: var(--shadow-lg);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: 28px; inset-inline-end: -12px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 12px 18px; display: flex; flex-direction: column; line-height: 1.4;
  border-inline-start: 4px solid var(--terra);
}
.hero-badge strong { font-family: var(--font-head); color: var(--green); }
.hero-badge span { font-size: 13px; color: var(--muted); }

/* ---------- Strip ---------- */
.strip { background: var(--green); color: #fff; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 22px 16px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.strip-item + .strip-item { border-inline-start: 1px solid rgba(255,255,255,.14); }
.strip-item strong { font-family: var(--font-head); font-size: 24px; color: var(--sand); }
.strip-item span { font-size: 14px; color: rgba(255,255,255,.82); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--green-deep); color: #fff; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px;
  flex-wrap: wrap; margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; }
.section-sub { color: var(--muted); max-width: 40ch; }

.grid { display: grid; gap: 22px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  transition: all .2s;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }

.results-note { color: var(--muted); font-size: 14px; margin-bottom: 16px; min-height: 1.5em; }
.results-note button {
  background: none; border: 0; color: var(--terra); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: underline; padding: 0 4px;
}

/* ---------- Property cards ---------- */
.properties-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16 / 11; background: var(--tint); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.tag {
  position: absolute; top: 14px; inset-inline-start: 14px;
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.95); color: var(--green);
}
.tag-featured { inset-inline-start: auto; inset-inline-end: 14px; background: var(--terra); color: #fff; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-loc { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.card-loc svg { width: 14px; height: 14px; fill: none; stroke: var(--terra); stroke-width: 2; }
.card h3 { font-size: 18px; font-weight: 600; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); list-style: none; padding: 0; margin: 0; }
.specs li { display: flex; align-items: center; gap: 6px; }
.specs svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.price { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--green); }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.card-link {
  background: none; border: 0; cursor: pointer; padding: 6px 0;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--terra);
}
.card-link:hover { color: var(--terra-dark); text-decoration: underline; }

.empty-state {
  text-align: center; background: var(--surface); border-radius: var(--radius-lg);
  padding: 40px 20px; box-shadow: var(--shadow); display: grid; gap: 8px; justify-items: center;
}
.empty-state .btn { margin-top: 10px; }
[hidden] { display: none !important; }

/* ---------- Areas ---------- */
.areas-grid { grid-template-columns: repeat(3, 1fr); }
.area {
  position: relative; text-align: start; cursor: pointer; overflow: hidden;
  background: var(--surface); border: 0; border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  font-family: var(--font-body); color: var(--ink);
}
.area::after {
  content: ""; position: absolute; inset-inline-end: -30px; bottom: -40px;
  width: 120px; height: 140px; border-radius: 999px 999px 0 0;
  background: var(--green-soft); transition: background .25s;
}
.area:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.area:hover::after { background: var(--sand); }
.area strong { font-family: var(--font-head); font-size: 20px; position: relative; z-index: 1; }
.area span { color: var(--muted); font-size: 14px; position: relative; z-index: 1; }
.area em {
  font-style: normal; font-weight: 600; font-size: 14px; color: var(--terra);
  margin-top: 10px; position: relative; z-index: 1;
}

/* ---------- Services ---------- */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service {
  background: var(--surface); border-radius: var(--radius-lg); padding: 26px;
  border: 1px solid var(--line);
}
.service-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--green-soft);
  display: grid; place-items: center; margin-bottom: 16px;
}
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 26px; }
.step-num {
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center;
  background: var(--terra); color: #fff; margin-bottom: 16px;
}
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: rgba(255,255,255,.78); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-copy h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 12px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ci-label { color: var(--muted); font-size: 14px; }
.contact-list a { font-weight: 600; text-decoration: none; color: var(--green); text-align: start; }
.contact-list a:hover { text-decoration: underline; }
.contact-list [dir="ltr"] { justify-self: start; }

.contact-form {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink); }
input, select, textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  width: 100%; min-width: 0;
}
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; transition: border-color .2s, background .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--green); background: #fff;
}
.contact-form input[aria-invalid="true"] { border-color: var(--terra); }
.contact-form input[dir="ltr"] { text-align: right; }
.contact-form textarea { resize: vertical; }
select { cursor: pointer; }
.form-error { color: var(--terra-dark); font-size: 14px; font-weight: 500; }
.form-hint { font-size: 13px; color: var(--muted); text-align: center; }
.form-hint a { color: var(--green); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.8); padding-top: 48px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; padding-bottom: 32px; }
.footer-brand p { margin-top: 12px; color: rgba(255,255,255,.7); }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; justify-content: start; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,.85); }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background .2s;
}
.footer-social a:hover { background: var(--terra); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px 28px;
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; font-size: 13px;
}
.disclaimer { color: rgba(255,255,255,.55); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 999px; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Modal ---------- */
.modal {
  border: 0; padding: 0; border-radius: var(--radius-lg); width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 48px); box-shadow: var(--shadow-lg); background: var(--surface); color: var(--ink);
}
.modal::backdrop { background: rgba(20, 30, 27, .6); backdrop-filter: blur(3px); }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { position: relative; background: var(--tint); min-height: 260px; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.modal-content { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.modal-content h3 { font-size: 22px; }
.modal-close {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.95); font-size: 22px; line-height: 1; color: var(--ink);
}
.details { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 8px; font-size: 15px; }
.details li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.details li span:first-child { color: var(--muted); white-space: nowrap; }
.details li span:last-child { font-weight: 600; text-align: end; }
.modal-actions { display: grid; gap: 8px; margin-top: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .properties-grid, .services-grid, .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: transform .3s, opacity .3s; margin: 0; z-index: -1;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .main-nav a:last-child { border-bottom: 0; }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; order: -1; }
  .arch { aspect-ratio: 1 / 1; }
  .hero-badge { inset-inline-end: 0; }
  .search-box { grid-template-columns: 1fr 1fr; }
  .search-box .field + .field { border-inline-start: 0; }
  .search-box .field { border-bottom: 1px solid var(--line); border-radius: 0; }
  .search-btn { grid-column: 1 / -1; padding-block: 14px; margin-top: 6px; }

  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-inline-start: 0; }
  .strip-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }

  .contact-inner { grid-template-columns: 1fr; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-media { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 600px) {
  .properties-grid, .services-grid, .areas-grid, .steps { grid-template-columns: 1fr; }
  .search-box { grid-template-columns: 1fr; }
  .search-box .field:nth-child(3) { border-bottom: 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .section-head { align-items: flex-start; }
  .wa-float { width: 54px; height: 54px; bottom: 16px; inset-inline-start: 16px; }
}

/* ==========================================================
   WordPress additions
   ========================================================== */
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

body.admin-bar .site-header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }

.custom-logo-link { display: flex; align-items: center; }
.custom-logo-link img, .custom-logo { max-height: 52px; width: auto; }

/* Menus are lists in WordPress */
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav .menu-list li { list-style: none; }
.main-nav .current-menu-item > a { color: var(--green); background: var(--tint); }
.footer-links .menu-list { display: contents; }
.footer-links li { list-style: none; }

/* Cards are links now */
.card-media { display: block; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--green); }
.card-link { text-decoration: none; }
.area { text-decoration: none; }

.see-all { text-align: center; margin-top: 28px; }
.page-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }

/* Archive */
.archive-chips { margin-bottom: 20px; }
.archive-chips .chip { text-decoration: none; }
.archive-chips .chip[aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }

/* Single unit */
.unit-page { padding: 24px 0 clamp(56px, 8vw, 96px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); text-decoration: underline; }
.unit-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint);
  aspect-ratio: 21 / 9; max-width: 100%; box-shadow: var(--shadow);
}
.unit-media img { width: 100%; height: 100%; object-fit: cover; }
.unit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); margin-top: 28px; align-items: start; }
.unit-main h1 { font-size: clamp(26px, 3.6vw, 36px); margin: 6px 0 18px; }
.unit-main .details { max-width: 640px; }
.unit-h2 { font-size: 22px; margin: 32px 0 10px; }
.unit-aside { position: sticky; top: 96px; }
.unit-box {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 24px; display: grid; gap: 14px;
}
.unit-box .price { font-size: 28px; }
.unit-pay { color: var(--muted); font-size: 15px; }
.related { margin-top: clamp(48px, 7vw, 80px); }

/* Content from the editor / Elementor */
.container.narrow { max-width: 820px; }
.entry-content { font-size: 17px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.entry-content h3 { font-size: 20px; margin-top: 1.4em; }
.entry-content a { color: var(--green); }
.entry-content img { height: auto; border-radius: var(--radius); }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.page-default .page-title { margin-bottom: 20px; }
.page-fullwidth { min-height: 40vh; }
.post-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-item h2 { font-size: 22px; }
.post-item h2 a { text-decoration: none; }
.post-meta { color: var(--muted); font-size: 14px; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100%; }

@media (max-width: 880px) {
  .main-nav .menu-list { flex-direction: column; gap: 0; }
  .main-nav .menu-list a { display: block; border-bottom: 1px solid var(--line); }
  .main-nav .menu-list li:last-child a { border-bottom: 0; }
  .unit-layout { grid-template-columns: 1fr; }
  .unit-aside { position: static; }
  .unit-media { aspect-ratio: 4 / 3; }
}

/* ==========================================================
   Inner pages (1.2.0)
   ========================================================== */
.page-hero { background: var(--tint); padding: clamp(28px, 5vw, 56px) 0 clamp(32px, 5vw, 60px); }
.page-hero .breadcrumbs { margin-bottom: 22px; }
.page-hero .page-title { font-size: clamp(30px, 4.6vw, 48px); text-wrap: balance; max-width: 22ch; }
.page-hero .lead { margin-top: 14px; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

.btn-light { background: var(--surface); color: var(--green); }
.btn-light:hover { background: var(--sand); }

.cta-band { background: var(--green); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 8px; }
.cta-inner p { color: rgba(255,255,255,.82); max-width: 52ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.check-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.check-list li { position: relative; padding-inline-start: 26px; font-size: 15px; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--terra); border-bottom: 2.5px solid var(--terra); transform: rotate(-45deg);
}
.check-list.big { gap: 14px; margin-top: 18px; }
.check-list.big li { font-size: 17px; }

/* About */
.about-story { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-card {
  background: var(--green); color: rgba(255,255,255,.88); border-radius: var(--radius-lg); padding: 36px 32px;
  display: grid; gap: 18px; justify-items: start; font-size: 17px;
}
.about-card .brand-key { width: 150px; height: 75px; }
.edit-hint { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.values-grid { grid-template-columns: repeat(3, 1fr); }
.value { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.value-num {
  font-family: var(--font-head); font-weight: 700; color: var(--terra); font-size: 15px;
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1.5px solid var(--terra); margin-bottom: 14px;
}
.value h3 { font-size: 19px; margin-bottom: 6px; }
.value p { color: var(--muted); }

/* Services */
.narrow-block { max-width: 760px; margin-bottom: 32px; }
.audience-grid { grid-template-columns: repeat(4, 1fr); }
.audience { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.audience h3 { font-size: 18px; }
.audience p { color: var(--muted); font-size: 15px; flex: 1; }
.audience a { color: var(--terra); font-weight: 600; text-decoration: none; font-size: 15px; }
.audience a:hover { text-decoration: underline; }

/* Contact */
.contact-copy h2 { margin-bottom: 4px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.container.narrow { max-width: 820px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: var(--radius); padding: 0 20px; border: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-head); font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--terra); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* Blog */
.post-media { aspect-ratio: 16 / 10; }
.post-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: var(--green); }
.post-placeholder .brand-key { width: 120px; height: 60px; opacity: .9; }
.post-card h3 { font-size: 19px; line-height: 1.45; }
.post-excerpt { color: var(--muted); font-size: 15px; }
.post-card .post-meta { font-size: 13px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.article-main { max-width: 760px; }
.article-media { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.article-media img { width: 100%; height: auto; }
.unit-box h3 { font-size: 20px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.share span { color: var(--muted); }
.share a {
  text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 600; color: var(--green);
}
.share a:hover { border-color: var(--green); }

/* Footer, four columns */
.footer-inner { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 32px 40px; }
.footer-col { min-width: 0; display: grid; gap: 14px; align-content: start; }
.footer-brand p { margin-top: 0; }
.footer-title { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: #fff; }
.footer-links { display: block; }
.footer-links .menu-list { display: grid; gap: 10px; grid-template-columns: 1fr; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: rgba(255,255,255,.8); }
.footer-contact a { color: rgba(255,255,255,.9); text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact [dir="ltr"] { justify-self: start; }

@media (max-width: 1024px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: auto; }
}
@media (max-width: 880px) {
  .about-story, .article-layout { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .audience-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
}
