/* ==========================================================================
   Property Compensation Consultants Ltd — New Developments
   Design system & global styles
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-900: #1a2352;
  --navy-800: #212c64;
  --navy-700: #2a3778;
  --navy-600: #35468f;
  --blue-500: #3f6fa8;
  --blue-400: #5f8ac2;

  /* Accent tokens (kept named --green-* so all existing rules cascade to the brand blues) */
  --green-600: #22456d;
  --green-500: #2c5789;
  --green-400: #8fbbe0;

  --sky-300: #b9d4ec;
  --gold-500: #c9a23f;

  --ink-900: #10161c;
  --ink-700: #33414d;
  --ink-500: #5c6b78;
  --ink-300: #97a4ae;

  --paper: #ffffff;
  --mist: #f4f7f9;
  --mist-2: #e9eef2;
  --line: #dde5ea;

  /* Semantic */
  --bg: var(--paper);
  --text: var(--ink-900);
  --muted: var(--ink-500);
  --primary: var(--navy-700);
  --accent: var(--green-500);

  /* Type */
  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, 0.06), 0 2px 8px rgba(11, 31, 51, 0.05);
  --shadow-md: 0 6px 24px rgba(11, 31, 51, 0.10);
  --shadow-lg: 0 18px 48px rgba(11, 31, 51, 0.16);
  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue-500); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy-700); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 0.7rem 1.2rem;
  z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ------- Layout helpers ------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy-900); color: #e8eef3; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }

.lead { font-size: 1.2rem; color: var(--ink-700); }

/* ------- Buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.05em; height: 1.05em; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-600); color: #fff; box-shadow: var(--shadow-md); }

.btn--dark { background: var(--navy-700); color: #fff; }
.btn--dark:hover { background: var(--navy-900); color: #fff; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn--outline { background: transparent; color: var(--navy-700); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy-700); color: var(--navy-900); }

/* ------- Header / nav ------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy-900);
  font-weight: 700;
}
.brand:hover { color: var(--navy-900); }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__logo { height: 54px; width: auto; display: block; }
@media (max-width: 480px) { .brand__logo { height: 46px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-size: 1.15rem; letter-spacing: -0.01em; }
.brand__sub { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.98rem;
  border-radius: 6px;
}
.nav__links a:hover { color: var(--navy-900); background: var(--mist); }
.nav__links a.is-active { color: var(--navy-900); }
.nav__links a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 3px;
}
.nav__cta { margin-left: 0.5rem; }
.nav__cta .btn--primary,
.nav__cta .btn--primary:hover { color: #fff; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle span {
  width: 26px; height: 2px; background: var(--navy-900); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.6rem var(--gutter) 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav__links.is-open { max-height: 520px; }
  .nav__links a { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--mist-2); }
  .nav__links a.is-active::after { display: none; }
  .nav__cta { margin: 0.8rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ------- Hero ------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(95,138,194,0.28), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #e8eef3;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M0 59.5H60M59.5 0V60' fill='none' stroke='%23ffffff' stroke-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .lead { color: #c4d2dd; font-size: 1.22rem; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero__eyebrow { color: var(--green-400); }
.hero__eyebrow::before { background: var(--green-400); }
/* Symmetrical trailing dash — home-page hero eyebrow only */
.hero-video .hero__eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: #fff;
  display: inline-block;
}
/* Home hero: eyebrow text + dashes in white (client request) */
.hero-video .hero__eyebrow { color: #fff; }
.hero-video .hero__eyebrow::before { background: #fff; }

.hero__panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.6rem;
  backdrop-filter: blur(4px);
}
.hero__panel h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.stat { }
.stat__num { font-size: 2rem; font-weight: 800; color: var(--green-400); line-height: 1; letter-spacing: -0.02em; }
.stat__label { font-size: 0.86rem; color: #b7c6d2; margin-top: 0.35rem; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero .lead { max-width: none; }
}

/* ------- Trust bar ------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--line); }
.trustbar__inner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 2.4rem;
  padding: 1.4rem 0; justify-content: center;
}
.trustbar__label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-300); font-weight: 700; }
.trust-logo {
  font-weight: 700; color: var(--ink-300); font-size: 1.05rem; letter-spacing: 0.02em;
  filter: grayscale(1); opacity: 0.85;
}

/* ------- Cards / grid ------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--mist-2); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin-bottom: 0.9rem; font-size: 0.98rem; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy-700), var(--blue-500));
  color: #fff; margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card--accent .card__icon { background: linear-gradient(150deg, var(--green-600), var(--green-400)); }

.card__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.95rem; color: var(--navy-700);
  margin-top: auto;
}
.card__link svg { width: 1em; height: 1em; transition: transform var(--transition); }
.card:hover .card__link svg { transform: translateX(3px); }

.card--flag {
  grid-column: span 2;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #dfe8ef; border: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.card--flag h3 { color: #fff; font-size: 1.5rem; }
.card--flag p { color: #b8c7d3; }
.card--flag .card__link { color: var(--green-400); }
.card--flag .badge { align-self: flex-start; }
@media (max-width: 900px) { .card--flag { grid-column: span 2; } }
@media (max-width: 620px) { .card--flag { grid-column: span 1; } }

.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 100px;
  background: rgba(143,187,224,0.18); color: var(--green-400);
  margin-bottom: 1rem;
}

/* ------- Feature / split ------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: -1; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
  aspect-ratio: 4 / 3;
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
}
.media-card svg { width: 55%; height: 55%; opacity: 0.9; }

.check-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.check-list li {
  position: relative; padding-left: 1.1rem; margin-bottom: 0.45rem;
  color: var(--ink-700); font-size: 0.95rem;
}
/* Simple dash marker rather than a prominent bullet graphic */
.check-list li::before {
  content: "–";
  position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}

/* ------- Case study (Projects) ------- */
.case {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: start;
}
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }

