/* =========================================================
   Easy Real Estate — Main Stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --ink: #0f2b46;          /* deep navy — primary text / dark sections */
  --ink-2: #173a5c;
  --body: #4a5b6b;         /* paragraph text */
  --muted: #7a8a99;
  --bg: #f7fbfe;           /* cool off-white */
  --tint: #e8f4fc;         /* pale blue tint sections */
  --card: #ffffff;
  --line: #d6e6f2;
  --accent: #4fb8f0;       /* MAIN COLOUR — light blue (fills: buttons, badges, tags) */
  --accent-dark: #2fa3e3;  /* hover */
  --accent-ink: #0b78b8;   /* light-blue family for TEXT on light backgrounds (readable) */
  --on-accent: #0f2b46;    /* text colour on light-blue fills */
  --gold: #8fd3fa;         /* light blue highlight on dark backgrounds */
  --star: #f5b942;
  --success: #1d9a8a;  /* teal — sits well with blue */
  --danger: #c0392b;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(15, 43, 70, 0.18);
  --shadow-lg: 0 24px 50px -20px rgba(15, 43, 70, 0.35);
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(64px, 9vw, 110px); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.75); }
.section--dark .section__title, .section--dark h3 { color: #fff; }
.center { text-align: center; margin-top: 36px; }

.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head--row > * { min-width: 0; max-width: 100%; }
.section__head--row {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.01em; margin-bottom: 14px; }
.section__lead { font-size: 1.05rem; color: var(--muted); }
.section--dark .section__lead { color: rgba(255,255,255,.6); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: background .25s var(--ease), color .25s, transform .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-dark); color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 10px 20px -10px var(--accent-dark); }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }

