/* =========================================================
   155 Spring Street — rebuilt static site
   Recreates the Uncode-theme WordPress design in plain CSS.
   ========================================================= */

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-offwhite: #eeeeee;
  --color-gray: #aaaaaa;
  --overlay-dark: rgba(0, 0, 0, 0.7);
  --overlay-dark-light: rgba(0, 0, 0, 0.5);
  --font-serif: Georgia, "Times New Roman", "Iowan Old Style", Cambria, serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --section-pad-desktop: 180px;
  --section-pad-tablet: 108px;
  --section-pad-mobile: 72px;
  --side-pad: 36px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* -------------------- Header / Nav -------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

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

.main-nav a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--color-black);
}

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

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

/* -------------------- Sections (shared) -------------------- */

section {
  position: relative;
}

.section-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--section-pad-desktop) var(--side-pad);
}

.bg-photo {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  z-index: 0;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bg-overlay.dark {
  background: var(--overlay-dark);
}

.bg-overlay.dark-light {
  background: var(--overlay-dark-light);
}

.section-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 44px;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}

.section-heading + .separator {
  margin-bottom: 44px;
}

.separator {
  width: 60px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  border: 0;
  margin: 0 auto 44px;
}

.text-left .separator {
  margin-left: 0;
}

.on-dark {
  color: var(--color-white);
}

.on-dark .separator {
  background: var(--color-white);
}

/* -------------------- Hero -------------------- */

#top {
  min-height: 100vh;
  display: flex;
}

#top .bg-photo {
  background-image: url("images/hero-bg.jpg");
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
}

.hero-spacer {
  /* left half intentionally left clear so the background photo shows through,
     matching the original design's asymmetric layout */
}

.hero-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 60px 40px;
}

.hero-panel-inner {
  max-width: 460px;
}

.hero-logo {
  max-width: 320px;
  width: 100%;
  margin: 0 auto 28px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin: 0 0 20px;
}

.hero-panel .separator {
  background: var(--color-white);
}

/* -------------------- Gallery -------------------- */

#gallery .section-inner {
  padding-top: 60px;
  padding-bottom: 60px;
  max-width: 1600px;
}

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

.gallery-grid a {
  display: block;
  overflow: hidden;
  position: relative;
}

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

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

.gallery-grid a:nth-child(7) {
  grid-row: span 2;
}

/* -------------------- Floor Plan -------------------- */

#floorplan .bg-photo {
  background-image: url("images/floorplan-bg.jpg");
}

#floorplan .section-inner {
  color: var(--color-white);
}

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

.floorplan-columns img {
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
}

.spec-list p {
  margin: 0 0 18px;
}

.spec-list .spec-intro {
  font-weight: 700;
}

.spec-list strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--color-white);
}

/* -------------------- Neighborhood -------------------- */

#neighborhood .section-inner {
  text-align: center;
}

#neighborhood img {
  margin: 0 auto;
  max-width: 100%;
}

/* -------------------- Contact -------------------- */

#contact {
  color: var(--color-white);
}

#contact .bg-photo {
  background-image: url("images/contact-bg.jpg");
  background-position: center bottom;
}

#contact .section-inner {
  text-align: center;
}

.contact-block {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 34px;
  align-items: center;
  text-align: left;
  max-width: 900px;
  margin: 0 auto 40px;
}

.contact-block:last-of-type {
  margin-bottom: 0;
}

.contact-logo {
  max-width: 140px;
  margin: 0 auto;
}

.contact-name {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0 0 6px;
}

.contact-title {
  margin: 0 0 10px;
  opacity: 0.9;
}

.contact-details {
  margin: 0;
}

.contact-details a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-blurb {
  max-width: 900px;
  margin: 40px auto 0;
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.9;
}

/* -------------------- Footer -------------------- */

#footer {
  background: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 36px;
}

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

.footer-lead {
  font-size: 18px;
  margin: 0 0 14px;
}

.signup-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.signup-form input[type="text"],
.signup-form input[type="email"] {
  flex: 1 1 160px;
  padding: 12px 14px;
  border: 0;
  background: var(--color-offwhite);
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: 14px;
}

.signup-form input::placeholder {
  color: var(--color-gray);
}

.signup-form input[type="submit"] {
  flex: 0 0 auto;
  padding: 12px 26px;
  border: 0;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.signup-note {
  margin-top: 12px;
  font-size: 12px;
  color: #555;
}

/* -------------------- Back to top -------------------- */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 900;
}

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

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

/* -------------------- Responsive -------------------- */

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  :root {
    --section-pad-desktop: var(--section-pad-tablet);
  }

  .section-heading {
    font-size: 34px;
  }

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

  .hero-spacer {
    display: none;
  }

  .floorplan-columns {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .footer-logo {
    display: flex;
    justify-content: center;
  }

  .signup-form {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 20px;
  }

  .main-nav {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

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

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

  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-toggle {
    display: flex;
  }

  :root {
    --section-pad-desktop: var(--section-pad-mobile);
    --side-pad: 24px;
  }

  .section-heading {
    font-size: 28px;
  }

  .hero-tagline {
    font-size: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-grid a:nth-child(7) {
    grid-row: span 2;
  }

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

  .contact-logo {
    margin: 0 auto 10px;
  }

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