:root {
  --ink: #071124;
  --muted: #526071;
  --line: #d7dee8;
  --blue: #0c4f93;
  --electric: #2d8dd6;
  --steel: #eef3f8;
}

* {
  box-sizing: border-box;
}

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

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

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

.header {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  min-height: 112px;
  padding: 14px max(16px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(7, 17, 36, .12);
  background: #fff;
  box-shadow: 0 14px 40px rgba(7, 17, 36, .08);
}

.header img {
  width: min(500px, 48vw);
}

.header a:first-child {
  padding: 0;
  position: relative;
}

.header a:first-child::before {
  display: none;
}

nav {
  display: flex;
  gap: 22px;
  color: #253145;
  font-size: .92rem;
  font-weight: 800;
}

.hero {
  min-height: 570px;
  padding: 104px max(16px, calc((100vw - 1180px) / 2)) 90px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
  background: linear-gradient(108deg, rgba(7,17,36,.96), rgba(7,17,36,.62)), var(--ink);
}

.hero.fitout {
  background-image: linear-gradient(108deg, rgba(7,17,36,.96), rgba(7,17,36,.5)), url("projects/green-life-eastland.jpg");
  background-size: cover;
  background-position: center;
}

.hero.homes {
  background-image: linear-gradient(108deg, rgba(7,17,36,.96), rgba(7,17,36,.5)), url("https://www.emmselectrical.com.au/images/banners/45ca4e50dd.jpg");
  background-size: cover;
  background-position: center;
}

.hero.reno {
  background-image: linear-gradient(108deg, rgba(7,17,36,.96), rgba(7,17,36,.5)), url("https://www.emmselectrical.com.au/images/banners/f526b9d3b2.jpg");
  background-size: cover;
  background-position: center;
}

.hero p {
  margin: 0 0 18px;
  color: #b8dfff;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  max-width: 930px;
  margin: 0 0 28px;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  padding: 0 22px;
  align-items: center;
  border-radius: 4px;
  color: #fff;
  font-weight: 900;
  background: var(--electric);
}

.content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 42px;
  display: grid;
  grid-template-columns: 1.1fr .72fr;
  gap: 34px;
}

.content p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

aside {
  padding: 28px;
  border-radius: 8px;
  color: #fff;
  background: #101a2a;
}

aside strong {
  display: block;
  margin-bottom: 16px;
  color: #8cc9ff;
  font-size: .82rem;
  text-transform: uppercase;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

.split {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 92px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.split article {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.split p {
  margin: 0;
  color: var(--muted);
}

.photo-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 92px;
}

.photo-strip h2 {
  max-width: 820px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 18px;
}

.photo-grid figure {
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(7, 17, 36, .08);
}

.photo-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.photo-grid figure:first-child img {
  height: 420px;
}

.photo-grid figcaption {
  padding: 16px 18px 18px;
  color: #263346;
  font-weight: 900;
}

footer {
  padding: 36px max(16px, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: #c9d4e2;
  background: var(--ink);
}

footer a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 820px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
    position: relative;
    background: #071124;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .content, .split, .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid img,
  .photo-grid figure:first-child img {
    height: auto;
    aspect-ratio: 16 / 11;
  }

  .hero {
    min-height: 500px;
    padding-top: 70px;
  }

  .header img {
    width: min(340px, 86vw);
  }
}
