:root {
  /* General */
  --radius: 6px;

  /* Page Layout */
  --section-padding-v: 80px;
  --section-inner-max-width: 1200px;
  --section-inner-padding-h-min: 16px;
  --section-inner-padding-h-max: 24px;
  --section-inner-gap-h: 120px;
  --section-inner-gap-v: 32px;

  /* Colours */
  --primary: #0076d6;
  --primary-hover: #005eaa;
  --secondary: #495474;
  --page-background-primary: #060910;
  --page-background-secondary: #0a0d15;
  --font-subtle: #e5e9ed;
  --font-main: white;
  --border-colour: rgba(255, 255, 255, 0.1);

  /* Typography */
  --base-font-size: 1rem;
  --h1-scale: 1.8;
  --h2-scale: 1.75;
  --h3-scale: 1;
  --h4-scale: 1.5;
  --h5-scale: 1.25;
  --h6-scale: 1;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  scroll-padding-top: 86px;
  margin: 0px;
  padding: 0px;
  background-color: var(--page-background-primary);
  color: var(--font-subtle);
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
}

input,
textarea {
  font-family: "Montserrat", sans-serif !important;
  font-optical-sizing: auto;
}

button {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
}

p,
ul,
ol,
li {
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--font-main);
}

h1 {
  font-size: clamp(
    calc(var(--base-font-size) * 1.5),
    calc(var(--base-font-size) * var(--h1-scale) + 1vw),
    calc(var(--base-font-size) * 3)
  );
}

h2 {
  font-size: clamp(
    calc(var(--base-font-size) * 1.2),
    calc(var(--base-font-size) * var(--h2-scale) + 0.8vw),
    calc(var(--base-font-size) * 2)
  );
}

h3 {
  font-size: clamp(
    calc(var(--base-font-size) * 1),
    calc(var(--base-font-size) * var(--h3-scale) + 0.6vw),
    calc(var(--base-font-size) * 2)
  );
}

h4 {
  font-size: clamp(
    calc(var(--base-font-size) * 0.8),
    calc(var(--base-font-size) * var(--h4-scale) + 0.4vw),
    calc(var(--base-font-size) * 1.3)
  );
}

h5 {
  font-size: clamp(
    calc(var(--base-font-size) * 0.7),
    calc(var(--base-font-size) * var(--h5-scale) + 0.2vw),
    calc(var(--base-font-size) * 1.5)
  );
}

h6 {
  font-size: clamp(
    calc(var(--base-font-size) * 0.6),
    calc(var(--base-font-size) * var(--h6-scale) + 0.1vw),
    calc(var(--base-font-size) * 1.3)
  );
}

/* Generic Styling */

ul {
  padding-left: 16px;
}

img {
  max-width: 100%;
}

.button {
  color: var(--font-main);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  background: var(--secondary);
  border-radius: var(--radius);
  outline: none;
  border: none;
  text-align: center;
}

.button-small {
  padding: 8px 16px;
}

.button-primary {
  background: var(--primary);
  transition: 0.2s;
  cursor: pointer;
}

.button-primary:hover {
  background: var(--primary-hover);
  transform: scale(1.03);
}

/* Layout Styling */

body > section {
  padding: var(--section-padding-v) 0px;
  scroll-padding-top: 86px;
}

.section-inner {
  max-width: var(--section-inner-max-width);
  padding: 0px
    clamp(
      var(--section-inner-padding-h-min),
      2.5vw,
      var(--section-inner-padding-h-max)
    );
  margin: 0px auto;
}

/* Header Styling */
header {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 16px 0px;
  background: var(--page-background-primary);
  border-bottom: solid 1px var(--border-colour);
}

header a.logo {
  max-width: 75%;
}

header.scrolled img {
  cursor: pointer;
}

header .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.main-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  margin: 20px 0px 8px;
  gap: 12px;
}

.main-nav.open {
  display: flex;
}

.main-nav a {
  text-decoration: none;
  color: var(--font-subtle);
  text-align: center;
  font-size: 18px;
}

.main-nav a:hover {
  color: var(--font-main);
}

/* Banner Styling */
#banner {
  position: relative;
  color: var(--font-main);
  background: black;
  padding: 80px 0px;
}

#banner .section-inner {
  position: relative;
  z-index: 2;
}
#banner > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  opacity: 0.5;
}

