/* =============================================================
   WEST SPRINGFIELD HOUSING AUTHORITY — STYLESHEET
   ============================================================= */

/* -------------------------------------------------------------
   ROOT VARIABLES
   ------------------------------------------------------------- */
:root {
  --color-primary: #377094;
  --color-primary-dark: #2b5a75;
  --color-accent: #9a6d4b;
  --color-light: #f3f3f3;
  --color-text: #222222;
  --color-white: #ffffff;
  --gradient-navy-footer: linear-gradient(180deg, #4a8bab 0%, #3a7d9b 20%, #234f6b 55%, #1c3f57 80%, #16324a 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0px, rgba(255, 255, 255, 0.07) 1px, transparent 1px, transparent 9px);
  --header-height-desktop: 120px;
  --header-height-mobile: 74px;
  --topbar-height-desktop: 40px;
  --container-max: 1300px;
}

/* -------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

a {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4 {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--color-primary);
}

h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.2;
  color: var(--color-white);
}

h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.25;
  color: var(--color-primary);
}

h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--color-primary);
}

p {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.7;
  color: var(--color-text);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--color-white);
  background-color: var(--color-primary);
  padding: 14px 32px;
  border: 2px solid var(--color-white);
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Scroll fade-in animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0.15s;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   SECTION: HEADER SECTION
   ============================================================= */
.topbar {
  width: 100%;
  height: var(--topbar-height-desktop);
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 28px;
}

.topbar a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1;
  color: var(--color-white);
}

.topbar a:hover {
  color: var(--color-light);
}

.topbar .topbar-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  color: var(--color-white);
  vertical-align: middle;
}

.topbar .topbar-icon svg {
  display: block;
}

.site-header {
  width: 100%;
  height: var(--header-height-desktop);
  background-color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 500;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 72px;
  max-height: 72px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.main-nav a {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1;
  color: var(--color-primary);
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 600;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =============================================================
   SECTION: HERO SECTION
   ============================================================= */
.hero {
  width: 100%;
  height: 700px;
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 2000ms ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 35, 46, 0.32) 0%, rgba(20, 35, 46, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1;
  color: var(--color-white);
  background-color: rgba(154, 109, 75, 0.85);
  padding: 9px 22px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-content h1 {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: normal;
  line-height: 1.15;
  color: var(--color-white);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.35);
  max-width: none;
  white-space: nowrap;
}

.hero-content .hero-subtitle {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.5;
  color: var(--color-white);
  margin-top: 18px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.3);
}

.hero-content .btn {
  margin-top: 38px;
}

/* =============================================================
   SECTION 1: ALERT BAR
   ============================================================= */
.alert-bar {
  width: 100%;
  background-color: var(--color-primary);
  border-top: 3px solid var(--color-accent);
  border-bottom: 5px solid var(--color-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px rgba(0, 0, 0, 0.15);
}

.alert-bar .container {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.alert-tag {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1;
  color: var(--color-primary-dark);
  background-color: var(--color-white);
  padding: 6px 12px;
  border-radius: 3px;
  text-transform: uppercase;
}

.alert-body {
  flex-grow: 1;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
  color: var(--color-white);
}

.alert-body p {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
  color: var(--color-white);
  margin-bottom: 6px;
}

.alert-body p:last-child {
  margin-bottom: 0;
}

.alert-body.alert-size-large,
.alert-body.alert-size-large p {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.4;
}

.alert-body strong {
  font-weight: 700;
}

.alert-date {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
}

/* =============================================================
   SUB-PAGE TITLE BAR (Housing, Section 8/MRVP, The Team, etc.)
   ============================================================= */
.page-titlebar {
  width: 100%;
  height: 380px;
  position: relative;
  background-size: cover;
  background-position: center bottom;
  border-bottom: 5px solid var(--color-accent);
}

.page-titlebar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(16, 34, 45, 0.5) 0%, rgba(16, 34, 45, 0.22) 100%);
}

.page-titlebar-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  text-align: left;
}

.page-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1;
  color: var(--color-white);
  background-color: rgba(154, 109, 75, 0.85);
  padding: 8px 18px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 18px;
  text-align: left;
}

