/* ==========================================================================
   GS Contractors: Global Stylesheet
   ========================================================================== */

:root {
  /* Colours, drawn from the GS Contractors logo blue */
  --primary-colour: #1c3d5f;
  --primary-colour-dark: #12293f;
  --primary-colour-light: #2e669e;
  --secondary-colour: #1172d4;
  --secondary-colour-dark: #0e5baa;
  --dark-colour: #191919;
  --light-colour: #eff5fa;
  --white-colour: #ffffff;
  --body-colour: #4a4a4a;
  --border-colour: #dce6ef;
  --success-colour: #2f7a4f;
  --error-colour: #b3261e;

  /* Typography */
  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  /* Section spacing */
  --section-spacing-desktop: 96px;
  --section-spacing-tablet: 72px;
  --section-spacing-mobile: 52px;

  /* Radii & transitions */
  --border-radius-small: 6px;
  --border-radius-medium: 12px;
  --border-radius-large: 24px;
  --transition-standard: 0.3s ease;

  /* Container */
  --container-max-width: 1280px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--body-colour);
  background-color: var(--white-colour);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}

body.project-modal-open {
  overflow: hidden;
}

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

a {
  color: var(--primary-colour);
  text-decoration: none;
  transition: color var(--transition-standard);
}

a:hover {
  color: var(--secondary-colour);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--dark-colour);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.container {
  max-width: var(--container-max-width);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -80px;
  left: 0;
  background: var(--primary-colour);
  color: var(--white-colour);
  padding: 0.75rem 1.5rem;
  line-height: 1.2;
  z-index: 2000;
  border-radius: 0 0 var(--border-radius-small) 0;
  transition: top var(--transition-standard);
}

.skip-link:focus {
  top: 0;
  color: var(--white-colour);
}

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--secondary-colour);
  outline-offset: 2px;
}

/* ==========================================================================
   Section spacing
   ========================================================================== */

.section {
  padding-top: var(--section-spacing-desktop);
  padding-bottom: var(--section-spacing-desktop);
}

.section-alt {
  background-color: var(--light-colour);
}

.section-dark {
  background-color: var(--primary-colour);
  color: rgba(255, 255, 255, 0.88);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--white-colour);
}

@media (max-width: 991.98px) {
  .section {
    padding-top: var(--section-spacing-tablet);
    padding-bottom: var(--section-spacing-tablet);
  }
}

@media (max-width: 575.98px) {
  .section {
    padding-top: var(--section-spacing-mobile);
    padding-bottom: var(--section-spacing-mobile);
  }
}

.section-heading {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-heading p {
  font-size: 1.1rem;
  color: var(--body-colour);
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--border-radius-small);
  padding: 0.85rem 1.85rem;
  transition: transform var(--transition-standard), box-shadow var(--transition-standard),
    background-color var(--transition-standard), color var(--transition-standard),
    border-color var(--transition-standard);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--secondary-colour);
  border-color: var(--secondary-colour);
  color: var(--white-colour);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--secondary-colour-dark);
  border-color: var(--secondary-colour-dark);
  color: var(--white-colour);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 114, 212, 0.32);
}

.btn-outline-light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white-colour);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background-color: var(--white-colour);
  border-color: var(--white-colour);
  color: var(--primary-colour);
  transform: translateY(-2px);
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  background-color: var(--primary-colour);
  border-color: var(--primary-colour);
  color: var(--white-colour);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background-color: var(--white-colour);
  border-bottom: 1px solid var(--border-colour);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow var(--transition-standard);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(20, 41, 67, 0.08);
}

.site-header .navbar {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.site-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-header .navbar-brand img {
  height: 48px;
  width: auto;
}

.site-header .navbar-brand .brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary-colour);
  line-height: 1.1;
}

.site-header .navbar-brand .brand-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--body-colour);
  letter-spacing: 0.03em;
}