.link-arrow { font-weight: 600; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent-ink); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .3s, box-shadow .3s, height .3s;
}
/* Background lives on a pseudo-element: backdrop-filter on .header itself would
   become the containing block for the fixed mobile .nav and clip it to 76px. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(247, 251, 254, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity .3s;
}
.header.is-scrolled::before { opacity: 1; }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; transition: color .3s; }
.header.is-scrolled .logo { color: var(--ink); }
.logo__mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
}
.logo__text { font-family: var(--font-head); font-size: 1.15rem; line-height: 1; }
.logo__text strong { display: block; font-size: .72rem; font-family: var(--font-body); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; opacity: .8; margin-top: 4px; }
.logo--light { color: #fff; }
.logo__img { display: block; height: 44px; width: auto; max-width: 200px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__brand, .nav__contact { display: none; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  display: block; padding: 8px 12px; font-weight: 500; font-size: .93rem;
  color: rgba(255,255,255,.85); border-radius: 8px; position: relative; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.active { color: #fff; }
.nav__link.active::after, .nav__link:hover::after { transform: scaleX(1); }
.header.is-scrolled .nav__link { color: var(--body); }
.header.is-scrolled .nav__link:hover, .header.is-scrolled .nav__link.active { color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s, background .3s; }
.header.is-scrolled .nav-toggle span, .nav-open .nav-toggle span { background: var(--ink); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 60px; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--ink); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s ease-out forwards; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
    /*background: linear-gradient(100deg, rgba(10,31,51,.92) 0%, rgba(10,31,51,.7) 45%, rgba(10,31,51,.25) 100%);*/
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.hero__content { position: relative; }
.hero__title { color: #fff; font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 20px; max-width: 760px; }
.hero__title em { font-style: italic; font-weight: 400; color: var(--gold); }
.hero__text { max-width: 560px; font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 36px; }

.search {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 6px; align-items: stretch;
  background: #fff; border-radius: var(--radius-lg); padding: 8px; max-width: 900px; box-shadow: var(--shadow-lg);
}
.search__field { display: flex; flex-direction: column; padding: 8px 16px; border-right: 1px solid var(--line); }
.search__field:nth-child(3) { border-right: 0; }
.search__field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.search__field select {
  border: 0; background: transparent; color: var(--ink); font-weight: 600; padding: 4px 0; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%230f2b46' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; padding-right: 18px;
}
.search__field select:focus { outline: none; }
.search__btn { border-radius: 16px; padding-inline: 30px; }

.hero__stats { display: flex; gap: clamp(24px, 5vw, 64px); margin-top: 48px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: #fff; font-weight: 600; }
.hero__stats span { font-size: .9rem; color: rgba(255,255,255,.65); }

/* ---------- About ---------- */
.about__grid > *, .clients > *, .contact__grid > * { min-width: 0; }
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about__media { position: relative; padding: 0 60px 60px 0; }
.about__img { border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow); }
.about__img--main { width: 100%; aspect-ratio: 4/4.4; }
.about__img--small { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; border: 6px solid var(--bg); }
.about__badge {
  position: absolute; left: -12px; top: 28px; background: var(--accent); color: var(--on-accent);
  padding: 16px 20px; border-radius: var(--radius); display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
}
.about__badge strong { font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }
.about__badge span { font-size: .82rem; line-height: 1.3; max-width: 9em; }
.about__content p { margin-bottom: 16px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 26px 0 32px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; font-size: .95rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(79,184,240,.14); color: var(--accent-ink); font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.about__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Category ---------- */
.categories { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.category {
  background: var(--card); border-radius: var(--radius-lg); padding: 30px 22px; text-align: left;
  border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, background .3s;
}
.category:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; background: var(--ink); }
.category:hover h3 { color: #fff; }
.category:hover p { color: rgba(255,255,255,.6); }
.category:hover .category__icon { background: var(--accent); color: var(--on-accent); }
.category__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(79,184,240,.12); color: var(--accent-ink); transition: background .3s, color .3s;
}
.category__icon svg { width: 28px; height: 28px; fill: currentColor; }
.category__icon i { font-size: 24px; }
.category h3 { font-size: 1.2rem; margin-bottom: 4px; transition: color .3s; }
.category p { font-size: .9rem; color: var(--muted); transition: color .3s; }

/* ---------- Filters / tabs ---------- */
.filters, .tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter, .tab {
  padding: 9px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  border: 1.5px solid var(--line); color: var(--body); background: var(--card); transition: all .25s;
}
.filter:hover, .tab:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active, .tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-note { margin: -24px 0 24px; color: var(--muted); font-size: .95rem; }
.filter-note b { color: var(--ink); }

/* ---------- Property cards ---------- */
.properties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.property {
  background: var(--card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.property:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.property.is-hidden { display: none; }
.property__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--tint); }
.property__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.property:hover .property__media img { transform: scale(1.07); }
.tag {
  position: absolute; top: 16px; left: 16px; padding: 5px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: #fff;
}
.tag--sale { background: var(--accent); color: var(--on-accent); }
.tag--rent { background: var(--ink); }
.property__fav {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--muted); font-size: 1rem; transition: color .2s, transform .2s;
}
.property__fav:hover { transform: scale(1.1); }
.property__fav[aria-pressed="true"] { color: #e0475b; }
.property__body { padding: 22px 22px 20px; }
.property__type { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.property__title { font-size: 1.28rem; margin: 6px 0 4px; }
.property__loc { font-size: .9rem; color: var(--muted); padding-left: 18px; position: relative; }
.property__loc::before { content: "⌖"; position: absolute; left: 0; color: var(--accent-ink); }
.property__meta { display: flex; gap: 16px; margin: 16px 0; padding-block: 14px; border-block: 1px solid var(--line); font-size: .86rem; flex-wrap: wrap; }
.property__meta b { color: var(--ink); }
.property__foot { display: flex; align-items: center; justify-content: space-between; }
.property__price { font-family: var(--font-head); font-size: 1.4rem; color: var(--ink); font-weight: 700; }
.property__price small { font-family: var(--font-body); font-size: .8rem; color: var(--muted); font-weight: 500; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius-lg); overflow: hidden; }
.service { background: var(--ink); padding: 40px 34px; transition: background .35s; position: relative; }
.service:hover { background: var(--ink-2); }
.service__num { font-family: var(--font-head); font-size: 2.6rem; color: var(--gold); opacity: .55; display: block; margin-bottom: 18px; transition: opacity .3s; }
.service:hover .service__num { opacity: 1; }
.service h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service p { font-size: .95rem; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/3.7; background: var(--ink); animation: fadeUp .5s var(--ease) both; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project:hover img { transform: scale(1.06); }
.project__overlay {
  position: absolute; inset: auto 0 0; padding: 28px 24px 24px; color: rgba(255,255,255,.8);
  background: linear-gradient(to top, rgba(10,31,51,.95) 10%, rgba(10,31,51,0));
}
.project__overlay h3 { color: #fff; font-size: 1.4rem; margin: 10px 0 4px; }
.project__overlay p { font-size: .9rem; }
.project__overlay small { font-size: .8rem; color: var(--gold); font-weight: 600; }
.project__badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.project__badge--done { background: var(--success); }
.project__badge--soon { background: var(--gold); color: var(--ink); }
.progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.2); margin: 14px 0 6px; overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--w); background: var(--gold); border-radius: inherit; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { text-align: center; }
.member__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/4.6; margin-bottom: 18px; background: var(--line); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: transform .5s var(--ease), filter .5s; }
.member:hover .member__photo img { transform: scale(1.05); filter: grayscale(0); }
.member__social {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 20px); opacity: 0;
  display: flex; gap: 8px; transition: transform .35s var(--ease), opacity .35s;
}
.member:hover .member__social, .member:focus-within .member__social { transform: translate(-50%, 0); opacity: 1; }
.member__social a { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.member__social a:hover { background: var(--accent); color: var(--on-accent); }
.member h3 { font-size: 1.2rem; }
.member p { color: var(--accent-ink); font-size: .9rem; font-weight: 500; }

/* ---------- Partners marquee ---------- */
.partners-section { padding-bottom: clamp(56px, 8vw, 90px); }
.partners-section .section__head { margin-bottom: 36px; }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 26px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.partner { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .25s; }
.partner:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.client-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.client-stats li { background: var(--card); border-radius: var(--radius); padding: 20px 16px; border: 1px solid var(--line); }
.client-stats strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--ink); line-height: 1.1; }
.client-stats span { font-size: .85rem; color: var(--muted); }

