html { font-size: 100%; }
@media (max-width: 1200px), (min-resolution: 2dppx) {
  html { font-size: 84%; }
}
@media (max-width: 480px) {
  html { font-size: 80%; }
}

:root {
  --navy: #0f2453;
  --navy-dark: #0b1f45;
  --blue: #106ec1;
  --footer-blue: #016cc4;
  --footer-heading: #4a9be0;
  --gold: #967a50;
  --text: #444;
  --grey-text: #7a7a7a;
  --gutter: 8%;
  --header-height: 150px;
}
@media (max-width: 1200px) {
  :root { --gutter: 4%; }
}
@media (max-width: 992px) {
  :root { --gutter: 15px; --header-height: 70px; }
}

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

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

body {
  margin: 0;
  font-family: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.43;
  color: var(--text);
  background: #fff;
}

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

a { color: var(--blue); font-weight: 400; text-decoration: none; }
a:hover, a:focus { color: var(--gold); }

p { margin: 0 0 11px; font-size: 1.125rem; line-height: 2rem; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding-bottom: 25px;
  font-weight: 500;
  line-height: 2.4rem;
  text-transform: uppercase;
  color: var(--navy);
}
h2 {
  position: relative;
  margin: 22px 0 60px;
  padding-bottom: 60px;
  font-size: 3.125rem;
  line-height: 3.6rem;
  letter-spacing: .1em;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100px;
  border-bottom: 2px solid var(--navy);
}
h2.center { text-align: center; }
h2.center::after { right: 0; margin: 0 auto; }
h3 { font-size: 2.125rem; line-height: 2.625rem; letter-spacing: .1em; font-weight: 400; }

.center { text-align: center; }

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 150px;
  padding: 30px var(--gutter);
  background: var(--navy);
  transition: all .4s;
}
.site-header .logo img { width: 90px; transition: width .4s; }

.menu-toggle, .menu-button { display: none; }

.nav { display: flex; margin: 0; padding: 0; list-style: none; }
.nav li { padding: 10px 15px; }
.nav a {
  position: relative;
  display: block;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 2.25rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: font-size .4s;
}
.nav a:hover, .nav a:focus { color: #fff; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  opacity: 0;
  transition: bottom .22s ease-out, opacity .4s;
}
.nav a:hover::after { bottom: 4px; opacity: 1; }

.site-header.shrink { height: 76px; padding-top: 10px; padding-bottom: 10px; }
.site-header.shrink .logo img { width: 50px; }
.site-header.shrink .nav a { font-size: 0.9rem; }

.page { padding-top: var(--header-height); }

@media (max-width: 991px) {
  .site-header, .site-header.shrink { height: auto; min-height: 70px; padding: 10px 16px; flex-wrap: wrap; }
  .site-header .logo img, .site-header.shrink .logo img { width: 50px; }
  .menu-button {
    display: block;
    width: 30px;
    height: 22px;
    cursor: pointer;
    background: linear-gradient(var(--blue) 0 0) top / 100% 2px no-repeat,
                linear-gradient(var(--blue) 0 0) center / 100% 2px no-repeat,
                linear-gradient(var(--blue) 0 0) bottom / 100% 2px no-repeat;
  }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    margin: 10px -16px -10px;
    padding: 10px 16px 20px;
    background: var(--navy-dark);
  }
  .menu-toggle:checked ~ .nav { display: flex; }
  .nav li { padding: 6px 0; }
  .nav a, .site-header.shrink .nav a { font-size: 1.125rem; }
}

/* Back to top */

.go-top {
  position: fixed;
  right: 30px;
  bottom: 50px;
  z-index: 300;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: all .2s linear;
}
.go-top:hover, .go-top:focus { background: var(--gold); color: #fff; }
.go-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.go-top.show { opacity: 1; visibility: visible; }

/* Homepage */

.home {
  padding: calc(var(--header-height) + 72px) var(--gutter) 35px;
  font-family: Roboto, sans-serif;
  font-weight: 400;
  color: var(--grey-text);
}
.home .inner { max-width: 1160px; margin: 0 auto; padding: 0 10px; }
.home h3, .home h4 { font-family: Raleway, sans-serif; }

.slider {
  position: relative;
  width: 100vw;
  margin: 0 0 11px calc(50% - 50vw);
  aspect-ratio: 1400 / 932;
  overflow: hidden;
  background: #eee;
}
.slider.contained { width: 100%; margin-left: 0; aspect-ratio: 2 / 1; }
.slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s;
}
.slider img.active { opacity: 1; }
.slider button {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 2px;
  background: rgb(15 36 83 / .6);
  color: #fff;
  font-size: 1.875rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s;
}
.slider:hover button, .slider button:focus { opacity: 1; }
.slider button:hover { background: var(--navy); }
.slider .prev { left: 20px; }
.slider .next { right: 20px; }