.site-header .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark-colour);
  padding: 0.5rem 1rem !important;
  position: relative;
  border-radius: var(--border-radius-small);
  transition: color var(--transition-standard), background-color var(--transition-standard);
}

.site-header .nav-link.active {
  color: var(--secondary-colour);
  background-color: var(--light-colour);
}

.site-header .nav-link:hover {
  color: var(--secondary-colour);
}

.navbar-nav-desktop {
  list-style: none;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto;
  padding: 0;
}

.header-cta-group {
  align-items: center;
  gap: 1rem;
}

.navbar-toggler {
  border: 2px solid var(--border-colour);
  border-radius: var(--border-radius-small);
  padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: 3px solid var(--secondary-colour);
  outline-offset: 2px;
}

/* Transparent header over the homepage hero, solid again once scrolled past
   it. Kept to large screens only (matching the navbar-expand-xl breakpoint
   where the inline nav replaces the sidebar): the hero is short enough on
   mobile/tablet that the usual solid header reads more clearly than an
   overlay would. */
@media (min-width: 1200px) {
  body[data-page="home"] .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: transparent;
    border-bottom-color: transparent;
  }

  body[data-page="home"] .site-header.is-scrolled {
    background-color: var(--white-colour);
    border-bottom-color: var(--border-colour);
  }

  body[data-page="home"] .site-header:not(.is-scrolled) .navbar-nav-desktop .nav-link {
    color: var(--white-colour);
  }

  body[data-page="home"] .site-header:not(.is-scrolled) .navbar-nav-desktop .nav-link.active {
    color: var(--white-colour);
    background-color: var(--secondary-colour);
  }

  body[data-page="home"] .site-header:not(.is-scrolled) .navbar-brand .brand-text,
  body[data-page="home"] .site-header:not(.is-scrolled) .navbar-brand .brand-text span {
    color: var(--white-colour);
  }
}

/* Services dropdown (desktop) */
.navbar-nav-desktop .has-dropdown {
  position: relative;
}

.navbar-nav-desktop .subnav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  list-style: none;
  margin: 0;
  padding: 0.75rem 0.5rem 0.5rem;
  background-color: var(--white-colour);
  border: 1px solid var(--border-colour);
  border-radius: var(--border-radius-small);
  box-shadow: 0 18px 36px rgba(20, 41, 67, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-standard), transform var(--transition-standard),
    visibility var(--transition-standard);
  z-index: 1040;
}

.navbar-nav-desktop .has-dropdown:hover .subnav,
.navbar-nav-desktop .has-dropdown:focus-within .subnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-nav-desktop .subnav .nav-link {
  display: block;
  white-space: nowrap;
  padding: 0.5rem 0.75rem !important;
  color: var(--dark-colour) !important;
  font-size: 0.95rem;
}

.navbar-nav-desktop .subnav .nav-link:hover {
  background-color: var(--light-colour);
  color: var(--secondary-colour) !important;
}

/* ==========================================================================
   Mobile sidebar navigation
   ========================================================================== */

.offcanvas.mobile-nav {
  width: min(320px, 85vw);
}

.mobile-nav .offcanvas-header {
  border-bottom: 1px solid var(--border-colour);
  padding: 1.1rem 1.25rem;
}

.mobile-nav .offcanvas-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav .offcanvas-header .navbar-brand img {
  height: 38px;
  width: auto;
}

.mobile-nav .offcanvas-header .brand-text {
  font-size: 1.05rem;
}

.mobile-nav .btn-close {
  box-shadow: none;
}

.mobile-nav .btn-close:focus-visible {
  outline: 3px solid var(--secondary-colour);
  outline-offset: 2px;
}

.mobile-nav .offcanvas-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: grid;
  gap: 0.25rem;
}

.mobile-nav-list .nav-link {
  display: block;
  padding: 0.85rem 1rem !important;
  font-size: 1.05rem;
}

