* {
  box-sizing: border-box;
}

:root {
  --green: #24483B;
  --gold: #C6A15B;
  --slate: #405C68;
  --rust: #B86B3D;

  --white: #FFFFFF;
  --off-white: #F7F7F4;
  --light-grey: #E7E8E5;
  --medium-grey: #757575;
  --dark-grey: #333333;
  --text-grey: #444444;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #fff;
  background: #000;
  word-wrap: break-word;
  overflow-x: hidden;
}

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

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

.navbar {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: 125px;
  margin: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.66);
}

.nav-container {
  width: 1170px;
  height: 125px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: flex-start;
}

.brand {
  display: block;
  flex: 0 0 auto;
  padding: 0;
}

.brand img {
  display: block;
  width: auto;
  height: 100px;
  margin-top: 12px;
}

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 15px;
  color: #686868;
  font-size: 14px;
  font-weight: 600;
  line-height: 95px;
  transition: color 0.25s ease-in-out;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links .active a:hover {
  color: var(--green);
  outline: 0;
}

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

/* =========================================================
   HOMEPAGE
========================================================= */

.intro {
  display: table;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  padding: 0;
  text-align: center;
  color: #fff;
  background: #000 url("../images/home-bg.jpg") no-repeat bottom center;
  background-size: cover;
}

.intro-body {
  display: table-cell;
  vertical-align: middle;
  padding: 125px 15px 70px;
}

.intro-content {
  width: 780px;
  max-width: calc(100vw - 30px);
  margin: 0 auto;
  padding: 40px;

  background: rgba(36, 72, 59, 0.92);

  box-shadow: 0 0 8px 3px rgba(255, 255, 255, 0.28);
  text-align: justify;
}

.intro-content p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.button-row {
  margin-top: 15px;
  text-align: center;
}

.button {
  display: inline-block;
  padding: 10px 30px;
  border: 1px solid #fff;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3333333;
  text-transform: uppercase;
  transition:
    background 0.2s ease-in-out,
    border-color 0.2s ease-in-out,
    color 0.2s ease-in-out;
}

.button:hover,
.button:focus {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green);
  outline: 0;
}

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

.sticky-footer {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0 15px 15px;
  text-align: center;
  pointer-events: none;
}

.sticky-footer p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  text-shadow: 2px 2px 4px #000;
}

.offline-anchor {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

::selection {
  background: rgba(198, 161, 91, 0.35);
  text-shadow: none;
}

/* =========================================================
   RESPONSIVE HOMEPAGE / NAV
========================================================= */

@media (max-width: 1199px) {
  .nav-container {
    width: 970px;
  }

  .intro-content {
    width: 646.6667px;
  }
}

@media (max-width: 991px) {
  .nav-container {
    width: 750px;
  }

  .brand img {
    height: 90px;
    margin-top: 0;
    padding-top: 20px;
    padding-left: 15px;
  }

  .intro-content {
    width: 620px;
  }
}

@media (max-width: 767px) {
  .navbar,
  .nav-container {
    height: 100px;
  }

  .navbar {
    background: rgba(255, 255, 255, 0.94);
  }

  .nav-container {
    position: relative;
    width: 100%;
    padding: 0 15px;
    align-items: flex-start;
  }

  .brand img {
    height: 82px;
    margin-top: 0;
    padding-top: 14px;
    padding-left: 0;
  }

  .menu-button {
    position: absolute;
    top: 31px;
    right: 20px;
    display: block;
    width: 31px;
    height: 27px;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 0 0 5px;
    background: var(--green);
  }

  .nav-links {
    position: absolute;
    top: 100px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid #d8d8d8;
    background: #fff;
  }

  .menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 10px 20px;
    color: #686868;
    line-height: 25px;
  }

  .intro {
    min-height: 100vh;
    padding: 100px 0 70px;
  }

  .intro-body {
    padding: 35px 15px 55px;
  }

  .intro-content {
    width: 100%;
    max-width: 620px;
    padding: 30px 24px;
    background: rgba(36, 72, 59, 0.92);
    text-align: left;
  }

  .intro-content p {
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
  }

  .sticky-footer {
    position: fixed;
    padding-bottom: 10px;
  }

  .sticky-footer p {
    font-size: 12px;
  }

  body#home {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    background: #000 url("../images/home-bg.jpg") no-repeat bottom center;
    background-size: cover;
  }

  /* The photograph and copyright share one scrolling page surface. */
  body#home .intro {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    height: auto;
    min-height: 0;
    padding-bottom: 0;
    background: transparent;
  }

  body#home .intro-body {
    display: block;
    width: 100%;
  }

  body#home .home-footer {
    position: static;
    flex: 0 0 auto;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
    background: transparent;
  }
}

