/* ── Buttons ──────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ── Service cards ────────────────────────────────── */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: var(--transition-medium);
}

.card:hover {
  box-shadow: 0 4px 24px rgba(45,49,124,0.1);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--primary);
  font-size: 1.5rem;
}

.card__title {
  font-size: var(--text-h3);
  margin-bottom: var(--space-3);
  color: var(--neutral-wood);
}

.card__body {
  color: var(--neutral-wood);
  opacity: 0.75;
  margin-bottom: var(--space-5);
}

.card__link {
  font-weight: 500;
  text-decoration: none;
  color: var(--primary);
}
.card__link:hover {
  text-decoration: underline;
}

/* ── Trust bar items ──────────────────────────────── */

.trust-bar {
  background: var(--secondary);
  padding-block: var(--space-5);
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 500;
  color: var(--neutral-wood);
  font-size: 1rem;
}

.trust-item__icon {
  font-size: 1.25rem;
  color: var(--primary);
}

.trust-item__svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

/* ── Before/after image component ────────────────── */

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.before-after {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}

.before-after__half {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.before-after__half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.before-after:hover .before-after__half img {
  transform: scale(1.05);
}

.before-after--wide .before-after__half {
  aspect-ratio: 4 / 3;
}

.before-after__label {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  background: rgba(26,30,82,0.8);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

/* ── Breadcrumb ───────────────────────────────────── */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.875rem;
  margin-bottom: var(--space-6);
  color: var(--neutral-wood);
  opacity: 0.65;
}

.breadcrumb a {
  color: inherit;
}
.breadcrumb a:hover {
  opacity: 1;
}
.breadcrumb__sep {
  opacity: 0.4;
}

/* ── Form elements ────────────────────────────────── */

.form-group {
  margin-bottom: var(--space-5);
}

label {
  display: block;
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: var(--space-2);
  color: var(--neutral-wood);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--neutral-wood);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,49,124,0.12);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Page hero (non-homepage) ─────────────────────── */

.page-hero {
  background: var(--neutral-wood);
  color: var(--white);
  padding-top: calc(64px + var(--space-12));
  padding-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
}

/* Decorative mascot — scrolls with the page; z-index:99 slots it above the
   nav background (which has no own z-index) but below nav elements (z-index:100) */
.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 380px;
  background-color: rgba(0, 0, 0, 0.15);
  -webkit-mask-image: url('/images/logos/nav-watermark.svg');
  mask-image: url('/images/logos/nav-watermark.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: top right;
  mask-position: top right;
  z-index: 99;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 900px) {
  .page-hero::after { display: none; }
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.page-hero__lead {
  font-size: 1.125rem;
  opacity: 0.85;
  max-width: 600px;
}

/* ── CTA section ──────────────────────────────────── */

.cta-section {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding-block: var(--space-16);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.cta-section__phone {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-3);
}
.cta-section__phone:hover {
  color: var(--secondary);
}

.cta-section__email {
  color: var(--secondary);
  font-size: 1.125rem;
  margin-bottom: var(--space-8);
  display: block;
  text-decoration: none;
}
.cta-section__email:hover {
  color: var(--white);
}

/* ── Cookie consent banner ────────────────────────── */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(26, 30, 82, 0.14);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.cookie-banner__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--neutral-wood);
  max-width: 620px;
}
.cookie-banner__text a { color: var(--primary); }
.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}
.cookie-banner__btn { padding-block: 0.55rem; }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner__actions { justify-content: center; }
}

/* ── Legal / policy copy ──────────────────────────── */
.legal-copy p { margin-bottom: var(--space-4); }
.legal-copy h2 { margin-top: var(--space-8); margin-bottom: var(--space-3); }
.legal-copy ul { margin: var(--space-3) 0 var(--space-4) var(--space-6); line-height: 1.8; }
.legal-copy li { margin-bottom: var(--space-2); }

/* ── Photos: framed media + media/text splits ─────── */
.photo {
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  background: var(--neutral-wood);
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo--landscape { aspect-ratio: 3 / 2; }
.photo--portrait  { aspect-ratio: 3 / 4; }
.photo--square    { aspect-ratio: 1 / 1; }

.media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-6), 5vw, var(--space-12));
  align-items: center;
}
.media-text--reverse .media-text__media { order: 2; }
.media-text__body > :first-child { margin-top: 0; }
@media (max-width: 767px) {
  .media-text { grid-template-columns: 1fr; }
  .media-text--reverse .media-text__media { order: 0; }
}

