/* ============================================
   Widewater Estate - Property Showcase
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Typography --- */
h2, h3 {
  font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.site-header.scrolled {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.header-logo {
  font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  text-transform: none;
}

.header-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.header-nav a {
  font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #1a1a1a;
  transition: color 0.2s ease;
  padding: 4px 0;
}

.header-nav a:hover {
  color: #555;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #1a1a1a;
  position: absolute;
  left: 8px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span::before {
  content: '';
  top: -6px;
}

.menu-toggle span::after {
  content: '';
  top: 6px;
}

.menu-toggle.active span {
  background: transparent;
}

.menu-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
  background: #1a1a1a;
}

.menu-toggle.active span::after {
  top: 0;
  transform: rotate(-45deg);
  background: #1a1a1a;
}

/* --- Hero --- */
.hero {
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Description --- */
.description {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 40px;
}

.description p {
  font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.55;
  color: #1a1a1a;
  margin-bottom: 1.2em;
}

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

/* --- Sections --- */
.section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 48px;
  color: #1a1a1a;
}

.section h3 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 32px;
  color: #1a1a1a;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
  position: relative;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

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

/* --- Logo Divider --- */
.logo-divider {
  padding: 60px 40px;
  text-align: center;
}

.logo-divider img {
  max-width: 320px;
  margin: 0 auto;
  opacity: 0.9;
}

/* --- NYC Zone Section --- */
.nyc-zone {
  padding: 60px 40px 80px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.nyc-zone h3 {
  font-size: 1.6rem;
  margin-bottom: 32px;
}

.nyc-zone img {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 2px;
}

/* --- Scout / Contact Form --- */
.scout-section {
  background: #e8e8e8;
  padding: 80px 40px;
}

.scout-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.scout-title {
  font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: #1a1a1a;
}

.scout-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.field-label .required {
  font-weight: 400;
  color: #666;
  font-size: 0.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.scout-form input,
.scout-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #1a1a1a;
  background: #fff;
  font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s;
}

.scout-form input:focus,
.scout-form textarea:focus {
  border-color: #555;
}

.scout-form textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  align-self: flex-start;
  padding: 10px 28px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.submit-btn:hover {
  background: #1a1a1a;
  color: #fff;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-status.success {
  color: #2d7d46;
}

.form-status.error {
  color: #c0392b;
}

/* --- Footer --- */
.site-footer {
  padding: 60px 40px;
  text-align: center;
  border-top: 1px solid #e8e8e8;
  color: #1a1a1a;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Lightbox --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 2px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.8);
  transition: background 0.2s;
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.lightbox-close:hover::before,
.lightbox-close:hover::after {
  background: #fff;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-nav.prev {
  left: 16px;
}

.lightbox-nav.next {
  right: 16px;
}

.lightbox-nav svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .site-header {
    padding: 0 20px;
  }

  .header-nav {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-bottom: 1px solid #e8e8e8;
  }

  .header-nav.open {
    max-height: 200px;
    padding: 16px 0;
  }

  .header-nav li {
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .description {
    padding: 40px 20px 32px;
  }

  .description p {
    font-size: 1.1rem;
  }

  .section {
    padding: 48px 20px;
  }

  .section h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .logo-divider {
    padding: 40px 20px;
  }

  .logo-divider img {
    max-width: 220px;
  }

  .nyc-zone {
    padding: 40px 20px 60px;
  }

  .scout-section {
    padding: 48px 20px;
  }

  .scout-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .scout-title {
    font-size: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .lightbox-nav.prev {
    left: 8px;
  }

  .lightbox-nav.next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .section h2 {
    font-size: 1.5rem;
  }

  .gallery-grid {
    gap: 12px;
  }

  .hero {
    height: 60vh;
    min-height: 350px;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  .section {
    max-width: 1360px;
  }

  .gallery-grid {
    gap: 28px;
  }
}