/* =========================================================
   INTERIOR PAGES
========================================================= */

.inner-page {
  min-height: 100vh;
  color: var(--text-grey);
  background: #fff;
}

.inner-page .navbar {
  background: linear-gradient(
    to bottom,
    #efefed 0%,
    #f7f7f4 100%
  );
  border-bottom: 1px solid #b8b8b2;
}

.inner-page .nav-links .active a {
  color: #fff;
  background: var(--green);
}

.inner-page .nav-links .active a:hover,
.inner-page .nav-links .active a:focus {
  color: #fff;
  background: var(--slate);
}

.content-container {
  width: 1170px;
  max-width: calc(100% - 30px);
  margin: 0 auto;
  padding: 0 15px;
}

/* =========================================================
   SECONDARY HEADERS
========================================================= */

.secondary-header {
  height: 125px;
  margin-top: 125px;
  border-bottom: 1px solid #d6d6d6;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.s-about {
  background-image: url("../images/s-about.jpg");
}

.s-services {
  background-image: url("../images/s-service.jpg");
}
.s-residents {
  background-image: url("../images/s-residents.jpg");
}

.secondary-title {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  height: 100px;
  margin-top: 25px;
  padding: 20px 30px;
  border-bottom: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.92);
  color: var(--green);
  text-transform: uppercase;
}

.secondary-title span {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.05;
}

.secondary-title strong {
  margin-top: 5px;
  font-size: 26px;
  line-height: 1.05;
}

/* =========================================================
   CONTENT SECTIONS
========================================================= */

.content-white,
.content-grey {
  padding: 70px 0;
  border-bottom: 1px solid #d6d6d6;
}

.content-white {
  background: #fff;
}

.content-grey {
  background: var(--off-white);
}

.inner-page h1 {
  margin: 0 0 25px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold);
  color: var(--green);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
}

.inner-page h2,
.inner-page h3 {
  color: var(--green);
}

.readable {
  max-width: 980px;
}

.inner-page p {
  margin: 0 0 22px;
  color: var(--text-grey);
  font-size: 16px;
  line-height: 1.6;
}

/* =========================================================
   EXPERIENCE GRID
========================================================= */

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #ddd;
}

.experience-grid div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  background: #fff;
  color: var(--text-grey);
}

.experience-grid span {
  white-space: nowrap;
}

/* =========================================================
   TEAM
========================================================= */

.team-card {
  padding: 28px 32px;
  border-left: 5px solid var(--gold);
  background: var(--off-white);
}

.team-card h2 {
  margin: 0 0 5px;
  color: var(--green);
  font-size: 22px;
}

.team-card h3 {
  margin: 0 0 18px;
  color: var(--slate);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

/* =========================================================
   PROJECTS
========================================================= */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  overflow: hidden;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 1px 2px 7px rgba(0, 0, 0, 0.14);
}

.project-accent {
  height: 8px;
  background: var(--green);
}

.project-body {
  padding: 28px;
}

.project-body h2 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 20px;
  text-transform: uppercase;
}

.project-body p {
  min-height: 78px;
}