/* Click-to-play video figure */
.video-figure {
  position: relative;
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  background: #000;
  cursor: pointer;
  max-width: 380px;
}
.video-figure video, .video-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-figure__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(26,30,82,0.25); transition: background 0.2s ease;
}
.video-figure__play svg { width: 64px; height: 64px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35)); }
.video-figure:hover .video-figure__play { background: rgba(26,30,82,0.1); }
.video-figure.is-playing .video-figure__play { display: none; }

/* ── Headline statistic band ──────────────────────── */
.stat-band {
  background: var(--neutral-wood);
  color: #fff;
  padding-block: var(--space-12);
}
.stat-band__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-6), 5vw, var(--space-12));
  flex-wrap: wrap;
}
.stat-band__figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 14vw, 8rem);
  line-height: 0.9;
  color: var(--secondary);
  flex: none;
}
.stat-band__body {
  max-width: 34rem;
}
.stat-band__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  line-height: 1.25;
  margin: 0 0 var(--space-3);
}
.stat-band__sub {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.8;
}
@media (max-width: 640px) {
  .stat-band__inner { flex-direction: column; text-align: center; gap: var(--space-4); }
}

/* ── Social links (reusable partial) ──────────────── */
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.social-links__label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
  margin-right: 0.25rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.social-links a:hover {
  transform: translateY(-2px);
}
.social-links svg {
  width: 19px;
  height: 19px;
  display: block;
}
/* On dark / navy backgrounds (hero, footer) */
.social-links--on-dark a {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.social-links--on-dark a:hover {
  background: #fff;
  color: var(--neutral-wood);
}
/* On light backgrounds (contact aside) */
.social-links--on-light a {
  color: var(--primary);
  background: rgba(45, 49, 124, 0.08);
}
.social-links--on-light a:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Footer partner logos ─────────────────────────── */
.footer-partners__label {
  font-weight: 600;
  color: var(--white);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.footer-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-5);
}
.footer-partners__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 18px;
  background: #fff;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.footer-partners__logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.footer-partners__logo img {
  height: 30px;
  width: auto;
  display: block;
}
.footer-partners__note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: var(--space-6);
}
.footer-partners__note a {
  color: var(--secondary);
  text-decoration: none;
}
.footer-partners__note a:hover {
  text-decoration: underline;
}

/* ── Contact / enquiry form ───────────────────────── */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--neutral-wood);
}

.form-required {
  color: var(--status-error);
  margin-left: 2px;
}

.form-optional {
  font-weight: 400;
  font-size: 0.8125rem;
  opacity: 0.6;
  margin-left: 4px;
}

.form-input {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--neutral-wood);
  background: var(--white);
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 10, 36, 99), 0.12);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.alert--success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}
.alert--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* ── Jobs gallery (location + home pages) ─────────── */

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: var(--space-10);
}
@media (max-width: 540px) {
  .jobs-grid { grid-template-columns: 1fr; }
}

.job-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}

.job-card__image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.job-card__body {
  padding: var(--space-5) var(--space-6);
  font-size: 0.9375rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* ── Admin image upload zones ─────────────────────── */

.image-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.image-upload-zone:hover,
.image-upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(10, 36, 99, 0.03);
}
.image-upload-zone input[type="file"] {
  display: none;
}

.image-thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
}

/* Drop target highlight when dragging over empty grid */
.image-thumb-grid.drag-over-empty {
  outline: 2px dashed var(--primary);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.image-thumb {
  position: relative;
  width: 82px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: grab;
  transition: border-color 0.12s, box-shadow 0.12s;
  background: var(--neutral-paper);
  flex-shrink: 0;
  user-select: none;
}
.image-thumb:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(10,36,99,0.18);
  z-index: 1;
}
.image-thumb.dragging {
  opacity: 0.3;
  cursor: grabbing;
  border-color: var(--primary);
}

