/* KD Groups — concept-matched tokens from mockup (#C59332 gold) */
:root {
  --black: #000000;
  --black-soft: #0a0a0a;
  --charcoal: #111111;
  --gold: #c59332;
  --gold-bright: #d4a017;
  --white: #ffffff;
  --muted: #e6e6e6;
  --roof-bg: #ffffff;
  --roof-muted: #f3f3f3;
  --text-dark: #111111;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Great Vibes", cursive;
  --header-h: 72px;
  --ease: 180ms ease;
  --max: 1240px;
  --diag: 14deg;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  /* Subpixel AA — sharper than antialiased on most displays */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

h1,
h2,
h3,
.hero-title,
.band-title,
.roofing__title,
.nav a,
.btn-cta {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

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

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

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

p {
  margin: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--black);
  border-bottom: 1px solid var(--gold);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand__mark {
  width: auto;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  transform: none;
  filter: none;
}

.brand__name,
.brand__sub {
  /* Keep header brand on subpixel AA — antialiased + tiny caps blur Playfair */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "kern" 1;
  transform: none;
  filter: none;
  backface-visibility: visible;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--white);
}

.brand__sub {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.nav a {
  position: relative;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.4rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a:focus-visible {
  outline: none;
  color: var(--gold);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  transition: background var(--ease);
}

.btn-cta:hover {
  filter: none;
  background: var(--gold-bright);
}

.btn-cta:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(197, 147, 50, 0.5);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--gold);
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========== DIAGONAL SPLIT SECTIONS ========== */
.split {
  position: relative;
  isolation: isolate;
  min-height: 460px;
  overflow: hidden;
  background: var(--black);
}

.split--hero {
  min-height: clamp(420px, 72vh, 640px);
}

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

.split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.split__panel {
  position: relative;
  z-index: 2;
  width: min(52%, 640px);
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.75rem);
  background: #050505;
  /* diagonal cut */
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  /* Keep text off GPU layers that softens glyphs */
  transform: none;
  filter: none;
}

.split__panel::before {
  /* gold diagonal edge */
  content: "";
  position: absolute;
  top: -5%;
  right: 10.5%;
  width: 2px;
  height: 115%;
  background: var(--gold);
  transform: skewX(-18deg);
  pointer-events: none;
}

.split--hero .split__panel {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(40, 34, 22, 0.45), transparent 60%),
    linear-gradient(180deg, #0c0c0c 0%, #050505 100%);
  width: min(50%, 600px);
  clip-path: polygon(0 0, 100% 0, 76% 100%, 0 100%);
}

.split--hero .split__panel::before {
  right: 11.5%;
}

.split--mining {
  border-top: 2px solid var(--gold);
}

.split--mining .split__panel {
  background: #000;
  width: min(48%, 560px);
}

.split--infra .split__panel {
  width: min(46%, 540px);
  background: linear-gradient(90deg, #000 70%, rgba(0, 0, 0, 0.55) 100%);
  clip-path: none;
}

.split--infra .split__panel::before {
  display: none;
}

.split--infra .split__photo img {
  object-position: center center;
}

/* Hero type */
.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-eyebrow .w {
  color: var(--white);
}
.hero-eyebrow .g {
  color: var(--gold);
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.hero-title span {
  display: block;
  color: var(--gold);
}

.hero-rule {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, 220px);
  margin: 1.15rem 0 1rem;
}

.hero-rule::before,
.hero-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
}

.hero-rule__diamond {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  background: transparent;
}

.hero-tagline {
  margin: 0 0 1.75rem;
  font-family: var(--font-script);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  color: var(--gold);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.hero-sectors {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

/* Band titles (mining / infra) */
.band-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.band-head:has(.band-text) {
  margin-bottom: 0;
}

.band-head__icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.band-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.12;
  text-transform: uppercase;
}

.band-title .line {
  display: block;
}
.band-title .gold {
  color: var(--gold);
}

.band-rule {
  width: 72px;
  height: 2px;
  background: var(--gold);
  margin: 0.55rem 0 0.65rem;
}

.band-head__copy {
  min-width: 0;
}

.band-head .band-text {
  margin: 0;
  max-width: 38ch;
}

.band-text,
.about-why p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.015em;
  color: #d8d8d8;
}

.band-text {
  max-width: 34ch;
}

.about-why p {
  max-width: 52ch;
}

/* ========== ROOFING ========== */
.roofing {
  background: var(--roof-bg);
  color: var(--text-dark);
  padding: 3.75rem 0 0;
}

.roofing__top {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem 2.5rem;
  align-items: center;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.roofing__intro {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.roofing__intro-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.roofing__icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.roofing__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
}

.roofing__title .gold {
  display: block;
  color: var(--gold);
}

.roofing__rule {
  width: 110px;
  height: 2px;
  background: var(--gold);
  margin: 0.55rem 0 0.9rem;
}

.roofing__text {
  max-width: 38ch;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.015em;
  color: #2a2a2a;
}

.roofing__fan {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.16));
}

.colours {
  margin-top: 2.5rem;
  text-align: center;
  padding-bottom: 1.75rem;
}

.colours__img {
  display: block;
  width: min(100% - 2rem, 640px);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.colours__label {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111;
}

.colours__label::before,
.colours__label::after {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--gold);
}