.project-link,
.back-link {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.project-link:hover,
.project-link:focus,
.back-link:hover,
.back-link:focus {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.section-subtitle {
  margin: 5px 0 20px;
  color: var(--slate);
  font-size: 18px;
  text-transform: uppercase;
}

/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 60px;
}

.contact-form label {
  display: block;
  margin-bottom: 17px;
  color: var(--text-grey);
  font-size: 14px;
  font-weight: 600;
}

.contact-form label span {
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--slate);
  box-shadow: 0 0 0 2px rgba(64, 92, 104, 0.12);
  outline: 0;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  padding: 11px 24px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.contact-form button:hover,
.contact-form button:focus {
  background: var(--slate);
  border-color: var(--slate);
  outline: 0;
}

/* =========================================================
   REACH CARD
========================================================= */

.reach-card {
  padding: 28px;
  background: var(--off-white);
  border-top: 5px solid var(--gold);
}

.reach-card h1 {
  margin-top: 0;
  margin-bottom: 24px;
}

.reach-card p {
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.reach-card p + p {
  margin-top: 6px;
}

.reach-card strong {
  line-height: 1.3;
}

.reach-card a {
  color: var(--dark-grey);
  text-decoration: none;
}

.reach-card a:hover {
  color: var(--rust);
  text-decoration: none;
}

.reach-card a[href^="mailto:"] {
  color: var(--slate);
}

/* =========================================================
   CONTACT INTRO / CTA
========================================================= */

.contact-intro .contact-lead {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-cta-box {
  margin-top: 34px;
  padding: 30px 32px;
  background: #F3F4F1;
  border-left: 5px solid var(--slate);
}

.contact-cta-box h2 {
  margin: 0 0 10px 0;
  color: var(--slate);
  font-size: 23px;
  text-transform: uppercase;
}

.contact-cta-box p {
  margin: 0 0 22px 0;
  line-height: 1.6;
}

.email-button {
  display: inline-block;
  padding: 14px 30px;
  background: var(--green);
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.email-button:hover,
.email-button:focus {
  background: var(--slate);
  color: #ffffff !important;
  text-decoration: none;
  outline: 0;
}

.contact-topics {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #d8d8d8;
}

.contact-topics strong {
  color: var(--green);
  font-size: 15px;
}

.contact-topics p {
  margin: 8px 0 0 0;
  color: #666666;
  line-height: 1.7;
}

/* =========================================================
   RESIDENT REQUEST PORTAL
========================================================= */

.resident-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 60px;
  align-items: start;
}

.resident-lead {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 30px;
}

/* ---- Request form ---- */

.resident-form fieldset {
  margin: 0 0 30px;
  padding: 26px 30px 12px;
  border: 1px solid #d9d9d9;
  background: #fff;
}

.resident-form legend {
  padding: 0 14px;
  color: var(--green);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
}

.resident-form label {
  display: block;
  margin: 0 0 18px;
  color: var(--text-grey);
  font-size: 14px;
  font-weight: 700;
}

.resident-form label > span {
  font-weight: 400;
}

.resident-form input[type="text"],
.resident-form input[type="email"],
.resident-form input[type="tel"],
.resident-form select,
.resident-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid #c6c6c6;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font: inherit;
  font-weight: 400;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.resident-form input:focus,
.resident-form select:focus,
.resident-form textarea:focus {
  border-color: var(--slate);
  box-shadow: 0 0 0 2px rgba(64, 92, 104, 0.12);
  outline: 0;
}

.resident-form textarea {
  min-height: 150px;
  resize: vertical;
}

.resident-form textarea::placeholder {
  color: #9d9d9d;
}

.file-box {
  display: block;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid #c6c6c6;
  border-radius: 4px;
  background: #fff;
}

.file-box input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.consent-row {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  margin: 2px 0 26px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--green);
}

.resident-form button[type="submit"] {
  padding: 15px 44px;
  border: 0;
  border-radius: 0;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.resident-form button[type="submit"]:hover,
.resident-form button[type="submit"]:focus {
  background: var(--slate);
  outline: 0;
}

.resident-form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: default;
}

.form-note {
  margin: 20px 0 0;
  color: #8f8f8f;
  font-size: 13px;
  line-height: 1.5;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin: 0 0 24px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.6;
}

.form-status.success {
  display: block;
  border-left: 5px solid var(--green);
  background: #eef4f0;
  color: var(--green);
}

.form-status.error {
  display: block;
  border-left: 5px solid var(--rust);
  background: #faf0e9;
  color: #8a4a24;
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #b03a22;
}

.resident-form .input-error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.18);
}

/* ---- Before-you-submit panel ---- */

.resident-help-card {
  background: #F6F4EF;
  border-top: 5px solid var(--gold);
}

.resident-help-card h1 {
  margin-bottom: 6px;
  font-size: 20px;
}

.resident-help-card h2 {
  margin: 22px 0 8px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.resident-help-card h2.emergency {
  color: var(--rust);
}

.resident-help-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

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

.site-footer {
  padding: 24px 15px;
  background: var(--green);
  border-top: 3px solid var(--gold);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}

/* =========================================================
   RESPONSIVE INTERIOR PAGES
========================================================= */

@media (max-width: 1199px) {
  .content-container {
    width: 970px;
  }
}

@media (max-width: 991px) {
  .content-container {
    width: 750px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-body p {
    min-height: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .resident-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .secondary-header {
    width: 100%;
    margin-top: 100px;
    height: 110px;
  }

  .secondary-header .content-container {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .secondary-title {
    height: 88px;
    margin-top: 22px;
    padding: 17px 22px;
  }

  .secondary-title span {
    font-size: 16px;
  }

  .secondary-title strong {
    font-size: 21px;
  }

  .content-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 17px;
    padding-right: 17px;
  }

  .readable {
    width: 100%;
    max-width: 100%;
  }

  .content-white,
  .content-grey {
    width: 100%;
    padding: 45px 0;
  }

  .experience-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .experience-grid div {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .experience-grid span {
    white-space: normal;
  }

  .team-card {
    width: 100%;
    padding: 22px;
  }

  .project-body {
    padding: 22px;
  }

  .desktop-simple {
    position: absolute;
    top: 100px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
  }
}