.mobile-nav-list .nav-link.active {
  color: var(--secondary-colour);
  background-color: var(--light-colour);
}

.mobile-nav-list .has-dropdown > [data-nav="services"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-nav-list .has-dropdown > [data-nav="services"]::after {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition-standard);
}

.mobile-nav-list .has-dropdown.is-open > [data-nav="services"]::after {
  transform: rotate(-135deg);
}

.mobile-nav-list .subnav {
  list-style: none;
  margin: 0.15rem 0 0.4rem;
  padding: 0 0 0 0.85rem;
  border-left: 2px solid var(--border-colour);
  display: grid;
  gap: 0.1rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-standard);
}

.mobile-nav-list .has-dropdown.is-open .subnav {
  max-height: 640px;
}

.mobile-nav-list .subnav .nav-link {
  font-size: 0.95rem;
  padding: 0.6rem 1rem !important;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  color: var(--white-colour);
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

/* On mobile/tablet the header stays in normal flow (not overlaid), so the
   hero only needs to fill what's left of the screen beneath it. */
@media (max-width: 1199.98px) {
  .hero {
    min-height: calc(100vh - 88px);
  }
}

.hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero .hero-bg img,
.hero .hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .hero-bg video {
  position: absolute;
  inset: 0;
}

/* Static poster image sits under the video and shows while it loads, and
   is the only background shown where the video is hidden below. */
.hero .hero-bg img {
  position: absolute;
  inset: 0;
}

.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(20, 41, 67, 0.94) 0%,
    rgba(20, 41, 67, 0.82) 42%,
    rgba(20, 41, 67, 0.42) 100%
  );
  z-index: 1;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  padding-top: 6.5rem;
  padding-bottom: 2.5rem;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero h1 {
  color: var(--white-colour);
  margin-bottom: 1.25rem;
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
}

.hero .hero-lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 2rem;
  max-width: 620px;
}

