/* ============================================
   101 MONROE - Brooklyn, Michigan
   Boutique Apartments in a Historic Building
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --hemlock: #627368;
  --hemlock-dark: #4a5850;
  --hemlock-light: #7a8b80;
  --plaster: #F3F1EC;
  --plaster-dark: #E8E4DC;
  --charcoal: #2F3331;
  --charcoal-light: #4a4d4b;
  --limestone: #D8C9A3;
  --brick: #8A5A44;
  --white: #FEFDFB;
  
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(47, 51, 49, 0.08);
  --shadow-md: 0 4px 20px rgba(47, 51, 49, 0.12);
  --shadow-lg: 0 8px 40px rgba(47, 51, 49, 0.16);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--plaster);
}

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

a {
  color: var(--hemlock);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--hemlock-dark);
}

::selection {
  background-color: var(--hemlock);
  color: var(--white);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--charcoal);
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

.subhead {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--charcoal-light);
  letter-spacing: 0.01em;
}

.micro {
  font-size: 0.9375rem;
  color: var(--charcoal-light);
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hemlock);
  margin-bottom: 0.5rem;
}

/* ---------- 101 MONROE Logo Styling ---------- */
.logo-101 {
  font-size: 1em;
  font-weight: 700;
}

.logo-monroe {
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav__logo .logo-101,
.nav__logo .logo-monroe {
  font-size: 1em;
}

.footer__brand .logo-101,
.footer__brand .logo-monroe {
  font-size: 1em;
}

h1 .logo-101 {
  font-size: 1.2em;
}

h1 .logo-monroe {
  font-size: 1em;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section--alt {
  background-color: var(--white);
}

.section--hemlock {
  background-color: var(--hemlock);
  color: var(--plaster);
}

.section--hemlock h2,
.section--hemlock h3 {
  color: var(--white);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--plaster);
  border-bottom: 1px solid var(--plaster-dark);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--charcoal-light);
  transition: color 0.2s;
  padding: 0.5rem 0;
}

.nav__link:hover {
  color: var(--charcoal);
}

.nav__cta {
  padding: 0.625rem 1.25rem;
  background-color: var(--hemlock);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.nav__cta:hover {
  background-color: var(--hemlock-dark);
  color: var(--white) !important;
}

/* Mobile Nav */
.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--charcoal);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  background-color: var(--white);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(47, 51, 49, 0.4);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-overlay.is-open {
  opacity: 1;
}

.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--plaster-dark);
}

.mobile-menu__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--charcoal);
}

.mobile-menu__link {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: 1px solid var(--plaster-dark);
}

.mobile-menu__cta {
  display: block;
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: var(--hemlock);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }
  
  .nav__mobile-toggle {
    display: block;
  }
  
  .mobile-menu,
  .mobile-overlay {
    display: block;
  }
}

