/* =========================================================
   STABLENOTE — MAIN STYLESHEET
   Final consolidated site stylesheet
   ========================================================= */


/* =========================================================
   GLOBAL RESET
   ========================================================= */

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


/* =========================================================
   GLOBAL TYPOGRAPHY
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0b1d2a;
  color: #ffffff;
  font-family: "Century Gothic", "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

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

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  padding: 20px 40px;

  background: #0b1d2a;

  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-wrap {
  display: flex;
  align-items: center;

  text-decoration: none;

  flex-shrink: 0;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo-img {
  display: block;

  width: auto;
  height: auto;

  max-width: 300px;
  max-height: 80px;

  object-fit: contain;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav nav a {
  display: inline-block;

  margin-left: 28px;

  color: #7faed1;

  text-decoration: none;

  font-size: 16px;
  line-height: 1.4;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.nav nav a:hover,
.nav nav a:focus {
  color: #22b7b3;
}

.nav nav a[aria-current="page"] {
  color: #22b7b3;
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.hamburger {
  display: none;

  border: 0;
  background: transparent;

  color: #7faed1;

  font-size: 32px;
  line-height: 1;

  cursor: pointer;

  padding: 5px;
}

.hamburger:hover,
.hamburger:focus {
  color: #22b7b3;
}

.hamburger:focus-visible,
.nav a:focus-visible,
.page a:focus-visible,
.email-button:focus-visible {
  outline: 2px solid #22b7b3;
  outline-offset: 4px;
}


/* =========================================================
   HERO SECTIONS
   ========================================================= */