.slider { background: var(--card); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); position: relative; }
.slider::before { content: "“"; position: absolute; top: -10px; right: 30px; font-family: var(--font-head); font-size: 9rem; color: var(--accent); opacity: .3; line-height: 1; }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform .6s var(--ease); }
.testimonial { flex: 0 0 100%; }
.stars { color: var(--star); letter-spacing: 3px; margin-bottom: 14px; }
.testimonial blockquote { font-family: var(--font-head); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink); line-height: 1.5; margin-bottom: 26px; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; }
.testimonial figcaption img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--line); }
.testimonial figcaption span { font-size: .88rem; color: var(--muted); }
.testimonial figcaption b { display: block; color: var(--ink); font-size: 1rem; }
.testimonial__initials { width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--ink); color: var(--gold) !important; font-weight: 700; font-size: 1rem !important; }
.stars__off { opacity: .25; }
.slider__controls[hidden] { display: none; }
.slider__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.slider__btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink); font-size: 1.1rem; transition: all .25s; }
.slider__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 999px; background: var(--line); transition: width .3s, background .3s; }
.slider__dots button.is-active { width: 28px; background: var(--accent); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: rgba(255,255,255,.75); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(79,184,240,.25), transparent 70%); top: -180px; left: -160px; }
.contact .section__title { color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); position: relative; }
.contact__list { margin-top: 30px; display: grid; gap: 18px; }
.contact__list li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact__list span { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-weight: 700; padding-top: 3px; }
.contact__list a:hover { color: #fff; }

.form { background: var(--card); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); color: var(--body); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; margin-bottom: 16px; }
.form__field label { font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form__field input, .form__field select, .form__field textarea {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg);
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79,184,240,.12); }
.form__field.has-error input { border-color: var(--danger); }
.form__error { color: var(--danger); font-size: .8rem; min-height: 1em; margin-top: 4px; }
.form__success { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: rgba(29,154,138,.1); color: var(--success); font-weight: 600; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: #0a1f33; color: rgba(255,255,255,.6); padding: 72px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a:hover { color: var(--gold); }
.footer__about { margin-top: 16px; font-size: .95rem; }
.newsletter { display: flex; gap: 8px; margin-top: 16px; background: rgba(255,255,255,.06); border-radius: 999px; padding: 6px; }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 0 14px; color: #fff; }
.newsletter input:focus { outline: none; }
.newsletter .btn { padding: 10px 20px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Back to top & toast ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-size: 1.2rem; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .3s var(--ease); z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-dark); }
.wa ~ .to-top { bottom: 92px; } /* sits above the WhatsApp button */