.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 1199.98px) {
  .hero .hero-content {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero .hero-content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: 1.9rem;
    margin-bottom: 0.85rem;
  }

  .hero .hero-lead {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .hero-accreditations {
    margin-top: 1.25rem;
    padding-top: 1rem;
  }
}

/* Skip the video on small screens to save mobile data; the poster image
   underneath already covers the background. */
@media (max-width: 767.98px) {
  .hero .hero-bg video {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-bg video {
    display: none;
  }
}

/* ==========================================================================
   Hero accreditations
   ========================================================================== */

.hero-accreditations {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-accreditations-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.hero-accreditations-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.hero-accreditations-logos img {
  max-height: 48px;
  width: auto;
  background-color: var(--white-colour);
  border-radius: var(--border-radius-small);
  padding: 0.4rem 0.75rem;
}

.hero-accreditations-logos img.logo-fmb {
  max-height: 68px;
}

.accreditation-note {
  width: 100%;
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Family / about teaser
   ========================================================================== */

.family-section .family-image {
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(20, 41, 67, 0.16);
}

.family-section .family-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.family-section .badge-family {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background-color: var(--secondary-colour);
  color: var(--white-colour);
  border-radius: var(--border-radius-medium);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 16px 32px rgba(17, 114, 212, 0.35);
  max-width: 240px;
}

.family-section .badge-family strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.family-section .badge-family span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.family-section .image-wrap {
  position: relative;
}

@media (max-width: 767.98px) {
  .family-section .badge-family {
    left: 1rem;
    bottom: -1.25rem;
    padding: 1rem 1.25rem;
  }
}

.family-checklist {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
  display: grid;
  gap: 0.85rem;
}

.family-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--dark-colour);
}

.family-checklist svg {
  flex-shrink: 0;
  color: var(--success-colour);
  margin-top: 0.2rem;
}

.family-accreditations {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-colour);
}

.family-accreditations img {
  max-height: 44px;
  width: auto;
}

.family-accreditations img.logo-fmb {
  max-height: 62px;
}

.family-accreditations + .accreditation-note {
  color: var(--body-colour);
}

/* ==========================================================================
   Services grid
   ========================================================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--border-radius-medium);
  aspect-ratio: 4 / 3;
  color: var(--white-colour);
}

.service-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-tile:hover img,
.service-tile:focus-visible img {
  transform: scale(1.08);
}

.service-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(
    0deg,
    rgba(12, 24, 39, 0.97) 0%,
    rgba(12, 24, 39, 0.88) 50%,
    rgba(12, 24, 39, 0.45) 78%,
    rgba(12, 24, 39, 0) 100%
  );
  transition: background var(--transition-standard);
}

.service-tile-overlay h3 {
  color: var(--white-colour);
  font-size: 1.1rem;
  margin-bottom: 0;
  transition: margin-bottom var(--transition-standard);
}

.service-tile-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--transition-standard), opacity var(--transition-standard), margin-top var(--transition-standard);
}

.service-tile-details p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.6rem;
}

.service-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white-colour);
}

.service-tile:hover .service-tile-overlay h3,
.service-tile:focus-visible .service-tile-overlay h3 {
  margin-bottom: 0.5rem;
}

.service-tile:hover .service-tile-details,
.service-tile:focus-visible .service-tile-details {
  max-height: 9rem;
  opacity: 1;
}

/* No hover on touch devices, so show the description straight away rather
   than hiding it behind an interaction that doesn't exist there. */
@media (hover: none) {
  .service-tile-overlay h3 {
    margin-bottom: 0.5rem;
  }

  .service-tile-details {
    max-height: 9rem;
    opacity: 1;
  }
}

@media (max-width: 991.98px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Featured project mosaic
   ========================================================================== */

.project-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 1.25rem;
}

.project-tile--a {
  grid-column: 1 / 3;
  grid-row: 1 / 4;
}

.project-tile--b {
  grid-column: 3 / 5;
  grid-row: 1 / 3;
}

.project-tile--c {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}

.project-tile--d {
  grid-column: 4 / 5;
  grid-row: 3 / 4;
}

.project-tile--extra {
  grid-column: span 2;
  grid-row: span 2;
}

.project-tile {
  position: relative;
  overflow: hidden;
  border-radius: 32px 8px 32px 8px;
  cursor: pointer;
  border: none;
  padding: 0;
  display: block;
}

.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-tile:hover img,
.project-tile:focus-within img {
  transform: scale(1.08);
}

.project-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.5rem;
  background: linear-gradient(
    0deg,
    rgba(12, 24, 39, 0.95) 0%,
    rgba(12, 24, 39, 0.82) 50%,
    rgba(12, 24, 39, 0.4) 78%,
    rgba(12, 24, 39, 0) 100%
  );
  color: var(--white-colour);
}

.project-tile-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.35rem;
}

.project-tile-overlay h3 {
  color: var(--white-colour);
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}

.project-tile-overlay .btn {
  transition: transform var(--transition-standard);
}

.project-tile:hover .project-tile-overlay .btn,
.project-tile:focus-within .project-tile-overlay .btn {
  transform: translateY(-2px);
}

@media (max-width: 767.98px) {
  .project-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .project-tile--a,
  .project-tile--b,
  .project-tile--c,
  .project-tile--d,
  .project-tile--extra {
    grid-column: 1 / 2;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================================
   Project detail modal
   ========================================================================== */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-modal[hidden] {
  display: none;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(12, 24, 39, 0.72);
}

.project-modal-dialog {
  position: relative;
  z-index: 1;
  background-color: var(--white-colour);
  width: min(1000px, 100%);
  max-height: min(720px, 92vh);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 32px 64px rgba(12, 24, 39, 0.4);
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: rgba(12, 24, 39, 0.55);
  color: var(--white-colour);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-standard);
}

.project-modal-close:hover {
  background-color: var(--secondary-colour);
}

.project-modal-gallery {
  width: 50%;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  background-color: var(--dark-colour);
}

.project-modal-gallery img {
  width: 100%;
  display: block;
  scroll-snap-align: start;
}

.project-modal-info {
  width: 50%;
  padding: 2.5rem;
  overflow-y: auto;
}

.project-modal-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary-colour);
  margin-bottom: 0.5rem;
}

