/*
 * ACA Valuations – theme on top of Bootstrap 5.3.
 * 1. Bootstrap variable overrides   2. Bootstrap component tweaks   3. Site components
 * The logo is the system: graphite and white surfaces, the grey square row as dividers,
 * the yellow diagonal hatching as the single accent, condensed heavy display type.
 */

/* ---------- 1. Bootstrap variables ---------- */
:root {
  --aca-yellow: #ffc627;
  --aca-yellow-dark: #e6ac00;
  --aca-on-yellow: #171100;
  --aca-ink: #111315;
  --aca-night: #121416;
  --aca-square: #d1d3d4;
  --aca-font-display: "Noto Sans Display", "Segoe UI", system-ui, sans-serif;
  --aca-font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --aca-header-offset: 96px;

  --bs-body-font-family: "Commissioner", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bs-body-color: #111315;
  --bs-body-color-rgb: 17, 19, 21;
  --bs-body-bg: #f4f5f6;
  --bs-secondary-color: #5b6068;
  --bs-tertiary-bg: #eaecee;
  --bs-tertiary-bg-rgb: 234, 236, 238;
  --bs-border-color: #dadde1;
  --bs-dark: #111315;
  --bs-dark-rgb: 17, 19, 21;
  --bs-warning: #ffc627;
  --bs-warning-rgb: 255, 198, 39;
  --bs-link-color: #111315;
  --bs-link-color-rgb: 17, 19, 21;
  --bs-link-hover-color: #5b6068;
  --bs-link-hover-color-rgb: 91, 96, 104;
  --bs-border-radius: .625rem;
  --bs-border-radius-lg: 1rem;
  --bs-border-radius-xl: 1.625rem;
  --bs-focus-ring-color: rgba(47, 111, 224, .35);
}

/* ---------- 2. Bootstrap components ---------- */
/* Fluid up to a cap: use the full width on laptops, stop at 1320px on wide screens for readable lines */
/* Roomier side gutters as the layout widens; content width stays 1320px */
/* One side margin (20px) on phones and tablets so every section lines up on the same edge */
.container { --bs-gutter-x: 2.5rem; }
/* .g-5 rows pull out 1.5rem each side, more than the container padding on small screens,
   which caused sideways scrolling. Columns stack there anyway, so keep the horizontal gutter within it. */
@media (max-width: 991.98px) { .row.g-5 { --bs-gutter-x: 2.5rem; } }
@media (min-width: 1200px) { .container { --bs-gutter-x: 3.5rem; max-width: calc(1320px + 3.5rem); } }
/* Decorative hatching may bleed past the gutter; never let it cause sideways scrolling.
   clip (not hidden) keeps position: sticky working inside main. */
main { overflow-x: hidden; overflow-x: clip; }

html { scroll-padding-top: var(--aca-header-offset); }
/* Images never stretch: width/height attributes only reserve space and keep the aspect ratio */
img { max-width: 100%; height: auto; }
body { -webkit-font-smoothing: antialiased; line-height: 1.62; }

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--aca-font-display);
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.02;
  text-wrap: balance;
}
.h5, h5 { line-height: 1.2; }

a { text-underline-offset: .2em; }
::selection { background: var(--aca-yellow); color: var(--aca-on-yellow); }

/* Pill buttons, as in the design */
.btn { --bs-btn-font-size: .9375rem; --bs-btn-font-weight: 600; --bs-btn-padding-x: 1.3rem; --bs-btn-border-radius: 50rem; display: inline-flex; align-items: center; justify-content: center; transition: transform .2s, color .15s, background-color .15s, border-color .15s; }
.btn:active { transform: scale(.98); }
.btn-lg { --bs-btn-padding-y: .95rem; --bs-btn-padding-x: 1.4rem; --bs-btn-font-size: .9375rem; --bs-btn-border-radius: 50rem; }
.btn-sm { --bs-btn-font-size: .8125rem; --bs-btn-border-radius: 50rem; }
/* Secondary: white with a hairline border */
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--bs-border-color); --bs-btn-color: var(--aca-ink); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: var(--bs-secondary-color); --bs-btn-hover-color: var(--aca-ink); --bs-btn-active-bg: var(--bs-tertiary-bg); --bs-btn-active-border-color: var(--bs-secondary-color); }
.btn-primary {
  --bs-btn-color: var(--aca-on-yellow);
  --bs-btn-bg: var(--aca-yellow);
  --bs-btn-border-color: var(--aca-yellow);
  --bs-btn-hover-color: var(--aca-on-yellow);
  --bs-btn-hover-bg: var(--aca-yellow-dark);
  --bs-btn-hover-border-color: var(--aca-yellow-dark);
  --bs-btn-active-color: var(--aca-on-yellow);
  --bs-btn-active-bg: var(--aca-yellow-dark);
  --bs-btn-active-border-color: var(--aca-yellow-dark);
  --bs-btn-focus-shadow-rgb: 255, 198, 39;
}
.btn-dark { --bs-btn-bg: var(--aca-ink); --bs-btn-border-color: var(--aca-ink); }
.btn-outline-dark { --bs-btn-border-color: var(--bs-border-color); --bs-btn-hover-bg: var(--aca-ink); --bs-btn-hover-border-color: var(--aca-ink); --bs-btn-active-bg: var(--aca-ink); }
.btn-icon { width: 2.5rem; height: 2.5rem; padding: 0; }
.btn .fa-arrow-right { transition: transform .2s; }
.btn:hover .fa-arrow-right { transform: translateX(3px); }

