/* ==========================================================================
   River Falls Apartments - Clean Modern Stylesheet
   Matches https://riverfallsidaho.com/ with modern UX/UI & WCAG improvements
   ========================================================================== */

:root {
  --ast-global-color-0: #4e3c23;
  --ast-global-color-1: #5b5b5b;
  --ast-global-color-2: #272322;
  --ast-global-color-3: #0c303e;
  --ast-global-color-4: #f5f5f5;
  --ast-global-color-5: #ffffff;
  --ast-global-color-6: #f2f5f7;
  --ast-global-color-7: #424242;
  --ast-global-color-8: #000000;

  --color-blue: #284661;
  --color-scroll-top: #487aa8;
  --color-scroll-top-hover: #9fc2e1;
  --color-dark-footer: #313131;
  --color-charcoal: #3f3f3f;
  --color-border-gray: #7a7a7a;

  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ast-global-color-3);
  background-color: var(--ast-global-color-5);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--ast-global-color-0);
  color: #ffffff;
}

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

a {
  color: var(--ast-global-color-0);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a:hover,
a:focus {
  color: var(--ast-global-color-1);
}

/* Keyboard Focus Accessibility (:focus-visible) */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ast-global-color-0);
  outline-offset: 3px;
}

.header-nav-bar a:focus-visible,
.header-nav-bar button:focus-visible,
.footer-dark-main a:focus-visible,
.rf-lightbox button:focus-visible {
  outline-color: #ffffff;
}

/* Typography with Fluid Scaling */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--ast-global-color-2);
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.65rem, 2.6vw, 2.4rem);
  line-height: 1.15;
}

h4 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
}

h5 {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.25;
}

h6 {
  font-size: 1.15rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1.5em;
}

p:last-child {
  margin-bottom: 0;
}

/* Accessible Skip-to-Content Link */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--ast-global-color-0);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  clip: auto !important;
  clip-path: none;
  color: #ffffff;
  display: block;
  font-size: 15px;
  font-weight: 600;
  height: auto;
  left: 16px;
  line-height: normal;
  padding: 12px 20px;
  text-decoration: none;
  top: 16px;
  width: auto;
  z-index: 100000;
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */

.site-header {
  width: 100%;
  background-color: #ffffff;
}

.header-top {
  max-width: 1140px;
  min-height: 88px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-logo-col {
  flex-shrink: 0;
}

.header-logo-link {
  display: inline-block;
}

.header-logo-link img {
  width: 175px;
  height: auto;
  display: block;
}

.header-quick-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.header-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ast-global-color-2);
  font-weight: 500;
  font-size: 16px;
}

.header-phone-link i {
  color: var(--ast-global-color-0);
}

.header-phone-link:hover {
  color: var(--ast-global-color-0);
}

.header-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ast-global-color-0);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 22px;
  border-radius: 3px;
  border: 1px solid var(--ast-global-color-0);
}

.header-apply-btn:hover,
.header-apply-btn:focus {
  background-color: var(--ast-global-color-1);
  border-color: var(--ast-global-color-1);
  color: #ffffff;
}

.header-nav-bar {
  background-color: var(--ast-global-color-0);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 990;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.header-nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  min-height: 48px;
}

.main-nav {
  width: 100%;
}

.main-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.main-nav-item {
  position: relative;
}

