/*
Theme Name: LEXX Construction Route Fixed
Theme URI: https://www.lexxconstruction.com.au/
Author: LEXX Construction
Description: Custom static marketing website theme for LEXX Construction.
Version: 1.1.0
Text Domain: lexx-construction
*/

:root {
  --ink: #0d0d0d;
  --coal: #141414;
  --iron: #1c1c1c;
  --steel: #7a7672;
  --mist: #f4f1ea;
  --concrete: #e8e4dc;
  --paper: #0d0d0d;
  --amber: #0077b6;
  --amber-deep: #00b4d8;
  --teal: #6ea6bb;
  --red: #b5423e;
  --performance-red: #ff2020;
  --white: #f4f1ea;
  --border: #272727;
  --muted: #a49f99;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--concrete);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  background: var(--amber);
  color: var(--ink);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -100px;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: rgba(13, 13, 13, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
}

.nav-shell,
.section-inner,
.footer-inner {
  margin: 0 auto;
  max-width: var(--container);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.nav-shell {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.7rem;
  font-weight: 800;
}

.brand-mark {
  align-items: center;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 52px;
}

.brand-mark img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  width: 100%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-copy span {
  color: var(--concrete);
  font-size: 0.72rem;
  font-weight: 600;
}

.brand-copy .brand-slogan {
  color: var(--performance-red);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0.18rem;
  white-space: nowrap;
}

.eyebrow .performance-accent {
  color: var(--performance-red);
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  display: none;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  background: currentColor;
  content: "";
  display: block;
  height: 2px;
  position: relative;
  transition: transform 180ms ease, top 180ms ease, opacity 180ms ease;
  width: 20px;
}

.nav-toggle span::before {
  position: absolute;
  top: -7px;
}

.nav-toggle span::after {
  position: absolute;
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 650;
  padding: 0.65rem 0.8rem;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-cta {
  background: var(--amber) !important;
  color: var(--white) !important;
}

.hero {
  background: var(--ink);
  color: var(--white);
  min-height: 720px;
  overflow: hidden;
  position: relative;
}

.hero-bg-img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.hero::before {
  background: linear-gradient(90deg, rgba(13, 13, 13, 0.94) 0%, rgba(13, 13, 13, 0.76) 45%, rgba(13, 13, 13, 0.28) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero::after {
  background: linear-gradient(0deg, var(--paper) 0, rgba(247, 248, 246, 0) 84px);
  bottom: 0;
  content: "";
  height: 160px;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
}

.hero .section-inner {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  min-height: 720px;
  position: relative;
  z-index: 3;
}

.eyebrow {
  align-items: center;
  color: var(--amber);
  display: inline-flex;
  font-weight: 800;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.eyebrow::before {
  background: var(--amber);
  content: "";
  display: inline-block;
  height: 2px;
  width: 42px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  font-weight: 400;
  line-height: 0.98;
  margin-bottom: 1.25rem;
  max-width: 810px;
}

h2 {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.65rem;
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.2rem;
  max-width: 670px;
}

.text-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 720px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1rem;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--amber);
  color: var(--white);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
}

.button-dark {
  background: var(--amber);
  color: var(--white);
}

.button-light {
  background: transparent;
  border-color: rgba(244, 241, 234, 0.28);
  color: var(--white);
}

.trust-panel {
  align-self: end;
  background: rgba(15, 18, 19, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--white);
  margin-bottom: 4.5rem;
  padding: 1.25rem;
}

.trust-panel strong {
  display: block;
  font-size: 1.25rem;
}

.trust-panel p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
}

.trust-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.trust-item {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.8rem;
}

.trust-item span {
  color: var(--amber);
  display: block;
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1;
}

.section {
  padding: 6rem 0;
}

.section-compact {
  padding: 4.5rem 0;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-dark .text-lead,
.section-dark .muted,
.section-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.section-steel {
  background: var(--coal);
}

.section-header {
  align-items: end;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.42fr);
  margin-bottom: 2.5rem;
}

.section-header-spaced {
  margin-top: 4rem;
}

.section-kicker {
  color: var(--amber-deep);
  font-weight: 850;
  margin-bottom: 0.5rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.service-card,
.project-card,
.stat-card,
.safety-card,
.quote-card,
.value-card {
  background: var(--coal);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  color: var(--white);
}

.feature-card,
.service-card,
.stat-card,
.safety-card,
.quote-card,
.value-card {
  padding: 1.25rem;
}

.feature-card .icon,
.service-card .icon,
.safety-card .icon,
.value-card .icon {
  align-items: center;
  background: rgba(0, 180, 216, 0.14);
  border-radius: 8px;
  color: var(--amber-deep);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 44px;
}

.feature-card p,
.service-card p,
.project-card p,
.safety-card p,
.quote-card p,
.value-card p {
  color: var(--muted);
}

.stat-card {
  background: var(--coal);
  color: var(--white);
  min-height: 150px;
}

.stat-card span {
  color: var(--amber);
  display: block;
  font-size: 2.6rem;
  font-weight: 850;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.stat-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.project-card {
  overflow: hidden;
}

.project-card img {
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  width: 100%;
}

.project-body {
  padding: 1.2rem;
}

.project-meta {
  align-items: center;
  color: var(--amber-deep);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.tag {
  background: rgba(0, 180, 216, 0.12);
  border-radius: 999px;
  color: var(--amber-deep);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
}

.split {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
}

.image-panel {
  border-radius: 8px;
  min-height: 460px;
  overflow: hidden;
  position: relative;
}

.image-panel img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.image-panel::after {
  background: linear-gradient(0deg, rgba(11, 13, 14, 0.62), rgba(11, 13, 14, 0.02));
  content: "";
  inset: 0;
  position: absolute;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.check-list li {
  align-items: start;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 26px minmax(0, 1fr);
}

.check-list li::before {
  background: var(--amber);
  border-radius: 8px;
  content: "";
  height: 10px;
  margin-top: 0.5rem;
  width: 10px;
}

.page-hero {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 6.5rem 0 5rem;
  position: relative;
}

.page-hero::before {
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.97), rgba(13, 13, 13, 0.78)),
    url("assets/img/main/home-hero-office.png") center / cover no-repeat;
  content: "";
  inset: 0;
  opacity: 0.78;
  position: absolute;
}

.page-hero .section-inner {
  position: relative;
}

.page-hero h1 {
  font-size: 3.7rem;
  max-width: 850px;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--white);
  font-weight: 800;
}

.process {
  counter-reset: step;
}

.process .feature-card {
  position: relative;
}

.process .feature-card::before {
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  display: inline-flex;
  font-weight: 850;
  margin-bottom: 1.2rem;
  padding: 0.35rem 0.55rem;
}

.capacity-strip {
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capacity-strip div {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.4rem;
}

.capacity-strip div:last-child {
  border-right: 0;
}

.capacity-strip strong {
  color: var(--amber);
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.gallery-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.filter-button {
  background: var(--coal);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  min-height: 42px;
  padding: 0.5rem 0.8rem;
}

.filter-button.is-active {
  background: var(--amber);
  color: var(--white);
}

.photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-tile {
  background: var(--coal);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  overflow: hidden;
}

.photo-tile img {
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
  width: 100%;
}

.photo-tile span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  padding: 0.75rem 0.85rem;
}

.contact-layout {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.45fr);
}

.contact-form {
  background: var(--coal);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  min-height: 48px;
  padding: 0.72rem 0.8rem;
  width: 100%;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--amber-deep);
  outline: 3px solid rgba(243, 180, 63, 0.22);
}

.form-status {
  border-radius: 8px;
  display: none;
  font-weight: 800;
  margin-top: 1rem;
  padding: 0.85rem;
}

.form-status.is-visible {
  background: rgba(0, 180, 216, 0.12);
  color: var(--amber-deep);
  display: block;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.detail-card {
  background: var(--coal);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  padding: 1.25rem;
}

.detail-card span {
  color: var(--amber);
  display: block;
  font-weight: 850;
  margin-bottom: 0.35rem;
}

.detail-card p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
}

.cta-band {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.cta-band::before {
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.92), rgba(13, 13, 13, 0.72)),
    url("assets/img/main/cta-team.png") center / cover no-repeat;
  content: "";
  inset: 0;
  position: absolute;
}

.cta-band .section-inner {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.35fr);
  position: relative;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
}

.site-footer {
  background: #090a0b;
  color: var(--white);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

.footer-top {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.75fr) repeat(3, minmax(150px, 0.25fr));
}

.footer-top p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.64);
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.footer-links strong {
  color: var(--white);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--amber);
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy {
  animation: heroIn 740ms ease both;
}