.card { --bs-card-border-color: var(--bs-border-color); --bs-card-border-radius: var(--bs-border-radius-xl); --bs-card-inner-border-radius: calc(var(--bs-border-radius-xl) - 1px); }
.card-dark { --bs-card-bg: var(--aca-night); --bs-card-color: #f3f4f5; --bs-card-border-color: var(--aca-night); color: #f3f4f5; }
.card-dark .link-arrow { color: var(--aca-yellow); }

.form-control, .form-select { --bs-border-radius: .625rem; padding: .75rem .9rem; background-color: var(--bs-body-bg); }
.form-control:focus, .form-select:focus { border-color: var(--aca-ink); box-shadow: 0 0 0 .25rem rgba(255, 198, 39, .5); }
.form-label { font-size: .85rem; font-weight: 600; color: var(--bs-secondary-color); }
/* Optional fields stay neutral after validation: no green tick on an empty box */
.was-validated .form-control:not(:required):valid { border-color: var(--bs-border-color); background-image: none; padding-right: .9rem; }
.was-validated .form-select:not(:required):valid { border-color: var(--bs-border-color); }
.btn-check:checked + .btn-outline-dark { background: var(--aca-ink); border-color: var(--aca-ink); color: #fff; }

.dropdown-menu { --bs-dropdown-border-color: var(--bs-border-color); --bs-dropdown-border-radius: 1rem; --bs-dropdown-link-active-bg: var(--bs-tertiary-bg); --bs-dropdown-link-active-color: var(--aca-ink); --bs-dropdown-item-padding-y: .5rem; padding: .5rem; box-shadow: 0 24px 48px -28px rgba(17, 19, 21, .45); }
.dropdown-item { border-radius: .5rem; font-size: .92rem; }

.breadcrumb { --bs-breadcrumb-divider-color: var(--bs-secondary-color); --bs-breadcrumb-item-active-color: var(--bs-secondary-color); }
.breadcrumb a { text-decoration: none; }


.list-group-flush.service-list .list-group-item { background: transparent; border-color: var(--bs-border-color); padding-left: 0; font-weight: 500; }
.service-list .list-group-item.active { --bs-list-group-active-bg: #fff; --bs-list-group-active-color: var(--aca-ink); --bs-list-group-active-border-color: var(--bs-border-color); font-weight: 700; box-shadow: inset 4px 0 0 var(--aca-yellow); padding-left: 1rem; border-radius: 0 .5rem .5rem 0; }
.service-list .list-group-item.active i { color: var(--aca-yellow-dark); }
.service-list .list-group-item.active::after { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; font-size: .8rem; color: var(--aca-yellow-dark); }

/* Service page sidebar: request card */
.svc-cta { position: relative; overflow: hidden; padding: 1.75rem; border-radius: var(--bs-border-radius-xl); background-color: var(--aca-night); color: #f3f4f5; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 24px 24px; }
.svc-cta::after { content: ""; position: absolute; right: -45px; top: -45px; width: 130px; height: 130px; border-radius: 50%; background: repeating-linear-gradient(-60deg, rgba(255, 198, 39, .8) 0 5px, transparent 5px 11px); pointer-events: none; }
.svc-cta > * { position: relative; z-index: 1; }
.svc-cta .eyebrow { color: rgba(243, 244, 245, .6); }
.svc-cta .small { color: rgba(243, 244, 245, .7); }

/* Current page in the menus */
/* Flex row so the tick sits on the same line, pushed to the right edge */
.dropdown-item.active { display: flex; align-items: center; font-weight: 600; box-shadow: inset 3px 0 0 var(--aca-yellow); }
.dropdown-item.active::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; padding-left: 1rem; font-size: .75rem; color: var(--aca-yellow-dark); }
.mega-link.active { background: var(--bs-tertiary-bg); box-shadow: inset 3px 0 0 var(--aca-yellow); }
.mega-link.active i { background: var(--aca-yellow); color: var(--aca-on-yellow); }
@media (max-width: 1199.98px) {
  .offcanvas .nav-link.active { color: var(--aca-ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--aca-yellow); padding-left: .75rem; }
}

/* Thank-you panel shown after a form is sent */
.form-success:focus { outline: none; }
.form-success-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.25rem; border-radius: 50%; background: var(--aca-yellow); color: var(--aca-on-yellow); font-size: 1.4rem; animation: aca-pop .5s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes aca-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.next-steps { counter-reset: next; display: grid; gap: .25rem; }
.next-steps li { counter-increment: next; position: relative; padding: .75rem 0 .75rem 3rem; border-top: 1px solid var(--bs-border-color); }
.next-steps li::before { content: counter(next); position: absolute; left: 0; top: .8rem; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--aca-ink); color: #fff; font: 600 .85rem/1 var(--aca-font-mono); }
.next-steps strong { display: block; font-weight: 600; }
.next-steps span { display: block; color: var(--bs-secondary-color); font-size: .92rem; }
.form-success-contact { padding: 1.25rem; border-radius: .75rem; background: var(--bs-tertiary-bg); }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 24px; z-index: 1030; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: .75rem; background: var(--aca-ink); color: var(--aca-yellow); box-shadow: 0 12px 26px -14px rgba(17, 19, 21, .6); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background-color .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #000; }
.to-top:focus-visible { outline: 3px solid var(--aca-yellow); outline-offset: 2px; }
@media (max-width: 767.98px) { .to-top { bottom: 84px; right: 8px; width: 36px; height: 36px; border-radius: .6rem; font-size: .85rem; } }
.index-list .list-group-item { padding: 1rem 1.25rem; }

.nav-pills.filter-pills .nav-link { color: var(--aca-ink); background: #fff; border: 1px solid var(--bs-border-color); border-radius: 999px; font-weight: 500; transition: border-color .2s, background-color .2s, color .2s; }
.nav-pills.filter-pills .nav-link:hover { border-color: var(--aca-ink); }
.nav-pills.filter-pills .nav-link.active { background: var(--aca-ink); border-color: var(--aca-ink); color: #fff; }

.pagination { --bs-pagination-color: var(--bs-body-color); --bs-pagination-active-bg: var(--aca-ink); --bs-pagination-active-border-color: var(--aca-ink); --bs-pagination-hover-color: var(--bs-body-color); --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(255, 198, 39, .5); gap: .35rem; }
.pagination .page-link { border-radius: 999px !important; min-width: 2.5rem; text-align: center; }

.table { --bs-table-bg: transparent; font-size: .95rem; }
.table caption { caption-side: top; font-weight: 600; color: var(--bs-body-color); }
.table thead th { font-family: var(--aca-font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); }
.table tfoot th { border-bottom: 0; }

.alert-warning { --bs-alert-bg: #fff6d9; --bs-alert-border-color: #ffe08a; --bs-alert-color: #4a3a00; }

/* ---------- 3. Site components ---------- */

/* Eyebrow: the logo's square row, first square yellow */
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; font: 500 .74rem/1.3 var(--aca-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bs-secondary-color); }
.eyebrow::before { content: ""; flex: none; width: 42px; height: 8px; background: linear-gradient(90deg, var(--aca-yellow) 8px, transparent 8px), repeating-linear-gradient(90deg, var(--aca-square) 0 8px, transparent 8px 11.3px); }
.news-card .eyebrow::before, .eyebrow.small::before { width: 20px; background: linear-gradient(90deg, var(--aca-yellow) 8px, transparent 8px), repeating-linear-gradient(90deg, var(--aca-square) 0 8px, transparent 8px 11.3px); }
.text-bg-dark .eyebrow, .card-dark .eyebrow { color: rgba(243, 244, 245, .6); }

.hatch { background: repeating-linear-gradient(-60deg, var(--aca-yellow) 0 6px, transparent 6px 13px); }
mark { background: linear-gradient(transparent 60%, var(--aca-yellow) 60%, var(--aca-yellow) 90%, transparent 90%); color: inherit; padding: 0 .04em; }

.display-title { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: .95; }
.section-title { font-size: clamp(2.3rem, 5vw, 4rem); line-height: .98; }
.section { padding-block: 6rem; }
@media (max-width: 767.98px) { .section { padding-block: 4rem; } }

/* Header: a floating white pill bar, as in the design. Always above page content (below Bootstrap's offcanvas/modals).
   Constant height: nothing changes size on scroll, which is what caused the old flicker. */
.site-header { z-index: 1035; top: 10px; margin-top: 10px; pointer-events: none; }
.site-header .container { pointer-events: auto; }
/* Contact strip above the bar (scrolls away) */
.topstrip { padding-top: .7rem; font: 500 .75rem/1.2 var(--aca-font-mono); color: var(--bs-secondary-color); }
.topstrip + .site-header { margin-top: .5rem; }
.topstrip a { color: var(--bs-secondary-color); text-decoration: none; }
.topstrip a:hover { color: var(--aca-ink); }
.topstrip i { color: var(--aca-yellow-dark); }
.main-bar { --bs-navbar-padding-y: .45rem; --bs-navbar-padding-x: 0; min-height: 64px; padding-left: 1.1rem; padding-right: .45rem; border: 1px solid var(--bs-border-color); border-radius: 50rem; background: #fff; box-shadow: 0 14px 34px -24px rgba(17, 19, 21, .45); transition: box-shadow .25s; }
.site-header.is-scrolled .main-bar { box-shadow: 0 18px 40px -22px rgba(17, 19, 21, .5); }
/* Frosted glass only on desktop: backdrop-filter would trap the mobile offcanvas (position: fixed) inside the bar */
@media (min-width: 1200px) {
  .main-bar { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }
}
/* Brand: the logo symbol with the name beside it, as in the design (the full lockup is unreadable at bar height) */
.navbar-brand { display: flex; align-items: center; gap: .65rem; min-width: 0; padding-block: 0; color: var(--aca-ink); }
.brand-mark { flex: none; width: 44px; height: auto; }
.brand-text b { display: block; font: 800 1.3rem/1 var(--aca-font-display); font-stretch: 75%; letter-spacing: .01em; white-space: nowrap; }
.brand-text small { display: block; margin-top: .2rem; color: var(--bs-secondary-color); font: 500 .6rem/1.2 var(--aca-font-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .brand-text small { display: none; }
  .main-bar .nav-link { padding-inline: .55rem !important; }
}
@media (max-width: 399.98px) { .brand-text small { display: none; } }
/* Always keep clear space between the logo and the menu */
@media (min-width: 1200px) { .main-bar .navbar-nav { margin-left: 1.5rem; gap: .1rem; } }
.main-bar .nav-link { font-size: .88rem; font-weight: 500; color: var(--bs-secondary-color); white-space: nowrap; }
.main-bar .nav-link:hover, .main-bar .nav-link.show { color: var(--aca-ink); }
.main-bar .btn { white-space: nowrap; }
.navbar-toggler { width: 42px; height: 42px; padding: 0; border-radius: 50%; background: var(--bs-tertiary-bg); }
/* EL | EN segmented switch inside the bar */
.lang-seg { gap: 0; padding: 3px; border-radius: 50rem; background: var(--bs-tertiary-bg); }
.lang-seg a { display: block; padding: .5rem .65rem; border-radius: 50rem; color: var(--bs-secondary-color); font: 600 .72rem/1 var(--aca-font-mono); text-decoration: none; }
.lang-seg a.active { background: var(--aca-ink); color: #fff; }
.lang-seg a:not(.active):hover { color: var(--aca-ink); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255, 198, 39, .6); }

.lang-switch { display: flex; gap: .25rem; }
.lang-switch .list-inline-item { margin: 0; }
.lang-switch a { display: inline-block; padding: .2rem .5rem; border-radius: .375rem; font: 600 .72rem/1.2 var(--aca-font-mono); letter-spacing: .06em; }
.lang-switch a.active { background: var(--aca-yellow); color: var(--aca-on-yellow) !important; }

/* Mega menu (Services) */
.mega-link { display: flex; gap: .85rem; align-items: flex-start; padding: .7rem .5rem; border-radius: .625rem; text-decoration: none; color: var(--aca-ink); }
.mega-link i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bs-tertiary-bg); font-size: .95rem; }
.mega-link strong { display: block; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.mega-link small { color: var(--bs-secondary-color); font-size: .8rem; line-height: 1.4; margin-top: .2rem; }
.mega-link:hover { background: var(--bs-tertiary-bg); }
.mega-link:hover i { background: var(--aca-yellow); color: var(--aca-on-yellow); }
.mega-cta { position: relative; overflow: hidden; padding: 1.5rem; border-radius: 1rem; background: var(--aca-night); color: #f3f4f5; }
.mega-cta::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: repeating-linear-gradient(-60deg, rgba(255, 198, 39, .8) 0 5px, transparent 5px 11px); pointer-events: none; }
.mega-cta > * { position: relative; z-index: 1; }
.mega-cta .small { color: rgba(243, 244, 245, .65); }

@media (min-width: 1200px) {
  /* Pill links: grey until hovered, the current section sits on a soft pill with a yellow dot */
  .main-bar .nav-link { position: relative; padding: .55rem .75rem !important; border-radius: 50rem; transition: background-color .2s, color .2s; }
  .main-bar .nav-link:hover, .main-bar .nav-link.show { background: var(--bs-tertiary-bg); }
  .main-bar .nav-link.active { background: var(--bs-tertiary-bg); color: var(--aca-ink); font-weight: 600; }
  .main-bar .nav-link.active::before { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--aca-yellow-dark); }
  .main-bar .nav-link::after { border: 0; }
  .main-bar .nav-link.dropdown-toggle::after { content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .65rem; margin-left: .35rem; vertical-align: .05em; }
  .main-bar .dropdown-menu { margin-top: .6rem !important; border-radius: 1.25rem; }
  /* Mega menu spans the whole bar */
  .main-bar .dropdown-mega { position: static; }
  .main-bar .mega-menu { left: 0; right: 0; width: 100%; padding: 1.5rem; border-radius: var(--bs-border-radius-xl); box-shadow: 0 30px 50px -30px rgba(17, 19, 21, .35); }
}
@media (max-width: 1199.98px) {
  .offcanvas .nav-link { font-size: 1.05rem; padding-block: .8rem; border-bottom: 1px solid var(--bs-border-color); }
  .offcanvas .dropdown-menu { box-shadow: none; border: 0; padding: 0 0 .5rem .5rem; background: transparent; }
  .offcanvas .mega-link { padding: .5rem; }
  .offcanvas .mega-link i { width: 30px; height: 30px; }
  .offcanvas-extra a { color: var(--aca-ink); text-decoration: none; font-weight: 500; }
  .offcanvas-extra .lang-switch a { border: 1px solid var(--bs-border-color); padding: .4rem .8rem; font-family: var(--bs-body-font-family); font-size: .9rem; letter-spacing: 0; }
}

/* Hero: headline + "what do you need a valuation for?" tiles */
.purpose-tile { display: flex; align-items: center; gap: .9rem; height: 100%; padding: .85rem 1rem; border: 1px solid var(--bs-border-color); border-radius: .75rem; color: var(--aca-ink); text-decoration: none; transition: border-color .2s, background-color .2s, transform .2s; }
.purpose-tile > i:first-child { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bs-tertiary-bg); font-size: 1rem; transition: background-color .2s, color .2s; }
.purpose-tile strong { display: block; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.purpose-tile small { display: block; color: var(--bs-secondary-color); font-size: .8rem; line-height: 1.35; margin-top: .15rem; }
.purpose-arrow { margin-left: auto; font-size: .8rem; color: var(--bs-secondary-color); transition: transform .2s, color .2s; }
.purpose-tile:hover, .purpose-tile:focus-visible { border-color: var(--aca-ink); background: var(--bs-body-bg); }
.purpose-tile:hover > i:first-child { background: var(--aca-yellow); color: var(--aca-on-yellow); }
.purpose-tile:hover .purpose-arrow { transform: translateX(3px); color: var(--aca-ink); }
/* Current service in the service-page sidebar */
.purpose-tile.active { background: var(--aca-ink); border-color: var(--aca-ink); color: #fff; }
.purpose-tile.active > i:first-child { background: var(--aca-yellow); color: var(--aca-on-yellow); }
.purpose-tile.active small { color: rgba(243, 244, 245, .65); }
.purpose-tile.active .purpose-arrow { color: var(--aca-yellow); transform: none; }

/* Credentials band under the hero: RICS + figures that count up */

/* Blueprint visuals that replace stock photography */

.service-visual { position: relative; display: flex; align-items: center; gap: 1.75rem; padding: 2rem; overflow: hidden; border-radius: var(--bs-border-radius-xl); background-color: var(--aca-night); color: #f3f4f5; background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px); background-size: 26px 26px; }
.service-visual::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: repeating-linear-gradient(-60deg, rgba(255, 198, 39, .75) 0 6px, transparent 6px 13px); }
.service-visual > * { position: relative; z-index: 1; }
.service-visual-icon { flex: none; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 22px; background: var(--aca-yellow); color: var(--aca-on-yellow); font-size: 2.2rem; }
.service-visual-text { font-family: var(--aca-font-display); font-stretch: 75%; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.15; max-width: 30rem; }
.service-visual .eyebrow { color: rgba(243, 244, 245, .6); }
/* Phones: the hatching moves to the top corner, clear of the text */
@media (max-width: 575.98px) { .service-visual { flex-direction: column; align-items: flex-start; padding: 1.5rem; } .service-visual-icon { width: 64px; height: 64px; font-size: 1.6rem; } .service-visual::after { top: -45px; right: -45px; bottom: auto; width: 130px; height: 130px; } }


.firm-panel { overflow: hidden; background: #fff; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-xl); box-shadow: 0 24px 48px -40px rgba(17, 19, 21, .45); }
.firm-panel-head { position: relative; overflow: hidden; padding: 1.5rem 1.75rem; background-color: var(--bs-tertiary-bg); background-image: linear-gradient(rgba(17, 19, 21, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 19, 21, .05) 1px, transparent 1px); background-size: 20px 20px; border-bottom: 1px solid var(--bs-border-color); }
.firm-panel-head::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 72px; background: repeating-linear-gradient(-60deg, rgba(255, 198, 39, .9) 0 4px, transparent 4px 10px); -webkit-mask: linear-gradient(90deg, transparent, #000 70%); mask: linear-gradient(90deg, transparent, #000 70%); }
.firm-panel-head img { position: relative; display: block; }
.firm-panel-body { padding: 1.5rem 1.75rem 1.75rem; }
.firm-panel-title { font-family: var(--bs-body-font-family); font-stretch: 100%; font-size: 1.1rem; font-weight: 700; letter-spacing: 0; margin-bottom: .75rem; }
.firm-panel li { display: flex; gap: .9rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--bs-border-color); font-size: 1rem; line-height: 1.45; color: var(--aca-ink); }
.firm-panel li:first-child { border-top: 0; }
.firm-fact-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bs-tertiary-bg); color: var(--aca-ink); font-size: .95rem; }

/* Scroll reveal (added by main.js only, so content is visible without JavaScript) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }


/* Page-level sticky columns stay below the site header (z-index 1035) */
.sticky-offset { top: var(--aca-header-offset); z-index: 1; }
.article-aside { top: var(--aca-header-offset); z-index: 1; }

/* Links and lists */
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .92rem; text-decoration: none; border-bottom: 2px solid var(--aca-yellow); padding-bottom: 2px; }
.link-arrow i { font-size: .8em; transition: transform .2s; }
.link-arrow:hover i { transform: translateX(3px); }
.list-check { list-style: none; padding: 0; display: grid; gap: .6rem; }
.list-check li { position: relative; padding-left: 1.4rem; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--aca-yellow); border-radius: 2px; }
.alpha-list { list-style: lower-alpha; display: grid; gap: .6rem; padding-left: 1.5rem; }
.alpha-list li::marker { font-family: var(--aca-font-mono); font-weight: 500; color: var(--bs-secondary-color); }

/* Tiles and cards */
.tile { position: relative; background: #fff; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-xl); padding: 1.6rem; transition: border-color .2s, transform .25s, box-shadow .25s; }
.tile-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bs-tertiary-bg); font-size: 1.2rem; }
.tile-link:hover, .tile-link:focus-within { border-color: var(--bs-secondary-color); transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgba(17, 19, 21, .5); }
.tile-link:hover .tile-icon { background: var(--aca-yellow); color: var(--aca-on-yellow); }

/* About Cyprus: district photo cards, buying steps, FAQ, photo credits */
.ratio-3x2 { --bs-aspect-ratio: 66.6667%; }
.district-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-xl); background: #fff; }
.district-card img { object-fit: cover; transition: transform .6s ease; }
.district-card:hover img { transform: scale(1.04); }
.district-body { padding: 1.4rem 1.5rem 1.6rem; }
.district-towns { margin-bottom: .8rem; color: var(--bs-secondary-color); font: 500 .72rem/1.4 var(--aca-font-mono); letter-spacing: .04em; text-transform: uppercase; }
.district-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.district-tags li { padding: .25rem .7rem; border-radius: 50rem; background: var(--bs-tertiary-bg); font-size: .78rem; font-weight: 600; }
.district-cta { padding: 1.8rem; border-color: var(--aca-night); background: var(--aca-night); color: #f3f4f5; }
.district-cta .tile-icon { background: var(--aca-yellow); color: var(--aca-on-yellow); }
.district-cta p { color: #b9bec5; }
.buy-steps { display: grid; gap: .75rem; margin-bottom: 1rem; }
.buy-steps li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; border: 1px solid var(--bs-border-color); border-radius: 1rem; background: #fff; }
.buy-steps strong { display: block; margin-bottom: .2rem; }
.buy-steps li span:not(.buy-num) { color: var(--bs-secondary-color); font-size: .92rem; }
.buy-num { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--aca-yellow); color: var(--aca-on-yellow); font-weight: 800; }
.faq-list { --bs-accordion-border-radius: 1rem; --bs-accordion-inner-border-radius: 1rem; --bs-accordion-active-bg: var(--bs-tertiary-bg); --bs-accordion-active-color: var(--bs-body-color); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(255, 196, 37, .45); }
.faq-list .accordion-button { font-weight: 700; }
.faq-list .accordion-body { color: var(--bs-secondary-color); }
.about-founder { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 2.5rem; align-items: center; padding: 2rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-xl); background: #fff; }
.about-founder-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 1.25rem; }
@media (max-width: 767.98px) { .about-founder { grid-template-columns: 1fr; padding: 1.4rem; } .about-founder-photo { max-width: 260px; } }
.photo-credits {color: var(--bs-secondary-color); font-size: .75rem; line-height: 1.6; }
.photo-credits a { color: inherit; }

.steps { counter-reset: step; position: relative; }
.steps li { counter-increment: step; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 50%; background: var(--aca-ink); color: #fff; font: 600 .9rem/1 var(--aca-font-mono); }
.steps li:first-child::before { background: var(--aca-yellow); color: var(--aca-on-yellow); }
/* Dashed connector from each step circle to the next, through the circle centres, with a gap either side */
@media (min-width: 992px) {
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 19px; height: 2px; left: calc(var(--bs-gutter-x) * .5 + 40px + 14px); right: calc(14px - var(--bs-gutter-x) * .5); background: repeating-linear-gradient(90deg, var(--aca-square) 0 8px, transparent 8px 13px); }
}
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--aca-ink); color: #fff; font: 600 .9rem/1 var(--aca-font-mono); }