#banner h1 {
  margin-bottom: 0px;
  max-width: 920px;
}

#banner a.button {
  margin-top: 1rem;
  display: inline-block;
}

/* Intro Styling */
#intro {
  background-color: var(--page-background-secondary);
}

#intro .section-inner {
  display: flex;
  flex-direction: column;
  gap: var(--section-inner-gap-v);
}

.intro-right {
  background-color: var(--page-background-primary);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intro-right > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  color: var(--font-main);
}

.intro-right > div p {
  font-weight: 500;
  margin: 0px;
}

.intro-right i {
  color: var(--primary);
  font-size: 24px;
}

/* Services Styling */
.service-section {
  background: var(--page-background-secondary);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 20px;
}

.service-section img,
.service-section video {
  width: 100%;
}

.service-section-text {
  padding: 20px;
}

.service-section-text h2 {
  margin-top: 0px;
}

/* Gallery Styling */
#gallery {
  background-color: var(--page-background-secondary);
}

#gallery-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

#gallery .subheading {
  margin-top: 0px;
}

#gallery-inner > a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

#gallery-inner > a > img {
  width: 100%;
  transition: 0.2s;
  aspect-ratio: 1;
  object-fit: cover;
}

#gallery-inner img:hover {
  opacity: 0.64;
  transform: scale(1.1);
}

/* Contact Styling */

#contact .section-inner {
  display: flex;
  flex-direction: column;
  gap: var(--section-inner-gap-v);
}

.contact-left-details {
  margin-top: 40px;
  p,
  a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
  }
  i {
    color: var(--primary);
    margin-right: 12px;
  }
}

.contact-right {
  padding: 20px;
  background: var(--page-background-secondary);
  border-radius: 8px;
  box-sizing: border-box;
  border: solid 1px var(--border-colour);
}

.contact-right .button {
  margin-top: 8px;
}

.contact-right form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  display: flex;
  flex-direction: column;
}

label,
legend {
  font-weight: 500;
  font-size: 16px;
}

input,
textarea {
  transition: 0.2s;
  border-radius: 6px;
  padding: 12px 12px;
  margin-top: 8px;
  color: white;
  font-size: 16px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  border: solid 1px var(--border-colour);
  resize: vertical;
}

input:hover,
textarea:hover {
  background: rgba(255, 255, 255, 0.08);
}

input[type="checkbox"] {
  margin: 0px 8px 0px 0px;
}

.services-radio label {
  color: white;
  font-weight: normal;
  font-size: 16px;
}

fieldset {
  border: none;
  padding: 0px;
  margin: 0px;
}

fieldset > div {
  display: flex;
  flex-direction: row;
  margin-top: 12px;
}

/* Footer Styling */
footer p {
  text-align: center;
  font-size: 12px;
  margin: 0px;
  padding: 24px 0px;
  border-top: solid 1px var(--border-colour);
}

/* MEDIA QUERIES */

@media screen and (min-width: 800px) {
  /* Nav/Header */

  .main-nav {
    flex-direction: row;
    width: auto;
    display: inline-flex !important;
    align-items: center;
    margin: 0px;
    gap: 28px;
  }
  .main-nav a {
    font-size: 16px;
  }

  i.toggle-nav {
    display: none !important;
  }
  /* Banner Section */
  #banner {
    padding: 120px 0px;
  }

  /* Intro Section */
  #intro .section-inner {
    flex-direction: row;
    align-items: center;
    gap: 80px;
  }
  .intro-left,
  .intro-right {
    width: 50%;
  }

  /* Services Section */

  .service-section {
    display: flex;
    flex-direction: row;
    margin-top: 80px;
    border: solid 1px var(--border-colour);
  }

  .service-section:nth-of-type(even) {
    flex-direction: row-reverse;
  }

  .service-section-text {
    padding: 64px;
    width: 55%;
    box-sizing: border-box;
  }

  .service-section img,
  .service-section video {
    object-fit: cover;
    width: 45%;
  }

  /* Gallery Responsive */
  #gallery-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Contact Section */
  #contact .section-inner {
    flex-direction: row;
    align-items: center;
    gap: 80px;
  }

  .contact-left,
  .contact-right {
    width: 50%;
  }

  .contact-right {
    padding: 40px;
  }
}