/* ---------- Floating CTA ---------- */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  padding: 0.875rem 1.5rem;
  background-color: var(--hemlock);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.floating-cta:hover {
  background-color: var(--hemlock-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.floating-cta svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .floating-cta {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(47, 51, 49, 0.3) 0%,
    rgba(47, 51, 49, 0.5) 50%,
    rgba(47, 51, 49, 0.7) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
  max-width: 800px;
}

.hero__content h1 {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__content .subhead {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
  max-width: none;
}

.hero__content .micro {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

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

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

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

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

.btn--outline-dark {
  background-color: transparent;
  color: var(--hemlock);
  border-color: var(--hemlock);
}

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

.btn--small {
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
}

/* ---------- Gallery ---------- */
.gallery__filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.gallery__filter {
  padding: 0.5rem 1rem;
  background-color: transparent;
  border: 1px solid var(--plaster-dark);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal-light);
  cursor: pointer;
  transition: all 0.2s;
}

.gallery__filter:hover {
  border-color: var(--hemlock);
  color: var(--hemlock);
}

.gallery__filter.active {
  background-color: var(--hemlock);
  border-color: var(--hemlock);
  color: var(--white);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--plaster-dark);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(47, 51, 49, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
}

.gallery__item-label {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Mid-gallery CTA */
.gallery__cta-card {
  aspect-ratio: 4/3;
  background-color: var(--hemlock);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--white);
}

.gallery__cta-card h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.gallery__cta-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.gallery__cta-card .btn {
  background-color: var(--white);
  color: var(--hemlock);
  border-color: var(--white);
}

.gallery__cta-card .btn:hover {
  background-color: var(--plaster);
  border-color: var(--plaster);
}

/* Gallery Availability Note */
.gallery__footer {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery__footer p {
  margin: 0;
  font-weight: 500;
}

.gallery__footer span {
  color: var(--hemlock);
}

/* ---------- Units Grid (Apartments Section) ---------- */
.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.unit-card {
  background-color: var(--plaster);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}

.unit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.unit-card__image {
  position: relative;
  aspect-ratio: 4/3;
  background-color: var(--white);
  cursor: pointer;
  overflow: hidden;
}

.unit-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s;
}

.unit-card:hover .unit-card__image img {
  transform: scale(1.02);
}

.unit-card__zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hemlock);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity 0.3s;
}

.unit-card:hover .unit-card__zoom {
  opacity: 1;
}

.unit-card__content {
  padding: 1.25rem 1.5rem;
  background-color: var(--white);
}

.unit-card__content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.unit-card__details {
  display: flex;
  gap: 1rem;
  font-size: 0.9375rem;
  color: var(--charcoal-light);
}

.unit-card__details span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.unit-card__details span:not(:last-child)::after {
  content: '•';
  margin-left: 1rem;
  color: var(--plaster-dark);
}

.floorplan-disclaimer {
  font-size: 0.875rem;
  color: var(--charcoal-light);
  font-style: italic;
  text-align: center;
  margin-top: 1rem;
}

/* ---------- Before Photos Section ---------- */
.before-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.before-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--plaster-dark);
}

.before-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.before-item:hover img {
  transform: scale(1.03);
}

.before-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(47, 51, 49, 0.8), transparent);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ---------- History Section ---------- */
.history {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.history__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.history__image img {
  width: 100%;
  height: auto;
}

.history__content h2 {
  margin-bottom: 1.5rem;
}

.history__content p {
  color: var(--charcoal-light);
  margin-bottom: 1.25rem;
}

.fast-facts {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--plaster-dark);
  flex-wrap: wrap;
}

.fast-fact {
  text-align: left;
}

.fast-fact__value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--hemlock);
  line-height: 1.2;
}

.fast-fact__label {
  font-size: 0.875rem;
  color: var(--charcoal-light);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .history {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .history__image {
    order: -1;
  }
}

/* ---------- Progress Section ---------- */
.progress-update {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.progress-update__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.progress-update__badge {
  padding: 0.375rem 0.75rem;
  background-color: var(--hemlock);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}

.progress-update__date {
  font-size: 0.9375rem;
  color: var(--charcoal-light);
}

.progress-update__title {
  margin-bottom: 1rem;
}

.progress-update__list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.progress-update__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal-light);
}

.progress-update__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: var(--hemlock);
  border-radius: 50%;
}

.progress-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.progress-photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--plaster-dark);
  cursor: pointer;
}

.progress-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- About Section ---------- */
.about {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

.about__images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about__image img {
  width: 100%;
  height: auto;
}

.about__image--family {
  position: relative;
}

.about__image-caption {
  font-size: 0.8125rem;
  color: var(--charcoal-light);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

.about__content h2 {
  margin-bottom: 1.5rem;
}

.about__content p {
  color: var(--charcoal-light);
  margin-bottom: 1.25rem;
}

.about__content p:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about__images {
    flex-direction: row;
    position: static;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.5rem;
  }
  
  .about__image {
    flex: 0 0 250px;
  }
}

@media (max-width: 540px) {
  .about__images {
    flex-direction: column;
  }
  
  .about__image {
    flex: 0 0 auto;
    max-width: 300px;
  }
}

/* ---------- Form Section ---------- */
.form-section {
  max-width: 700px;
  margin: 0 auto;
}

.form-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-section__header h2 {
  margin-bottom: 0.75rem;
}

.form-section__header p {
  color: var(--charcoal-light);
  max-width: none;
  margin: 0 auto;
}

/* Form Styles */
.form {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.form__section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--plaster-dark);
}