.colours__label::before {
  box-shadow: -6px 0 0 var(--gold);
}
.colours__label::after {
  box-shadow: 6px 0 0 var(--gold);
}

/* Accessories bar — gold chevron + 3 equal cells (icon | label) */
.accessories {
  display: grid;
  grid-template-columns: minmax(150px, 190px) 1fr;
  align-items: stretch;
  width: min(100% - 2rem, var(--max));
  margin: 1.25rem auto 0;
  min-height: 96px;
  border: 1px solid #d8d8d8;
  background: #ffffff;
  overflow: hidden;
}

.accessories__label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem 0.85rem 0.9rem;
  background: var(--gold);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}

.accessories__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  background: #ffffff;
}

.accessories__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border-left: 1px solid #c8c8c8;
  text-align: left;
  min-height: 96px;
}

.accessories__item:first-child {
  border-left: none;
}

.accessories__item img {
  height: 56px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.accessories__item figcaption {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  white-space: nowrap;
}

.roofing__spacer {
  height: 2.25rem;
  background: var(--roof-bg);
}

/* ========== ABOUT / WHY + FOOTER ========== */
.site-end {
  background: var(--black);
  border-top: 1px solid var(--gold);
}

.about-why {
  padding: 3.5rem 0;
}

.about-why__grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-why__rule {
  background: var(--gold);
  width: 1px;
  align-self: stretch;
  opacity: 0.85;
}

.block-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.block-head:has(.block-head__copy > p) {
  margin-bottom: 0;
}

.block-head__copy {
  min-width: 0;
}

.block-head:not(:has(.block-head__copy)) {
  align-items: center;
}

.block-head__copy p {
  margin: 0;
}

.block-head img {
  width: 52px;
  height: 52px;
}

.block-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.block-head .block-head__copy h2 {
  margin: 0 0 0.75rem;
}

.why-list {
  display: grid;
  gap: 0.65rem;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
}

.why-list li img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.contact-bar {
  border-top: 1px solid var(--gold);
  padding: 1.75rem 0 1.5rem;
}

.contact-bar__grid {
  display: grid;
  grid-template-columns: 1.1fr 1px 1.4fr;
  gap: 1.5rem 1.75rem;
  align-items: center;
}

.contact-bar__vline {
  background: var(--gold);
  width: 1px;
  align-self: stretch;
  opacity: 0.85;
}

.contact-brand .brand__name {
  font-size: 1.2rem;
}

.contact-sectors {
  margin-top: 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.office-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.office-head__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--gold);
}

.office-head__copy {
  min-width: 0;
  padding-top: 0.1rem;
  font-family: var(--font-sans);
}

.office-head__title {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.1;
}

.office-addr {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
}

.office-addr__company {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--white);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.office-addr__line {
  display: block;
  color: #d4d4d4;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.office-addr__line + .office-addr__line {
  margin-top: 0.05rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(197, 147, 50, 0.35);
  grid-column: 1 / -1;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: #d4d4d4;
}

.contact-links a:hover {
  color: var(--gold);
}

.contact-links svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-links__sep {
  width: 1px;
  height: 14px;
  background: var(--gold);
  opacity: 0.7;
}

.legal {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(197, 147, 50, 0.2);
  text-align: center;
  font-size: 0.72rem;
  color: #777;
}

/* ========== MOTION ========== */
@media (prefers-reduced-motion: no-preference) {
  /* Opacity-only on text panels — transform on text causes GPU blur */
  .split__panel {
    animation: fade-in 0.55s ease both;
  }

  .split__photo img {
    animation: ken 14s ease-in-out alternate infinite;
    will-change: transform;
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes ken {
    from {
      transform: scale(1);
    }
    to {
      transform: scale(1.04);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .split__panel,
  .split__photo img {
    animation: none !important;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .nav-toggle {
    display: block;
  }
  .header-cta {
    display: none;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--gold);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--ease), opacity var(--ease);
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: 0.95rem 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .split,
  .split--hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .split__photo {
    position: relative;
    order: 1;
    min-height: 240px;
  }
  .split__photo img {
    min-height: 240px;
  }
  .split__panel,
  .split--hero .split__panel,
  .split--mining .split__panel,
  .split--infra .split__panel {
    order: 2;
    width: 100%;
    clip-path: none;
    min-height: 0;
    padding: 2.25rem 1.35rem;
  }
  .split__panel::before {
    display: none;
  }

  .roofing__top {
    grid-template-columns: 1fr;
  }
  .roofing__fan {
    margin-inline: auto;
  }
  .accessories {
    grid-template-columns: 1fr;
  }
  .accessories__label {
    clip-path: none;
    padding: 0.85rem;
  }
  .accessories__item {
    justify-content: flex-start;
    padding-left: 1.25rem;
  }
  .about-why__grid,
  .contact-bar__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-why__rule,
  .contact-bar__vline {
    width: 100%;
    height: 1px;
  }
}

@media (max-width: 575px) {
  .brand__meta {
    display: none;
  }
  .accessories__items {
    grid-template-columns: 1fr;
  }
  .accessories__item {
    border-left: none;
    border-top: 1px solid #c8c8c8;
    min-height: 80px;
  }
  .accessories__item:first-child {
    border-top: none;
  }
  .hero-sectors {
    letter-spacing: 0.1em;
  }
  .contact-links__sep {
    display: none;
  }
}