.page-titlebar h1 {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.15;
  text-align: left;
  text-transform: uppercase;
  color: var(--color-white);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

/* =============================================================
   SHARED SUB-PAGE CONTENT STYLES
   ============================================================= */
.section-heading {
  max-width: 820px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading-wide {
  max-width: 1100px;
}

.section-heading h2 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: normal;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.section-heading p {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.7;
  color: var(--color-text);
}

.lead-tagline {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1;
  color: var(--color-white);
  background-color: #cdb6a5;
  padding: 8px 20px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.content-band {
  width: 100%;
  background-color: var(--color-white);
  padding: 80px 0;
}

.content-band-alt {
  background-color: var(--color-light);
}

.content-copy h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.content-copy h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--color-primary);
  margin: 26px 0 14px;
}

.content-copy p {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 16px;
}

/* Program Cards (Housing overview) */
.programs-section {
  width: 100%;
  background-color: var(--color-white);
  padding: 90px 0;
}

/* Tighten the gap when two property group sections stack back-to-back */
.programs-section:has(+ .programs-section) {
  padding-bottom: 40px;
}

.programs-section:has(+ .programs-section) .properties-grid {
  margin-bottom: 0;
}

.programs-section + .programs-section {
  padding-top: 40px;
}

.program-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.program-card {
  background-color: var(--color-white);
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.program-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  margin-bottom: 20px;
}

.program-icon img {
  max-height: 64px;
  width: auto;
}

.program-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.program-card p {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.65;
  color: var(--color-text);
}

.callout-note {
  background-color: rgba(154, 109, 75, 0.1);
  border-left: 4px solid var(--color-accent);
  border-radius: 4px;
  padding: 18px 24px;
  max-width: 820px;
  margin: 0 auto;
}

.callout-note p {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.5;
  color: var(--color-primary);
  margin: 0;
}

/* Document Download Link */
.document-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.document-link {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--color-white);
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.document-grid .document-link {
  margin-top: 0;
}

.document-link:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.document-link img {
  height: 42px;
  width: auto;
}

.document-link span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.4;
  color: var(--color-primary);
}

.document-link small {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.4;
  color: var(--color-accent);
}

/* Two-column content + Income Limits box */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 50px;
}

.two-col-copy h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.two-col-copy p {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 14px;
}

.two-col-copy .btn {
  margin-top: 10px;
}

.copy-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 32px 34px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  border-top: 4px solid var(--color-accent);
}

.copy-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: rgba(55, 112, 148, 0.1);
  margin-bottom: 18px;
}

.income-limits-box {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--color-accent);
}

.income-limits-box h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.income-limits-list {
  list-style: none;
}

.income-limits-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ececec;
}

.income-limits-list li:last-child {
  border-bottom: none;
}

.income-limits-list span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.4;
  color: var(--color-text);
}

.income-limits-list strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.4;
  color: var(--color-accent);
}

/* Apply Now Banner */
.apply-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background-color: var(--color-white);
  border-left: 5px solid var(--color-accent);
  border-radius: 8px;
  padding: 36px 40px;
  margin-top: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.apply-band-copy h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.apply-band-copy p {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
  max-width: 560px;
}

.apply-band-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Board of Commissioners List */
.board-list {
  list-style: none;
}

.board-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #ececec;
}

.board-list li:last-child {
  border-bottom: none;
}

.board-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.4;
  color: var(--color-primary);
}

.board-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.4;
  color: var(--color-accent);
  text-align: right;
}

/* Staff Directory Grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.staff-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.staff-avatar {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
}

.staff-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.staff-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.4;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.staff-contact {
  display: block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
  color: var(--color-text);
}

.staff-contact:hover {
  color: var(--color-primary);
}

/* Empty State (Careers - No Openings) */
.empty-state {
  max-width: 560px;
  margin: 0 auto;
  background-color: var(--color-white);
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.empty-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: rgba(55, 112, 148, 0.1);
}

.empty-state h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 10px;
}

.empty-state p:last-child {
  margin-bottom: 0;
}

/* Job Cards (for future openings) */
.job-card {
  background-color: var(--color-white);
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.job-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.job-card .job-meta {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.4;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.job-card p {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 16px;
}

/* -------------------------------------------------------------
   PROPERTIES — Individual Property Pages
   ------------------------------------------------------------- */
.property-titlebar {
  width: 100%;
  background-color: var(--color-primary);
  text-align: center;
  padding: 40px 0;
  border-bottom: 5px solid var(--color-accent);
}

.property-titlebar h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.property-map-wrap {
  width: 100%;
  height: 420px;
}

.property-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.property-content-section {
  padding: 70px 0;
}

.property-meta-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.3px;
  line-height: 1;
  color: var(--color-white);
  background-color: var(--color-accent);
  padding: 8px 18px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.property-two-col {
  align-items: center;
  margin-bottom: 54px;
}

.property-intro h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.4;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.property-body p {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 18px;
}

.property-body p:last-child {
  margin-bottom: 0;
}

.property-sidebar-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 32px 30px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--color-accent);
  text-align: center;
}