.project-modal-info h3 {
  margin-bottom: 0.85rem;
}

.project-modal-worklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.6rem;
}

.project-modal-worklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--dark-colour);
  font-weight: 500;
}

.project-modal-worklist li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background-color: var(--secondary-colour);
}

@media (max-width: 767.98px) {
  .project-modal {
    padding: 0;
  }

  .project-modal-dialog {
    flex-direction: column;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .project-modal-gallery,
  .project-modal-info {
    width: 100%;
  }

  .project-modal-gallery {
    height: 45%;
  }

  .project-modal-info {
    padding: 1.75rem;
  }
}

/* ==========================================================================
   Why choose us
   ========================================================================== */

.reason-card {
  background-color: var(--white-colour);
  border-radius: var(--border-radius-medium);
  padding: 1.75rem;
  height: 100%;
  border: 1px solid var(--border-colour);
  transition: box-shadow var(--transition-standard), transform var(--transition-standard);
}

.reason-card:hover {
  box-shadow: 0 16px 32px rgba(20, 41, 67, 0.1);
  transform: translateY(-4px);
}

.reason-card .reason-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-small);
  background-color: rgba(17, 114, 212, 0.12);
  color: var(--secondary-colour);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.reason-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.reason-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-card {
  background-color: var(--white-colour);
  border-radius: var(--border-radius-medium);
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--border-colour);
  display: flex;
  flex-direction: column;
}

.testimonial-card .stars {
  color: var(--secondary-colour);
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
}

.testimonial-card blockquote {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--dark-colour);
  flex-grow: 1;
}

.testimonial-card .testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-colour);
}

.testimonial-card .testimonial-role {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--body-colour);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  background-color: var(--primary-colour);
  color: var(--white-colour);
  border-radius: var(--border-radius-large);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(17, 114, 212, 0.25), transparent 55%);
}

.final-cta > * {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  color: var(--white-colour);
  margin-bottom: 1rem;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (max-width: 575.98px) {
  .final-cta {
    padding: 2.25rem 1.5rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--dark-colour);
  color: rgba(255, 255, 255, 0.72);
  padding-top: var(--section-spacing-desktop);
  padding-bottom: 2rem;
}

.site-footer h2 {
  color: var(--white-colour);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.site-footer .footer-brand img {
  height: 40px;
  width: auto;
  background-color: var(--white-colour);
  border-radius: var(--border-radius-small);
  padding: 4px 8px;
}

.site-footer .footer-brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white-colour);
  font-size: 1.15rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 0.65rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: var(--secondary-colour);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--secondary-colour);
  margin-top: 0.15rem;
}

.footer-accreditations {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

.footer-accreditations img {
  max-height: 44px;
  width: auto;
  background: var(--white-colour);
  border-radius: var(--border-radius-small);
  padding: 0.4rem 0.6rem;
}

.footer-accreditations img.logo-fmb {
  max-height: 60px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 3rem;
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-secondary-brand {
  color: var(--secondary-colour) !important;
}

.bg-light-brand {
  background-color: var(--light-colour) !important;
}

.rounded-brand {
  border-radius: var(--border-radius-medium) !important;
}

/* ==========================================================================
   Inner page hero
   ========================================================================== */

.page-hero {
  background-color: var(--primary-colour);
  color: rgba(255, 255, 255, 0.9);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 20%, rgba(17, 114, 212, 0.35), transparent 55%);
}

.page-hero-photo {
  position: absolute;
  inset: 0;
}

.page-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(28, 61, 95, 0.92) 0%,
    rgba(28, 61, 95, 0.82) 35%,
    rgba(28, 61, 95, 0.68) 100%
  );
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white-colour);
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin-bottom: 0;
}

