
/* ========================================
   BRAND FOUNDATION
======================================== */

:root {
  --sb-black: #171717;
  --sb-deep-black: #0f0f0f;
  --sb-white: #f6f4f0;
  --sb-oxide: #b95f3d;
  --sb-oxide-hover: #a95234;
  --sb-graphite: #363336;
  --sb-grey: #aaa7a1;
  --sb-sandstone: #c9b59a;
  --sb-divider: rgba(246, 244, 240, 0.12);
}

.sandbox-page,
.sandbox-page *,
.sb-hero,
.sb-hero *,
.sb-holding-hero,
.sb-holding-hero *,
.sb-services,
.sb-services *,
.sb-contact,
.sb-contact *,
.sb-footer,
.sb-footer *,
.site-header,
.site-header * {
  box-sizing: border-box;
}

.sandbox-page {
  overflow-x: hidden;
  background: var(--sb-black);
  color: var(--sb-white);
  font-family: Inter, sans-serif;
}

/* ========================================
   NAVIGATION
======================================== */

.site-header {
  height: auto !important;
  min-height: 76px !important;
  background: var(--sb-black) !important;
  border-bottom: 1px solid var(--sb-divider);
}

.site-header .inside-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 76px !important;
  margin: 0 !important;
  padding: 16px 56px !important;
}

.site-header .site-logo {
  flex: 0 0 auto;
}

.site-header .site-logo img,
.site-header .header-image {
  display: block !important;
  width: 147px !important;
  max-width: 147px !important;
  height: auto !important;
}

.site-header #site-navigation {
  display: block !important;
  width: auto !important;
  margin-left: auto !important;
  background: transparent !important;
}

.site-header #site-navigation .inside-navigation {
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
}

.site-header #site-navigation .main-nav {
  display: block !important;
}

.site-header #site-navigation .main-nav > ul {
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.site-header #site-navigation .main-nav > ul > li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.site-header #site-navigation .main-nav > ul > li > a {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 2px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--sb-white) !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: normal;
}

.site-header #site-navigation .main-nav > ul > li > a[href^="tel:"] {
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 1px !important;
  white-space: nowrap;
}

.site-header #site-navigation .main-nav > ul > li > a[href^="mailto:"] {
  font-family: Inter, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere;
}

.site-header #site-navigation .main-nav > ul > li > a:hover,
.site-header #site-navigation .main-nav > ul > li > a:focus-visible {
  background: transparent !important;
  color: var(--sb-sandstone) !important;
  text-decoration: underline !important;
}

.site-header .mobile-menu-control-wrapper,
.site-header #site-navigation .menu-toggle {
  display: none !important;
}

/* ========================================
   ORIGINAL HERO — OLD HOME
======================================== */

.sb-hero {
  position: relative;
  width: 100%;
  height: 730px !important;
  min-height: 730px !important;
  margin: 0 !important;
  overflow: hidden;
  background: var(--sb-black);
}