.property-sidebar-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.property-sidebar-card p {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 22px;
}

.property-sidebar-card .btn {
  width: 100%;
}

.property-gallery-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.3;
  color: var(--color-primary);
  text-transform: uppercase;
  text-align: center;
  margin: 10px 0 36px;
}

.property-gallery-heading svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.property-gallery-heading::before,
.property-gallery-heading::after {
  content: "";
  flex: 1 1 auto;
  max-width: 180px;
  height: 2px;
  background-image: linear-gradient(90deg, transparent, var(--color-accent));
}

.property-gallery-heading::after {
  background-image: linear-gradient(90deg, var(--color-accent), transparent);
}

.property-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-thumb {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: none;
  padding: 0;
  cursor: pointer;
  background-color: var(--color-light);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.06);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 25, 32, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-figure img {
  max-width: 90vw;
  max-height: 84vh;
  display: block;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.4;
  color: var(--color-white);
  margin-top: 12px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.property-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #ececec;
  padding: 26px 0;
}

.property-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.4;
  color: var(--color-accent);
  text-transform: uppercase;
}

.property-nav a:only-child {
  margin: 0 auto;
}

/* Properties Grid Page */
.property-group-heading {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--color-accent);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.properties-grid:last-of-type {
  margin-bottom: 0;
}

.property-card {
  display: block;
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ececec;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.property-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.property-card-body {
  padding: 24px;
}

.property-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.property-card-body p {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 18px;
}

.properties-teaser-more {
  text-align: center;
  margin-top: 46px;
}

/* Preference Cards */
.preference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.preference-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.preference-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.preference-card p {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 10px;
}

.preference-card p:last-child {
  margin-bottom: 0;
}

/* =============================================================
   SECTION 2: WELCOME SECTION
   ============================================================= */
.welcome-section {
  width: 100%;
  background-color: var(--color-white);
  padding: 90px 0;
}

/* Tighten the gap when the Welcome section is immediately followed by another section */
.welcome-section:has(+ .programs-section) {
  padding-bottom: 40px;
}

.welcome-section + .programs-section {
  padding-top: 40px;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 50px;
}

.welcome-copy h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 22px;
}

.welcome-copy p {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 18px;
}

.welcome-copy .btn {
  margin-top: 12px;
}

.welcome-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* =============================================================
   FAT FOOTER SECTION
   ============================================================= */