/* Plan thumbnail — a defined frame that opens the lightbox */
.case__media { position: sticky; top: 92px; }
@media (max-width: 900px) { .case__media { position: static; } }
.case__figure {
  position: relative; display: block; width: 100%; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; cursor: zoom-in; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.case__figure:hover, .case__figure:focus-visible { box-shadow: var(--shadow-lg); }
.case__figure img { width: 100%; height: auto; max-height: 560px; object-fit: contain; display: block; }
.case__zoom {
  position: absolute; right: 0.75rem; bottom: 0.75rem;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(26,35,82,0.82); box-shadow: 0 2px 10px rgba(0,0,0,0.25); transition: background var(--transition);
}
.case__figure:hover .case__zoom { background: var(--navy-700); }
.case__zoom svg { width: 20px; height: 20px; }
.case__hint {
  position: absolute; left: 0.75rem; bottom: 0.9rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: #fff;
  background: rgba(26,35,82,0.72); padding: 0.3rem 0.65rem; border-radius: 999px;
  opacity: 0; transform: translateY(4px); transition: opacity var(--transition), transform var(--transition);
}
.case__figure:hover .case__hint, .case__figure:focus-visible .case__hint { opacity: 1; transform: none; }
.case__caption { font-size: 0.85rem; color: var(--ink-500); margin: 0.8rem 0 0; line-height: 1.5; }

/* Write-up column */
.case__body .eyebrow { margin-bottom: 0.7rem; }
.case__body h2 { margin-bottom: 0.5rem; }
.case__body .lead { margin-bottom: 0; }
.case__blocks { margin-top: clamp(1.4rem, 3vw, 2rem); }
.case__block { padding-top: 1.3rem; margin-top: 1.3rem; border-top: 1px solid var(--line); }
.case__block:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.case__block h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin: 0 0 0.5rem; }
.case__block .check-list { margin: 0; }