/* Drag handle bar — always visible at top */
.image-thumb__handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px;
  background: rgba(10, 36, 99, 0.82);
  cursor: grab;
  gap: 4px;
}
.image-thumb__grip {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: -1px;
}
.image-thumb__pos {
  color: rgba(255,255,255,0.9);
  font-size: 0.625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
/* Gold ★ badge on main image (pos 1) */
.image-thumb__handle--main {
  background: rgba(161, 98, 7, 0.88);
}

.image-thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Action bar — appears on hover at the bottom */
.image-thumb__actions {
  display: flex;
  gap: 0;
  opacity: 0;
  transition: opacity 0.12s;
  background: rgba(0,0,0,0.55);
}
.image-thumb:hover .image-thumb__actions {
  opacity: 1;
}
.image-thumb__action-btn {
  flex: 1;
  height: 26px;
  border: none;
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.1s;
  color: #fff;
  background: transparent;
}
.image-thumb__action-btn:hover {
  background: rgba(255,255,255,0.18);
}
.image-thumb__action-btn--delete {
  background: rgba(185, 28, 28, 0.7);
  flex: 0 0 28px;
}
.image-thumb__action-btn--delete:hover {
  background: rgba(185, 28, 28, 1);
}

/* Separator between action buttons */
.image-thumb__action-sep {
  width: 1px;
  background: rgba(255,255,255,0.2);
  align-self: stretch;
}

/* Legacy delete button (kept for compat) */
.image-thumb__delete {
  display: none;
}

.upload-status {
  font-size: 0.875rem;
  margin-top: var(--space-2);
  min-height: 1.25em;
}

/* ── Focus / accessibility ────────────────────────── */

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* ── Green "After" label variant ─────────────────── */
.ba-label--after {
  background: #16a34a !important;
}

/* ── Home page featured jobs — clickable cards ────── */
.ba-home-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.ba-home-card:hover .before-after {
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.ba-home-card__title {
  font-size: 0.9375rem;
  font-weight: 500;
  margin: var(--space-3) 0 0;
  opacity: 0.7;
  text-align: center;
}

/* Home page: 3 columns with portrait images */
.before-after-grid--home {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.before-after-grid--home .before-after__half {
  aspect-ratio: 3 / 4;
}
.before-after-grid--single {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin-inline: auto;
}
@media (max-width: 768px) {
  .before-after-grid--home {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .before-after-grid--home {
    grid-template-columns: 1fr;
  }
}

/* ── Before & After public page — 2-col card grid ─── */

.ba-pub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}
@media (max-width: 720px) {
  .ba-pub-grid { grid-template-columns: 1fr; }
}

.ba-pub-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

/* The before/after pair inside a pub card fills width */
.ba-pub-card__pair {
  border-radius: 0;
  flex-shrink: 0;
}
.ba-pub-card__pair .before-after__half {
  aspect-ratio: 4/3;
}

/* Before/after carousel on mobile — one image fills the card width, swipe to reveal the other */
@media (max-width: 600px) {
  .ba-pub-card__pair.before-after {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    border-radius: 0;
    /* Hide scrollbar visually but keep scrolling */
    scrollbar-width: none;
  }
  .ba-pub-card__pair.before-after::-webkit-scrollbar { display: none; }
  .ba-pub-card__pair .before-after__half {
    flex: none;
    width: 100%;
    scroll-snap-align: start;
    border-right: none;
  }
}

.ba-pub-card__single-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.ba-pub-card__footer {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  flex: 1;
}

.ba-pub-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-1);
  color: var(--neutral-wood);
  line-height: 1.35;
}

.ba-pub-card__location {
  font-size: 0.875rem;
  opacity: 0.55;
  margin: 0;
}

.ba-pub-card__desc {
  font-size: 0.875rem;
  color: var(--neutral-wood);
  opacity: 0.65;
  margin: var(--space-2) 0 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ba-pub-card__btn {
  white-space: nowrap;
  font-size: 0.875rem;
  padding: var(--space-2) var(--space-5);
}

/* ── Job modal ────────────────────────────────────── */

.ba-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 900;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.ba-modal-overlay.is-open {
  display: flex;
}

.ba-modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: var(--space-10) var(--space-10) var(--space-8);
}
@media (max-width: 600px) {
  .ba-modal-box { padding: var(--space-8) var(--space-5) var(--space-6); }
}

.ba-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-wood);
  transition: background 0.15s;
}
.ba-modal-close:hover { background: var(--neutral-paper); }

