:root {
  --navy: #14173d;
  --title-bg: #333144;
  --cyan: #00bcd4;
  --gold: #efc567;
  --gray: #6e707f;
  --slate: #46485c;
  --slate-2: #4b4c59;
  --overlay: #353535;
  --text: #3c3f50;
  --line: #e4e5ec;
  --bg: #f6f7fa;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(20, 23, 61, 0.12);
  --radius: 10px;
  --header-h: 84px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: Montserrat, "Source Sans 3", sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 10000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Top bar */
.topbar {
  background: var(--navy);
  color: #d8dbe8;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.topbar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  min-height: 38px;
  padding: 6px 0;
}

.topbar a {
  color: #d8dbe8;
}

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

/* Header */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(20, 23, 61, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.logo {
  display: inline-flex;
  padding: 5px 0;
}

.logo img {
  width: 220px;
  height: auto;
}

.nav-list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 10px 16px;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  border-radius: 6px;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: 0.25s ease;
}

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

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

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

/* Page title */
.page-hero {
  background:
    linear-gradient(180deg, rgba(51, 49, 68, 0.78), rgba(20, 23, 61, 0.86)),
    url("https://www.enyocproperties.com/wp-content/uploads/2019/08/real-estate.jpg") center / cover no-repeat,
    var(--title-bg);
  color: #fff;
  text-align: center;
  padding: 56px 20px;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border: 2px solid var(--navy);
  border-radius: 6px;
  color: var(--navy);
  background: transparent;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--navy);
  color: #fff;
}

.btn-light {
  border-color: #fff;
  color: #fff;
}

.btn-light:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn-solid {
  background: var(--navy);
  color: #fff;
}

.btn-solid:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}

/* Home hero */
.home-hero {
  background:
    url("https://www.enyocproperties.com/wp-content/uploads/2020/12/h1_lt.jpg") center / cover no-repeat;
  text-align: center;
  padding: 72px 20px 56px;
}

.home-hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  margin: 0;
  font-weight: 800;
}

.home-hero .light {
  font-weight: 400;
}

.home-hero .colleges {
  margin: 18px 0 28px;
  color: var(--navy);
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.intro {
  max-width: 760px;
  margin: 48px auto;
  text-align: center;
  color: var(--slate);
  font-size: 18px;
}

/* Property grids */
.available {
  background:
    linear-gradient(180deg, rgba(20, 23, 61, 0.55), rgba(20, 23, 61, 0.7)),
    url("https://www.enyocproperties.com/wp-content/uploads/2019/08/real-estate.jpg") center / cover no-repeat;
  padding: 72px 0 80px;
  color: #fff;
}

.available h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  margin-bottom: 36px;
}

.available h2 {
  color: #fff;
}

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

.property-grid.listings {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.property-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--overlay);
  color: #fff;
  box-shadow: var(--shadow);
}

.property-card img,
.property-card .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.property-card .ph,
.listing-card a.thumb .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #2a2d4a, #14173d);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 20px;
}

.property-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(53, 53, 53, 0.0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  transition: background 0.3s ease;
}

.property-card h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 10px;
  transform: translateY(8px);
  transition: 0.3s ease;
}

.property-card .rule {
  width: 48px;
  height: 1px;
  background: #fff;
  opacity: 0;
  transition: 0.3s ease;
}

.property-card:hover img,
.property-card:focus-visible img {
  transform: scale(1.06);
}

.property-card:hover .overlay,
.property-card:focus-visible .overlay {
  background: rgba(53, 53, 53, 0.78);
}

.property-card:hover h3,
.property-card:focus-visible h3 {
  transform: none;
}

.property-card:hover .rule,
.property-card:focus-visible .rule {
  opacity: 1;
}

.listing-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(20, 23, 61, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.listing-card a.thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy);
}

.listing-card a.thumb img,
.listing-card a.thumb .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.listing-card:hover a.thumb img {
  transform: scale(1.04);
}

.listing-card .body {
  padding: 22px 22px 26px;
  text-align: center;
}

.listing-card h2 {
  font-size: 20px;
  margin: 0 0 14px;
  font-weight: 600;
}

.listing-card .read-more {
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.listings-wrap {
  padding: 60px 0 80px;
  background: var(--bg);
}

.available .grid-wrap {
  margin-bottom: 36px;
}

.center {
  text-align: center;
}

/* College blurb + CTA */
.blurb {
  padding: 72px 0 20px;
  text-align: center;
}

.blurb h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.blurb p {
  max-width: 680px;
  margin: 0 auto 8px;
  color: var(--slate);
}

.cta-call {
  padding: 20px 0 80px;
  text-align: center;
}

.cta-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  color: var(--slate);
}

