:root {
  --navy: #113d52;
  --navy-deep: #082838;
  --cyan: #25bfe8;
  --red: #f33742;
  --yellow: #f6bd32;
  --ink: #24282c;
  --muted: #6b747c;
  --line: #e4e7eb;
  --paper: #ffffff;
  --soft: #f6f7f9;
  --shadow: 0 22px 70px rgba(14, 28, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Lato, Arial, Helvetica, sans-serif;
  background: var(--paper);
}

body.modal-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  color: #ffffff;
  transition: box-shadow 180ms ease;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 9px 6%;
  font-size: 0.88rem;
  font-weight: 800;
  background: var(--navy-deep);
}

.nav-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 13px 6%;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
}

.site-header.scrolled {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
}

.brand {
  display: block;
  width: 168px;
}

.brand img,
.site-footer img {
  border: 1px solid rgba(17, 61, 82, 0.18);
}

.main-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.94rem;
  font-weight: 900;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

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

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

.enquire-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  padding: 0 24px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.enquire-button,
.button-primary {
  color: #ffffff;
  background: var(--yellow);
}

.enquire-button {
  color: var(--navy-deep);
}

.enquire-button:hover,
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--red);
  color: #ffffff;
  transform: translateY(-2px);
}

.button-outline {
  color: #ffffff;
  border: 2px solid #ffffff;
  background: transparent;
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: var(--yellow);
  color: var(--navy-deep);
  background: var(--yellow);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 120px;
  overflow: hidden;
  color: #ffffff;
}

.hero-slide,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  animation: heroFade 18s infinite;
  transform: scale(1.04);
}

.slide-one {
  background-image: url("assets/hero-home.jpg");
}

.slide-two {
  background-image: url("assets/hero-building.jpg");
  animation-delay: 6s;
}

.slide-three {
  background-image: url("assets/hero-office.jpg");
  animation-delay: 12s;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(5, 28, 41, 0.9), rgba(5, 28, 41, 0.58), rgba(5, 28, 41, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, 88%);
  margin: 0 auto;
  padding-bottom: 46px;
}