.ba-modal__title {
  font-size: 1.5rem;
  margin: 0 0 var(--space-1);
  padding-right: var(--space-10);
}

.ba-modal__location {
  font-size: 0.9375rem;
  opacity: 0.55;
  margin: 0 0 var(--space-6);
}

.ba-modal__galleries {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.ba-modal__gallery {}

.ba-strip__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
  margin: 0 0 var(--space-3);
  display: block;
}

.ba-modal__img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-2);
}
@media (max-width: 500px) {
  .ba-modal__img-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

.ba-modal__img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--neutral-paper);
}
.ba-modal__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-modal__desc {
  font-size: 0.9375rem;
  line-height: 1.75;
  opacity: 0.8;
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
  margin-top: var(--space-2);
}
.ba-modal__desc p {
  margin: 0 0 var(--space-3);
}
.ba-modal__desc p:last-child { margin-bottom: 0; }

/* ── Page hero compact variant ───────────────── */

.page-hero--compact {
  padding-top: calc(64px + var(--space-8));
  padding-bottom: var(--space-12);
}

/* ── How It Works: step cards ─────────────────── */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.step-card__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.step-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 var(--space-3);
  color: var(--neutral-wood);
}

.step-card__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--neutral-wood);
  opacity: 0.75;
  margin: 0;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* ── Mid-page CTA band ────────────────────────── */

.cta-band {
  background: var(--neutral-wood);
  padding-block: var(--space-10);
}

.cta-band__heading {
  color: var(--white);
}

.cta-band__sub {
  color: rgba(255,255,255,0.75);
  opacity: 1;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta-band__heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 var(--space-2);
}

.cta-band__sub {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  max-width: 480px;
}

@media (max-width: 640px) {
  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Location page: float sidebar ────────────── */

.location-body {
  max-width: 100%;
}

.location-sidebar {
  float: right;
  width: 280px;
  margin: 0 0 var(--space-8) var(--space-10);
  clear: right;
}

.location-body::after {
  content: '';
  display: table;
  clear: both;
}

@media (max-width: 768px) {
  .location-sidebar {
    float: none;
    width: 100%;
    margin: 0 0 var(--space-8);
  }
}

/* ── About page: two-column layout ───────────── */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-12);
  align-items: start;
}

.about-layout__main h2 {
  margin-top: var(--space-8);
}
.about-layout__main h2:first-child {
  margin-top: 0;
}

.about-layout__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: var(--space-6);
}

/* Team card */
.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

.team-card__photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.team-card__body {
  padding: var(--space-5);
}

.team-card__heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--neutral-wood);
  margin: 0 0 var(--space-3);
}

.team-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.team-card__list li {
  font-size: 0.9375rem;
  color: var(--neutral-wood);
  margin: 0;
}

.team-card__list span {
  opacity: 0.65;
  margin-left: var(--space-2);
}

/* Sidebar CTA box */
.sidebar-cta {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--neutral-paper);
  padding: var(--space-6);
}

.sidebar-cta__heading {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--neutral-wood);
  margin: 0 0 var(--space-2);
}

.sidebar-cta__body {
  font-size: 0.9375rem;
  color: var(--neutral-wood);
  opacity: 0.7;
  margin: 0 0 var(--space-5);
}

.sidebar-cta__phone {
  display: block;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}
.sidebar-cta__phone:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-layout__sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .team-card,
  .sidebar-cta {
    flex: 1 1 280px;
  }
}

@media (max-width: 600px) {
  .about-layout__sidebar {
    flex-direction: column;
  }
  .team-card,
  .sidebar-cta {
    flex: none;
  }
}

/* ── Contact page layout ──────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* Form column */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.contact-form__title {
  font-size: 1.375rem;
  margin: 0 0 var(--space-7);
  color: var(--neutral-wood);
}
.contact-form__footer {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}
.contact-form__privacy {
  font-size: 0.8125rem;
  opacity: 0.55;
  margin: 0 0 var(--space-2);
}

.contact-form__reassurance {
  font-size: 0.875rem;
  color: var(--neutral-wood);
  opacity: 0.65;
  margin: 0;
}

/* Aside */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  position: sticky;
  top: calc(var(--space-8) + 80px);
}

.contact-aside__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  opacity: 0.65;
  margin: 0 0 var(--space-4);
}