.main-nav-link {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background-color: #ffffff;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav-link:hover,
.main-nav-link:focus,
.main-nav-link.active {
  color: #e6dfd5;
  background-color: rgba(255, 255, 255, 0.08);
}

.main-nav-link:hover::after,
.main-nav-link.active::after {
  transform: scaleX(1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 22px;
  padding: 10px 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: inline-block;
}

/* Mobile Dropdown Navigation */
.mobile-nav-dropdown {
  display: none;
  background-color: #ffffff;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mobile-nav-dropdown.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-link {
  display: block;
  padding: 14px 20px;
  color: #33373d;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus,
.mobile-nav-link.active {
  background-color: var(--ast-global-color-0);
  color: #ffffff;
}

/* ==========================================================================
   Subpage Hero Banner (Amenities, Floorplans, Interior Photos, Contact, Apply)
   ========================================================================== */

.page-hero {
  position: relative;
  min-height: 420px;
  background-image: url('../images/River-Falls-Exterior-Perspective-1536x648.gif');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-charcoal);
  opacity: 0.35;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  width: 100%;
  padding: 20px;
}

.page-hero-content h1,
.page-hero-content h2 {
  color: #ffffff;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.page-hero-shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}

.page-hero-shape svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

.page-hero-shape .shape-fill {
  fill: #ffffff;
}

/* ==========================================================================
   Home Page
   ========================================================================== */

.home-hero-section {
  background-color: #ffffff;
  padding: 30px 10px 20px;
}

.home-hero-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.home-hero-left {
  width: 58%;
}

.hero-slider-wrapper {
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
}

.hero-slider-wrapper img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  display: block;
}

.home-hero-right {
  width: 42%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-hero-title {
  color: var(--ast-global-color-0);
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 12px;
}

.home-hero-subtitle {
  color: var(--ast-global-color-0);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.home-contact-boxes {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 24px;
}

.home-contact-box {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 14px;
  margin-bottom: 12px;
  width: 100%;
}

.home-contact-box-icon {
  color: var(--ast-global-color-0);
  fill: var(--ast-global-color-0);
  font-size: 19px;
  line-height: 1;
  margin-top: 3px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.home-contact-box-title,
.home-contact-box-title a {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--ast-global-color-2);
  line-height: 1.4;
  text-decoration: none;
  word-break: break-word;
}

.home-contact-box-title a:hover {
  color: var(--ast-global-color-0);
  text-decoration: underline;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.home-hero-actions .btn-primary-brown,
.home-hero-actions .btn-outline {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
}

/* Home Intro Description */
.home-description-section {
  max-width: 1020px;
  margin: 0 auto;
  padding: 35px 25px;
  text-align: center;
  color: var(--ast-global-color-2);
  font-size: 17px;
  line-height: 1.75;
}

.home-description-section p {
  margin-bottom: 1.5em;
}

.home-pet-policy {
  margin-top: 20px;
  background-color: #faf8f5;
  border-left: 4px solid var(--ast-global-color-0);
  padding: 16px 22px;
  border-radius: 4px;
}

/* Home 3-Column Info Boxes */
.home-infoboxes-section {
  max-width: 1140px;
  margin: 10px auto 20px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-infobox-col {
  padding: 30px 26px;
  text-align: left;
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.infobox-icon-wrap {
  margin: 0 0 14px;
  height: 36px;
  width: 36px;
  line-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ast-global-color-0);
  fill: var(--ast-global-color-0);
}

.infobox-icon-wrap i {
  font-size: 32px;
  color: var(--ast-global-color-0);
}

.infobox-icon-wrap svg {
  width: 32px;
  height: 32px;
  fill: var(--ast-global-color-0);
}

.infobox-title {
  color: var(--color-charcoal);
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.infobox-separator-wrap {
  text-align: left;
}

.infobox-separator {
  display: inline-block;
  width: 56px;
  border-top: 2px solid var(--ast-global-color-0);
  margin: 4px 0 14px;
}

.infobox-text {
  color: var(--color-charcoal);
  margin: 0 0 24px;
  flex-grow: 1;
}

.infobox-cta-wrap {
  margin-top: auto;
}

.btn-outline {
  display: inline-block;
  color: var(--ast-global-color-0);
  background-color: transparent;
  border: 1.5px solid var(--ast-global-color-0);
  border-radius: 3px;
  padding: 11px 32px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline:hover,
.btn-outline:focus {
  color: #ffffff;
  background-color: var(--ast-global-color-0);
  border-color: var(--ast-global-color-0);
}

/* Dividers */
.section-divider-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 15px;
}

.section-divider-line {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid #d8d8d8;
  margin: 0;
}

/* Home Partners / Logos Section */
.home-partners-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2em 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
  gap: 24px;
}

.partner-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.partner-col h2,
.partner-col h5 {
  color: var(--ast-global-color-2);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.partner-logo-mccathren {
  max-width: 160px;
}

.partner-logo-cornerstone {
  max-width: 207px;
}

.partner-logo-equalhousing {
  max-width: 140px;
}

/* Google Map Embed Section */
.map-embed-section {
  max-width: 1140px;
  margin: 10px auto 60px;
  padding: 0 15px;
}

.map-embed-section iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  display: block;
}

/* Home Site Plan Section */
.home-plan-section {
  background-color: #ffffff;
  padding: 20px 15px 60px;
}

.home-plan-container {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}

.plan-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26%;
  min-width: 220px;
  margin: 0 auto 20px;
  padding: 10px 0;
}

.plan-divider::before,
.plan-divider::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid var(--ast-global-color-2);
}

.plan-divider-text {
  margin: 0 16px;
  color: var(--ast-global-color-0);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1;
}

.home-plan-image-wrap {
  text-align: center;
  margin-top: 10px;
}

.home-plan-image-wrap a {
  display: inline-block;
  cursor: zoom-in;
}

.home-plan-image-wrap img {
  max-width: 65%;
  height: auto;
  display: inline-block;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-plan-image-wrap a:hover img {
  transform: scale(1.015);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

/* ==========================================================================
   Amenities Page
   ========================================================================== */

.amenities-content-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.amenities-title {
  text-align: center;
  color: var(--ast-global-color-0);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 600;
  margin: 0 0 32px;
}

.amenities-list-container {
  margin: 0 auto;
}

.amenities-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
}

.amenities-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: #faf8f5;
  border: 1px solid #ece7df;
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ast-global-color-2);
}

.amenities-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free", sans-serif;
  font-weight: 900;
  color: var(--ast-global-color-0);
  font-size: 16px;
  flex-shrink: 0;
}

.amenities-bottom-section {
  max-width: 1140px;
  margin: 40px auto 60px;
  padding: 0 15px;
}

.amenities-bottom-section iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  display: block;
}

.amenities-apply-cta {
  text-align: center;
  margin-top: 36px;
  padding: 28px 20px;
  background-color: #faf8f5;
  border: 1px solid #ece7df;
  border-radius: 6px;
}

.amenities-apply-cta h2,
.amenities-apply-cta h5 {
  color: var(--color-charcoal);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.amenities-apply-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Floorplans Page
   ========================================================================== */

.floorplans-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 15px 60px;
}

.floorplans-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--ast-global-color-2);
}