.sb-hero-image {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 730px !important;
  min-height: 730px !important;
  overflow: hidden;
  background-image:
    linear-gradient(
      rgba(23, 23, 23, 0.20),
      rgba(23, 23, 23, 0.20)
    ),
    url("https://sandboxcivils.co.uk/wp-content/uploads/2026/10/openart-image_1790852141362_a137c673_1790852141856_335bcfbe.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.sb-hero img,
.sb-hero figure,
.sb-hero .wp-block-image {
  display: none !important;
}

.sb-hero-image::before,
.sb-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sb-hero-image::before {
  z-index: 1;
  background: rgba(23, 23, 23, 0.80);
  clip-path: polygon(0 0, 67% 0, 100% 100%, 0 100%);
}

.sb-hero-image::after {
  z-index: 2;
  background: var(--sb-deep-black);
  clip-path: polygon(100% 0, 100% 100%, 60% 100%);
}

.sb-hero-content {
  position: relative !important;
  z-index: 10 !important;
  width: 650px;
  max-width: calc(100% - 144px);
  margin: 0 0 0 72px !important;
  padding: 86px 0 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  font-synthesis: none;
}

.sb-hero-content::before,
.sb-hero-content::after {
  content: none !important;
  display: none !important;
}

.sb-hero-content > .gb-inside-container,
.sb-hero-content > .wp-block-group__inner-container {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.sb-hero-content [class*="overlay"],
.sb-hero-content [class*="background"] {
  display: none !important;
}

.sb-hero > *:not(.sb-hero-image),
.sb-hero-image .sb-hero-content {
  position: relative;
  z-index: 10;
}

.sb-eyebrow {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px !important;
  color: var(--sb-sandstone) !important;
  font-family: "Space Mono", monospace !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
}

.sb-eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  flex: 0 0 32px;
  background: var(--sb-oxide);
}

.sb-eyebrow > span {
  display: none;
}

.sb-display,
.sb-hero-content h1.sb-display,
.sb-hero-content h2.sb-display,
.sb-hero-content h3.sb-display {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--sb-white) !important;
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 104px !important;
  font-weight: 900 !important;
  line-height: 0.90 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase;
}

.sb-display + .sb-display {
  margin-top: 0 !important;
}

.sb-hero-content h1.sb-display.sb-display-accent,
.sb-hero-content h2.sb-display.sb-display-accent,
.sb-hero-content h3.sb-display.sb-display-accent {
  margin-bottom: 0 !important;
  color: var(--sb-oxide) !important;
}

.sb-hero-content p.sb-intro,
.sb-hero-content > p {
  width: 490px !important;
  max-width: 100% !important;
  margin: 0 0 34px !important;
  padding-top: 28px !important;
  color: var(--sb-grey) !important;
  font-family: Inter, sans-serif !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 300 !important;
  font-variation-settings: "wght" 300 !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
}

.sb-actions {
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
  margin: 0 !important;
}

.sb-actions .sb-button {
  flex: 0 0 192px !important;
  width: 192px !important;
  max-width: 192px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.sb-actions a.sb-button,
.sb-actions .sb-button > .wp-block-button__link,
.sb-actions .sb-button .wp-block-button__link,
.sb-actions .gb-button.sb-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 192px !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--sb-oxide) !important;
  color: var(--sb-white) !important;
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.14em !important;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
}

.sb-actions a.sb-button:hover,
.sb-actions .sb-button .wp-block-button__link:hover,
.sb-actions .gb-button.sb-button:hover {
  background: var(--sb-oxide-hover) !important;
  color: var(--sb-white) !important;
}

.sb-actions a:not(.sb-button):not(.gb-button):not(.wp-block-button__link) {
  color: var(--sb-grey) !important;
  font-family: "Space Mono", monospace !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-decoration: none;
}

#hero-content {
  display: block !important;
  outline: none !important;
  overflow: visible !important;
}

#hero-content > * {
  position: relative !important;
  left: 0 !important;
  top: -150px !important;
}

#hero-content .sb-actions {
  display: flex !important;
}

@media (min-width: 769px) {
  #hero-content .wp-block-button__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 180px !important;
    height: 50px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }
}

/* ========================================
   ORIGINAL HERO TECHNICAL DETAILS
======================================== */

