/*
  royaleliving.ca
  Static copy of the WordPress/Divi page as it stood on Oct 5, 2026.
  Sizes are the ones measured on the live page. Breakpoints match Divi:
  tablet is 980px and under, phone is 767px and under.
*/

/* ---------- Fonts ---------- */

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/oswald-400.woff2) format('woff2');
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/oswald-600.woff2) format('woff2');
}

@font-face {
  font-family: 'WestMeath OTF';
  font-display: swap;
  src: url(../fonts/Westmeath-1.otf) format('opentype');
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: #651122;
  font-family: 'Oswald', Helvetica, Arial, Lucida, sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.6em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
}

h2 {
  margin: 0;
  padding-bottom: 10px;
  color: #651122;
  font-family: 'WestMeath OTF', Helvetica, Arial, Lucida, sans-serif;
  font-size: 45px;
  font-weight: 500;
  line-height: 1em;
  text-align: center;
}

/* ---------- 1. Header bar ---------- */

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid #fff;
  background-color: #d5b160;
  background-image: repeating-linear-gradient(90deg, #d5b160 0%, #d5b262 27%, #d5b769 37%, #d6c074 44%, #d7cc85 50%, #d6c074 56%, #d5b769 63%, #d5b262 73%, #d5b160 100%);
}

.bar {
  display: flex;
  align-items: center;
  width: 98%;
  margin: 0 auto;
  padding: 10px 0;
}

.logo {
  display: block;
  flex: none;
  width: 58px;
  height: 58px;
}

.mail {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-left: auto;
  padding: 10px;
  color: #651122;
  font-size: 18px;
  font-weight: 600;
  line-height: 0.9em;
}

.mail-icon {
  display: block;
  flex: none;
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* The View Available Units button hangs off the bottom edge of the bar. */
.units-row {
  position: relative;
  width: 80%;
  max-width: 1920px;
  height: 1px;
  margin: 0 auto;
}

.units {
  position: absolute;
  top: -45px;
  left: 5%;
  display: block;
  width: 16%;
  line-height: 0;
}

.units img {
  display: block;
}

/* ---------- 2. Hero ---------- */

.hero img {
  display: block;
  width: 100%;
}

/* ---------- Rows ---------- */

.row {
  width: 80%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 2% 0;
}

/* ---------- 3. Intro and 4. photo carousel ---------- */

.row-intro {
  width: 46%;
  max-width: 1080px;
  padding-top: 20px;
}

.intro-text {
  margin-bottom: 1.5%;
  padding-bottom: 30px;
}

.copy {
  font-weight: 600;
  line-height: 1.6em;
  text-align: center;
}

/* ---------- Carousels ---------- */

.carousel {
  position: relative;
  margin: 0 auto 60px;
}

.carousel-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  align-items: center;
  will-change: transform;
}

.slide {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-right: 15px;
}

.slide img {
  display: block;
  border-radius: 2px;
  -webkit-user-drag: none;
  user-select: none;
}

.dots {
  position: absolute;
  top: calc(100% + 7.8px);
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  line-height: 0;
}

.dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.dots button.is-active {
  background: rgba(0, 0, 0, 0.75);
}

.arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-top: -40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.arrow img {
  display: block;
  width: 32px;
  height: 32px;
}

.arrow-prev {
  left: -90px;
}

.arrow-next {
  right: -90px;
}

/* ---------- 5. Features ---------- */

.row-features {
  max-width: 46%;
}

.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.features-list {
  padding-bottom: 20px;
  font-weight: 600;
  line-height: 1.8em;
  text-align: center;
}

.features-icon img {
  display: block;
  width: 46%;
  margin: 0 auto;
}

/* ---------- 6. A Boutique Building and 7. Inviting Interiors ---------- */

.row-split {
  display: flex;
  align-items: flex-start;
  max-width: 1220px;
}

.col {
  flex: none;
}

.col:first-child {
  margin-right: 3%;
}

.col-wide {
  width: 58.8%;
}

.col-narrow {
  width: 38.2%;
}

.col-wide img {
  display: block;
  width: 100%;
}

.rounded {
  border-radius: 2px;
}

.ornament {
  max-width: 60%;
  margin: 0 auto;
}

.ornament img {
  display: block;
  width: 100%;
}

.ornament-lower {
  margin-bottom: 3.926%;
  padding-bottom: 10px;
}

.split-copy {
  padding-bottom: 30px;
}

/* ---------- 8. Floor plans ---------- */

.carousel-plans {
  max-width: 50%;
  box-shadow: 0 4px 18px -7px rgba(0, 0, 0, 0.3);
}

/* ---------- 9. Footer ---------- */

.site-footer {
  padding: 10px 0 30px;
  border-top: 7px solid #d5b160;
  background: #651122;
}

.footer-title {
  max-width: 35%;
  margin: 0 auto;
  padding-bottom: 7px;
}

.footer-title img {
  display: block;
  width: 100%;
}

.footer-copy {
  color: #d5b160;
  line-height: 1.6em;
  text-align: center;
}

.footer-copy a {
  color: #d5b160;
}

/* ---------- Very wide screens ---------- */

@media only screen and (min-width: 2400px) {
  .row {
    padding: 48px 0;
  }

  .row-intro {
    padding-top: 20px;
  }
}

/* ---------- Tablet: 980px and under ---------- */

@media (max-width: 980px) {
  .units {
    top: -28px;
    width: 27%;
  }

  .row {
    padding: 30px 0;
  }

  .row-intro {
    width: 80%;
    padding-top: 20px;
  }

  .intro-text {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }

  .row-features {
    max-width: 80%;
  }

  .features-icon img {
    width: 56%;
  }

  .row-split {
    flex-direction: column;
  }

  .row-split.reverse-mobile {
    flex-direction: column-reverse;
  }

  .col-wide,
  .col-narrow {
    width: 100%;
  }

  .col:first-child {
    margin-right: 0;
    margin-bottom: 30px;
  }

  .ornament {
    max-width: 32%;
  }

  .ornament-lower {
    margin-bottom: 30px;
  }

  .carousel-plans {
    max-width: 88%;
  }

  .arrow-prev {
    left: -68px;
  }

  .arrow-next {
    right: -68px;
  }

  .footer-title {
    max-width: 52%;
  }

  .footer-copy {
    font-size: 16px;
  }
}

/* ---------- Phone: 767px and under ---------- */

@media (max-width: 767px) {
  .mail {
    gap: 7px;
    font-size: 14px;
  }

  .mail-icon {
    width: 20px;
    height: 20px;
  }

  .units {
    top: -22px;
    left: 9%;
    width: 39%;
  }

  .row-intro {
    padding-top: 30px;
  }

  .intro-text {
    padding-bottom: 14px;
  }

  .carousel-photos {
    max-width: 92%;
  }

  .features-list {
    font-size: 16px;
  }

  .features-icon img {
    width: 82%;
  }

  .ornament {
    max-width: 60%;
  }

  .carousel-plans {
    max-width: 76%;
  }

  .arrow-prev {
    left: -64px;
  }

  .arrow-next {
    right: -64px;
  }

  .footer-title {
    max-width: 90%;
  }

  .footer-copy {
    font-size: 12px;
  }
}
