/* =========================================================
   THE CROSBY (40 Crosby St) — rebuilt static stylesheet
   Recreated from the mirrored Uncode/WPBakery WordPress theme.
   Plain CSS only — no framework, no build step.
   ========================================================= */

:root {
  --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --color-white: #ffffff;
  --color-black: #000000;
  --color-dark-grey: #3d3e3d;
  --color-text: #1a1a1a;
  --color-accent: #6087a3; /* separator-accent / link accent color from theme */
  --color-accent-dark: #476e8a;

  --overlay-dark: rgba(0, 0, 0, 0.65);
  --overlay-darker: rgba(0, 0, 0, 0.75);
  --overlay-white: rgba(255, 255, 255, 0.85);

  --max-width: 1200px;
  --section-pad-y: 6rem;
  --section-pad-y-sm: 3.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

p {
  margin: 0 0 1em;
}

.limit-width {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  text-transform: uppercase;
}

.section-heading {
  font-size: 2.1rem;
  font-weight: 400;
}

.section-lead {
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 0.75rem;
}

.divider {
  width: 90px;
  height: 0;
  border: none;
  border-top: 2px solid var(--color-accent);
  margin: 1.25rem auto 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header.left {
  text-align: left;
}
.section-header.left .divider {
  margin-left: 0;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.9em 2em;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn-light {
  color: var(--color-white);
}
.btn-light:hover,
.btn-light:focus-visible {
  background: var(--color-white);
  color: var(--color-black);
}

.btn-dark {
  color: var(--color-text);
}
.btn-dark:hover,
.btn-dark:focus-visible {
  background: var(--color-text);
  color: var(--color-white);
}

/* ---------------------------------------------------------
   Header / nav
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.site-logo img {
  height: 34px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 36px;
  height: 36px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span {
  top: 17px;
}
.nav-toggle span::before {
  top: -8px;
}
.nav-toggle span::after {
  top: 8px;
}
.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav ul {
  display: flex;
  gap: 2.25rem;
}

.main-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-bottom-color: var(--color-accent);
}

/* ---------------------------------------------------------
   Full-bleed background sections
   --------------------------------------------------------- */
.bg-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
  padding: var(--section-pad-y) 0;
}

.bg-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
}

.bg-section.overlay-strong::before {
  background: var(--overlay-darker);
}

.bg-section > .limit-width {
  position: relative;
  z-index: 1;
}

.bg-section .section-heading,
.bg-section p {
  color: var(--color-white);
}

.light-section {
  background: var(--color-white);
  padding: var(--section-pad-y) 0;
}

.light-section .section-heading {
  color: var(--color-text);
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}

.hero-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-size: cover;
  background-position: center;
  min-height: 420px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-panel .hero-logo {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
}

.hero-image {
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

/* ---------------------------------------------------------
   Intro text under headings
   --------------------------------------------------------- */
.intro-text {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.intro-text p {
  font-size: 1.05rem;
}

/* ---------------------------------------------------------
   Gallery grids (lightbox-enabled)
   --------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
}

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

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

.video-embed {
  max-width: 560px;
  margin: 3rem auto 0;
}

.video-embed .ratio {
  position: relative;
  padding-top: 56.25%;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------------------------------------
   Availability
   --------------------------------------------------------- */
.availability-image {
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.availability-image a {
  display: block;
}

/* ---------------------------------------------------------
   Office / Retail (bg sections with CTA)
   --------------------------------------------------------- */
.copy-block {
  max-width: 780px;
  margin: 0 auto;
}

.copy-block p {
  margin-bottom: 1.25rem;
}

.cta-wrap {
  text-align: center;
  margin-top: 2rem;
}

/* ---------------------------------------------------------
   Luxury features
   --------------------------------------------------------- */
.feature-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ---------------------------------------------------------
   Neighborhood
   --------------------------------------------------------- */
.neighborhood-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

.neighborhood-list h4 {
  font-size: 0.95rem;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--color-accent);
}

.neighborhood-list h4:first-child {
  margin-top: 0;
}

.neighborhood-list ol {
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.neighborhood-list ol li {
  counter-increment: item;
  font-size: 0.95rem;
  padding: 0.15rem 0;
}

.neighborhood-list ol li::before {
  content: counter(item) ".  ";
  color: var(--color-accent);
  font-weight: 600;
}

.neighborhood-map img {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.carousel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 3rem;
}

.carousel-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.carousel-grid a:hover img {
  transform: scale(1.06);
}

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */
.contact-agent {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-agent h4 {
  font-size: 1.1rem;
  color: var(--color-dark-grey);
}

.contact-agent p {
  margin-top: 0.5rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
}

.contact-row + .contact-row {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-logo {
  text-align: center;
}

.contact-logo img {
  margin: 0 auto 0.75rem;
  max-width: 130px;
}

.contact-logo p {
  font-size: 0.9rem;
  margin: 0;
}

.contact-blurb p {
  color: var(--color-dark-grey);
  font-size: 0.95rem;
}

.contact-blurb h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--color-dark-grey);
  color: var(--color-white);
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.footer-logo img {
  max-width: 150px;
}

.footer-grid h4 {
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.signup-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.signup-form input[type="text"],
.signup-form input[type="email"] {
  flex: 1 1 160px;
  padding: 0.75em 1em;
  border: none;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-body);
}

.signup-form input[type="submit"] {
  padding: 0.75em 1.5em;
  border: none;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.signup-form input[type="submit"]:hover {
  background: var(--color-accent);
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------------------------------------------------------
   Back to top
   --------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 0.85;
  pointer-events: auto;
}

.back-to-top:hover {
  opacity: 1;
}

/* ---------------------------------------------------------
   Lightbox
   --------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  margin: 0 auto;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}

.lightbox-close {
  top: 1rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto;
  }

  .contact-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 720px) {
  :root {
    --section-pad-y: var(--section-pad-y-sm);
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open {
    max-height: 300px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 2rem 1.5rem;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 0;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .signup-form {
    flex-direction: column;
  }
}