.floorplans-intro h2 {
  color: var(--ast-global-color-0);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-bottom: 10px;
}

.floorplans-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.floorplans-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.floorplan-item {
  padding: 20px 16px;
  text-align: center;
  background-color: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floorplan-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.floorplan-img-wrap {
  margin-bottom: 16px;
}

.floorplan-img-wrap a {
  display: block;
  cursor: zoom-in;
}

.floorplan-img-wrap img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  transition: transform 0.2s ease;
}

.floorplan-img-wrap a:hover img {
  transform: scale(1.02);
}

.floorplan-title {
  text-align: center;
  color: var(--ast-global-color-0);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.floorplan-meta {
  display: block;
  font-size: 14px;
  color: var(--ast-global-color-1);
  font-weight: 500;
}

/* ==========================================================================
   Interior Photos Page
   ========================================================================== */

.interior-gallery-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 15px 60px;
}

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

.gallery-item {
  margin: 0;
  text-align: center;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f2f2f2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
}

.gallery-icon a {
  display: block;
  line-height: 0;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-icon img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.gallery-icon a:hover img {
  transform: scale(1.05);
  opacity: 0.94;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-page-section {
  max-width: 1140px;
  margin: 70px auto;
  padding: 0 15px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.contact-col-left {
  width: 50%;
  padding: 10px;
}

.contact-col-right {
  width: 50%;
  padding: 10px;
}

.contact-heading {
  color: var(--ast-global-color-0);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-details-text {
  line-height: 1.65;
  margin-bottom: 18px;
}

.contact-details-text p {
  margin-bottom: 1.25em;
}

.contact-details-text a {
  font-weight: 500;
}

.contact-details-text a:hover {
  text-decoration: underline;
}

.office-hours-label p {
  margin-bottom: 8px;
}

.business-hours-box {
  border: 1px solid #d5dde2;
  border-radius: 6px;
  padding: 16px;
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.business-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #eaeaea;
  border-radius: 3px;
}

.business-hours-row:nth-child(odd) {
  background-color: #f9f9f9;
}

.business-hours-row:last-child {
  border-bottom: 0;
}

.business-hours-row.closed .bh-day,
.business-hours-row.closed .bh-time {
  color: #a82020;
  font-weight: 500;
}

.contact-map-section {
  max-width: 1140px;
  margin: 0 auto 60px;
  padding: 0 15px;
}

.contact-map-section iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  display: block;
}

/* ==========================================================================
   Apply Page (/apply/index.html)
   ========================================================================== */

.apply-page-section {
  max-width: 1100px;
  margin: 60px auto 80px;
  padding: 0 20px;
  text-align: center;
}

.apply-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 48px 40px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.apply-card h2,
.apply-card h3 {
  color: var(--ast-global-color-0);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  margin-bottom: 18px;
}

.apply-card p {
  color: var(--ast-global-color-2);
  margin-bottom: 24px;
}

.btn-primary-brown {
  display: inline-block;
  background-color: var(--ast-global-color-0);
  color: #ffffff;
  padding: 14px 42px;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--ast-global-color-0);
  transition: all 0.2s ease;
}

.btn-primary-brown:hover,
.btn-primary-brown:focus {
  background-color: var(--ast-global-color-1);
  border-color: var(--ast-global-color-1);
  color: #ffffff;
}

/* ==========================================================================
   Dark Footer with 2-Column Contact Info
   ========================================================================== */

.footer-dark-main {
  background-color: var(--color-dark-footer);
  padding: 50px 20px 30px;
  color: #ffffff;
}

.footer-dark-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.footer-col-left,
.footer-col-right {
  width: 50%;
  padding: 10px;
}

.footer-icon-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-icon-box i {
  font-size: 20px;
  color: #ffffff;
  width: 20px;
  text-align: center;
}

.footer-icon-box h2,
.footer-icon-box h6 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
}

.footer-divider {
  margin: 4px 0 6px 35px;
  padding: 2px 0;
}

.footer-divider span {
  display: block;
  border-top: 1px solid var(--color-border-gray);
}

.footer-divider.w-43 span {
  width: 43%;
}

.footer-divider.w-25 span {
  width: 25%;
}

.footer-divider.w-31 span {
  width: 31%;
}

.footer-info-value {
  margin: 0 0 20px 35px;
  color: #ffffff;
}

.footer-info-value a {
  color: #ffffff;
  text-decoration: none;
}

.footer-info-value a:hover {
  color: #cfcfcf;
  text-decoration: underline;
}

/* ==========================================================================
   Footer Copyright Bar (All Pages)
   ========================================================================== */

.footer-copyright-bar {
  background-color: var(--color-dark-footer);
  color: #ffffff;
  text-align: center;
  padding: 20px 10px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright-bar p {
  margin: 0;
  font-size: 14px;
  color: #d8d8d8;
}

/* ==========================================================================
   Scroll to Top Button (#ast-scroll-top)
   ========================================================================== */

#ast-scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 42px;
  height: 42px;
  background-color: var(--color-scroll-top);
  color: #ffffff;
  font-size: 16px;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}

#ast-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

#ast-scroll-top:hover {
  background-color: var(--color-scroll-top-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Lightbox Modal (Interior Photos & Floorplans)
   ========================================================================== */

.rf-lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  user-select: none;
}

.rf-lightbox.open {
  display: flex;
}

.rf-lightbox-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: #ffffff;
  z-index: 10;
}