/* Lightbox (plan viewer) */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; }
.lightbox.is-open { display: block; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(9,13,28,0.92); }
.lightbox__stage {
  position: absolute; inset: 0; overflow: auto;
  display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
}
.lightbox__img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  background: #fff; border-radius: 4px; box-shadow: 0 12px 60px rgba(0,0,0,0.55); cursor: zoom-in; user-select: none;
}
.lightbox.is-zoomed .lightbox__stage { align-items: flex-start; justify-content: flex-start; }
.lightbox.is-zoomed .lightbox__img { max-width: none; max-height: none; width: auto; cursor: zoom-out; }
.lightbox__btn {
  position: absolute; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(4px); transition: background var(--transition);
}
.lightbox__btn:hover { background: rgba(255,255,255,0.30); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: clamp(0.8rem, 2vw, 1.4rem); right: clamp(0.8rem, 2vw, 1.4rem); }
.lightbox__zoom { bottom: clamp(0.8rem, 2vw, 1.4rem); right: clamp(0.8rem, 2vw, 1.4rem); }

/* ------- Process steps ------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.steps--row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps--row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps--row { grid-template-columns: 1fr; } }
.step {
  counter-increment: step;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.4rem 1.4rem;
  position: relative;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-weight: 800; font-size: 0.95rem;
  color: var(--green-500);
  display: inline-block; margin-bottom: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ------- CTA band ------- */
.cta-band {
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(95,138,194,0.30), transparent 55%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff; border-radius: var(--radius);
  padding: clamp(2.4rem, 6vw, 3.6rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: #c4d2dd; margin: 0; }
.cta-band__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ------- Projects ------- */
.project-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); height: 100%;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-card__banner {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  color: #fff; position: relative;
  background: linear-gradient(150deg, var(--navy-800), var(--blue-500));
}
.project-card__banner svg { width: 30%; opacity: 0.85; }
.project-card__banner .tag {
  position: absolute; top: 1rem; left: 1rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(0,0,0,0.35); color: #fff; padding: 0.3rem 0.7rem; border-radius: 100px;
}
.project-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project-card__body h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.project-card__body p { color: var(--muted); font-size: 0.96rem; }
.project-card__result {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--mist-2);
  font-weight: 700; color: var(--green-600);
}
.project-card__result span { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-300); }

/* ------- Stats strip ------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stats-strip .stat__num { color: var(--green-400); font-size: clamp(2.2rem, 5vw, 3rem); }
.stats-strip .stat__label { color: #b7c6d2; font-size: 0.95rem; }

/* ------- FAQ / accordion ------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0; font-size: 1.08rem; font-weight: 600; color: var(--navy-900);
  position: relative; font-family: inherit;
}
.faq__q::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--green-500); font-weight: 400; transition: transform var(--transition);
}
.faq__q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.faq__a-inner { padding: 0 0 1.3rem; color: var(--muted); }

/* ------- Team ------- */
.team-card { text-align: center; }
.team-card__avatar {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 1rem;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 2rem;
  background: linear-gradient(150deg, var(--navy-700), var(--green-500));
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 0.15rem; }
.team-card__role { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.6rem; }
.team-card p { color: var(--muted); font-size: 0.92rem; }

/* ------- Contact ------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.info-list li { display: flex; gap: 1rem; margin-bottom: 1.3rem; align-items: flex-start; }
.info-list .ico {
  width: 44px; height: 44px; flex: none; border-radius: 10px;
  background: var(--mist); color: var(--navy-700); display: grid; place-items: center;
}
.info-list .ico svg { width: 20px; height: 20px; }
.info-list .avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; object-position: center 30%; }
.info-list strong { display: block; color: var(--navy-900); }
.info-list a, .info-list span { color: var(--muted); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.2rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--navy-900); }
.field label .req { color: var(--green-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink-900); background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(63,111,168,0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__note { font-size: 0.85rem; color: var(--ink-300); margin-top: 0.5rem; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); font-size: 0.95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(44,87,137,0.12); color: var(--green-600); }
.form-status.err { background: rgba(180,60,60,0.10); color: #a13b3b; }
.form-status.err a { color: #a13b3b; text-decoration: underline; }

/* Toast (form-submit confirmation) */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1200;
  transform: translate(-50%, 20px); opacity: 0;
  max-width: min(92vw, 460px);
  background: var(--navy-900); color: #fff;
  padding: 0.95rem 1.3rem; border-radius: 10px; box-shadow: var(--shadow-lg);
  font-size: 0.95rem; line-height: 1.45;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-400); margin-right: 0.6rem; vertical-align: middle;
}
@media (prefers-reduced-motion: reduce) { .toast { transition: opacity 0.3s ease; } }