.contact-aside__direct {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.contact-aside__phone {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}
.contact-aside__phone:hover { color: var(--primary-dark); }
.btn-whatsapp,
.contact-aside__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: background 0.15s;
}
.btn-whatsapp:hover,
.contact-aside__whatsapp:hover {
  background: #1ebe59;
  color: #fff;
  text-decoration: none;
}
.contact-aside__whatsapp {
  margin-bottom: var(--space-4);
}
.contact-aside__email {
  display: block;
  font-size: 1rem;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: var(--space-5);
}
.contact-aside__email:hover { text-decoration: underline; }
.contact-aside__hours {
  font-size: 0.8125rem;
  color: var(--neutral-wood);
  opacity: 0.55;
  margin: 0;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}

.contact-aside__process {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.contact-process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.contact-process__step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.contact-process__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.contact-process__step strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--neutral-wood);
  margin-bottom: var(--space-1);
}
.contact-process__step p {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.6;
  line-height: 1.5;
}

/* ── Enquiry form photo upload area ───────────── */

.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-7) var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.upload-area:hover,
.upload-area:focus-within {
  border-color: var(--primary);
  background: rgba(10, 36, 99, 0.03);
}
.upload-area svg {
  color: var(--primary);
  opacity: 0.45;
  margin-bottom: var(--space-3);
}
.upload-area p {
  font-size: 0.9375rem;
  margin: 0 0 var(--space-2);
  color: var(--neutral-wood);
  opacity: 0.7;
}
.upload-area__hint {
  font-size: 0.8125rem;
  color: var(--neutral-wood);
  opacity: 0.45;
  display: block;
  margin-bottom: var(--space-4);
}
.upload-area__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ── Job edit page layout ─────────────────────── */

.job-edit-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-6);
  align-items: start;
  margin-bottom: var(--space-6);
}
@media (max-width: 900px) {
  .job-edit-layout { grid-template-columns: 1fr; }
}

.job-edit-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: calc(var(--space-8) + 60px);
}

.job-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-display);
  margin: 0 0 var(--space-5);
  color: var(--neutral-wood);
}

.form-hint {
  font-size: 0.8125rem;
  opacity: 0.55;
  margin: var(--space-1) 0 0;
}

.job-featured-note {
  font-size: 0.8125rem;
  color: #856404;
  background: #fff3cd;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin: 0 0 var(--space-3);
}

/* ── Images panel ─────────────────────────────── */

.job-img-panel {
  margin: 0;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.job-img-split {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 var(--space-8);
  margin-top: var(--space-5);
}
@media (max-width: 680px) {
  .job-img-split { grid-template-columns: 1fr; gap: var(--space-8); }
  .job-img-divider { display: none; }
}

.job-img-divider {
  background: var(--border);
  align-self: stretch;
}

.job-img-col__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.job-img-col__hd--before { background: #fef2f2; color: #991b1b; }
.job-img-col__hd--after  { background: #f0fdf4; color: #166534; }
.job-img-col__count { font-weight: 400; opacity: 0.6; font-size: 0.8125rem; }

/* ── Image tile grid ──────────────────────────── */

.img-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  min-height: 48px;
}

.img-tile-empty {
  font-size: 0.875rem;
  opacity: 0.4;
  margin: 0;
  grid-column: 1 / -1;
  padding: var(--space-2) 0;
}

.img-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: grab;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--neutral-paper);
  user-select: none;
  display: flex;
  flex-direction: column;
}
.img-tile:hover {
  border-color: var(--primary);
  box-shadow: 0 3px 14px rgba(10,36,99,0.14);
}
.img-tile--main {
  border-color: #ca8a04;
  border-width: 2px;
}
.img-tile--main:hover { border-color: #92400e; }
.img-tile.dragging {
  opacity: 0.3;
  cursor: grabbing;
  box-shadow: none;
}

/* Drag affordance strip */
.img-tile__drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 0;
  background: rgba(0,0,0,0.45);
  cursor: grab;
  flex-shrink: 0;
}
.img-tile__drag-handle span {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  letter-spacing: -1px;
  line-height: 1;
}
.img-tile--main .img-tile__drag-handle {
  background: rgba(161,98,7,0.75);
}

.img-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  pointer-events: none;
  flex: 1 1 auto;
}