.rf-lightbox-counter {
  font-size: 15px;
  color: #e0e0e0;
}

.rf-lightbox-close {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
  padding: 6px 12px;
  line-height: 1;
}

.rf-lightbox-close:hover {
  color: #cfcfcf;
}

.rf-lightbox-stage {
  position: relative;
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rf-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.rf-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  border: 0;
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease;
}

.rf-lightbox-nav:hover {
  background: rgba(78, 60, 35, 0.9);
}

.rf-lightbox-prev {
  left: 24px;
}

.rf-lightbox-next {
  right: 24px;
}

.rf-lightbox-caption {
  margin-top: 12px;
  color: #ffffff;
  font-size: 15px;
  text-align: center;
  padding: 0 16px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .floorplans-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 767px) {
  .header-top {
    padding: 10px 16px;
  }

  .header-logo-link img {
    width: 145px;
  }

  .header-phone-link span {
    display: none;
  }

  .header-apply-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .page-hero {
    min-height: 300px;
    background-image: url('../images/River-Falls-Exterior-Perspective-768x324.gif');
  }

  .home-hero-container {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .home-hero-left,
  .home-hero-right {
    width: 100%;
    padding: 0;
  }

  .hero-slider-wrapper img {
    height: 280px;
  }

  .home-contact-boxes {
    align-items: center;
  }

  .home-contact-box {
    justify-content: center;
  }

  .home-hero-actions {
    justify-content: center;
  }

  .home-infoboxes-section {
    grid-template-columns: 1fr;
  }

  .home-partners-section {
    grid-template-columns: 1fr;
  }

  .home-plan-section {
    padding: 20px 15px 40px;
  }

  .home-plan-image-wrap img {
    max-width: 95%;
  }

  .amenities-list {
    grid-template-columns: 1fr;
  }

  .floorplans-row-3,
  .floorplans-row-4 {
    grid-template-columns: 1fr;
  }

  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .contact-page-section {
    flex-direction: column;
    margin: 40px auto;
    gap: 28px;
  }

  .contact-col-left,
  .contact-col-right {
    width: 100%;
    padding: 0;
  }

  .apply-card {
    padding: 32px 22px;
  }

  .footer-dark-main {
    padding: 32px 15px 16px;
  }

  .footer-dark-container {
    flex-direction: column;
    gap: 0;
  }

  .footer-col-left,
  .footer-col-right {
    width: 100%;
    text-align: center;
  }

  .footer-icon-box {
    flex-direction: column;
    gap: 6px;
    justify-content: center;
  }

  .footer-divider {
    margin: 6px auto;
  }

  .footer-divider span {
    margin: 0 auto;
  }

  .footer-info-value {
    margin: 0 0 20px;
    text-align: center;
  }

  .rf-lightbox-prev {
    left: 10px;
  }

  .rf-lightbox-next {
    right: 10px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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