.cta-call .question {
  color: var(--gray);
  font-size: 20px;
  margin-bottom: 8px;
}

.cta-call .phone-line {
  font-family: Montserrat, sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--slate);
}

.cta-call .phone-line a {
  color: var(--cyan);
}

.cta-call .phone-line a:hover {
  color: var(--navy);
}

/* Property detail */
.map-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.property-lead {
  padding: 48px 0 20px;
  text-align: center;
}

.property-lead .hero-photo {
  max-width: 820px;
  margin: 0 auto 28px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.property-lead .hero-photo img {
  width: 100%;
}

.property-lead .tagline {
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  max-width: 820px;
  margin: 0 auto 8px;
}

.property-lead .intro-copy {
  max-width: 820px;
  margin: 0 auto;
  color: var(--slate);
}

.gallery {
  padding: 10px 0 40px;
}

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

.gallery-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #eee;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-grid a:hover img,
.gallery-grid a:focus-visible img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.details {
  padding: 20px 0 40px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 520px;
  margin: 0 auto;
}

.details h3 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.details h3::before,
.details h3::after {
  content: "";
  flex: 1;
  height: 9px;
  background:
    linear-gradient(var(--navy), var(--navy)) center 0 / 100% 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center 4px / 100% 1px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center 8px / 100% 1px no-repeat;
  opacity: 0.55;
}

.details ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.details li {
  position: relative;
  padding: 7px 0 7px 28px;
  color: var(--slate);
}

.details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--cyan);
  border-radius: 3px;
  background: #fff;
}

.details li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  width: 5px;
  height: 9px;
  border: solid var(--cyan);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.details li ul {
  margin-top: 4px;
}

.details li li {
  padding-left: 18px;
  color: var(--gray);
  font-size: 15px;
}

.details li li::before,
.details li li::after {
  display: none;
}

.apply-banner {
  text-align: center;
  padding: 10px 0 80px;
}

.apply-banner p {
  color: var(--gray);
  margin-bottom: 16px;
}

/* Application */
.app-page {
  padding: 70px 0 30px;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.app-page h2 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.app-preview {
  display: block;
  max-width: 320px;
  margin: 0 auto;
  background: transparent;
}

.app-preview img {
  background: transparent;
}

.app-page ol {
  padding-left: 22px;
  color: var(--slate);
}

.app-page li {
  margin: 12px 0;
}

/* Footer */
.site-footer {
  background: #1b1d33;
  color: #c9cbd6;
  padding: 56px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.site-footer h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 18px;
}

.site-footer a {
  color: var(--gold);
}

.site-footer a:hover {
  color: #fff;
}

.footer-app img {
  width: 180px;
  border-radius: 4px;
}

.legal {
  background: #141628;
  color: #9aa0b5;
  font-size: 13px;
  padding: 16px 0;
}

.legal-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.legal a {
  color: #cfd3e4;
}

.legal a:hover {
  color: var(--cyan);
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 900;
}

.to-top.is-visible { display: flex; }
.to-top:hover { background: var(--cyan); color: #fff; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 28, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 48px 72px;
}

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

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 96px);
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  padding: 8px 14px;
}

.lightbox-close { top: 12px; right: 16px; font-size: 42px; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--cyan); }

.lightbox-count {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #cfd3e4;
  font-size: 14px;
}

/* Icons */
.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 1024px) {
  .property-grid,
  .property-grid.listings,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .details-grid,
  .app-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .menu-toggle { display: block; }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: var(--shadow);
  }

  body.nav-open .nav { transform: none; }

  .nav-list {
    flex-direction: column;
    gap: 4px;
  }

  .nav-list a {
    padding: 14px 8px;
    font-size: 15px;
  }

  .topbar-inner { gap: 10px 16px; font-size: 12px; }
  .logo img { width: 170px; }

  .property-card .overlay {
    background: linear-gradient(to top, rgba(20, 23, 61, 0.86), transparent 58%);
    justify-content: flex-end;
    padding-bottom: 16px;
  }

  .property-card h3,
  .property-card .rule {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .property-grid,
  .property-grid.listings,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .home-hero { padding: 48px 16px 40px; }
  .page-hero { padding: 40px 16px; }
  .map-embed iframe { height: 280px; }
  .lightbox { padding: 56px 16px; }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