.page-hero .breadcrumb-trail {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.85rem;
}

.page-hero .breadcrumb-trail a {
  color: rgba(255, 255, 255, 0.6);
}

.page-hero .breadcrumb-trail a:hover {
  color: var(--white-colour);
}

@media (max-width: 575.98px) {
  .page-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .page-hero p {
    font-size: 1.02rem;
  }
}

/* ==========================================================================
   Prose / rich text
   ========================================================================== */

.prose {
  max-width: 760px;
}

.prose p {
  font-size: 1.05rem;
}

.lead-text {
  font-size: 1.2rem;
  color: var(--dark-colour);
}

/* ==========================================================================
   Split content rows (image + text)
   ========================================================================== */

.split-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 3.5rem;
}

.split-row + .split-row {
  margin-top: 4.5rem;
}

.split-row .split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 32px 8px 32px 8px;
  box-shadow: 0 24px 48px rgba(20, 41, 67, 0.16);
}

.split-row.is-reversed .split-media {
  order: 2;
}

.split-row h2,
.split-row h3 {
  margin-bottom: 0.85rem;
}

@media (max-width: 991.98px) {
  .split-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .split-row + .split-row {
    margin-top: 3rem;
  }

  .split-row.is-reversed .split-media {
    order: 0;
  }
}

/* ==========================================================================
   Care / values cards
   ========================================================================== */

.care-lead {
  border-left: 4px solid var(--secondary-colour);
  padding-left: 1.5rem;
  font-size: 1.2rem;
  color: var(--dark-colour);
  max-width: 720px;
}

.value-card {
  background-color: var(--white-colour);
  border: 1px solid var(--border-colour);
  border-radius: var(--border-radius-medium);
  padding: 1.75rem;
  height: 100%;
  position: relative;
  z-index: 0;
  overflow: hidden;
  transition: box-shadow var(--transition-standard), transform var(--transition-standard);
}

.value-card:hover {
  box-shadow: 0 16px 32px rgba(20, 41, 67, 0.1);
  transform: translateY(-4px);
}

.value-card .value-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius-small);
  background-color: rgba(17, 114, 212, 0.12);
  color: var(--secondary-colour);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.97rem;
  margin-bottom: 0;
}

.value-card .value-icon-watermark {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 100px;
  height: 100px;
  color: var(--secondary-colour);
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--transition-standard);
}

.value-card .value-icon-watermark svg {
  width: 100%;
  height: 100%;
}

.value-card:hover .value-icon-watermark {
  opacity: 0.14;
}

/* ==========================================================================
   Service anchor nav + blocks
   ========================================================================== */

.service-jumpnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3.5rem;
}

.service-jumpnav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-colour);
  background-color: var(--light-colour);
  border: 1px solid var(--border-colour);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
}

.service-jumpnav a:hover {
  background-color: var(--secondary-colour);
  border-color: var(--secondary-colour);
  color: var(--white-colour);
}

.service-block {
  scroll-margin-top: 90px;
  padding-top: 3rem;
  border-top: 1px solid var(--border-colour);
  margin-top: 3rem;
}

.service-block:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.service-block h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.checklist-grid {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
}

.checklist-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--dark-colour);
  font-weight: 500;
  font-size: 0.97rem;
}

.checklist-grid li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background-color: var(--secondary-colour);
}

@media (max-width: 575.98px) {
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Photo stack (overlapping image pair)
   ========================================================================== */

.photo-stack {
  position: relative;
  padding-bottom: 2.5rem;
  padding-right: 2.5rem;
}

.split-row .photo-stack .photo-stack-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 32px 8px 32px 8px;
  box-shadow: 0 24px 48px rgba(20, 41, 67, 0.16);
}