.fat-footer {
  width: 100%;
  background-color: var(--color-primary-dark);
  background-image: var(--gradient-navy-footer);
  color: var(--color-white);
  padding: 70px 0;
  border-top: 5px solid var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.footer-contact h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.25;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-contact p {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
  color: var(--color-white);
  margin-bottom: 8px;
}

.footer-phone {
  display: inline-block;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: var(--color-white);
  margin: 18px 0 10px;
}

.footer-phone:hover {
  color: var(--color-light);
}

.footer-maintenance {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

.footer-map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 6px;
}

/* =============================================================
   COPYRIGHT FOOTER BAR
   ============================================================= */
.copyright-bar {
  width: 100%;
  background-color: #1a1a1a;
  padding: 18px 0;
}

.copyright-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.copyright-bar p {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.copyright-bar a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.copyright-bar a:hover {
  color: var(--color-white);
}

/* =============================================================
   MOBILE STICKY CALL BAR
   ============================================================= */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 46px;
  background-color: var(--color-accent);
  z-index: 900;
  align-items: center;
  justify-content: center;
}

.mobile-call-bar a {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =============================================================
   ACCESSIBILITY WIDGET
   ============================================================= */
.a11y-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 950;
}

.a11y-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.a11y-toggle:hover,
.a11y-toggle:focus-visible {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

.a11y-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 280px;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.a11y-close {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.a11y-panel-body {
  padding: 16px;
}

.a11y-row {
  margin-bottom: 16px;
}

.a11y-row-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 8px;
}

.a11y-btn-group {
  display: flex;
  gap: 6px;
}

.a11y-btn-group button {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1;
  color: var(--color-primary);
  background-color: var(--color-light);
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  padding: 8px 6px;
  cursor: pointer;
}

.a11y-btn-group button:hover {
  background-color: #e6e6e6;
}

.a11y-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 14px;
  cursor: pointer;
}

.a11y-toggle-row input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.a11y-reset-all {
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1;
  color: var(--color-white);
  background-color: var(--color-accent);
  border: none;
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  margin-top: 4px;
}

.a11y-reset-all:hover {
  opacity: 0.9;
}

/* High Contrast Mode */
html.a11y-contrast body {
  background-color: #000000 !important;
  color: #ffffff !important;
}

html.a11y-contrast .site-header,
html.a11y-contrast .welcome-section,
html.a11y-contrast .a11y-panel {
  background-color: #000000 !important;
}

html.a11y-contrast p,
html.a11y-contrast h1,
html.a11y-contrast h2,
html.a11y-contrast h3,
html.a11y-contrast .a11y-row-label,
html.a11y-contrast .a11y-toggle-row,
html.a11y-contrast .topbar span {
  color: #ffffff !important;
}

html.a11y-contrast a,
html.a11y-contrast .main-nav a {
  color: #ffff00 !important;
}

html.a11y-contrast .btn,
html.a11y-contrast .a11y-reset-all {
  background-color: #ffff00 !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
}

html.a11y-contrast .alert-bar,
html.a11y-contrast .fat-footer,
html.a11y-contrast .copyright-bar,
html.a11y-contrast .topbar {
  background-image: none !important;
  background-color: #000000 !important;
  border-color: #ffff00 !important;
}

/* Underline Links Mode */
html.a11y-underline a {
  text-decoration: underline !important;
}

/* Reduce Motion Mode */
html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  transition: none !important;
  animation: none !important;
}

html.a11y-reduce-motion .fade-in-up {
  opacity: 1 !important;
  transform: none !important;
}

/* =============================================================
   RESPONSIVE: TABLET / MOBILE (<=768px)
   ============================================================= */
@media (max-width: 992px) {
  .welcome-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .welcome-photo {
    order: -1;
  }

  .hero-content h1 {
    font-size: 42px;
    white-space: normal;
  }

  .program-cards {
    grid-template-columns: 1fr 1fr;
  }

  .staff-grid,
  .document-grid {
    grid-template-columns: 1fr 1fr;
  }

  .two-col,
  .preference-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .apply-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .property-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .topbar {
    display: none;
  }

  .site-header {
    height: var(--header-height-mobile);
  }

  .logo img {
    height: 50px;
    max-height: 50px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    z-index: 400;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 24px;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid #e6e6e6;
  }

  .main-nav a {
    display: block;
    padding: 18px 4px;
    font-size: 17px;
  }

  .hero {
    height: 560px;
  }

  .hero-eyebrow {
    font-size: 12px;
    padding: 7px 16px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content .hero-subtitle {
    font-size: 18px;
  }

  .alert-bar .container {
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .alert-date {
    width: 100%;
  }

  .welcome-section {
    padding: 60px 0;
  }

  .welcome-copy h2 {
    font-size: 30px;
  }

  .welcome-photo img {
    height: 300px;
  }

  .page-titlebar {
    height: 240px;
  }

  .page-titlebar h1 {
    font-size: 36px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .program-cards,
  .staff-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .board-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .board-title {
    text-align: left;
  }

  .programs-section,
  .content-band {
    padding: 56px 0;
  }

  .empty-state {
    padding: 36px 24px;
  }

  .property-titlebar h1 {
    font-size: 28px;
  }

  .property-gallery-heading {
    font-size: 22px;
    gap: 10px;
  }

  .property-gallery-heading::before,
  .property-gallery-heading::after {
    max-width: 60px;
  }

  .property-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .property-map-wrap {
    height: 260px;
  }

  .property-content-section {
    padding: 50px 0;
  }

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

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

  .lightbox-prev,
  .lightbox-next {
    width: 42px;
    height: 42px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }

  .fat-footer {
    padding: 50px 0;
  }

  .footer-phone {
    font-size: 32px;
  }

  body {
    padding-bottom: 46px;
  }

  .mobile-call-bar {
    display: flex;
  }

  .a11y-widget {
    bottom: 62px;
    right: 16px;
  }

  .a11y-panel {
    width: calc(100vw - 32px);
    max-width: 300px;
  }

  .copyright-bar .container {
    flex-direction: column;
    text-align: center;
  }
}