.trust-panel {
  animation: heroIn 880ms ease 120ms both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero,
  .hero .section-inner {
    min-height: auto;
  }

  .hero .section-inner {
    gap: 2rem;
    grid-template-columns: 1fr;
    padding-bottom: 7rem;
    padding-top: 6rem;
  }

  .trust-panel {
    margin-bottom: 0;
    max-width: 540px;
  }

  .section-header,
  .split,
  .contact-layout,
  .cta-band .section-inner {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .capacity-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    left: 0;
    padding: 0.75rem 1.5rem 1.25rem;
    position: absolute;
    right: 0;
    top: 76px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .nav-cta {
    justify-content: center;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand-mark {
    height: 44px;
    width: 44px;
  }

  .brand-copy strong {
    font-size: clamp(0.875rem, 4vw, 1rem);
  }

  .brand-copy .brand-slogan {
    font-size: clamp(0.625rem, 3vw, 0.75rem);
  }

  .brand-copy .brand-subtitle {
    display: none;
  }

  .section {
    padding: 4rem 0;
  }

  .page-hero {
    padding: 4.5rem 0 3.8rem;
  }

  .page-hero h1 {
    font-size: 3rem;
  }

  .form-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Final homepage arrangement for desktop: copy and trust panel at the top,
   followed by the centered video. */
@media (min-width: 1025px) {
  .hero .section-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr) !important;
    align-items: start !important;
    gap: 2rem 3rem;
    min-height: auto !important;
    padding-top: 2.25rem;
    padding-bottom: 3.5rem;
  }

  .hero .hero-copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    max-width: 760px;
  }

  .hero .trust-panel {
    grid-column: 2 !important;
    grid-row: 1 !important;
    order: initial !important;
    align-self: start;
    width: 100% !important;
    max-width: none;
    margin: 0;
  }

  .hero .homepage-video-section {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    order: initial !important;
    width: 100% !important;
    margin: 0 !important;
    padding-top: 0;
  }

  .hero .homepage-video {
    width: min(100%, 900px) !important;
    margin-inline: auto !important;
  }

  .hero .homepage-video {
    width: min(100%, 820px) !important;
  }
}