.home-hero,
.about-hero,
.management-hero,
.investor-hero,
.contact-hero,
.info-hero {
  position: relative;

  width: 100%;

  min-height: 60vh;

  padding: 40px 20px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* =========================================================
   HOME HERO
   ========================================================= */

.home-hero {
  min-height: 100vh;

  background-image: url("../img/hero-architecture.jpg");

  background-position: 75% center;
}


/* =========================================================
   INNER PAGE HERO IMAGES
   ========================================================= */

.about-hero {
  background-image: url("../img/about-hero.png");
}

.management-hero {
  background-image: url("../img/management-hero.png");
}

.investor-hero {
  background-image: url("../img/investor-hero.png");
}

.contact-hero {
  background-image: url("../img/contact-hero.png");
}

.info-hero {
  background-image: url("../img/info-hero.jpg");
}


/* =========================================================
   RETINA / HIGH-RES HERO IMAGES
   ========================================================= */

@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {

  .home-hero {
    background-image: url("../img/hero-architecture@2x.jpg");
  }

  .about-hero {
    background-image: url("../img/about-hero@2x.png");
  }

  .management-hero {
    background-image: url("../img/management-hero@2x.png");
  }

  .investor-hero {
    background-image: url("../img/investor-hero@2x.png");
  }

  .contact-hero {
    background-image: url("../img/contact-hero@2x.png");
  }

  .info-hero {
    background-image: url("../img/info-hero@2x.jpg");
  }
}


/* =========================================================
   GENERAL HERO TITLE
   ========================================================= */

.hero-title {
  position: absolute;

  top: 10%;
  left: 5%;

  width: 50%;

  z-index: 5;
}

.hero-line1,
.hero-line2 {
  font-family: "Michroma", sans-serif;

  font-size: 36px;
  line-height: 0.95;

  margin: 0;
}

.hero-line1 {
  color: #ffffff;
}

.hero-line2 {
  color: #22b7b3;

  margin-top: 2px;
  margin-bottom: 8px;
}

.hero-title p {
  max-width: 650px;

  margin-top: 12px;

  color: #ffffff;

  font-size: 20px;
  line-height: 1.5;
}


/* =========================================================
   INNER PAGE HERO TITLES
   ========================================================= */

.about-hero .hero-title,
.management-hero .hero-title,
.investor-hero .hero-title,
.contact-hero .hero-title,
.info-hero .hero-title {
  top: auto;
  left: auto;

  right: 5%;
  bottom: 10%;

  width: 50%;

  text-align: right;
}

.about-hero .hero-line2,
.management-hero .hero-line2,
.investor-hero .hero-line2,
.contact-hero .hero-line2,
.info-hero .hero-line2 {
  color: #ffffff;

  font-family: "Michroma", sans-serif;

  font-size: 24px;
  line-height: 1.25;

  text-align: right;

  margin: 0;
}


/* =========================================================
   PAGE LAYOUT
   ========================================================= */

.page {
  width: 100%;
  max-width: 900px;

  margin: 60px auto;

  padding: 20px 30px;

  color: #ffffff;
}


/* =========================================================
   PAGE CONTENT WIDTH
   ========================================================= */

.page h1,
.page h2,
.page h3,
.page h4,
.page p,
.page ul,
.page ol {
  width: 100%;
  max-width: 900px;

  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   PAGE H1
   ========================================================= */

.page h1 {
  font-family: "Michroma", sans-serif;

  font-size: 36px;
  font-weight: 500;

  letter-spacing: 2px;

  color: #7faed1;

  padding-bottom: 12px;

  margin-top: 0;
  margin-bottom: 24px;

  border-bottom: 2px solid #22b7b3;
}


/* =========================================================
   PAGE H2
   ========================================================= */

.page h2 {
  font-family: "Michroma", sans-serif;

  font-size: 24px;
  font-weight: 400;

  letter-spacing: 0.8px;

  line-height: 1.35;

  color: #7faed1;

  margin-top: 32px;
  margin-bottom: 10px;
}


/* =========================================================
   PAGE H3
   ========================================================= */

.page h3 {
  font-family: "Michroma", sans-serif;

  font-size: 20px;
  font-weight: 400;

  letter-spacing: 0.6px;

  line-height: 1.4;

  color: #7faed1;

  margin-top: 22px;
  margin-bottom: 8px;
}


/* =========================================================
   PAGE H4
   ========================================================= */

.page h4 {
  font-family: "Michroma", sans-serif;

  font-size: 16px;
  font-weight: 400;

  letter-spacing: 0.4px;

  line-height: 1.45;

  color: #22b7b3;

  margin-top: 0;
  margin-bottom: 10px;
}


/* =========================================================
   PARAGRAPHS
   ========================================================= */

.page p {
  font-size: 16px;

  line-height: 1.6;

  margin-bottom: 16px;
}


/* =========================================================
   PAGE LINKS
   ========================================================= */

.page a {
  color: #ffffff;

  text-decoration: none;

  transition: color 0.2s ease;
}

.page a:hover {
  color: #7faed1;
}

.page a:focus-visible {
  color: #22b7b3;
}


/* =========================================================
   LISTS
   ========================================================= */

.page ul,
.page ol {
  margin-top: 12px;
  margin-bottom: 18px;

  padding-left: 30px;

  font-size: 16px;
  line-height: 1.6;
}

.page li {
  margin-bottom: 7px;
  padding-left: 2px;
}

.page li ul,
.page li ol {
  margin-top: 6px;
  margin-bottom: 6px;
}


/* =========================================================
   MANAGEMENT SECTIONS
   ========================================================= */

.management-section {
  width: 100%;

  margin-top: 45px;
}

.management-section:first-of-type {
  margin-top: 20px;
}

.management-profile {
  width: 100%;

  margin-bottom: 42px;
}

.management-profile h3 {
  margin-top: 0;
}


/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact-form {
  width: 100%;
}

.contact-form label {
  display: block;

  margin-bottom: 6px;

  color: #7faed1;

  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  display: block;

  width: 100%;

  padding: 12px 14px;

  margin-bottom: 20px;

  background: #102a3d;

  border: 1px solid rgba(127, 174, 209, 0.35);

  border-radius: 3px;

  color: #ffffff;

  outline: none;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #22b7b3;

  background: #123148;
}

.contact-form textarea {
  min-height: 160px;

  resize: vertical;
}

.contact-form button {
  display: inline-block;

  padding: 12px 22px;

  background: #7faed1;

  border: none;

  border-radius: 3px;

  color: #0b1d2a;

  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.1s ease;
}

.contact-form button:hover {
  background: #22b7b3;

  transform: translateY(-1px);
}


/* =========================================================
   EMAIL BUTTON
   ========================================================= */

.email-button {
  display: inline-block;

  background: #3fa9f5;

  padding: 14px 26px;

  border-radius: 6px;

  color: #0b1d2a !important;

  font-weight: 700 !important;

  text-decoration: none;

  cursor: pointer;

  margin-top: 20px;

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);

  transition:
    background 0.2s ease,
    transform 0.1s ease;
}

.email-button:hover {
  background: #62c0ff !important;

  color: #0b1d2a !important;

  transform: translateY(-2px);
}

.email-button:active {
  transform: translateY(0);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer,
.footer {
  width: 100%;

  text-align: center;

  padding: 40px 20px;

  color: #7faed1;

  font-size: 14px;
}

.footer-inner {
  width: 100%;
  max-width: 1000px;

  margin: 0 auto;
}

.footer-inner p {
  margin-bottom: 8px;
}

.footer-inner p:last-child {
  margin-bottom: 0;
}

footer a,
.footer a {
  color: #7faed1;

  text-decoration: none;

  transition: color 0.2s ease;
}

footer a:hover,
.footer a:hover {
  color: #22b7b3;
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 768px) {

  /* -------------------------------------------------------
     Navigation
     ------------------------------------------------------- */

  .nav {
    flex-direction: column;

    padding: 15px 20px;
  }

  .logo-wrap {
    justify-content: center;

    width: 100%;
  }

  .logo-img {
    width: auto;
    height: auto;

    max-width: 300px;
    max-height: 70px;

    object-fit: contain;
  }

  .hamburger {
    display: block;

    margin-top: 10px;
  }

  header.nav nav {
    display: none;

    flex-direction: column;

    width: 100%;

    margin-top: 10px;

    background: #0b1d2a;

    text-align: center;

    max-height: 0;

    overflow: hidden;

    transition: max-height 0.35s ease;
  }

  header.nav nav.nav-open {
    display: flex;

    max-height: 500px;
  }

  header.nav nav a {
    position: relative;

    width: 100%;

    padding: 14px 0;

    margin: 0;

    color: #7faed1;

    font-size: 20px;
  }

  header.nav nav a::after {
    content: "";

    position: absolute;

    bottom: 6px;
    left: 50%;

    width: 0;
    height: 2px;

    background: #22b7b3;

    transform: translateX(-50%);

    transition: width 0.3s ease;
  }

  header.nav nav a:hover::after,
  header.nav nav a:focus::after {
    width: 40%;
  }


  /* -------------------------------------------------------
     Page
     ------------------------------------------------------- */

  .page {
    width: 100%;
    max-width: 100%;

    margin: 40px auto;

    padding: 15px;
  }

  .page h1,
  .page h2,
  .page h3,
  .page h4,
  .page p,
  .page ul,
  .page ol {
    width: 100%;
    max-width: 100%;

    margin-left: 0;
    margin-right: 0;
  }

  .page h1 {
    font-size: 28px;

    letter-spacing: 1px;
  }

  .page h2 {
    font-size: 21px;
  }

  .page h3 {
    font-size: 18px;
  }

  .page h4 {
    font-size: 15px;
  }

  .page p {
    font-size: 16px;
  }


  /* -------------------------------------------------------
     Heroes
     ------------------------------------------------------- */

  .home-hero,
  .about-hero,
  .management-hero,
  .investor-hero,
  .contact-hero,
  .info-hero {
    min-height: 50vh;

    padding: 30px 15px;
  }


  /* -------------------------------------------------------
     Home hero
     Same basic proportions as the other mobile heroes.
     ------------------------------------------------------- */

  .home-hero {
    min-height: 58vh;

    padding: 25px 15px;

    background-position: 72% center;
  }

  .home-hero .hero-title {
    top: 12%;
    left: 15px;

    width: calc(100% - 30px);
  }

  .home-hero .hero-line1,
  .home-hero .hero-line2 {
    font-size: 28px;

    line-height: 1.05;
  }

  .home-hero .hero-title p {
    font-size: 17px;

    line-height: 1.5;

    max-width: 100%;

    margin-top: 12px;
  }


  /* -------------------------------------------------------
     Inner page hero titles
     ------------------------------------------------------- */

  .about-hero .hero-title,
  .management-hero .hero-title,
  .investor-hero .hero-title,
  .contact-hero .hero-title,
  .info-hero .hero-title {
    right: 15px;
    bottom: 8%;
    left: auto;
    top: auto;

    width: calc(100% - 30px);

    text-align: right;
  }

  .about-hero .hero-line2,
  .management-hero .hero-line2,
  .investor-hero .hero-line2,
  .contact-hero .hero-line2,
  .info-hero .hero-line2 {
    font-size: 20px;

    line-height: 1.25;

    color: #ffffff;

    text-align: right;
  }


  /* -------------------------------------------------------
     Management
     ------------------------------------------------------- */

  .management-section {
    margin-top: 35px;
  }

  .management-profile {
    margin-bottom: 35px;
  }


  /* -------------------------------------------------------
     Footer
     ------------------------------------------------------- */

  footer,
  .footer {
    padding: 30px 15px;
  }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

  body {
    font-size: 15px;
  }


  /* -------------------------------------------------------
     Navigation
     Keep the same proportions as the rest of the site.
     ------------------------------------------------------- */

  .nav {
    padding: 12px 15px;
  }

  .logo-img {
    width: auto;
    height: auto;

    max-width: 180px;
    max-height: 60px;

    object-fit: contain;
  }

  .hamburger {
    font-size: 30px;

    margin-top: 8px;
  }

  header.nav nav a {
    font-size: 18px;

    padding: 12px 0;
  }


  /* -------------------------------------------------------
     Page
     ------------------------------------------------------- */

  .page {
    padding: 15px;

    margin: 30px auto;
  }

  .page h1 {
    font-size: 24px;

    letter-spacing: 1px;
  }

  .page h2 {
    font-size: 19px;

    letter-spacing: 0.5px;
  }

  .page h3 {
    font-size: 17px;
  }

  .page h4 {
    font-size: 14px;
  }

  .page p {
    font-size: 15px;

    line-height: 1.6;
  }

  .page ul,
  .page ol {
    padding-left: 25px;

    font-size: 15px;
  }


  /* -------------------------------------------------------
     Heroes
     ------------------------------------------------------- */

  .home-hero,
  .about-hero,
  .management-hero,
  .investor-hero,
  .contact-hero,
  .info-hero {
    min-height: 50vh;

    padding: 25px 15px;
  }


  /* -------------------------------------------------------
     Home hero
     Deliberately kept close to the proportions of the
     other mobile heroes.
     ------------------------------------------------------- */

  .home-hero {
    min-height: 55vh;

    background-position: 70% center;
  }

  .home-hero .hero-title {
    top: 12%;
    left: 15px;

    width: calc(100% - 30px);
  }

  .home-hero .hero-line1,
  .home-hero .hero-line2 {
    font-size: 25px;

    line-height: 1.05;
  }

  .home-hero .hero-title p {
    font-size: 15px;

    line-height: 1.5;

    margin-top: 10px;
  }


  /* -------------------------------------------------------
     Inner page heroes
     ------------------------------------------------------- */

  .about-hero .hero-line2,
  .management-hero .hero-line2,
  .investor-hero .hero-line2,
  .contact-hero .hero-line2,
  .info-hero .hero-line2 {
    font-size: 18px;
  }


  /* -------------------------------------------------------
     Footer
     ------------------------------------------------------- */

  footer,
  .footer {
    padding: 25px 15px;

    font-size: 13px;
  }

}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

@media (min-width: 769px) {

  .hamburger {
    display: none;
  }

  header.nav nav {
    display: flex;

    max-height: none;

    overflow: visible;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}