.sb-reg {
  position: absolute;
  z-index: 20;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.sb-reg-tl {
  top: 24px;
  left: 24px;
  border-top: 1px solid rgba(246, 244, 240, 0.25);
  border-left: 1px solid rgba(246, 244, 240, 0.25);
}

.sb-reg-tr {
  top: 24px;
  right: 24px;
  border-top: 1px solid rgba(246, 244, 240, 0.25);
  border-right: 1px solid rgba(246, 244, 240, 0.25);
}

.sb-reg-bl {
  bottom: 24px;
  left: 24px;
  border-bottom: 1px solid rgba(246, 244, 240, 0.25);
  border-left: 1px solid rgba(246, 244, 240, 0.25);
}

.sb-reg-br {
  right: 24px;
  bottom: 24px;
  border-right: 1px solid rgba(246, 244, 240, 0.25);
  border-bottom: 1px solid rgba(246, 244, 240, 0.25);
}

.sb-coordinate {
  position: absolute !important;
  right: 48px;
  bottom: 42px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(246, 244, 240, 0.40);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.sb-reticle {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid rgba(246, 244, 240, 0.50);
  border-radius: 50% !important;
  background: radial-gradient(
    circle at center,
    var(--sb-oxide) 0,
    var(--sb-oxide) 2px,
    transparent 2px
  );
}

.sb-reticle::before,
.sb-reticle::after {
  content: "";
  position: absolute;
  background: rgba(246, 244, 240, 0.50);
}

.sb-reticle::before {
  width: 30px;
  height: 1px;
  left: -4px;
  top: 11px;
}

.sb-reticle::after {
  width: 1px;
  height: 30px;
  left: 11px;
  top: -4px;
}

/* ========================================
   ORIGINAL SERVICES
======================================== */

.sb-services {
  position: relative;
  z-index: 5;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  width: 100% !important;
  min-height: 94px;
  margin: -2px 0 0 !important;
  overflow: hidden;
  background: var(--sb-deep-black);
  border: 0 !important;
}

.sb-services::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M16 15 L22 21 L28 15 L29.5 16.5 L23.5 22 L29.5 27.5 L28 29 L22 23 L16 29 L14.5 27.5 L20.5 22 L14.5 16.5 Z' fill='%23F6F4F0' fill-opacity='.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.sb-service {
  position: relative;
  z-index: 1;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 94px !important;
  padding: 0 18px !important;
  overflow: hidden !important;
  border-right: 1px solid rgba(246, 244, 240, 0.06);
  transition: background-color 150ms ease-out;
}

.sb-service:last-child {
  border-right: 0;
}

.sb-service-number {
  display: block !important;
  flex: 0 0 auto;
  color: var(--sb-oxide);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.10em;
}

.sb-service-name {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  color: var(--sb-grey);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.15 !important;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.sb-service:hover {
  background: rgba(246, 244, 240, 0.03);
}

.sb-service:hover .sb-service-name {
  color: var(--sb-white);
}

/* ========================================
   CONTACT
======================================== */

.sb-contact {
  width: 100%;
  padding: 96px 72px !important;
  background: var(--sb-deep-black);
  border-top: 1px solid var(--sb-divider);
}

.sb-contact-grid.wp-block-columns {
  display: grid !important;
  grid-template-columns: 560px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 56px !important;
  width: 100%;
  max-width: 1296px;
  margin: 0 auto !important;
}

.sb-contact-grid > .wp-block-column {
  flex-basis: auto !important;
  min-width: 0;
  margin: 0 !important;
}

.sb-contact-intro {
  padding: 0;
}

.sb-contact-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px !important;
  color: var(--sb-sandstone);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sb-contact-label::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  flex: 0 0 32px;
  background: var(--sb-oxide);
}

.sb-contact-heading {
  max-width: 100%;
  margin: 0 0 28px !important;
  overflow: visible !important;
  color: var(--sb-white) !important;
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 92px !important;
  font-weight: 900 !important;
  line-height: 0.90 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase;
  word-break: normal;
  hyphens: none;
}

.sb-contact-copy {
  max-width: 500px;
  margin: 0 0 24px !important;
  color: var(--sb-grey);
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
}

.sb-contact-email {
  margin: 0 !important;
  color: var(--sb-white);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.sb-contact-email a {
  color: inherit;
  text-decoration: none;
}

/* Contact form */

.sb-contact-form {
  width: 100%;
  padding: 28px !important;
  background: var(--sb-black);
  border: 1px solid var(--sb-divider);
}

.sb-contact-form .wpcf7 {
  margin: 0;
}

.sb-contact-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sb-contact-form .wpcf7-form > p {
  margin: 0 !important;
}

.sb-contact-form label {
  display: block;
  margin: 0;
  color: var(--sb-sandstone);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sb-contact-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 10px;
}

.sb-contact-form input:not([type="submit"]),
.sb-contact-form textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--sb-divider);
  border-radius: 0;
  outline: none;
  background: var(--sb-deep-black);
  color: var(--sb-white);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.sb-contact-form input:not([type="submit"]) {
  height: 56px;
}

.sb-contact-form textarea {
  height: 120px;
  min-height: 120px;
  resize: vertical;
}

.sb-contact-form input::placeholder,
.sb-contact-form textarea::placeholder {
  color: var(--sb-grey);
  opacity: 1;
}

.sb-contact-form input:focus,
.sb-contact-form textarea:focus {
  border-color: var(--sb-oxide);
}

.sb-contact-form input[type="submit"] {
  min-height: 52px;
  padding: 16px 28px;
  border: 0;
  border-radius: 0;
  background: var(--sb-oxide);
  color: var(--sb-white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.sb-contact-form input[type="submit"]:hover {
  background: var(--sb-oxide-hover);
}

.sb-contact-form .wpcf7-spinner {
  margin: 0 0 0 12px;
}

.sb-contact-form .wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 14px !important;
  border: 1px solid var(--sb-oxide) !important;
  color: var(--sb-white);
  font-family: Inter, sans-serif;
  font-size: 14px;
}

/* ========================================
   CONTACT GRID / TARGET
======================================== */

#contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#contact::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 0;
  width: 52%;
  height: 46%;
  pointer-events: none;
  background-image:
    linear-gradient(
      rgba(246, 244, 240, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(246, 244, 240, 0.055) 1px,
      transparent 1px
    );
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(
    90deg, #000 0%, #000 72%, transparent 100%
  );
  mask-image: linear-gradient(
    90deg, #000 0%, #000 72%, transparent 100%
  );
}

#contact::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -115px;
  bottom: -125px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(246, 244, 240, 0.28);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, #b95f3d 0 4px, transparent 5px),
    linear-gradient(
      rgba(246, 244, 240, 0.24),
      rgba(246, 244, 240, 0.24)
    ) center / 100% 1px no-repeat,
    linear-gradient(
      rgba(246, 244, 240, 0.24),
      rgba(246, 244, 240, 0.24)
    ) center / 1px 100% no-repeat;
}

#contact > * {
  position: relative;
  z-index: 1;
}

.sb-contact-graphic,
.sb-contact-target {
  display: none !important;
}

/* ========================================
   HOLDING PAGE HERO
======================================== */

.sb-holding-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  background: var(--sb-black);
  color: var(--sb-white);
}