/* Keep iPad landscape and smaller tablets from using the cramped desktop hero grid. */
@media (max-width: 1400px) {
  .hero,
  .hero .section-inner {
    min-height: auto;
  }

  .hero .section-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .hero-copy {
    width: 100%;
    max-width: 900px;
  }

  .hero .homepage-video-section {
    grid-column: auto;
    order: 2;
    width: 100%;
    margin-left: 0;
  }

  .trust-panel {
    order: 3;
    width: 100%;
    max-width: 620px;
  }
}

/* The video is a standalone block directly below the request buttons. */
.hero .homepage-video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: none;
  margin-left: 0;
  padding-inline: 0;
}

.hero .homepage-video-section::before {
  display: none;
}

.hero .homepage-video {
  width: min(100%, 960px);
  margin: 0 auto;
}

.hero .homepage-video-header {
  width: min(100%, 760px);
  margin: 2rem auto 0;
}

/* Final hero layout: one predictable reading column on every device. */
.hero .section-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 2.5rem;
  min-height: auto !important;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hero .hero-copy,
.hero .homepage-video-section,
.hero .trust-panel {
  grid-column: auto !important;
  width: 100% !important;
  margin-left: 0 !important;
}

.hero .hero-copy {
  max-width: 900px;
}

.hero .homepage-video-section {
  order: 2 !important;
  align-self: center;
}

.hero .trust-panel {
  order: 3 !important;
  max-width: 620px;
}

.hero .homepage-video {
  width: min(100%, 960px) !important;
  margin-inline: auto !important;
}

/* Tablet and phone layout safety */
@media (max-width: 1024px) {
  html,
  body {
    overflow-x: hidden;
  }

  .section-inner,
  .nav-shell,
  .footer-inner {
    max-width: 100%;
  }

  .hero .section-inner {
    padding-left: clamp(1.25rem, 4vw, 3rem);
    padding-right: clamp(1.25rem, 4vw, 3rem);
  }

  .hero-copy,
  .trust-panel,
  .section-header > *,
  .split > * {
    min-width: 0;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }
}