/* ------- Page hero (interior) ------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(95,138,194,0.24), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #dfe8ef; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.6rem, 6vw, 4rem);
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #c4d2dd; max-width: 60ch; }
.breadcrumb { font-size: 0.85rem; color: #93a7b6; margin-bottom: 1rem; }
.breadcrumb a { color: #b9cad6; }
.breadcrumb a:hover { color: #fff; }

/* Page hero with a photographic (pylon) background */
.page-hero--img { position: relative; overflow: hidden; }
.page-hero--img::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-img, none);
  background-size: cover; background-position: 50% 32%;
  transform: scale(1.03); /* avoid edge gaps */
}
.page-hero--img::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--navy-900) 82%, transparent) 0%,
      color-mix(in srgb, var(--navy-900) 50%, transparent) 52%,
      color-mix(in srgb, var(--navy-900) 15%, transparent) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--navy-900) 40%, transparent), transparent 52%);
}
.page-hero--img > .container { position: relative; z-index: 2; }

/* ------- Prose ------- */
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose > p:first-child { font-size: 1.15rem; color: var(--ink-700); }

/* ------- Footer ------- */
.site-footer { background: var(--navy-900); color: #a9bccb; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: #a9bccb; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { color: #8ea3b4; font-size: 0.95rem; margin-top: 1rem; max-width: 34ch; }
.footer-badges { display: flex; gap: 0.8rem; margin-top: 1.2rem; align-items: center; flex-wrap: wrap; }
.footer-badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; padding: 0.4rem 0.65rem; color: #c4d2dd;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
/* Official "Regulated by RICS" mark (white version) — sits above the accreditation badges */
.footer-rics { height: 58px; width: auto; display: block; margin-top: 1.4rem; }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.86rem; color: #7f95a7;
}
.footer-bottom a { color: #7f95a7; }
.footer-bottom a:hover { color: #fff; }

/* ------- Utilities ------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .project-card:hover { transform: none; }
}

/* ------- Hero (video) ------- */
.hero-video {
  position: relative;
  overflow: hidden;
  color: #e8eef3;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.hero-video__media {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-video__scrim {
  position: absolute; inset: 0; z-index: 1;
  /* Lightened ~2 notches so more of the video (sky, birds, development) shows;
     left edge still carries enough navy to keep the headline readable. */
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--navy-900) 72%, transparent) 0%,
      color-mix(in srgb, var(--navy-900) 46%, transparent) 42%,
      color-mix(in srgb, var(--navy-900) 18%, transparent) 74%,
      color-mix(in srgb, var(--navy-900) 6%, transparent) 100%),
    linear-gradient(0deg,
      color-mix(in srgb, var(--navy-900) 58%, transparent) 0%,
      color-mix(in srgb, var(--navy-900) 8%, transparent) 42%, transparent 70%);
}
.hero-video__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  min-height: min(88vh, 780px);
  padding: clamp(3rem, 7vw, 5rem) 0 0;
}
.hero-video__content { max-width: 900px; }
.hero-video h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4.4vw, 2.8rem);
  line-height: 1.12;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
/* Headline sits on two lines; keep each phrase unbroken on wider screens so it
   reads exactly two lines. Allowed to wrap on small screens. */
.hero__line { display: block; }
@media (min-width: 760px) { .hero__line { white-space: nowrap; } }
/* Second headline line — visually differentiated in a warm accent (Simon's
   'orange' direction). Swap the colour token if a different shade is preferred. */