.form__section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.form__section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hemlock);
  margin-bottom: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form__row:last-child {
  margin-bottom: 0;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--charcoal);
}

.form__label--required::after {
  content: ' *';
  color: var(--brick);
}

.form__input,
.form__select,
.form__textarea {
  padding: 0.875rem 1rem;
  border: 1px solid var(--plaster-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background-color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--hemlock);
  box-shadow: 0 0 0 3px rgba(98, 115, 104, 0.15);
}

.form__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a4d4b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__textarea {
  min-height: 100px;
  resize: vertical;
}

.form__submit {
  width: 100%;
  margin-top: 1.5rem;
}

.form__note {
  font-size: 0.8125rem;
  color: var(--charcoal-light);
  margin-top: 1rem;
  text-align: center;
}

/* Form Success */
.form__success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form__success.is-visible {
  display: block;
}

.form__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background-color: var(--hemlock);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.form__success h3 {
  margin-bottom: 0.75rem;
}

.form__success p {
  color: var(--charcoal-light);
  max-width: none;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(47, 51, 49, 0.7);
  backdrop-filter: blur(4px);
}

.modal__container {
  position: relative;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  background-color: var(--plaster);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal.is-open .modal__container {
  transform: translateY(0);
}

.modal__header {
  position: sticky;
  top: 0;
  background-color: var(--plaster);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--plaster-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.modal__title {
  font-size: 1.25rem;
}

.modal__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--charcoal-light);
  transition: color 0.2s;
}

.modal__close:hover {
  color: var(--charcoal);
}

.modal__body {
  padding: 2rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background-color: rgba(47, 51, 49, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 0.5rem;
  z-index: 1;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 1rem;
  transition: background-color 0.2s;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.9375rem;
  text-align: center;
  padding: 0.5rem 1rem;
  background: rgba(47, 51, 49, 0.7);
  border-radius: var(--radius-sm);
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--charcoal);
  color: var(--plaster);
  padding: 3rem 0 2rem;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer__location {
  color: rgba(243, 241, 236, 0.7);
  font-size: 0.9375rem;
}

.footer__contact a {
  color: var(--limestone);
}

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

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(243, 241, 236, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(243, 241, 236, 0.5);
}

/* ---------- Tenant Cards (Commercial Section) ---------- */
.tenants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

@media (max-width: 500px) {
  .tenants-grid {
    grid-template-columns: 1fr;
  }
}

.tenant-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tenant-card--featured {
  border: 2px solid var(--hemlock);
}

.tenant-card--placeholder {
  background-color: var(--plaster);
  border: 2px dashed var(--plaster-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.tenant-card__logo {
  padding: 2rem;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--plaster-dark);
}

.tenant-card__logo img {
  max-height: 90px;
  width: auto;
}

.tenant-card__content {
  padding: 2rem;
}

.tenant-card__content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.tenant-card__meta {
  font-size: 0.9375rem;
  color: var(--hemlock);
  font-weight: 500;
  margin-bottom: 1rem;
}

.tenant-card__description {
  color: var(--charcoal-light);
  margin-bottom: 1.25rem;
}

.tenant-card__features {
  list-style: none;
  margin-bottom: 0;
}

.tenant-card__features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal-light);
  font-size: 0.9375rem;
}

.tenant-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background-color: var(--hemlock);
  border-radius: 50%;
}

.tenant-card--placeholder .tenant-card__content {
  text-align: center;
}

.tenant-card--placeholder h3 {
  color: var(--charcoal-light);
}

.tenant-card--placeholder .tenant-card__description {
  margin-bottom: 1.5rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.cta-banner p {
  margin: 0;
  font-weight: 500;
}

.cta-banner span {
  color: var(--hemlock);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