@media (min-width: 781px) and (max-width: 1024px) {
  .site-header .nav-shell {
    gap: 1rem;
  }

  .site-nav {
    gap: .35rem;
  }

  .site-nav a {
    padding-left: .65rem;
    padding-right: .65rem;
  }

  .hero .section-inner {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .homepage-video-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* iPad landscape and smaller laptop widths: preserve the desktop hierarchy
   while giving the hero copy and video their own full-width rows. */
@media (min-width: 1025px) and (max-width: 1300px) {
  .hero,
  .hero .section-inner {
    min-height: auto;
  }

  .hero .section-inner {
    gap: 2.5rem;
    grid-template-columns: 1fr;
    padding-bottom: 5rem;
    padding-top: 5rem;
  }

  .hero-copy {
    max-width: 820px;
  }

  .trust-panel {
    max-width: 620px;
  }

  .hero .homepage-video-section {
    grid-column: 1;
  }

  .homepage-video-section {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero .section-inner {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .hero-copy h1 {
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .trust-panel,
  .card,
  .service-card,
  .project-card {
    width: 100%;
  }

  .homepage-video-section::before {
    inset: .65rem;
  }

  .homepage-video-header {
    margin-top: 1.5rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .nav-shell,
  .section-inner,
  .footer-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .page-hero h1 {
    font-size: 2.45rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-grid,
  .capacity-strip {
    grid-template-columns: 1fr;
  }

  .capacity-strip div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
  }

  .image-panel {
    min-height: 320px;
  }
}

/* Homepage hero refinement: place the company panel beside the main copy
   and keep the video as the next full-width, centered block. */
@media (min-width: 1025px) {
  .hero .section-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr) !important;
    align-items: start !important;
    gap: 2rem 3rem;
    min-height: auto !important;
    padding-top: 2.25rem;
    padding-bottom: 3.5rem;
  }

  .hero .hero-copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    max-width: 760px;
  }

  .hero .trust-panel {
    grid-column: 2 !important;
    grid-row: 1 !important;
    order: initial !important;
    align-self: start;
    width: 100% !important;
    max-width: none;
    margin: 0;
  }

  .hero .homepage-video-section {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    order: initial !important;
    width: 100% !important;
    margin: 0 !important;
    padding-top: 0;
  }

  .hero .homepage-video {
    width: min(100%, 900px) !important;
    margin-inline: auto !important;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
.homepage-video-section {
  background: transparent;
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1rem, 4vw, 3rem);
  position: relative;
  width: 100vw;
  left: auto;
  margin-left: calc(50% - 50vw);
  transform: none;
}

.hero .homepage-video-section {
  grid-column: 1 / -1;
}

.hero .homepage-video-section .section-inner {
  display: block;
  grid-template-columns: none;
  min-height: 0;
  width: 100%;
}

.homepage-video-section::before {
  border: 1px solid rgba(255, 255, 255, .08);
  content: "";
  inset: 1rem;
  pointer-events: none;
  position: absolute;
}

.homepage-video-header {
  justify-content: center;
  text-align: center;
}

.homepage-video-header > div {
  max-width: 760px;
  margin-inline: auto;
}

.homepage-video {
  width: min(100%, 1040px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: #050505;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.homepage-video-header {
  margin-top: 2rem;
}

.homepage-video video {
  display: block;
  width: 100%;
  max-height: 720px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 780px) {
  .homepage-video-section {
    width: 100%;
    margin-left: 0;
    padding: 2rem .85rem 2.5rem;
  }

  .homepage-video {
    width: 100%;
    border-radius: 12px;
    display: block;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .homepage-video video {
    aspect-ratio: 16 / 9;
    max-height: none;
  }
}
/* Project portfolio */
.project-grid {
  align-items: stretch;
}

.project-card-link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

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

.project-card-link:hover,
.project-card-link:focus-visible {
  border-color: var(--amber);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.project-card-link:focus-visible,
.project-gallery-item:focus-visible,
.project-back:focus-visible,
.project-lightbox button:focus-visible {
  outline: 3px solid var(--amber-deep);
  outline-offset: 3px;
}

.project-card-link img {
  transition: transform 350ms ease;
}

.project-card-link:hover img {
  transform: scale(1.03);
}

.project-card-link .project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-card-link .project-body h3 {
  line-height: 1.2;
  margin: 0 0 0.55rem;
}

.project-card-link .project-body p {
  margin: 0 0 1.3rem;
}

/* Neutralise an older WordPress Custom CSS rule that rewrites card two. */
main .project-card.project-card-link:nth-child(2) .project-meta {
  font-size: 0.9rem;
}

main .project-card.project-card-link:nth-child(2) .project-meta .tag {
  font-size: 0.85rem;
}

main .project-card.project-card-link:nth-child(2) h3 {
  font-size: 1.25rem;
}

main .project-card.project-card-link:nth-child(2) p {
  font-size: 1rem;
}

main .project-card.project-card-link:nth-child(2) .project-meta::after,
main .project-card.project-card-link:nth-child(2) .project-meta .tag::after,
main .project-card.project-card-link:nth-child(2) h3::after,
main .project-card.project-card-link:nth-child(2) p::after {
  content: none;
  display: none;
}

/* The homepage Watson card replaces the legacy WordPress CSS-only card. */
main .project-card.project-card--watson .project-meta {
  font-size: 0.9rem !important;
}

main .project-card.project-card--watson .project-meta .tag {
  font-size: 0.85rem !important;
}

main .project-card.project-card--watson h3 {
  font-size: 1.25rem !important;
}

main .project-card.project-card--watson p {
  font-size: 1rem !important;
}

main .project-card.project-card--watson .project-meta::after,
main .project-card.project-card--watson .project-meta .tag::after,
main .project-card.project-card--watson h3::after,
main .project-card.project-card--watson p::after {
  content: none !important;
  display: none !important;
}

.project-card--watson .project-builder-line {
  color: var(--amber-deep);
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 0.85rem;
}

.project-card-action {
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--amber-deep);
  display: flex;
  font-size: 0.85rem;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 0.85rem;
  text-transform: uppercase;
}

.project-detail-hero {
  background: var(--coal);
  display: flex;
  min-height: clamp(430px, 58vh, 680px);
  overflow: hidden;
  position: relative;
}

.project-detail-hero-image,
.project-detail-shade {
  inset: 0;
  position: absolute;
}

.project-detail-hero-image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.project-detail-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.15)), linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 70%);
}

.project-detail-hero-content {
  align-self: end;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  padding-top: 7rem;
  position: relative;
  width: 100%;
  z-index: 1;
}

.project-detail-hero h1 {
  color: var(--white);
  max-width: 850px;
}

.project-hero-builder {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.25rem 0 0;
}

.project-overview-grid {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.65fr);
}

.project-overview h2 {
  max-width: 760px;
}

.project-bio {
  color: var(--concrete);
  font-size: 1.12rem;
  line-height: 1.8;
  max-width: 780px;
}

.project-back {
  color: var(--amber-deep);
  display: inline-block;
  font-weight: 800;
  margin-top: 1.2rem;
}

.project-facts {
  background: var(--coal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.project-facts > div + div {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.project-facts span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.project-facts strong {
  color: var(--white);
  display: block;
}

.project-facts ul {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.project-facts li {
  color: var(--white);
  padding: 0.18rem 0;
}

.project-gallery-section {
  background: var(--iron);
}

.project-gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-gallery-item {
  background: var(--coal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
  overflow: hidden;
  position: relative;
}

.project-gallery-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 350ms ease;
  width: 100%;
}

.project-gallery-item:hover img {
  transform: scale(1.04);
}

.project-gallery-item span {
  background: rgba(0, 0, 0, 0.72);
  bottom: 0;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  left: 0;
  padding: 0.55rem 0.85rem;
  position: absolute;
  right: 0;
}

.project-gallery-item span span {
  background: none;
  display: inline;
  float: right;
  padding: 0;
  position: static;
}

.project-lightbox {
  background: #090a0b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  max-height: 96vh;
  max-width: min(96vw, 1500px);
  overflow: hidden;
  padding: 2.8rem 3.4rem 2rem;
  text-align: center;
}

.project-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.project-lightbox img {
  height: auto;
  margin: auto;
  max-height: calc(96vh - 7rem);
  max-width: 100%;
  object-fit: contain;
}

.project-lightbox button {
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--white);
  font-size: 2rem;
  height: 42px;
  line-height: 1;
  position: absolute;
  width: 42px;
}

.project-lightbox-close {
  right: 0.5rem;
  top: 0.5rem;
}

.project-lightbox-prev,
.project-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.project-lightbox-prev {
  left: 0.5rem;
}

.project-lightbox-next {
  right: 0.5rem;
}

.project-lightbox p {
  color: var(--muted);
  margin: 0.55rem 0 0;
}

@media (max-width: 820px) {
  .project-overview-grid {
    grid-template-columns: 1fr;
  }
  .project-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .project-detail-hero {
    min-height: 480px;
  }
  .project-detail-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.12));
  }
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }
  .project-lightbox {
    max-width: 100vw;
    padding: 3rem 0.5rem 2rem;
    width: 100vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card-link,
  .project-card-link img,
  .project-gallery-item img {
    transition: none;
  }
}

/* Builder marks stay legible across dark cards, filters, and hero photography. */
.builder-logos {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 100%;
  vertical-align: middle;
}

.builder-logo {
  align-items: center;
  background: #f6f7f8;
  border-radius: 4px;
  display: inline-flex;
  justify-content: center;
  min-height: 38px;
  padding: 5px 8px;
}

.builder-logo--dark {
  background: #181b20;
  border: 1px solid #6b7078;
}

.builder-logo--wide {
  gap: 6px;
  padding-inline: 10px;
}

.builder-logo-wordmark {
  color: #17314a;
  font: 700 15px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.filter-button--logo .builder-logo-wordmark {
  font-size: 13px;
}

.builder-logo img,
.project-card .builder-logo img {
  aspect-ratio: auto;
  display: block;
  height: 28px;
  max-width: min(140px, 100%);
  object-fit: contain;
  width: auto;
}

.project-card-link:hover .builder-logo img {
  transform: none;
}

.filter-button--logo {
  padding: 3px;
}

.filter-button--logo .builder-logo {
  min-height: 34px;
}

.filter-button--logo .builder-logo img {
  height: 24px;
  max-width: 120px;
}

.project-hero-builder {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.builder-logos--hero .builder-logo {
  min-height: 50px;
}

.builder-logos--hero .builder-logo img {
  height: 40px;
  max-width: 180px;
}

.project-facts .builder-logos {
  display: flex;
  margin: 0;
}

.project-facts .builder-logo {
  display: inline-flex;
  margin: 0;
}

.project-facts .builder-logo img {
  height: 32px;
  max-width: 140px;
}

.social-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.social-link,
.site-nav .social-link {
  align-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 30px 30px;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.social-link svg,
.social-link img {
  display: none;
}

.social-youtube { background-image: url("assets/img/social/youtube.svg?ver=red-square-20261004"); }
.social-instagram { background-image: url("assets/img/social/instagram.svg"); }
.social-linkedin { background-image: url("assets/img/social/linkedin.svg"); }
.social-tiktok { background-image: url("assets/img/social/tiktok.svg"); }
.social-douyin { background-image: url("assets/img/social/douyin.svg"); }
.social-rednote { background-image: url("assets/img/social/rednote.svg"); }

.social-link .sr-only {
  display: none;
}

.site-nav .social-links {
  align-self: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  height: 32px;
  justify-content: center;
  margin-left: 0.25rem;
  white-space: nowrap;
}

.site-nav .social-link {
  flex: 0 0 32px;
}

@media (min-width: 781px) and (max-width: 1200px) {
  .site-nav .social-links {
    display: none;
  }
}

@media (max-width: 780px) {
  .site-nav .social-links {
    justify-content: center;
    margin: 0.5rem 0 0;
    width: 100%;
  }
}

/* Builder links below the home page video. */
.homepage-builder-links {
  margin: 2rem auto 0;
  max-width: 1040px;
  text-align: center;
  width: 100%;
}

.homepage-builder-links h2 {
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 0 0 1rem;
}

.homepage-builder-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.homepage-builder-link {
  background: #171a1c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: inline-flex;
  padding: 3px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.homepage-builder-link:hover,
.homepage-builder-link:focus-visible {
  border-color: #22a7d4;
  transform: translateY(-2px);
}

.homepage-builder-link:focus-visible {
  outline: 2px solid #22a7d4;
  outline-offset: 3px;
}

.homepage-builder-link .builder-logo {
  min-height: 42px;
}

.homepage-builder-link .builder-logo img {
  height: 30px;
  max-width: 150px;
}

#project-gallery {
  scroll-margin-top: 100px;
}

@media (max-width: 780px) {
  .homepage-builder-links {
    margin-top: 1.5rem;
  }

  .homepage-builder-grid {
    gap: 0.5rem;
  }

  .homepage-builder-link .builder-logo img {
    height: 24px;
    max-width: 115px;
  }
}

@media (max-width: 420px) {
  .brand { gap: 0.5rem; }
  .brand-mark { height: 40px; width: 40px; }
}