.split-row .photo-stack .photo-stack-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px 32px 8px 32px;
  border: 6px solid var(--white-colour);
  box-shadow: 0 16px 32px rgba(20, 41, 67, 0.2);
}

@media (max-width: 575.98px) {
  .photo-stack {
    padding-bottom: 2rem;
    padding-right: 2rem;
  }

  .split-row .photo-stack .photo-stack-accent {
    width: 60%;
  }
}

/* ==========================================================================
   Work grid
   ========================================================================== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px 8px 32px 8px;
  border: none;
  padding: 0;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  display: block;
  width: 100%;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-card:hover img,
.work-card:focus-within img {
  transform: scale(1.08);
}

.work-card .project-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.5rem;
  background: linear-gradient(
    0deg,
    rgba(12, 24, 39, 0.95) 0%,
    rgba(12, 24, 39, 0.8) 45%,
    rgba(12, 24, 39, 0.35) 75%,
    rgba(12, 24, 39, 0) 100%
  );
  color: var(--white-colour);
}

@media (max-width: 991.98px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.project-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  gap: 1.5rem;
  justify-content: center;
}

/* ==========================================================================
   Mini process steps (service pages)
   ========================================================================== */

.mini-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.mini-step {
  background-color: var(--white-colour);
  border: 1px solid var(--border-colour);
  border-radius: var(--border-radius-medium);
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow var(--transition-standard), transform var(--transition-standard),
    border-color var(--transition-standard);
}

.mini-step:hover {
  box-shadow: 0 16px 32px rgba(20, 41, 67, 0.1);
  transform: translateY(-4px);
  border-color: var(--secondary-colour);
}

.mini-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary-colour);
  color: var(--white-colour);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  transition: transform var(--transition-standard);
}

.mini-step:hover .mini-step-number {
  transform: scale(1.1);
}

.mini-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.mini-step p {
  font-size: 0.93rem;
  color: var(--body-colour);
  margin-bottom: 0;
}

/* ==========================================================================
   Feature tiles (photo + hover)
   ========================================================================== */

.feature-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-tile {
  position: relative;
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  border: 1px solid var(--border-colour);
  background-color: var(--white-colour);
  transition: box-shadow var(--transition-standard), transform var(--transition-standard);
}

.feature-tile:hover {
  box-shadow: 0 16px 32px rgba(20, 41, 67, 0.14);
  transform: translateY(-4px);
}

.feature-tile-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.feature-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-tile:hover .feature-tile-media img {
  transform: scale(1.08);
}

.feature-tile-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.feature-tile-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.feature-tile-body p {
  font-size: 0.93rem;
  color: var(--body-colour);
  margin-bottom: 0;
}

/* ==========================================================================
   Flow chart (process tiles)
   ========================================================================== */

.flow-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.flow-step {
  position: relative;
}

.flow-step-number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--secondary-colour);
  color: var(--white-colour);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(20, 41, 67, 0.3);
}

@media (max-width: 991.98px) {
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Why choose us (service pages)
   ========================================================================== */

.why-choose-us {
  position: relative;
  overflow: hidden;
  background-color: var(--light-colour);
}

.why-choose-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
}

.why-choose-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.why-choose-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--light-colour) 0%, var(--light-colour) 15%, rgba(239, 245, 250, 0) 60%);
}

.why-choose-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  padding: 2.5rem 0;
}

.why-choose-content h2 {
  margin-bottom: 1.1rem;
}

.why-choose-content .family-accreditations {
  justify-content: center;
}

.why-choose-content .accreditation-note {
  text-align: center;
}

.why-choose-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.why-choose-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.why-choose-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--white-colour);
  color: var(--secondary-colour);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(20, 41, 67, 0.1);
}

.why-choose-list h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.why-choose-list p {
  margin-bottom: 0;
  font-size: 0.93rem;
  color: var(--body-colour);
}

