/* ------------------------------
   COLOURS AND GLOBAL SETTINGS
------------------------------ */

:root {
  --navy: #102a43;
  --blue: #1677ff;
  --blue-dark: #0d5dcc;
  --orange: #f59e0b;
  --white: #ffffff;
  --off-white: #f6f8fb;
  --light-grey: #e5e7eb;
  --grey: #5f6b7a;
  --dark: #17212b;
  --shadow: 0 10px 30px rgba(16, 42, 67, 0.12);
  --radius: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.2;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 2.7rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

p {
  margin-bottom: 16px;
}

section {
  padding: 80px max(24px, calc((100% - var(--max-width)) / 2));
}


/* ------------------------------
   HEADER AND NAVIGATION
------------------------------ */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(24px, calc((100% - var(--max-width)) / 2));
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

header .logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

header nav a {
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

header nav a:hover {
  color: var(--orange);
}

header > a:last-child {
  display: inline-block;
  padding: 11px 18px;
  color: var(--navy);
  background: var(--orange);
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

header > a:last-child:hover {
  background: #ffb11f;
  transform: translateY(-2px);
}


/* ------------------------------
   HERO SECTION
------------------------------ */

#home {
  min-height: 660px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
  background:
    linear-gradient(
      90deg,
      rgba(10, 31, 49, 0.97) 0%,
      rgba(16, 42, 67, 0.92) 55%,
      rgba(16, 42, 67, 0.78) 100%
    ),
    url("images/brad.jpeg") center/cover no-repeat;
}

#home > p:first-child {
  margin-bottom: 16px;
  color: var(--orange);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#home h1 {
  max-width: 780px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(2.7rem, 6vw, 5rem);
  letter-spacing: -0.04em;
}

#home h1 + p {
  max-width: 680px;
  margin-bottom: 32px;
  color: #e6edf5;
  font-size: 1.2rem;
}

#home a {
  display: inline-block;
  min-width: 165px;
  margin: 6px 10px 6px 0;
  padding: 14px 22px;
  border: 2px solid var(--white);
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

#home a:first-of-type {
  color: var(--navy);
  background: var(--orange);
  border-color: var(--orange);
}

#home a:hover {
  color: var(--navy);
  background: var(--white);
  transform: translateY(-2px);
}


/* ------------------------------
   SERVICES
------------------------------ */

#services {
  text-align: center;
  background: var(--off-white);
}

#services > h2 {
  margin-bottom: 40px;
}

#services article {
  display: inline-block;
  width: calc(33.333% - 24px);
  min-height: 190px;
  margin: 12px 10px;
  padding: 30px;
  vertical-align: top;
  text-align: left;
  background: var(--white);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

#services article:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(16, 42, 67, 0.18);
}

#services article p {
  margin-bottom: 0;
  color: var(--grey);
}


/* ------------------------------
   ABOUT
------------------------------ */

#about {
  background: var(--white);
}

#about p {
  max-width: 760px;
  color: var(--grey);
  font-size: 1.08rem;
}

#about ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin-top: 30px;
  list-style: none;
}

#about li {
  position: relative;
  padding: 18px 20px 18px 52px;
  background: var(--off-white);
  border-radius: 8px;
  font-weight: 700;
}

#about li::before {
  content: "✓";
  position: absolute;
  left: 20px;
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 900;
}


/* ------------------------------
   SERVICE AREAS
------------------------------ */

#areas {
  color: var(--white);
  text-align: center;
  background: var(--navy);
}

#areas h2 {
  color: var(--white);
}

#areas p {
  max-width: 760px;
  margin: 0 auto;
  color: #d9e4ef;
  font-size: 1.15rem;
}


/* ------------------------------
   REVIEWS
------------------------------ */

#reviews {
  text-align: center;
  background: var(--off-white);
}

#reviews blockquote {
  max-width: 760px;
  margin: 35px auto 0;
  padding: 40px;
  color: var(--navy);
  background: var(--white);
  border-left: 6px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 1.3rem;
  font-style: italic;
}

#reviews cite {
  display: block;
  margin-top: 18px;
  color: var(--grey);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 700;
}


/* ------------------------------
   CONTACT FORM
------------------------------ */

#contact {
  background: var(--white);
}

#contact h2 {
  text-align: center;
}

#contact form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  max-width: 760px;
  margin: 35px auto 0;
  padding: 35px;
  background: var(--off-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#contact label {
  margin-top: 8px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: var(--dark);
  font: inherit;
  outline: none;
}

#contact input:focus,
#contact textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

/* Make all labels and fields span the full form width */
#contact label,
#contact input,
#contact textarea,
#contact button {
  grid-column: 1 / -1;
}

#contact button {
  margin-top: 16px;
  padding: 15px 24px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

#contact button:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}


/* ------------------------------
   FOOTER
------------------------------ */

footer {
  padding: 40px 24px;
  color: #b9c8d8;
  text-align: center;
  background: #091d2e;
}

footer p {
  margin: 6px 0;
}

footer p:first-child {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
}


/* ------------------------------
   MOBILE DESIGN
------------------------------ */

@media (max-width: 800px) {
  header {
    flex-wrap: wrap;
    padding: 15px 20px;
  }

  header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  header nav a {
    font-size: 0.85rem;
  }

  header > a:last-child {
    padding: 9px 12px;
    font-size: 0.85rem;
  }

  section {
    padding: 60px 22px;
  }

  #home {
    min-height: 600px;
    text-align: center;
    align-items: center;
  }

  #home h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  #home h1 + p {
    font-size: 1.05rem;
  }

  #services article {
    display: block;
    width: 100%;
    margin: 18px 0;
  }

  #about ul {
    grid-template-columns: 1fr;
  }

  #contact form {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  header nav {
    display: none;
  }

  header .logo {
    font-size: 1rem;
  }

  #home a {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 7px 0;
  }

  #reviews blockquote {
    padding: 28px 22px;
    font-size: 1.1rem;
  }
}