/* Bottom bar: position + action buttons */
.img-tile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  background: rgba(0,0,0,0.6);
  gap: 4px;
  flex-shrink: 0;
}
.img-tile__pos {
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1;
  min-width: 10px;
  font-variant-numeric: tabular-nums;
}
.img-tile--main .img-tile__pos { color: #fde68a; }

.img-tile__actions {
  display: flex;
  gap: 3px;
  align-items: center;
}
.img-tile__btn {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.1s;
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.img-tile__btn:hover { background: rgba(255,255,255,0.35); }
.img-tile__btn--del { background: rgba(185,28,28,0.65); }
.img-tile__btn--del:hover { background: rgba(185,28,28,1); }

/* ── Upload zone ──────────────────────────────── */

.img-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-5) var(--space-4);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}
.img-upload-zone:hover,
.img-upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(10,36,99,0.03);
}
.img-upload-zone input[type="file"] { display: none; }

.img-upload-zone__plus {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.45;
  font-weight: 300;
}
.img-upload-zone__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-wood);
}
.img-upload-zone__hint {
  font-size: 0.75rem;
  opacity: 0.4;
  color: var(--neutral-wood);
}
.img-upload-zone__status {
  font-size: 0.8125rem;
  margin-top: var(--space-1);
  min-height: 1.2em;
  color: var(--neutral-wood);
}
.img-upload-zone__status--error { color: var(--status-error) !important; }

/* ── Testimonial cards ─────────────────────────────── */

.testimonial {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-8) var(--space-6);
}

.testimonial--paper {
  background: var(--neutral-paper);
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--secondary);
  margin-bottom: var(--space-2);
  display: block;
}

.testimonial__text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--neutral-wood);
  font-style: italic;
  margin: 0 0 var(--space-6);
}

.testimonial__footer {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial__stars {
  color: #f4b400;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.testimonial__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--neutral-wood);
  display: block;
}

.testimonial__location {
  font-size: 0.8125rem;
  color: rgba(0,0,0,0.42);
}

/* Compact inline quote for sidebars */
.testimonial--compact {
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-6);
  border-left: 3px solid var(--secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--neutral-paper);
  border-top: none;
  border-right: none;
  border-bottom: none;
}

.testimonial--compact .testimonial__text {
  font-size: 0.875rem;
  margin-bottom: var(--space-3);
}

.testimonial--compact .testimonial__footer {
  border-top: none;
  padding-top: 0;
}

/* Google Review cards ─────────────────────────────── */

.review-card {
  background: var(--neutral-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.review-card__stars {
  color: #f4b400;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}

.review-card__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--neutral-wood);
  flex: 1;
  margin: 0;
}

.review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.review-card__author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-wood);
}

.review-card__date {
  font-size: 0.8125rem;
  color: rgba(0,0,0,0.4);
}

/* ── Google Review cards ───────────────────────────── */

.review-card {
  background: var(--neutral-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.review-card__stars {
  color: #f4b400;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}

.review-card__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--neutral-wood);
  flex: 1;
  margin: 0;
}

.review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.review-card__author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-wood);
}

.review-card__date {
  font-size: 0.8125rem;
  color: rgba(0,0,0,0.4);
}

/* ── Solicitor referrals nav link ─────────────────── */

#site-nav .nav-link--solicitors {
  font-size: 0.8125rem;
  border: 1px solid rgba(255,255,255,0.28);
  padding: 3px 10px;
  border-radius: var(--radius-md);
  opacity: 0.75;
  transition: opacity 0.15s, border-color 0.15s;
  white-space: nowrap;
}
#site-nav .nav-link--solicitors:hover {
  opacity: 1;
  border-color: rgba(255,255,255,0.65);
}

/* ── FAQ page ──────────────────────────────────────── */

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-16);
  align-items: start;
}

.faq-aside {
  position: sticky;
  top: calc(var(--space-8) + 80px);
}

.faq-item {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item__question {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--neutral-wood);
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.faq-item__answer {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--neutral-wood);
  opacity: 0.85;
  margin: 0;
}

@media (max-width: 768px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .faq-aside {
    position: static;
    order: -1;
  }
}

/* ── Blog cover images ────────────────────────── */

.blog-featured__cover {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  display: block;
}

.blog-list-item__cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  display: block;
}

.blog-post__cover {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
  display: block;
}