@media (max-width: 767.98px) {
  .why-choose-us {
    padding-top: 2rem;
  }

  .why-choose-photo {
    position: static;
    width: 100%;
    height: 220px;
    margin-bottom: 2rem;
  }

  .why-choose-photo::before {
    background: linear-gradient(to bottom, rgba(239, 245, 250, 0) 40%, var(--light-colour) 100%);
  }

  .why-choose-content {
    max-width: none;
    padding: 0 0 3rem;
  }
}

/* ==========================================================================
   Testimonials page
   ========================================================================== */

.quote-wall {
  columns: 2;
  column-gap: 1.5rem;
}

.quote-wall .testimonial-card {
  break-inside: avoid;
  margin: 0 0 1.5rem;
}

.testimonial-card figcaption.testimonial-author {
  font-style: normal;
}

.testimonial-card blockquote {
  quotes: none;
}

@media (max-width: 767.98px) {
  .quote-wall {
    columns: 1;
  }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
}

@media (max-width: 991.98px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-detail-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1.25rem;
}

.contact-detail-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-detail-list .contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-small);
  background-color: rgba(17, 114, 212, 0.12);
  color: var(--secondary-colour);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail-list strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--dark-colour);
}

.contact-form {
  background-color: var(--light-colour);
  border: 1px solid var(--border-colour);
  border-radius: var(--border-radius-large);
  padding: 2.25rem;
}

.contact-form label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-colour);
  margin-bottom: 0.35rem;
  display: block;
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--border-colour);
  border-radius: var(--border-radius-small);
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--secondary-colour);
  box-shadow: 0 0 0 3px rgba(17, 114, 212, 0.18);
}

.contact-form .form-note {
  font-size: 0.85rem;
  color: var(--body-colour);
  margin: 0.5rem 0 0;
}

.contact-form .field-err:empty {
  display: none;
}

.contact-form .field-err {
  margin: -0.55rem 0 1rem;
}

.contact-form .error-msg,
.contact-form .success-msg {
  margin: 0;
}

.contact-form .error-msg p,
.contact-form .success-msg p {
  margin: 0;
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--border-radius-small);
  color: #fff;
}

.contact-form .error-msg p {
  background: #d63637;
}

.contact-form .success-msg p {
  background: #157347;
}

.contact-form .response {
  margin-top: 1rem;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

#frm_mdl .modal-body {
  padding: 1.5rem;
}

#frm_mdl .g-recaptcha {
  display: flex;
  justify-content: center;
}

@media (max-width: 575.98px) {
  .contact-form {
    padding: 1.5rem;
  }
}

.h-sm {
  font-size: 1.3rem;
  margin-top: 1.75rem;
}

/* ==========================================================================
   Services overview grid
   ========================================================================== */

.service-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-overview-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white-colour);
  border: 1px solid var(--border-colour);
  border-radius: var(--border-radius-medium);
  padding: 1.75rem;
  color: var(--body-colour);
  transition: box-shadow var(--transition-standard), transform var(--transition-standard),
    border-color var(--transition-standard);
}

.service-overview-card:hover {
  box-shadow: 0 16px 32px rgba(20, 41, 67, 0.1);
  transform: translateY(-4px);
  border-color: var(--secondary-colour);
  color: var(--body-colour);
}

.service-overview-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.service-overview-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.service-overview-card .service-overview-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--secondary-colour);
}

@media (max-width: 991.98px) {
  .service-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .service-overview-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Our Work filter
   ========================================================================== */

.work-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.work-filter-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-colour);
  background-color: var(--light-colour);
  border: 1px solid var(--border-colour);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  cursor: pointer;
  transition: background-color var(--transition-standard), color var(--transition-standard),
    border-color var(--transition-standard);
}

.work-filter-btn:hover {
  border-color: var(--secondary-colour);
}

.work-filter-btn.is-active {
  background-color: var(--secondary-colour);
  border-color: var(--secondary-colour);
  color: var(--white-colour);
}

.work-card[hidden] {
  display: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