/* ---------- WhatsApp chat ---------- */
.wa { --wa: #25d366; --wa-dark: #128c7e; position: fixed; right: 22px; bottom: 22px; z-index: 95; }
.wa__fab {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(18, 140, 126, .6);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.wa__fab:hover { background: var(--wa-dark); color: #fff; transform: scale(1.06); }
.wa__fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wa__panel {
  position: absolute; right: 0; bottom: 74px; width: 340px; max-width: calc(100vw - 32px);
  background: #efeae2; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  transform-origin: bottom right; animation: wa-in .25s var(--ease);
}
.wa__panel[hidden] { display: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.wa__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--wa-dark); color: #fff; }
.wa__head strong { display: block; font-size: 1rem; line-height: 1.2; }
.wa__head span { font-size: .8rem; opacity: .85; }
.wa__avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--wa); }
.wa__avatar svg { width: 24px; height: 24px; }
.wa__close { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 1.5rem; line-height: 1; background: transparent; }
.wa__close:hover { background: rgba(255, 255, 255, .15); }
.wa__body { padding: 20px 18px; min-height: 120px; }
.wa__bubble {
  position: relative; max-width: 85%; margin: 0; padding: 10px 14px; background: #fff; color: #111b21;
  border-radius: 0 12px 12px 12px; font-size: .94rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.wa__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: #f0f2f5; }
.wa__form textarea {
  flex: 1; min-width: 0; max-height: 110px; resize: none; padding: 10px 14px; border: 0; border-radius: 20px;
  background: #fff; color: #111b21; font: inherit; font-size: .94rem;
}
.wa__form textarea:focus { outline: 2px solid var(--wa); }
.wa__send { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--wa); color: #fff; }
.wa__send:hover { background: var(--wa-dark); }
@media (max-width: 640px) {
  .wa { right: 16px; bottom: 16px; }
  .wa ~ .to-top { right: 21px; bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .wa__panel { animation: none; } }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: .92rem;
  box-shadow: var(--shadow-lg); transition: transform .4s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast:empty { visibility: hidden; }
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Image fallback ---------- */
img.img-fallback { opacity: 0; }
.img-wrap-fallback { background: linear-gradient(135deg, var(--tint), var(--line)) !important; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Multi-page additions
   ========================================================= */

/* ---------- Page banner (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(56px, 8vw, 96px); color: #fff; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--ink); }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,31,51,.94) 0%, rgba(10,31,51,.78) 50%, rgba(10,31,51,.45) 100%); }
.page-hero__content { position: relative; }
.page-hero__title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.02em; max-width: 760px; margin-bottom: 14px; }
.page-hero__text { max-width: 600px; font-size: 1.05rem; color: rgba(255,255,255,.78); }
.page-hero__loc { padding-left: 20px; position: relative; }
.page-hero__loc::before { content: "⌖"; position: absolute; left: 0; color: var(--gold); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold); }
.section--tight-top { padding-top: clamp(40px, 6vw, 64px); }

/* ---------- Category as link ---------- */
a.category { display: block; }
.property { position: relative; }
a.property__media { display: block; }

/* ---------- Link / button variants ---------- */
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: var(--gold); }
.property__title a:hover { color: var(--accent-ink); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn--light:hover { background: #fff; color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: rgba(15,43,70,.85); padding-block: clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); right: -120px; top: -160px; }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band__inner > div:first-child { max-width: 620px; min-width: 0; }
.cta-band h2 { color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 8px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn--primary { background: var(--ink); }
.cta-band .btn--primary { color: #fff; }
.cta-band .btn--primary:hover { background: #0a1f33; box-shadow: none; }
.cta-band .btn--light { background: rgba(255,255,255,.35); color: var(--ink); border-color: rgba(15,43,70,.25); }
.cta-band .btn--light:hover { background: #fff; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--ink); padding-block: clamp(40px, 5vw, 60px); }
.stats-band__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-band__list strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; font-weight: 600; line-height: 1.1; }
.stats-band__list span { font-size: .9rem; color: rgba(255,255,255,.6); }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; transition: transform .3s var(--ease), box-shadow .3s; }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(79,184,240,.12); color: var(--accent-ink); font-family: var(--font-head); font-weight: 700; margin-bottom: 20px; }
.value h3 { font-size: 1.3rem; margin-bottom: 8px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 44px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 34px 120px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline span { position: absolute; left: 0; top: 0; width: 90px; text-align: center; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .85rem; padding: 4px 0; border-radius: 999px; }
.timeline h3 { font-size: 1.25rem; margin-bottom: 4px; }

/* ---------- Service details ---------- */
.service__list { margin-top: 18px; display: grid; gap: 8px; }
.service__list li { position: relative; padding-left: 22px; font-size: .9rem; color: rgba(255,255,255,.85); }
.service__list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.service[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding-top: 8px; }
.step__num { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: 18px; position: relative; z-index: 1; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 35px; left: 62px; right: -12px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq-wrap > * { min-width: 0; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent-ink); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 18px; }

/* ---------- Careers ---------- */
.careers { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.careers > div { max-width: 640px; min-width: 0; }

/* ---------- Map ---------- */
.map { line-height: 0; background: var(--tint); }
.map iframe { width: 100%; height: 420px; border: 0; filter: grayscale(.3); }

/* ---------- Listing filter bar ---------- */
.listing-bar {
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 6px; align-items: stretch;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow); margin-bottom: 28px;
}
.listing-bar__field { display: flex; flex-direction: column; padding: 8px 16px; border-right: 1px solid var(--line); min-width: 0; }
.listing-bar__field:nth-child(4) { border-right: 0; }
.listing-bar__field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.listing-bar__field select {
  border: 0; background: transparent; color: var(--ink); font-weight: 600; padding: 4px 18px 4px 0; cursor: pointer; appearance: none; -webkit-appearance: none; width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%230f2b46' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center;
}
.listing-bar__field select:focus { outline: none; }
.listing-bar__reset { border-radius: 16px; }
.result-count { margin: 20px 0 24px; color: var(--muted); font-size: .95rem; }
.result-count b { color: var(--ink); }
.empty-state { grid-column: 1 / -1; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 56px 24px; }
.empty-state h2, .empty-state h3 { font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { margin-bottom: 22px; }

/* ---------- Property details ---------- */
.detail { display: grid; grid-template-columns: 1fr 380px; gap: clamp(28px, 4vw, 48px); align-items: start; }
.detail > * { min-width: 0; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 10px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--tint); }
.gallery button { padding: 0; overflow: hidden; background: var(--line); position: relative; }
.gallery button:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.gallery button.is-active { outline: 3px solid var(--accent); outline-offset: -3px; }
.detail__summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 18px; }
.tag--inline { position: static; display: inline-block; margin-bottom: 6px; }
.detail__price { font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--ink); font-weight: 700; line-height: 1.1; }
.detail__price small { font-family: var(--font-body); font-size: .95rem; color: var(--muted); font-weight: 500; }
.detail__fav[aria-pressed="true"] { background: #e0475b; border-color: #e0475b; color: #fff; }
.detail__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 36px; }
.detail__meta li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; font-size: .88rem; }
.detail__meta b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); }
.detail__block { padding-block: 28px; border-top: 1px solid var(--line); }
.detail__block h2 { font-size: 1.45rem; margin-bottom: 14px; }
.detail__block .checklist { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.facts dt { color: var(--muted); }
.facts dd { color: var(--ink); font-weight: 600; text-align: right; }
.detail__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.agent { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.agent img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--line); }
.agent b { display: block; color: var(--ink); }
.agent span { font-size: .88rem; color: var(--muted); }
.agent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.agent__actions .btn { padding-inline: 12px; }
.detail__aside .form { box-shadow: var(--shadow); border: 1px solid var(--line); padding: 24px; }
.form__title { font-size: 1.3rem; margin-bottom: 16px; }

/* ---------- Footer contact ---------- */
.footer__contact { margin-top: 16px; }
.footer__contact a:hover { color: var(--gold); }

@media (max-width: 1100px) {
  .detail { grid-template-columns: 1fr 340px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 980px) {
  .detail { grid-template-columns: 1fr; }
  .detail__aside { position: static; }
  .values { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .stats-band__list { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .listing-bar { grid-template-columns: 1fr 1fr; }
  .listing-bar__field:nth-child(2) { border-right: 0; }
  .listing-bar__field:nth-child(3), .listing-bar__field:nth-child(4) { border-top: 1px solid var(--line); }
  .listing-bar__reset { grid-column: 1 / -1; margin: 4px; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .timeline::before { left: 34px; }
  .timeline li { padding-left: 88px; }
  .timeline span { width: 70px; }
  .listing-bar { grid-template-columns: 1fr; }
  .listing-bar__field { border-right: 0 !important; border-top: 0 !important; border-bottom: 1px solid var(--line); }
  .gallery { aspect-ratio: 4/3; grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr 1fr; }
  .gallery button:first-child { grid-column: span 2; grid-row: auto; }
  .gallery button:nth-child(4) { grid-column: span 2; }
  .detail__meta { gap: 8px; }
  .detail__meta li { padding: 12px 8px; }
  .detail__meta b { font-size: 1.2rem; }
  .facts { grid-template-columns: 1fr; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .map iframe { height: 320px; }
}

/* ---------- Service & project cards (built on the property card) ---------- */
.card-grid .property { display: flex; flex-direction: column; }
.card-grid .property__body { display: flex; flex-direction: column; flex: 1; }
.card-grid .property__foot { margin-top: auto; }
.card-grid .property[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.card-desc { font-size: .92rem; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-note { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }

/* Service: icon instead of the heart, ✓ points instead of beds/baths */
.tag--service { background: #fff; color: var(--ink); }
.service-item__icon {
  position: absolute; top: 12px; right: 12px; z-index: 1; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  box-shadow: 0 6px 16px -6px rgba(10,31,51,.45); transition: background .3s, color .3s, transform .3s var(--ease);
}
.service-item__icon svg { width: 20px; height: 20px; fill: currentColor; }
.service-item:hover .service-item__icon { background: var(--ink); color: #fff; transform: rotate(-8deg) scale(1.06); }
.service-item__points { flex-direction: column; gap: 6px; }
.service-item__points li { position: relative; padding-left: 22px; color: var(--ink); font-weight: 500; }
.service-item__points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }

/* Project: status tag + coloured line under the image, progress bar */
.tag--ongoing { background: var(--accent); color: var(--on-accent); }
.tag--completed { background: var(--success); }
.tag--upcoming { background: var(--ink); }
.project-item .property__media { border-bottom: 4px solid var(--accent); }
.project-item--completed .property__media { border-bottom-color: var(--success); }
.project-item--upcoming .property__media { border-bottom-color: var(--ink); }
.project-item--completed .property__type { color: var(--success); }
.project-item__when { margin-left: auto; color: var(--accent-ink); font-weight: 600; }
.project-item__progress { display: flex; align-items: center; gap: 10px; margin: -4px 0 16px; }
.project-item__progress .progress { flex: 1; margin: 0; background: var(--line); }
.project-item__progress .progress span { background: var(--accent); }
.project-item__progress small { font-size: .8rem; font-weight: 700; color: var(--accent-ink); }
.project-item .card-note { font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--muted); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .categories { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle { position: relative; }
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: 100; width: min(400px, 100%);
    background: var(--bg); box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: env(safe-area-inset-top) 24px calc(env(safe-area-inset-bottom) + 24px);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s .4s;
  }
  .nav-open .nav { transform: translateX(0); visibility: visible; transition: transform .4s var(--ease), visibility 0s; }

  /* Panel header: logo lines up with the close button that sits over it */
  .nav__brand {
    display: inline-flex; flex-shrink: 0; height: var(--header-h); align-items: center;
    color: var(--ink); border-bottom: 1px solid var(--line); margin-inline: -24px; padding-inline: 24px;
  }

  .nav__list { flex-direction: column; gap: 0; margin-top: 12px; }
  .nav__list li {
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateX(16px); transition: opacity .35s, transform .45s var(--ease);
  }
  .nav-open .nav__list li { opacity: 1; transform: none; }
  .nav-open .nav__list li:nth-child(1) { transition-delay: .08s; }
  .nav-open .nav__list li:nth-child(2) { transition-delay: .12s; }
  .nav-open .nav__list li:nth-child(3) { transition-delay: .16s; }
  .nav-open .nav__list li:nth-child(4) { transition-delay: .20s; }
  .nav-open .nav__list li:nth-child(5) { transition-delay: .24s; }
  .nav-open .nav__list li:nth-child(6) { transition-delay: .28s; }
  .nav-open .nav__list li:nth-child(7) { transition-delay: .32s; }

  .nav__link, .header.is-scrolled .nav__link {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 4px; border-radius: 0; color: var(--ink);
    font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; line-height: 1.2;
    transition: color .2s, padding .25s var(--ease);
  }
  .nav__link::after {
    content: "→"; position: static; height: auto; background: none; transform: none;
    font-family: var(--font-body); font-size: 1rem; color: var(--muted);
    transition: transform .25s var(--ease), color .2s;
  }
  .nav__link:hover, .header.is-scrolled .nav__link:hover { color: var(--accent-ink); padding-left: 8px; }
  .nav__link:hover::after { transform: translateX(4px); color: var(--accent-ink); }
  .nav__link.active, .header.is-scrolled .nav__link.active { color: var(--accent-ink); }
  .nav__link.active::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: none; }

  .nav__cta { width: 100%; min-height: 52px; margin-top: 28px; flex-shrink: 0; }

  .nav__contact {
    display: grid; gap: 4px; margin-top: auto; padding-top: 28px;
    font-size: .95rem; color: var(--ink); font-weight: 500;
  }
  .nav__contact a { width: fit-content; overflow-wrap: anywhere; }
  .nav__contact a:hover { color: var(--accent-ink); }
  .nav__contact-label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

  /* While open: hide the bar's own logo/background so only the panel + close button show */
  .header__inner > .logo { transition: opacity .25s, color .3s; }
  .nav-open .header__inner > .logo { opacity: 0; pointer-events: none; }
  .nav-open .header::before { opacity: 0; }

  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(10,31,51,.58);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); z-index: 99;
  }

  .about__grid, .clients, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .properties, .projects { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .search { grid-template-columns: 1fr 1fr; }
  .search__field:nth-child(2) { border-right: 0; }
  .search__field:nth-child(3) { border-top: 1px solid var(--line); grid-column: span 1; }
  .search__btn { margin: 4px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .categories { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category { padding: 22px 16px; }
  .properties, .projects, .services, .team { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .search { grid-template-columns: 1fr; }
  .search__field { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .search__field:nth-child(3) { border-top: 0; }
  .search__btn { padding-block: 14px; }
  .checklist { grid-template-columns: 1fr; }
  .about__media { padding: 0 30px 30px 0; }
  .client-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .client-stats li { padding: 14px 10px; }
  .client-stats strong { font-size: 1.5rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .section__head--row { align-items: flex-start; }
  .section__head--row > * { width: 100%; }
  .filters, .tabs { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .filter, .tab { flex-shrink: 0; }
  .project { aspect-ratio: 4/4.2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Partner registration
   ========================================================= */
.partner__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.partner__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.partner__aside .section__title { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.perks { display: grid; gap: 22px; margin: 28px 0 32px; }
.perks li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.perks__num {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--tint); color: var(--accent-ink); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.perks h3 { font-size: 1.12rem; margin-bottom: 4px; }
.perks p { font-size: .94rem; }

.partner__note { padding: 20px 22px; border-radius: var(--radius); background: var(--ink); color: rgba(255,255,255,.75); font-size: .93rem; }
.partner__note strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.partner__signin { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.partner__signin a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; }

.partner__form { border: 1px solid var(--line); box-shadow: var(--shadow); }
.form__alert {
  margin-bottom: 24px; padding: 14px 16px; border-radius: 12px; font-size: .92rem;
  background: rgba(192,57,43,.07); border: 1px solid rgba(192,57,43,.25); color: var(--danger);
}
.form__alert strong { display: block; }

.form-section { border: 0; min-width: 0; }
.form-section + .form-section { margin-top: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
/* float pulls the legend out of the fieldset border so the divider stays a clean line */
.form-section__head { float: left; width: 100%; display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; padding: 0; }
.form-section__head + * { clear: both; }
.form-section__step {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.form-section__head strong { display: block; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.form-section__head small { display: block; font-size: .88rem; color: var(--muted); margin-top: 2px; }

.form__field .req { color: var(--danger); }
.form__field .opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
.form__field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%237a8a99' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form__field input, .form__field select, .form__field textarea { width: 100%; min-height: 48px; color: var(--ink); }
.form__field.has-error select, .form__field.has-error textarea { border-color: var(--danger); }
.form__hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.form__hint.is-ok { color: var(--success); }
.form__hint.is-bad { color: var(--danger); }

.pw-field { position: relative; }
.pw-field input { padding-right: 72px; }
.pw-field__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: 8px;
  font-size: .8rem; font-weight: 700; color: var(--accent-ink);
}
.pw-field__toggle:hover { background: var(--tint); }
.pw-meter { height: 4px; margin-top: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .3s var(--ease), background .3s; }
.pw-meter.is-weak span { width: 25%; background: var(--danger); }
.pw-meter.is-fair span { width: 50%; background: var(--star); }
.pw-meter.is-good span { width: 75%; background: var(--accent); }
.pw-meter.is-strong span { width: 100%; background: var(--success); }

.form__field--check { margin-top: 8px; }
.form__check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .92rem; font-weight: 500 !important; color: var(--body) !important; }
.form__check input { width: 20px; height: 20px; min-height: 0; flex-shrink: 0; margin-top: 2px; padding: 0; accent-color: var(--accent-dark); }

.partner__submit { min-height: 54px; font-size: 1rem; margin-top: 8px; }
.partner__fine { margin-top: 12px; font-size: .82rem; color: var(--muted); text-align: center; }

/* Thank-you page: navy band behind the header, card overlaps it */
.partner-thanks {
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px));
  background: linear-gradient(var(--ink) 0, var(--ink) 300px, var(--bg) 300px);
}
.partner-thanks__card {
  max-width: 680px; margin-inline: auto; text-align: center; padding: clamp(28px, 5vw, 52px);
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.partner-thanks__icon {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(29,154,138,.12); color: var(--success); font-size: 1.9rem; font-weight: 700;
}
.partner-thanks .eyebrow::before { display: none; }
.partner-thanks__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; text-align: left; }
.partner-thanks__meta > div { padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.partner-thanks__meta dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.partner-thanks__meta dd { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fff4dc; color: #93650a; font-size: .82rem; }
.partner-thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 980px) {
  .partner__grid { grid-template-columns: 1fr; }
  .partner__aside { position: static; order: 2; }
}
@media (max-width: 640px) {
  .partner-thanks__meta { grid-template-columns: 1fr; }
  .partner-thanks__actions .btn { flex: 1; }
}

/* =========================================================
   Services: list + details page
   ========================================================= */
.service-empty { max-width: 560px; margin-inline: auto; text-align: center; }
.service-empty a { color: var(--accent-ink); font-weight: 600; }

.service-show__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.service-show__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--tint); aspect-ratio: 16 / 9; margin-bottom: clamp(24px, 4vw, 36px); }
.service-show__media img { width: 100%; height: 100%; object-fit: cover; }
.service-show__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.side-card p { font-size: .92rem; margin-bottom: 18px; }
.side-card__actions { display: grid; gap: 10px; }
.side-card__list { display: grid; }
.side-card__list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .94rem; }
.side-card__list li:last-child a { border-bottom: 0; padding-bottom: 0; }
.side-card__list a:hover { color: var(--accent-ink); }
.side-card__list a::after { content: "→"; color: var(--accent-ink); flex-shrink: 0; }
.project-facts { display: grid; }
.project-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.project-facts > div:first-child { padding-top: 0; }
.project-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.project-facts dt { color: var(--muted); font-size: .9rem; }
.project-facts dd { color: var(--ink); font-weight: 600; text-align: right; }
.project-facts__price { font-family: var(--font-head); font-size: 1.3rem; }
.page-hero__crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: .9rem; color: rgba(255,255,255,.7); }
.page-hero__crumbs a { color: #fff; }
.page-hero__crumbs a:hover { color: var(--gold); }

/* Rich text from the admin editor */
.prose { color: var(--body); font-size: 1.02rem; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 16px; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.25; }
.prose h3 { font-size: 1.4rem; margin-top: 28px; }
.prose h4 { font-size: 1.15rem; margin-top: 22px; }
.prose a { color: var(--accent-ink); text-decoration: underline; }
.prose ul, .prose ol { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; color: var(--ink); font-weight: 500; list-style: none; }
.prose ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose blockquote { padding: 14px 20px; border-left: 4px solid var(--accent); background: var(--tint); border-radius: 0 12px 12px 0; color: var(--ink); }

/* Contact page */
.contact .form__success { margin: 0 0 20px; }

/* 404 page */
.not-found { min-height: 78vh; min-height: 78svh; display: flex; align-items: center; }
.not-found__content { width: 100%; }
.not-found__code {
  font-family: "Fraunces", serif; font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  font-size: clamp(5rem, 16vw, 10rem); color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.35); margin-bottom: 8px;
}
.not-found__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* About us page */
.about-page { max-width: 820px; }
.about-page .section__title { margin-bottom: 20px; }

@media (max-width: 980px) {
  .service-show__grid { grid-template-columns: 1fr; }
  .service-show__aside { position: static; }
}