.spacer { height: 43px; }

.bedrooms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 50px 10px 10px;
}
.bedrooms figure { margin: 0; padding: 10px; }
.bedrooms figcaption { margin: 0 0 11px; font-size: 1.125rem; line-height: 2rem; }

.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 10px;
  text-align: center;
}
.prices > div { padding: 10px; }
.home > p, .home > h3 { padding-left: 10px; padding-right: 10px; }
.home > h3 { margin-top: 20px; }
.prices { padding-top: 20px; }
.prices h4 {
  margin: 0;
  padding: 10px;
  color: #fff;
  font-size: 0.875rem;
  line-height: 2.4rem;
}
.prices .low h4 { background: #8e5f20; }
.prices .mid h4 { background: #888; }
.prices .high h4 { background: #c3b63c; }
.prices h5 {
  margin: 11px 0;
  padding: 0;
  font-family: Roboto, sans-serif;
  font-size: 1.2rem;
}
.prices strong { font-weight: 700; }
.prices .gap { height: 32px; }


@media (max-width: 767px) {
  .bedrooms, .prices { grid-template-columns: 1fr; }
}

/* Contact page */

.banner {
  background: 0 0 / cover no-repeat;
  padding: 40% 10%;
}
.banner h1 {
  padding: 0;
  font-family: Montaga, Georgia, serif;
  font-weight: 400;
  font-size: 50px;
  line-height: 6rem;
  letter-spacing: .075em;
  color: #fff;
}
.banner h1::after {
  content: "";
  display: block;
  width: 135px;
  margin: 36px 0 20px;
  border-top: 2px solid var(--footer-blue);
}

@media (max-width: 991px) {
  .banner { padding: 25px 15px; }
  .banner h1 { line-height: 4rem; }
  .banner h1::after { width: 80px; margin-top: 20px; }
}

.contact { padding: 25px var(--gutter); }
.contact p { margin-bottom: 11px; }
.contact .intro { padding: 3% 0; }

.button {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid var(--blue);
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: .1rem;
  text-transform: uppercase;
  cursor: pointer;
}
.button:hover, .button:focus { background: transparent; color: var(--blue); }

.info { padding-top: 40px; }
.info-item { position: relative; padding-left: 50px; margin-top: 30px; }
.info-item svg { position: absolute; left: 0; top: 4px; width: 28px; height: 28px; fill: var(--navy); }
.info-item h4 { margin-bottom: 10px; font-size: 20px; font-weight: 600; letter-spacing: 1px; }
.info-item p { margin-bottom: 10px; }

.map {
  display: block;
  width: 100%;
  height: 1000px;
  margin-top: 30px;
  border: 0;
  filter: grayscale(1) contrast(.9) brightness(1.05);
}

@media (max-width: 767px) {
  .map { height: 450px; }
}

/* Footer */

.site-footer { background: var(--navy); color: #dce4f2; font-weight: 400; }
.site-footer a { color: #fff; }
.site-footer a:hover, .site-footer a:focus { color: var(--footer-heading); }
.site-footer .columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 75px var(--gutter);
  border-top: 1px solid var(--footer-blue);
  border-bottom: 1px solid #193470;
  font-size: 1rem;
  line-height: 2rem;
}
.site-footer .columns > :last-child { grid-column: 4; }
.site-footer h3 {
  position: relative;
  margin: 25px 0 40px;
  padding-bottom: 40px;
  font-size: 2.375rem;
  line-height: 46px;
  color: var(--footer-heading);
}
.site-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  border-bottom: 2px solid var(--footer-heading);
}
.site-footer p { margin: 0 0 11px; font-size: 1rem; }
.site-footer .copyright { padding: 35px var(--gutter); font-size: 0.875rem; line-height: 2rem; }

@media (max-width: 1199px) {
  .site-footer .columns { grid-template-columns: repeat(2, 1fr); }
  .site-footer .columns > :last-child { grid-column: auto; }
}
@media (max-width: 767px) {
  .site-footer .columns { grid-template-columns: 1fr; padding: 40px var(--gutter); }
  .site-footer .copyright { padding: 35px var(--gutter); }
}