.process-list { counter-reset: proc; display: grid; gap: 2rem; margin-top: 2.5rem; }
.process-list > li { counter-increment: proc; position: relative; padding-left: 4rem; }
.process-list > li::before { content: counter(proc, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--aca-font-display); font-stretch: 75%; font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--aca-yellow-dark); }


.cred { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1.15rem 1.25rem; border: 1px solid var(--bs-border-color); border-radius: 1rem; background: var(--bs-body-bg); }
.cred-year { font-family: var(--aca-font-display); font-stretch: 75%; font-weight: 800; font-size: 2.2rem; line-height: 1; }
.cred-year.small-year { font: 500 1rem/1 var(--aca-font-mono); letter-spacing: .06em; }
.cred-dark { background: var(--aca-night); border-color: var(--aca-night); color: #f3f4f5; }
.cred-dark .cred-year { color: var(--aca-yellow); }

.client-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.client-list li { padding: .55rem .95rem; border: 1px solid var(--bs-border-color); border-radius: 999px; background: #fff; font-weight: 500; font-size: .92rem; }

/* News */
.news-card { overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.news-card:hover, .news-card:focus-within { transform: translateY(-3px); border-color: var(--bs-secondary-color); box-shadow: 0 20px 40px -30px rgba(17, 19, 21, .5); }
/* Every lead image is 750×500 (3:2), so cards and article headers show it whole, at one shape */
.news-card-img { --bs-aspect-ratio: 66.6667%; }
.article-figure img { aspect-ratio: 3 / 2; object-fit: cover; }
.news-card-img img { transition: transform .5s; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card .card-title { line-height: 1.12; }
.share-btn { width: 2.25rem; height: 2.25rem; padding: 0; }

.article-title { font-size: clamp(2.2rem, 5vw, 4rem); }
.prose { font-size: 1.05rem; }
.prose > * + h2 { margin-top: 2.5rem; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: .75rem; }
.article-body { font-size: 1.06rem; line-height: 1.75; }
.article-body img { max-width: 100%; height: auto; border-radius: 1rem; margin-block: 1rem; }
.article-body h3, .article-body h4 { margin-top: 2rem; font-size: 1.6rem; }
.article-body p strong:only-child { font-family: var(--aca-font-display); font-stretch: 75%; font-size: 1.3rem; }
.article-body a { text-decoration-color: var(--aca-yellow); text-decoration-thickness: 2px; }
.article-body table { width: 100%; margin-block: 1rem; font-size: .92rem; }
.article-body td, .article-body th { padding: .5rem; border-bottom: 1px solid var(--bs-border-color); }
.article-body .table-responsive { margin-block: 1.5rem; }

.toc .nav-link { padding: .35rem 0 .35rem .9rem; font-size: .9rem; color: var(--bs-secondary-color); border-left: 2px solid var(--bs-border-color); }
.toc .nav-link:hover, .toc .nav-link.active { color: var(--aca-ink); border-left-color: var(--aca-yellow); }

/* Inner page header */
.page-hero { position: relative; overflow: hidden; padding-block: 3.5rem 3rem; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: 30px; width: min(38%, 380px); height: 200px; background: repeating-linear-gradient(-60deg, rgba(255, 198, 39, .55) 0 6px, transparent 6px 14px); border-radius: 999px 0 0 999px; pointer-events: none; }

/* Contact */
.contact-row { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--bs-border-color); border-radius: 1rem; background: #fff; text-decoration: none; font-weight: 600; transition: border-color .2s; }
a.contact-row:hover { border-color: var(--bs-secondary-color); }
.contact-row i { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--bs-tertiary-bg); }
.contact-row small { display: block; font: 500 .68rem/1.4 var(--aca-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bs-secondary-color); }
.contact-row-dark { background: var(--aca-night); border-color: var(--aca-night); color: #f3f4f5; }
.contact-row-dark i { background: var(--aca-yellow); color: var(--aca-on-yellow); }
.contact-row-dark small { color: #9ea4ad; }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(1) contrast(1.05); }
.map-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-height: 420px; padding: 2rem 1.25rem; background: var(--bs-tertiary-bg); text-align: center; }
.map-placeholder > i { color: var(--aca-yellow-dark); font-size: 2rem; }

/* Cookie choices: never blocks the page. Accept and Reject carry equal weight. */
.cookie-banner { position: fixed; z-index: 1040; left: 1rem; right: 1rem; bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; max-width: 960px; margin-inline: auto; padding: 1.1rem 1.4rem; border: 1px solid var(--bs-border-color); border-radius: 1.25rem; background: #fff; font-size: .9rem; box-shadow: 0 24px 48px -24px rgba(17, 19, 21, .5); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-actions { flex: none; display: flex; gap: .5rem; }
.cookie-settings { padding: 0; border: 0; background: none; color: rgba(243, 244, 245, .6); }
.cookie-settings:hover { color: var(--aca-yellow); }
@media (max-width: 767.98px) {
  .cookie-banner { bottom: 72px; flex-direction: column; align-items: stretch; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--aca-yellow); color: var(--aca-on-yellow); }
.cta-band::after { content: ""; position: absolute; right: -60px; top: 0; bottom: 0; width: min(46%, 520px); background: repeating-linear-gradient(-60deg, rgba(23, 17, 0, .12) 0 8px, transparent 8px 18px); pointer-events: none; }
.cta-band .container { z-index: 1; }
.cta-band .btn-dark { color: var(--aca-yellow); }
.cta-phone { font-family: var(--aca-font-display); font-stretch: 75%; font-size: 2rem; font-weight: 800; color: var(--aca-on-yellow); }
.cta-phone small { font: 500 .68rem/1 var(--aca-font-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-bottom: .35rem; }

/* Footer */
.site-footer { --bs-dark-rgb: 18, 20, 22; }
.footer-title { font: 500 .74rem/1 var(--aca-font-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(243, 244, 245, .6); margin-bottom: 1.5rem; }
/* One vertical rhythm for every footer row */
.footer-links, .footer-contact { line-height: 1.45; }
.footer-links li { margin-bottom: .75rem; }
.site-footer a { color: #f3f4f5; text-decoration: none; }
.site-footer a:hover { color: var(--aca-yellow); }
.footer-contact a { margin-bottom: .75rem; }
/* Narrow columns (992–1100px): a long email wraps instead of pushing the page sideways */
.footer-contact a span { min-width: 0; overflow-wrap: anywhere; }
.footer-contact i { width: 1.1rem; margin-top: .15rem !important; color: var(--aca-yellow); }
.footer-bottom { border-top: 1px solid rgba(243, 244, 245, .12); }
.footer-bottom a { color: rgba(243, 244, 245, .6); }
.rics-logo { width: 96px; filter: brightness(0) invert(1); height: auto; }

/* Mobile sticky CTA */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; gap: .5rem; padding: .6rem 12px calc(.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--bs-border-color); }
@media (max-width: 767.98px) { .site-footer { padding-bottom: 72px; } }

/* ---------- 4. Home page ---------- */
.section-intro { color: var(--bs-secondary-color); font-size: 1.05rem; max-width: 34rem; }
.chip { display: inline-block; padding: .55rem .8rem; border: 1px solid var(--bs-border-color); border-radius: 50rem; background: #fff; color: var(--bs-secondary-color); font: 500 .72rem/1 var(--aca-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.link-plain { font-weight: 600; font-size: .92rem; color: var(--bs-secondary-color); text-decoration: none; }
.link-plain:hover { color: var(--aca-ink); }
.link-yellow { text-decoration-color: var(--aca-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.btn-icon-lg { width: 3.2rem; padding-inline: 0; }

/* Hero */
.home-hero { padding-top: 3.5rem; }
/* The H1 carries the search terms in its small line and the slogan in its large one */
.hero-heading { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-display { display: block; font-size: clamp(3.2rem, 8.2vw, 7.4rem); font-weight: 850; line-height: .92; letter-spacing: -.015em; }
mark { padding: 0 .04em; color: inherit; background: linear-gradient(transparent 60%, var(--aca-yellow) 60%, var(--aca-yellow) 90%, transparent 90%) no-repeat; background-size: 100% 100%; }
.hero-display mark { animation: mark-in 1s .35s cubic-bezier(.6, 0, .2, 1) backwards; }
@keyframes mark-in { from { background-size: 0 100%; } }
.hero-lede { max-width: 35rem; font-size: 1.15rem; color: var(--bs-secondary-color); }
.hero-lede strong { color: var(--aca-ink); font-weight: 600; }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.trust-row img { width: 96px; margin-right: .5rem; }

/* Portrait card: frame on a yellow hatch, pill on top, glass caption below (director's profile) */
.portrait-card { position: relative; width: 100%; max-width: 440px; margin: 0; }
.portrait-hatch { position: absolute; inset: 14% -18px -18px 22%; border-radius: var(--bs-border-radius-xl); background: repeating-linear-gradient(-60deg, var(--aca-yellow) 0 6px, transparent 6px 13px); }
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--bs-border-radius-xl); background: #fff; box-shadow: 0 30px 60px -36px rgba(17, 19, 21, .5); }
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.portrait-mono { display: grid; place-items: center; height: 100%; background: var(--aca-night); color: var(--aca-yellow); font: 800 6rem/1 var(--aca-font-display); font-stretch: 75%; }
.portrait-pill { position: absolute; z-index: 2; top: 16px; left: -14px; display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border: 1px solid var(--bs-border-color); border-radius: 50rem; background: #fff; font: 500 .74rem/1 var(--aca-font-mono); letter-spacing: .04em; box-shadow: 0 14px 30px -18px rgba(17, 19, 21, .5); }
.portrait-pill::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--aca-yellow); }
.portrait-card figcaption { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; border-radius: 1rem; background: rgba(18, 20, 22, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #f3f4f5; }
.portrait-card figcaption b { display: block; font: 800 1.25rem/1.05 var(--aca-font-display); font-stretch: 75%; }
.portrait-card figcaption b + span { display: block; font-size: .8rem; color: #9ea4ad; }
.portrait-card figcaption i { flex: none; padding: .45rem .55rem; border-radius: 50rem; background: var(--aca-yellow); color: var(--aca-on-yellow); font: normal 600 .68rem/1 var(--aca-font-mono); letter-spacing: .06em; }
@media (max-width: 991.98px) {
  .portrait-card { max-width: min(400px, calc(100% - 12px)); margin-inline: auto; }
  .portrait-pill { left: 8px; }
  .portrait-hatch { inset: 14% -10px -12px 22%; }
}

/* Figures under the hero */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4rem 0 0; border-top: 1px solid var(--bs-border-color); }
.stats li { display: grid; align-content: start; gap: .35rem; padding: 1.4rem 1.25rem 0; border-left: 1px solid var(--bs-border-color); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { font: 800 clamp(2.4rem, 4.6vw, 3.6rem)/.95 var(--aca-font-display); font-stretch: 75%; font-variant-numeric: tabular-nums; }
.stats b small { margin-left: .06em; font-size: .5em; }
.stats li > span { color: var(--bs-secondary-color); font-size: .9rem; line-height: 1.4; }
@media (max-width: 991.98px) {
  .stats { grid-template-columns: 1fr 1fr; margin-top: 3rem; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n+3) { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--bs-border-color); }
}

/* Quote form in the hero: dark card on a yellow hatch */
.quote-wrap { position: relative; max-width: 520px; margin-left: auto; }
.quote-wrap::before { content: ""; position: absolute; right: -16px; bottom: -16px; width: 62%; height: 62%; border-radius: var(--bs-border-radius-xl); background: repeating-linear-gradient(-60deg, var(--aca-yellow) 0 6px, transparent 6px 13px); }
.quote-card { position: relative; padding: 2rem; border-radius: var(--bs-border-radius-xl); background: var(--aca-night); color: #f3f4f5; box-shadow: 0 30px 60px -36px rgba(17, 19, 21, .6); }
.quote-card .portrait-pill { position: static; display: inline-flex; margin-bottom: 1.1rem; color: var(--aca-ink); box-shadow: none; }
.quote-card h2 { margin: 0; color: #fff; font-size: 2rem; }
.quote-intro { margin: .4rem 0 1.4rem; color: #9ea4ad; font-size: .95rem; }
.quote-label { display: block; margin-bottom: .4rem; color: #9ea4ad; font: 500 .7rem/1.2 var(--aca-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.quote-card .form-control, .quote-card .form-select { border-color: #2b2f34; background-color: #1b1e21; color: #fff; }
.quote-card .form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f3f4f5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.quote-card .form-control:focus, .quote-card .form-select:focus { border-color: var(--aca-yellow); }
.quote-card .invalid-feedback { color: #ff9b8f; }
.quote-note { margin: 1rem 0 0; color: #9ea4ad; font-size: .85rem; text-align: center; }
.quote-note a { color: #fff; }
.quote-wrap .form-success { position: relative; padding: 2rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-xl); background: #fff; box-shadow: 0 30px 60px -36px rgba(17, 19, 21, .35); scroll-margin-top: 7rem; }
.quote-wrap { scroll-margin-top: 7rem; }
@media (max-width: 575.98px) { .quote-wrap .form-success { padding: 1.4rem; } }
.hero-districts { color: var(--bs-secondary-color); font-size: .9rem; }
@media (max-width: 991.98px) { .quote-wrap { margin-inline: auto; } .quote-wrap::before { right: -8px; bottom: -8px; } }
@media (max-width: 575.98px) { .quote-card { padding: 1.4rem; } }

/* Key figures as cards */
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin: 4rem 0 0; }
.stat-cards li { display: grid; align-content: start; gap: .6rem; padding: 1.6rem; border: 1px solid var(--bs-border-color); border-radius: 1.25rem; background: #fff; }
.stat-cards b { justify-self: start; font: 800 clamp(2.3rem, 3.6vw, 3rem)/.95 var(--aca-font-display); font-stretch: 75%; font-variant-numeric: tabular-nums; }
.stat-cards li:first-child b { box-shadow: inset 0 -.3em 0 var(--aca-yellow); }
.stat-cards b small { margin-left: .06em; font-size: .5em; }
.stat-cards li > span { color: var(--bs-secondary-color); font-size: .9rem; line-height: 1.4; }
@media (max-width: 991.98px) { .stat-cards { grid-template-columns: 1fr 1fr; margin-top: 3rem; } }
@media (max-width: 379.98px) { .stat-cards li { padding: 1.1rem; } }

/* Property types ticker: a light band between hairlines */
.marquee { margin-top: 3.5rem; padding-block: 1.25rem; overflow: hidden; background: var(--aca-night); color: #f3f4f5; }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 2.5rem; margin: 0; padding: 0 0 0 2.5rem; list-style: none; }
.marquee li { display: flex; align-items: center; gap: 2.5rem; white-space: nowrap; font: 800 clamp(1.4rem, 2.4vw, 1.75rem)/1.2 var(--aca-font-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em; }
.marquee li::after { content: ""; width: 26px; height: 12px; background: repeating-linear-gradient(-60deg, var(--aca-yellow) 0 3px, transparent 3px 6px); transform: skewX(-20deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Services: audience filter and cards */
.audience-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.audience-filter button { padding: .55rem 1rem; border: 1px solid var(--bs-border-color); border-radius: 50rem; background: #fff; color: var(--aca-ink); font-size: .88rem; font-weight: 500; }
.audience-filter button:hover { border-color: var(--bs-secondary-color); }
.audience-filter button[aria-pressed="true"] { background: var(--aca-ink); border-color: var(--aca-ink); color: #fff; }
.svc-card { display: flex; flex-direction: column; height: 100%; padding: 1.6rem; border: 1px solid var(--bs-border-color); border-radius: 1.25rem; background: #fff; transition: opacity .25s, border-color .2s, transform .25s; }
.svc-card:hover { border-color: var(--aca-ink); transform: translateY(-3px); }
.svc-card.is-dimmed { opacity: .3; }
.svc-num { display: flex; align-items: center; gap: .5rem; color: var(--bs-secondary-color); font: 500 .75rem/1 var(--aca-font-mono); }
.svc-num::before { content: ""; width: 8px; height: 8px; background: var(--aca-yellow); }
.svc-card h3 { margin: .9rem 0 .4rem; font-size: 1.55rem; font-weight: 750; }
.svc-who { margin-bottom: .75rem; color: var(--bs-secondary-color); font: 500 .68rem/1.4 var(--aca-font-mono); letter-spacing: .06em; text-transform: uppercase; }
.svc-text { flex: 1; color: var(--bs-secondary-color); font-size: .93rem; }
.svc-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--bs-border-color); }
.svc-actions .link-plain i { font-size: .8em; }
.callout-bar { display: flex; gap: 1rem; margin: 1.75rem 0 0; padding: 1.3rem 1.6rem; border-radius: 1.25rem; background: var(--aca-ink); color: #fff; font: 700 clamp(1.2rem, 2vw, 1.4rem)/1.25 var(--aca-font-display); font-stretch: 75%; }
.callout-bar::before { content: ""; flex: none; width: 6px; border-radius: 3px; background: var(--aca-yellow); }

/* About the firm: pillars and the founder panel */
.pillars { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.pillars li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 1rem; }
.pillar-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--aca-ink); color: var(--aca-yellow); }
.pillars b, .pillars p span { display: block; }
.pillars b { font-weight: 600; }
.pillars p span { color: var(--bs-secondary-color); font-size: .93rem; }
.founder-panel { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.6rem; padding: 1.6rem; border-radius: var(--bs-border-radius-xl); background: var(--bs-body-bg); }
.founder-photo { position: relative; align-self: start; }
.founder-photo::before { content: ""; position: absolute; left: -10px; bottom: -10px; width: 70%; height: 55%; border-radius: 14px; background: repeating-linear-gradient(-60deg, var(--aca-yellow) 0 5px, transparent 5px 11px); }
.founder-photo img, .founder-photo .portrait-mono { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 14px; background: #fff; object-fit: cover; object-position: 50% 12%; }
.founder-panel h3 { margin: 0; font-size: 1.6rem; }
.founder-role { margin: .4rem 0 .9rem; color: var(--bs-secondary-color); font-size: .88rem; }
.founder-points { display: grid; gap: .5rem; font-size: .92rem; }
.founder-points li { position: relative; padding-left: 1.1rem; }
.founder-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--aca-yellow); }
.founder-edu { margin: 1rem 0; padding-top: .9rem; border-top: 1px solid var(--bs-border-color); color: var(--bs-secondary-color); font: 500 .72rem/1.5 var(--aca-font-mono); }
@media (max-width: 575.98px) { .founder-panel { grid-template-columns: 1fr; } .founder-photo { max-width: 220px; } }


/* About + founder text */
.bio { display: grid; gap: 1rem; max-width: 38rem; font-size: 1.06rem; }
.bio p { margin: 0; }
.bio strong { font-weight: 600; }
.cred p b, .cred p span { display: block; }
.cred p b { font-weight: 600; }
.cred p span { color: var(--bs-secondary-color); font-size: .9rem; }
.cred-dark p span { color: #9ea4ad; }
.cred-year small { font-size: .5em; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2rem 0 0; border-top: 1px solid var(--bs-border-color); }
.facts li { display: grid; gap: .2rem; padding: 1rem 1rem 0; border-left: 1px solid var(--bs-border-color); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { font: 800 2.3rem/1 var(--aca-font-display); font-stretch: 75%; }
.facts span { color: var(--bs-secondary-color); font-size: .86rem; line-height: 1.35; }
.edu { margin: 1.4rem 0 0; color: var(--bs-secondary-color); font-size: .9rem; }
.edu b { color: var(--aca-ink); font-weight: 600; }
@media (max-width: 479.98px) {
  .facts { grid-template-columns: 1fr; }
  .facts li { border-left: 0; padding-left: 0; }
  .facts li + li { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--bs-border-color); }
}

/* Data analytics (dark) */
.analytics { background: var(--aca-night); color: #f3f4f5; }
.analytics .eyebrow { color: #9ea4ad; }
.analytics .eyebrow::before { background: linear-gradient(90deg, var(--aca-yellow) 8px, transparent 8px), repeating-linear-gradient(90deg, rgba(243, 244, 245, .3) 0 8px, transparent 8px 11.3px); }
.analytics .section-intro { color: #9ea4ad; }
.data-panel { display: flex; flex-direction: column; align-items: flex-start; padding: 1.6rem; border: 1px solid rgba(243, 244, 245, .12); border-radius: var(--bs-border-radius-xl); background: #1d1f22; }
.data-panel h3 { margin: 0; font-size: 1.8rem; font-weight: 750; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; width: 100%; margin: 1.4rem 0; overflow: hidden; border-radius: 14px; background: rgba(243, 244, 245, .12); }
.kpi-grid div { display: grid; gap: .35rem; padding: 1.1rem 1.2rem; background: #1d1f22; }
.kpi-grid b { font: 800 clamp(1.6rem, 3vw, 2.1rem)/1 var(--aca-font-display); font-stretch: 75%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi-grid div:first-child b { color: var(--aca-yellow); }
.kpi-grid span { color: #9ea4ad; font-size: .8rem; }
.feat { display: grid; gap: .6rem; width: 100%; }
.feat li { position: relative; padding-left: 1.2rem; font-size: .92rem; }
.feat li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--aca-yellow); }
.feat b { font-weight: 600; }
.feat span { color: #d5d8dc; }
.data-panel .btn { margin-top: auto; }
.chart-notes { display: grid; gap: .4rem; margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(243, 244, 245, .12); color: #c3c7cc; font-size: .9rem; }
.chart { position: relative; min-width: 0; padding: 1.6rem; border: 1px solid rgba(243, 244, 245, .12); border-radius: var(--bs-border-radius-xl); background: #1d1f22; }
.chart h3 { margin: 0; font-size: 1.8rem; font-weight: 750; }
.chart-sub { margin: .3rem 0 0; color: #9ea4ad; font-size: .88rem; }
.chart-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.1rem; }
.chart-tabs button { padding: .5rem .8rem; border: 1px solid rgba(243, 244, 245, .16); border-radius: 50rem; background: none; color: #9ea4ad; font-size: .82rem; font-weight: 500; }
.chart-tabs button[aria-selected="true"] { background: var(--aca-yellow); border-color: var(--aca-yellow); color: var(--aca-on-yellow); }
.chart-tabs button:focus-visible { outline: 2px solid var(--aca-yellow); outline-offset: 2px; }
.bars { display: flex; flex-direction: column; gap: .55rem; }
.brow { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 5.6rem; align-items: center; gap: .8rem; padding: .35rem .4rem; border-radius: 8px; outline: none; }
.brow:hover, .brow:focus-visible { background: rgba(243, 244, 245, .07); }
.brow .dn { font-size: .92rem; font-weight: 500; }
.brow .tr { height: 22px; overflow: hidden; border-radius: 0 4px 4px 0; background: rgba(243, 244, 245, .06); }
.brow .tr i { display: block; width: 0; height: 100%; border-radius: 0 4px 4px 0; background: var(--aca-yellow); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.brow .v { text-align: right; white-space: nowrap; font: 500 .85rem/1 var(--aca-font-mono); font-variant-numeric: tabular-nums; }
.chart-tip { position: absolute; z-index: 3; min-width: 190px; padding: .7rem .85rem; border-radius: 10px; background: #f3f4f5; color: var(--aca-night); font-size: .8rem; pointer-events: none; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); }
.chart-tip b { display: block; margin-bottom: .3rem; font-size: .9rem; }
.chart-tip div { display: flex; justify-content: space-between; gap: 1rem; }
.chart-tip div span:last-child { font: .76rem var(--aca-font-mono); }
.chart-src { margin: 1.1rem 0 0; color: #9ea4ad; font-size: .75rem; }
@media (max-width: 767.98px) {
  .chart { padding: 1.1rem; }
  .brow { grid-template-columns: 5.4rem minmax(0, 1fr) 4.9rem; gap: .5rem; }
}


/* Process: numbered step cards and the documents checklist */
.step-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; counter-reset: step; }
.step-cards li { counter-increment: step; padding: 1.6rem 1.4rem; border: 1px solid var(--bs-border-color); border-radius: 1.25rem; background: #fff; }
.step-cards li::before { content: "0" counter(step); display: inline-block; margin-bottom: 1rem; font: 800 2.6rem/1 var(--aca-font-display); font-stretch: 75%; box-shadow: inset 0 -.25em 0 var(--aca-yellow); }
.step-cards h3 { margin-bottom: .4rem; font-size: 1.35rem; font-weight: 750; }
.step-cards p { margin: 0; color: var(--bs-secondary-color); font-size: .92rem; }
.docs-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 1.75rem; margin-top: 1.4rem; padding: 2rem; border-radius: var(--bs-border-radius-xl); background: var(--bs-tertiary-bg); }
.docs-panel h3 { margin: 0; font-size: 1.75rem; font-weight: 750; }
.docs-panel > div > p { margin: .4rem 0 0; color: var(--bs-secondary-color); font-size: .93rem; }
.docs-list { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.docs-list label { display: flex; align-items: center; gap: .75rem; height: 100%; padding: .8rem 1rem; border: 1.5px solid var(--bs-border-color); border-radius: 12px; background: #fff; font-size: .93rem; font-weight: 500; cursor: pointer; transition: border-color .15s, background-color .15s; }
.docs-list input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--aca-ink); }
.docs-list label.done { border-color: var(--aca-yellow); background: #fffaeb; }
.docs-list label.done span { color: var(--bs-secondary-color); text-decoration: line-through; }
.docs-meter { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; color: var(--bs-secondary-color); font: 500 .78rem var(--aca-font-mono); }
.docs-meter i { flex: 1; height: 8px; overflow: hidden; border-radius: 99px; background: #fff; }
.docs-meter b { display: block; width: 0; height: 100%; border-radius: 99px; background: var(--aca-yellow); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.client-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.client-chips .list-inline-item { margin: 0; }
.client-chips .chip { padding: .55rem .95rem; color: var(--aca-ink); font: 500 .92rem/1.2 var(--bs-body-font-family); letter-spacing: 0; text-transform: none; }

@media (max-width: 1199.98px) { .step-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 991.98px) { .docs-panel { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .step-cards, .docs-list { grid-template-columns: 1fr; } .docs-panel { padding: 1.4rem; } }

/* Insights: one dark lead story and a list */
.post-feature { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; height: 100%; min-height: 340px; padding: 2.2rem; border-radius: var(--bs-border-radius-xl); background: var(--aca-night); color: #fff; text-decoration: none; }
.post-feature::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 220px; height: 160px; border-radius: 20px; background: repeating-linear-gradient(-60deg, var(--aca-yellow) 0 6px, transparent 6px 13px); opacity: .9; }
.post-feature:hover { color: #fff; }
.post-feature > span { position: relative; z-index: 1; display: block; }
.post-feature-title { display: block; max-width: 34rem; margin-top: 1rem; font: 800 clamp(1.7rem, 3vw, 2.3rem)/1.08 var(--aca-font-display); font-stretch: 75%; }
.post-feature:hover .post-feature-title { text-decoration: underline; text-decoration-color: var(--aca-yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.post-feature-stat { display: block; color: var(--aca-yellow); font: 800 clamp(3.4rem, 6vw, 4.8rem)/1 var(--aca-font-display); font-stretch: 75%; }
.post-feature-text { max-width: 30rem; color: #c3c7cc; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; color: var(--bs-secondary-color); font: 500 .75rem/1.3 var(--aca-font-mono); }
.post-feature .post-meta { color: #9ea4ad; }
.post-tag { padding: .3rem .6rem; border-radius: 50rem; background: var(--aca-yellow); color: var(--aca-on-yellow); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.post-list a { display: block; padding: 1.1rem 0; border-bottom: 1px solid var(--bs-border-color); color: var(--aca-ink); text-decoration: none; }
.post-list li:first-child a { padding-top: 0; }
.post-list-title { display: block; margin-top: .6rem; font: 750 1.2rem/1.25 var(--aca-font-display); font-stretch: 75%; }
.post-list a:hover .post-list-title { text-decoration: underline; text-decoration-color: var(--aca-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Why ACA: RICS strip and related cards */
.rics-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; padding: 1.4rem 1.6rem; border: 1px solid var(--bs-border-color); border-radius: 1.25rem; background: #fff; }
.rics-strip img { width: 120px; height: auto; }
.rics-strip p { flex: 1; min-width: 240px; }
.related-card { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.6rem; border: 1px solid var(--bs-border-color); border-radius: 1.25rem; background: #fff; color: var(--aca-ink); text-decoration: none; transition: border-color .2s; }
.related-card:hover { border-color: var(--aca-ink); color: var(--aca-ink); }
.related-title { font: 750 1.45rem/1.15 var(--aca-font-display); font-stretch: 75%; }
.related-title i { font-size: .6em; vertical-align: .2em; }
.related-text { color: var(--bs-secondary-color); font-size: .93rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