.hero__accent { color: #f4b23c; }
.hero-video .lead { color: #dbe6ef; max-width: 48ch; font-size: 1.22rem; }
.hero-video__stats {
  list-style: none; margin: clamp(2.2rem, 5vw, 3.4rem) 0 clamp(2.2rem, 5vw, 3.2rem);
  padding: 1.6rem 0 0; border-top: 1px solid rgba(255,255,255,0.16);
  display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3.2rem);
}
.hero-video__stats li { display: flex; flex-direction: column; }
.hero-video__stats .stat__num {
  font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; line-height: 1;
  color: #fff; letter-spacing: -0.02em;
}
.hero-video__stats .stat__label { font-size: 0.86rem; color: #c4d2dd; margin-top: 0.4rem; }
/* Official RICS mark used in place of the text stat.
   align-self:flex-start stops the flex column from stretching it horizontally
   (which would distort the aspect ratio). */
.hero-rics { height: 53px; width: auto; display: block; align-self: flex-start; }
@media (max-width: 560px) {
  .hero-video__inner { min-height: 82vh; }
  .hero-video__stats { gap: 1.2rem 2rem; }
  .hero-video__stats li { flex: 1 1 40%; }
}
/* Respect reduced-motion: drop the video, keep the gradient */
@media (prefers-reduced-motion: reduce) {
  .hero-video__media { display: none; }
}

/* ------- Justified body copy -------
   Applies to every block of running text: paragraphs, list items, FAQ
   answers and the footer blurb. Single-line text is unaffected (justify
   never stretches the last line of a block), so short items stay normal.
   Hyphenation deliberately left off — it split "ease-ment" across lines. */
/* Body copy is left-aligned throughout — no justified text (client preference). */
/* Exceptions — these must not be justified */
main .section-head.center p,
main .text-center p { text-align: center; }
main .breadcrumb,
main .hero-video__stats li,
main .stat,
main .card__link,
main .project-card__result,
#approach p,
.check-list li,
.card p { text-align: left; }
/* Headings stay ragged-right — justifying them stretches short lines badly */
h1, h2, h3, h4, h5, h6, .eyebrow, .badge, .btn { text-align: inherit; }

/* ------- Elegant list bullets (content / legal lists) ------- */
.legal ul,
.prose ul { list-style: none; padding-left: 0.25rem; margin-bottom: 1.2rem; }
.legal li,
.prose li { position: relative; padding-left: 1.7rem; margin-bottom: 0.6rem; }
.legal li::before,
.prose li::before {
  content: "";
  position: absolute; left: 0.15rem; top: 0.62em;
  width: 7px; height: 7px;
  background: linear-gradient(135deg, var(--accent), var(--blue-400));
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ------- Footer legal ------- */
.footer-legal { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; }
.footer-legal p { font-size: 0.8rem; line-height: 1.65; color: #7f95a7; margin: 0 auto 0.5rem; max-width: 920px; }
.footer-legal p:last-child { margin-bottom: 0; }

/* ------- Cookie notice ------- */
.cookie-notice {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300;
  max-width: 760px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.1rem 1.3rem; display: none;
}
.cookie-notice.show { display: flex; gap: 1rem 1.4rem; align-items: center; flex-wrap: wrap; }
.cookie-notice p { margin: 0; font-size: 0.9rem; color: var(--ink-700); flex: 1 1 300px; }
.cookie-notice a { color: var(--accent); font-weight: 600; }
.cookie-notice__actions { display: flex; gap: 0.6rem; margin-left: auto; }
.cookie-notice .btn { padding: 0.6rem 1.15rem; font-size: 0.92rem; }
@media (max-width: 540px) {
  .cookie-notice__actions { width: 100%; }
  .cookie-notice__actions .btn { flex: 1; justify-content: center; }
}

/* ------- Legal / prose pages ------- */
.legal h2 { margin-top: 2rem; font-size: 1.3rem; }
.legal h3 { margin-top: 1.4rem; font-size: 1.08rem; }
.legal p, .legal li { color: var(--ink-700); }
.legal .clause { color: var(--muted); font-size: 0.98rem; }
.legal .updated { color: var(--ink-300); font-size: 0.9rem; margin-bottom: 2rem; }