.sb-holding-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 72px 24px;
}

.sb-holding-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  color: var(--sb-sandstone);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 1.5px;
}

.sb-holding-hero__eyebrow::before {
  content: "";
  flex: 0 0 30px;
  height: 2px;
  background: var(--sb-oxide);
}

.sb-holding-hero__title {
  margin: 0 0 20px;
  color: var(--sb-white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(42px, 5.6vw, 80px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.sb-holding-hero__title span {
  color: var(--sb-oxide);
}

.sb-holding-hero__intro {
  max-width: 620px;
  margin: 0;
  color: var(--sb-grey);
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

/* Retained if a subheading is used later */

.sb-holding-hero__subheading {
  max-width: 720px;
  margin: 24px 0 12px;
  color: var(--sb-white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.sb-holding-hero__project-copy {
  max-width: 620px;
  margin: 0;
  color: var(--sb-grey);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.sb-holding-hero__enquiry {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--sb-white);
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.sb-holding-hero__email {
  margin: 20px 0 0;
  font-family: "Space Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
}

.sb-holding-hero__email a {
  color: var(--sb-white);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.sb-holding-hero__email a:hover,
.sb-holding-hero__email a:focus-visible {
  color: var(--sb-oxide);
  text-decoration: underline;
}

.sb-holding-hero__angle {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--sb-deep-black);
  clip-path: polygon(86% 0, 100% 0, 100% 100%, 65% 100%);
  pointer-events: none;
}

/* ========================================
   HOLDING PAGE CONTACT
======================================== */

#contact.sb-holding-contact {
  padding-top: 24px !important;
  padding-bottom: 48px;
  margin-top: 0 !important;
}

#contact.sb-holding-contact .sb-contact-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 48px !important;
}

#contact.sb-holding-contact .sb-contact-form {
  grid-column: 1;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

#contact.sb-holding-contact::before {
  left: auto;
  right: 0;
  width: 48%;
  height: 100%;
  -webkit-mask-image: linear-gradient(
    90deg, transparent 0%, #000 35%, #000 100%
  );
  mask-image: linear-gradient(
    90deg, transparent 0%, #000 35%, #000 100%
  );
}

#contact.sb-holding-contact::after {
  left: auto;
  right: -115px;
  bottom: -125px;
}

/* ========================================
   CUSTOM FOOTER
======================================== */

.sb-footer {
  width: 100%;
  padding: 72px;
  background: var(--sb-deep-black);
  color: var(--sb-grey);
  border-top: 1px solid var(--sb-divider);
}

.sb-footer-top {
  display: grid;
  grid-template-columns:
    minmax(280px, 1fr)
    minmax(220px, 280px)
    minmax(190px, 220px);
  gap: 72px;
  width: 100%;
  max-width: 1296px;
  margin: 0 auto;
}

.sb-footer-brand .sb-footer-logo {
  display: block !important;
  width: 147px !important;
  max-width: 147px !important;
  text-decoration: none;
}

.sb-footer-brand .sb-footer-logo img {
  display: block !important;
  width: 147px !important;
  max-width: 147px !important;
  height: auto !important;
  object-fit: contain;
}

.sb-footer-brand p {
  max-width: 360px;
  margin: 22px 0 0;
  color: var(--sb-grey);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}

.sb-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.sb-footer-column h3 {
  margin: 0 0 4px;
  color: var(--sb-sandstone);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sb-footer-column a {
  color: rgba(246, 244, 240, 0.62);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.sb-footer-column a:hover {
  color: var(--sb-white);
}

.sb-footer-column p {
  margin: 0;
  color: var(--sb-grey);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

/* Retained for OLD Home */

.sb-footer-column .sb-footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 192px;
  min-height: 52px;
  padding: 0 28px;
  background: var(--sb-oxide);
  color: var(--sb-white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.sb-footer-column .sb-footer-button:hover {
  background: var(--sb-oxide-hover);
  color: var(--sb-white);
}

.sb-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1296px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--sb-divider);
  color: var(--sb-grey);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sb-footer-privacy {
  color: var(--sb-sandstone);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sb-footer-privacy:hover,
.sb-footer-privacy:focus-visible {
  color: var(--sb-white);
}

.site-footer {
  display: none !important;
}

/* ========================================
   PRIVACY POLICY
======================================== */

body:has(.sb-legal) {
  background: var(--sb-black);
}

body:has(.sb-legal) .site-content {
  max-width: 1296px;
  margin: 0 auto;
}

body:has(.sb-legal) .inside-article {
  padding: 56px 72px;
  background: var(--sb-black);
}

body:has(.sb-legal) .entry-header {
  max-width: 780px;
  margin: 0 auto 36px;
}

body:has(.sb-legal) .entry-title {
  margin: 0;
  color: var(--sb-white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(48px, 5.6vw, 80px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

body:has(.sb-legal) .entry-content {
  margin-top: 0;
}

.sb-legal {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  color: var(--sb-grey);
  font-family: Inter, sans-serif;
}

.sb-legal > .wp-block-group__inner-container {
  max-width: none;
}

.sb-legal h2,
.sb-legal h3 {
  margin: 36px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--sb-divider);
  color: var(--sb-white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.sb-legal h2 {
  font-size: 36px;
}

.sb-legal h3 {
  font-size: 28px;
}

.sb-legal p,
.sb-legal li {
  color: var(--sb-grey);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.sb-legal p {
  margin: 0 0 18px;
}

.sb-legal ul,
.sb-legal ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.sb-legal li {
  margin-bottom: 8px;
}

.sb-legal strong {
  color: var(--sb-white);
}

.sb-legal a {
  color: var(--sb-sandstone);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.sb-legal a:hover,
.sb-legal a:focus-visible {
  color: var(--sb-white);
}

/* Full-width privacy page footer */

body.privacy-policy .site-content {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.privacy-policy .content-area {
  width: 100%;
}

body.privacy-policy .inside-article {
  padding: 56px 0 0;
}

body.privacy-policy .entry-header,
body.privacy-policy .sb-legal {
  width: calc(100% - 144px);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

body.privacy-policy .sb-legal {
  margin-bottom: 56px;
}

body.privacy-policy .sb-footer {
  width: 100%;
  max-width: none;
}

/* ========================================
   TABLET / SMALL DESKTOP
======================================== */

@media (min-width: 768px) and (max-width: 1199px) {
  .sb-services {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .sb-service {
    grid-column: span 2;
    min-height: 82px !important;
    padding: 0 22px !important;
    border-bottom: 1px solid rgba(246, 244, 240, 0.06);
  }

  .sb-service:nth-child(3) {
    border-right: 0;
  }

  .sb-service:nth-child(4),
  .sb-service:nth-child(5) {
    grid-column: span 3;
    border-bottom: 0;
  }

  .sb-service:nth-child(5) {
    border-right: 0;
  }

  .sb-service-name {
    font-size: 18px !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .sb-services {
    grid-template-columns: 1fr !important;
  }

  .sb-service,
  .sb-service:nth-child(3),
  .sb-service:nth-child(4),
  .sb-service:nth-child(5) {
    grid-column: 1 / -1 !important;
    min-height: 68px !important;
    padding: 0 28px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(246, 244, 240, 0.06) !important;
  }

  .sb-service:last-child {
    border-bottom: 0 !important;
  }

  .sb-service-name {
    font-size: 18px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 1199px) {
  #contact .sb-contact-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 48px !important;
  }

  #contact .sb-contact-intro,
  #contact .sb-contact-form {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
  }

  #contact .sb-contact-intro {
    order: 1;
  }

  #contact .sb-contact-form {
    order: 2;
  }

  #contact .wpcf7,
  #contact .wpcf7-form,
  #contact input:not([type="submit"]),
  #contact textarea {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  #contact::before,
  #contact::after {
    display: none;
  }

  #contact.sb-holding-contact .sb-contact-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  #contact.sb-holding-contact .sb-contact-form {
    grid-column: 1;
  }
}

@media (max-width: 1024px) {
  .site-header .inside-header {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  .sb-holding-hero__inner {
    padding: 44px 32px 24px;
  }

  .sb-holding-hero__intro {
    font-size: 16px;
  }

  body:has(.sb-legal) .inside-article {
    padding: 44px 32px;
  }

  body.privacy-policy .inside-article {
    padding: 44px 0 0;
  }

  body.privacy-policy .entry-header,
  body.privacy-policy .sb-legal {
    width: calc(100% - 64px);
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {
  /* Logo-only navigation */

  .site-header,
  .site-header .inside-header {
    height: auto !important;
    min-height: 68px !important;
  }

  .site-header .inside-header {
    flex-wrap: nowrap !important;
    gap: 0;
    padding: 18px 24px !important;
  }

  .site-header .site-logo img,
  .site-header .header-image {
    width: 126px !important;
    max-width: 126px !important;
  }

  .site-header #site-navigation {
    display: none !important;
  }

  /* Original hero */

  .sb-hero,
  .sb-hero-image {
    height: 670px !important;
    min-height: 670px !important;
  }

  .sb-hero-image {
    background-image:
      linear-gradient(
        rgba(23, 23, 23, 0.48),
        rgba(23, 23, 23, 0.48)
      ),
      url("https://sandboxcivils.co.uk/wp-content/uploads/2026/10/openart-image_1790852141362_a137c673_1790852141856_335bcfbe.png");
    background-position: 62% center;
  }

  .sb-hero-image::before {
    background: rgba(23, 23, 23, 0.63);
    clip-path: polygon(0 0, 61% 0, 100% 76.5%, 100% 100%, 0 100%);
  }

  .sb-hero-image::after {
    clip-path: polygon(100% 0, 100% 100%, 59.5% 100%);
  }

  .sb-hero-content {
    width: auto;
    max-width: none;
    margin: 0 24px !important;
    padding-top: 54px !important;
  }

  .sb-eyebrow {
    gap: 10px;
    margin-bottom: 18px !important;
    font-size: 10px !important;
  }

  .sb-eyebrow::before {
    width: 28px;
    flex-basis: 28px;
  }

  .sb-display,
  .sb-hero-content h1.sb-display,
  .sb-hero-content h2.sb-display,
  .sb-hero-content h3.sb-display {
    font-size: 50px !important;
    line-height: 0.90 !important;
  }

  .sb-hero-content p.sb-intro,
  .sb-hero-content > p {
    width: 100% !important;
    margin-bottom: 26px !important;
    padding-top: 22px !important;
    font-size: 16px !important;
    line-height: 1.60 !important;
  }

  .sb-actions {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .sb-actions .sb-button,
  .sb-actions a.sb-button,
  .sb-actions .sb-button > .wp-block-button__link,
  .sb-actions .sb-button .wp-block-button__link,
  .sb-actions .gb-button.sb-button {
    width: 100% !important;
    max-width: none !important;
    flex-basis: 100% !important;
  }

  .sb-coordinate {
    right: 24px;
    bottom: 28px;
    font-size: 9px;
  }

  .sb-reg-tl,
  .sb-reg-tr {
    top: 16px;
  }

  .sb-reg-bl,
  .sb-reg-br {
    bottom: 16px;
  }

  .sb-reg-tl,
  .sb-reg-bl {
    left: 16px;
  }

  .sb-reg-tr,
  .sb-reg-br {
    right: 16px;
  }

  /* Original Cover block adjustments */

  #hero-content > * {
    left: -48px !important;
    top: -70px !important;
  }

  #hero-content.wp-block-cover {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 670px !important;
    margin: 0 !important;
    padding: 32px 24px 0 !important;
    overflow: hidden !important;
  }

  #hero-content .wp-block-cover__inner-container {
    width: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #hero-content .wp-block-cover__inner-container > * {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
  }

  #hero-content .sb-display,
  #hero-content h1.sb-display,
  #hero-content .sb-display * {
    display: block !important;
    width: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
    font-size: clamp(30px, 11vw, 46px) !important;
    line-height: 0.92 !important;
    white-space: pre-line !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  #hero-content .sb-intro,
  #hero-content .sb-actions,
  #hero-content .wp-block-buttons,
  #hero-content .wp-block-button,
  #hero-content .wp-block-button__link {
    width: calc(100vw - 200px) !important;
    max-width: calc(100vw - 200px) !important;
  }

  #hero-content .sb-eyebrow {
    width: calc(100vw - 48px) !important;
    font-size: 9px !important;
    white-space: nowrap !important;
  }

  /* Services */

  .sb-services {
    grid-template-columns: 1fr !important;
  }

  .sb-service {
    min-height: 68px !important;
    padding: 0 18px !important;
    border-right: 0;
    border-bottom: 1px solid rgba(246, 244, 240, 0.06);
  }

  .sb-service:last-child {
    border-bottom: 0;
  }

  .sb-service-name {
    font-size: 18px !important;
    white-space: nowrap !important;
  }

  /* Contact */

  .sb-contact {
    padding: 48px 24px !important;
  }

  .sb-contact-grid.wp-block-columns {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  #contact .sb-contact-grid {
    gap: 32px !important;
  }

  .sb-contact-heading {
    margin-bottom: 22px !important;
    font-size: 50px !important;
  }

  .sb-contact-copy {
    font-size: 16px;
    line-height: 1.60;
  }

  .sb-contact-form {
    padding: 24px !important;
  }

  .sb-contact-form input[type="submit"] {
    width: 100%;
  }

  /* Holding hero */

  .sb-holding-hero__inner {
    padding: 40px 24px 24px;
  }

  .sb-holding-hero__eyebrow {
    align-items: flex-start;
    gap: 12px;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.3px;
  }

  .sb-holding-hero__eyebrow::before {
    flex-basis: 22px;
    margin-top: 8px;
  }

  .sb-holding-hero__title {
    font-size: clamp(36px, 9vw, 56px);
    line-height: 1;
  }

  .sb-holding-hero__intro,
  .sb-holding-hero__project-copy {
    font-size: 15px;
  }

  .sb-holding-hero__subheading {
    margin-top: 20px;
    font-size: 24px;
    line-height: 1.3;
  }

  .sb-holding-hero__enquiry {
    margin-top: 16px;
    font-size: 16px;
  }

  .sb-holding-hero__email {
    font-size: 12px;
  }

  /* Footer */

  .sb-footer {
    padding: 40px 24px 32px;
  }

  .sb-footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sb-footer-brand .sb-footer-logo,
  .sb-footer-brand .sb-footer-logo img {
    width: 126px !important;
    max-width: 126px !important;
  }

  .sb-footer-column .sb-footer-button {
    width: 100%;
  }

  .sb-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
  }

  /* Privacy policy */

  body:has(.sb-legal) .inside-article {
    padding: 36px 24px;
  }

  body:has(.sb-legal) .entry-header {
    margin-bottom: 28px;
  }

  .sb-legal h2 {
    font-size: 30px;
  }

  .sb-legal h3 {
    font-size: 25px;
  }

  body.privacy-policy .inside-article {
    padding: 36px 0 0;
  }

  body.privacy-policy .entry-header,
  body.privacy-policy .sb-legal {
    width: calc(100% - 48px);
  }

  body.privacy-policy .sb-legal {
    margin-bottom: 36px;
  }
}

/* ========================================
   ORIGINAL HERO: MOBILE S
======================================== */

@media (max-width: 374px) {
  #hero-content {
    min-height: 680px !important;
  }

  #hero-content .wp-block-cover__inner-container {
    width: auto !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
  }

  #hero-content .wp-block-cover__inner-container > p:first-of-type {
    width: 110px !important;
    max-width: 110px !important;
    white-space: normal !important;
    font-size: 8px !important;
    line-height: 1.45 !important;
  }

  #hero-content .wp-block-cover__inner-container > p:last-of-type {
    width: 74% !important;
    max-width: none !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  #hero-content .wp-block-button,
  #hero-content .wp-block-button__link {
    width: auto !important;
    max-width: none !important;
  }

  #hero-content .wp-block-separator + p,
  #hero-content p:has(+ h1),
  #hero-content p:has(+ h2) {
    width: 150px !important;
    max-width: 150px !important;
    white-space: normal !important;
    font-size: 8px !important;
    line-height: 1.5 !important;
  }

  #hero-content .wp-block-separator + p *,
  #hero-content p:has(+ h1) *,
  #hero-content p:has(+ h2) * {
    white-space: normal !important;
  }

  #hero-content h1 + p,
  #hero-content h2 + p {
    width: 78% !important;
    max-width: none !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  #hero-content .wp-block-button__link {
    padding: 15px 10px !important;
    font-size: 9px !important;
    letter-spacing: 0.8px !important;
    white-space: nowrap !important;
  }
}