.hero h1 {
  max-width: 790px;
  margin: 0 0 20px;
  font-size: 4.8rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 610px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.28rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.section-wrap {
  width: min(1120px, 88%);
  margin: 0 auto;
}

.about-section,
.services-section,
.property-section,
.why-section,
.contact-section {
  padding: 92px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image::before {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 42%;
  height: 42%;
  background: var(--yellow);
  content: "";
}

.about-image img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.section-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h2 {
  margin-bottom: 18px;
  font-size: 2.55rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.about-copy p,
.section-title p,
.service-banner p,
.service-card p,
.property-grid p,
.contact-copy p,
.footer-grid p {
  color: var(--muted);
  line-height: 1.72;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.counter-grid div {
  padding: 24px 22px;
  border-left: 5px solid var(--yellow);
  background: var(--soft);
}

.counter-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 2.5rem;
  line-height: 1;
}

.counter-grid span {
  color: var(--muted);
  font-weight: 800;
}

.service-banner {
  padding: 66px 0;
  color: #ffffff;
  background:
    linear-gradient(rgba(8, 40, 56, 0.9), rgba(8, 40, 56, 0.9)),
    url("assets/about-building.jpg") center/cover;
}

.banner-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
}

.service-banner h2 {
  margin-bottom: 10px;
}

.service-banner p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.services-section {
  background: var(--soft);
}

.section-title {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-title.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  overflow: hidden;
  min-height: 390px;
  padding: 0 0 30px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 16px 46px rgba(18, 35, 50, 0.06);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: -26px 28px 24px;
  color: #ffffff;
  font-weight: 900;
  background: var(--navy);
  position: relative;
  z-index: 1;
}

.service-card h3,
.service-card p {
  margin-right: 28px;
  margin-left: 28px;
}

.service-card:nth-child(2n) .service-icon {
  background: var(--red);
}

.service-card:nth-child(3n) .service-icon {
  color: var(--navy-deep);
  background: var(--yellow);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.property-grid article {
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.property-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.property-grid div {
  padding: 24px;
}

.property-grid span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.property-grid p {
  margin-bottom: 0;
}

.why-section {
  color: #ffffff;
  background: var(--navy);
}

.why-section h2 {
  color: #ffffff;
}

.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.why-list div {
  padding: 20px 22px;
  border-left: 5px solid var(--yellow);
  color: #ffffff;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.09);
}

.contact-section {
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 48px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-details a {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--line);
  line-height: 1.55;
}

.contact-details span {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-form,
.modal-form {
  display: grid;
  gap: 16px;
}

.lead-form {
  grid-template-columns: repeat(2, 1fr);
  padding: 32px;
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 900;
}

.lead-form input,
.lead-form textarea,
.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.lead-form textarea,
.modal-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus,
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(246, 189, 50, 0.18);
}

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

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 44px;
  padding: 58px 0;
}

.site-footer img {
  width: 165px;
  margin-bottom: 18px;
}

.site-footer h3 {
  color: #ffffff;
}

.site-footer a {
  display: table;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--yellow);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 6%;
  text-align: center;
}

.legal-page {
  padding-top: 126px;
  background: #ffffff;
}

.legal-hero {
  padding: 76px 0;
  color: #ffffff;
  background:
    linear-gradient(rgba(8, 40, 56, 0.88), rgba(8, 40, 56, 0.88)),
    url("assets/hero-office.jpg") center/cover;
}

.legal-hero h1 {
  max-width: 780px;
  margin: 0 0 14px;
  font-size: 3.4rem;
  line-height: 1.06;
  letter-spacing: 0;
}

.legal-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.legal-content {
  padding: 72px 0;
}

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

.legal-copy h2 {
  margin: 34px 0 10px;
  font-size: 1.45rem;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.legal-copy a {
  color: var(--red);
  font-weight: 900;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 15, 22, 0.72);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 32px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  background: var(--soft);
  cursor: pointer;
}

@keyframes heroFade {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  33% {
    opacity: 1;
  }
  43% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .nav-bar {
    grid-template-columns: auto auto;
    gap: 18px;
  }

  .brand {
    width: 145px;
  }

  .nav-toggle {
    justify-self: end;
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    padding: 11px;
    background: #ffffff;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
  }

  .main-nav,
  .enquire-button {
    display: none;
  }

  .main-nav.open {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
    justify-self: stretch;
    padding-top: 14px;
  }

  .main-nav.open a {
    border-top: 1px solid var(--line);
    padding: 13px 0;
  }

  .main-nav.open + .enquire-button {
    grid-column: 1 / -1;
    display: inline-flex;
    width: 100%;
  }

  .about-grid,
  .banner-grid,
  .why-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .property-grid,
  .why-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .top-bar {
    flex-direction: column;
    gap: 4px;
    padding: 8px 5%;
  }

  .nav-bar {
    padding: 11px 5%;
  }

  .hero {
    min-height: 88vh;
    padding-top: 142px;
  }

  .legal-page {
    padding-top: 141px;
  }

  .legal-hero h1 {
    font-size: 2.5rem;
  }

  .hero-content,
  .section-wrap {
    width: min(92%, 1120px);
  }

  .hero h1 {
    font-size: 2.85rem;
  }

  .hero p {
    font-size: 1.02rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  h2 {
    font-size: 2rem;
  }

  .about-section,
  .services-section,
  .property-section,
  .why-section,
  .contact-section {
    padding: 64px 0;
  }

  .counter-grid,
  .services-grid,
  .property-grid,
  .why-list,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .about-image::before {
    top: -14px;
    right: -10px;
  }

  .lead-form,
  .modal-card {
    padding: 24px;
  }
}
