/* =============================================================
   505 Eastside Cove — FSBO Brochure Site
   Palette: warm cream + espresso brown + pool teal + gold
   ============================================================= */

/* ----- Custom Properties ----- */
:root {
  --cream:       #FDF8F1;
  --sand:        #EDE0C8;
  --espresso:    #2A1508;
  --brown:       #5A3520;
  --brown-mid:   #7D4E2D;
  --brown-light: #A0714F;
  --teal:        #1A7A8C;
  --teal-light:  #3BA8BE;
  --teal-pale:   #E4F4F7;
  --gold:        #C49428;
  --gold-light:  #E8C56A;
  --text:        #231508;
  --text-mid:    #5A3520;
  --text-soft:   #8B6B52;
  --white:       #FFFFFF;
  --shadow-sm:   0 1px 3px rgba(42,21,8,.12);
  --shadow:      0 4px 16px rgba(42,21,8,.14);
  --shadow-lg:   0 8px 32px rgba(42,21,8,.18);
  --radius:      10px;
  --radius-lg:   18px;

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.75rem;
  --sp-lg:  3rem;
  --sp-xl:  5rem;
  --sp-2xl: 8rem;

  --header-h: 68px;
  --container: 1200px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  line-height: 1.2;
  color: var(--espresso);
}
h1 { font-size: clamp(1.85rem, 4.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-mid); }

/* ----- Utility ----- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-title {
  text-align: center;
  margin-bottom: var(--sp-lg);
}
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-light); }
.btn-ghost {
  background: rgba(255,255,255,.18);
  color: var(--white);
  border: 2px solid rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.28); border-color: white; }
.btn-call {
  background: var(--gold);
  color: var(--espresso);
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
}
.btn-call:hover { background: var(--gold-light); }
.btn-outline {
  border: 2px solid var(--teal);
  color: var(--teal);
  padding: 0.65rem 1.4rem;
}
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.1rem; }

/* ----- Reveal on scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
/* Stagger children of a reveal container */
.highlights-grid .reveal:nth-child(2) { transition-delay: .08s; }
.highlights-grid .reveal:nth-child(3) { transition-delay: .16s; }
.highlights-grid .reveal:nth-child(4) { transition-delay: .24s; }
.highlights-grid .reveal:nth-child(5) { transition-delay: .32s; }
.highlights-grid .reveal:nth-child(6) { transition-delay: .40s; }
.highlights-grid .reveal:nth-child(7) { transition-delay: .48s; }
.highlights-grid .reveal:nth-child(8) { transition-delay: .56s; }

/* ================================================
   HEADER / NAV
   ================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-h);
  background: transparent;
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: var(--espresso);
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--white);
  flex-shrink: 0;
}
.wordmark-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wordmark-street {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: .85;
}
.wordmark-city {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  opacity: .65;
}
.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color .15s;
}
.nav-links a:hover { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--espresso);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-links.open {
    max-height: 280px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links a {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: 1rem;
  }
  .hamburger { display: flex; }
  .btn-call { display: none; }
}

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,8,2,.35) 0%,
    rgba(26,8,2,.55) 50%,
    rgba(26,8,2,.78) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-top: var(--header-h);
  color: var(--white);
  text-align: center;
}
.hero-address {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 1rem;
  color: var(--gold-light);
}
.hero-fsbo-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.hero-headline {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* ============================================================
   ASKING PRICE — Change the number in index.html to update it
   ============================================================ */
.hero-price {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 2rem;
}
.hero-stats span {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ================================================
   OVERVIEW
   ================================================ */
.overview {
  padding: var(--sp-xl) 0;
  background: var(--white);
}
.overview-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.overview-inner h2 {
  margin-bottom: 1.25rem;
}
.overview-inner p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 1rem;
}
.overview-inner p:last-child { margin-bottom: 0; }

/* ================================================
   HIGHLIGHTS
   ================================================ */
.highlights {
  padding: var(--sp-xl) 0;
  background: var(--cream);
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.highlight-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.highlight-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.highlight-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.highlight-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--espresso);
}
.highlight-card p {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.5;
}
@media (max-width: 960px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .highlights-grid { grid-template-columns: 1fr; }
}

/* ================================================
   GALLERY
   ================================================ */
.gallery-section {
  padding: var(--sp-xl) 0;
  background: var(--white);
}

/* Category tabs */
.gallery-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.gallery-tab {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: 2px solid var(--sand);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brown);
  background: transparent;
  transition: all .18s;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.gallery-tab:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.gallery-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* Photo grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  transition: opacity .2s;
}
.gallery-grid.fading { opacity: 0; }
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--sand);
  cursor: pointer;
}
.gallery-item picture,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,8,2,.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .25s;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-label {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .gallery-tab { scroll-snap-align: start; flex-shrink: 0; }
}

/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,4,2,.92);
  z-index: 900;
  display: none;
  cursor: pointer;
}
.lightbox-overlay.active { display: block; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 901;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--header-h) 3rem 1.5rem;
  pointer-events: none;
}
.lightbox.active {
  display: flex;
  pointer-events: auto;
}
.lb-img-wrap {
  position: relative;
  max-width: 100%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  display: block;
}
.lb-caption {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 900px;
  color: rgba(255,255,255,.7);
  font-size: 0.8125rem;
}
#lb-alt { flex: 1; }
#lb-counter { flex-shrink: 0; }

/* Lightbox buttons */
.lb-close {
  position: fixed;
  top: calc(var(--header-h) + 0.75rem);
  right: 1.25rem;
  color: rgba(255,255,255,.8);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  z-index: 902;
}
.lb-close:hover { background: rgba(255,255,255,.22); color: var(--white); }

.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 2.75rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  z-index: 902;
  line-height: 1;
}
.lb-prev { left: 0.75rem; }
.lb-next { right: 0.75rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }
.lb-prev:disabled, .lb-next:disabled { opacity: .25; cursor: default; }

@media (max-width: 600px) {
  .lightbox { padding: var(--header-h) 1rem 1rem; }
  .lb-prev { left: 0.25rem; }
  .lb-next { right: 0.25rem; }
  .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 2rem; }
}

/* ================================================
   LOCATION / MAP
   ================================================ */
.location {
  padding: var(--sp-xl) 0;
  background: var(--cream);
}
.location-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}
.location-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--espresso);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}
.location-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.location-list li {
  font-size: 0.95rem;
  color: var(--text-mid);
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.location-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (max-width: 780px) {
  .location-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ================================================
   CONTACT / FOOTER
   ================================================ */
.contact {
  background: var(--espresso);
  padding: var(--sp-xl) 0;
  text-align: center;
}
.contact-inner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.contact-inner > p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.contact-inner .btn-primary {
  background: var(--gold);
  color: var(--espresso);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  margin-bottom: 2rem;
}
.contact-inner .btn-primary:hover { background: var(--gold-light); }
.contact-address {
  color: rgba(255,255,255,.55);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem !important;
}
.contact-legal {
  color: rgba(255,255,255,.35);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ================================================
   RESPONSIVE — global section spacing
   ================================================ */
@media (max-width: 640px) {
  :root {
    --sp-xl:  3.5rem;
    --sp-2xl: 5rem;
  }
  .hero-stats span { font-size: 0.78rem; }
  .hero-ctas { gap: 0.75rem; }
  .hero-ctas .btn { padding: 0.7rem 1.3rem; font-size: 0.875rem; }
}
