/* Point East 205 — vintage Florida beach-club
   Palette drawn from the property itself:
   butter-yellow stucco, red tile roofs, pool turquoise, cobalt loungers, sand */
:root {
  --sand: #FAF5EB;
  --sand-deep: #F1E7D4;
  --ink: #1E3A5F;        /* cobalt lounger navy */
  --ink-soft: #48608a;
  --sea: #2B9EB3;        /* pool turquoise */
  --sea-pale: #E4F2F4;
  --butter: #F4C95D;     /* stucco yellow */
  --roof: #C0442E;       /* tile-roof red, used sparingly */
  --white: #ffffff;
  --display: "Alfa Slab One", "Georgia", serif;
  --body: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}

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

a { color: var(--sea); }

:focus-visible { outline: 3px solid var(--roof); outline-offset: 2px; }

/* ---------- type ---------- */
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--roof);
  margin-bottom: 0.75rem;
}
.eyebrow-light { color: var(--butter); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: rgba(30, 58, 95, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-brand {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand span { color: var(--butter); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  color: var(--sand);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.12); }

.nav-links .nav-cta {
  background: var(--butter);
  color: var(--ink);
}
.nav-links .nav-cta:hover { background: var(--white); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 56rem);
  min-height: min(88svh, 56rem); /* stable on iOS as the URL bar collapses */
  display: flex;
  align-items: flex-end;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,58,95,0.15) 0%, rgba(30,58,95,0) 35%, rgba(30,58,95,0.78) 100%);
}

.hero-copy {
  position: relative;
  padding: 4rem 1.5rem 3.5rem;
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
  width: 100%;
}
.hero-copy .eyebrow { color: var(--butter); }

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  color: var(--white);
  text-shadow: 0 2px 24px rgba(30, 58, 95, 0.45);
}
.hero-unit { color: var(--butter); }

.hero-sub {
  margin: 1.1rem auto 1.75rem;
  max-width: 34rem;
  font-size: 1.08rem;
  font-weight: 600;
  text-shadow: 0 1px 12px rgba(30, 58, 95, 0.6);
}

.btn {
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.9rem;
  transition: transform 120ms ease, background 120ms ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-hero {
  background: var(--butter);
  color: var(--ink);
}
.btn-hero:hover { background: var(--white); }

/* ---------- quick facts ---------- */
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.75rem;
  background: var(--butter);
  padding: 1.1rem 1.5rem;
}

.fact {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fact strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- intro ---------- */
.intro {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 3rem;
  font-size: 1.18rem;
  text-align: center;
  color: var(--ink-soft);
}
.intro p { text-wrap: pretty; }

/* ---------- picket fence divider ---------- */
.fence {
  height: 46px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='46' viewBox='0 0 36 46'%3E%3Cpath d='M8 8 L14 2 L20 8 L20 46 L8 46 Z' fill='%23ffffff' stroke='%23dcd2bd' stroke-width='1.5'/%3E%3Crect x='0' y='14' width='36' height='6' fill='%23ffffff' stroke='%23dcd2bd' stroke-width='1.5'/%3E%3Crect x='0' y='30' width='36' height='6' fill='%23ffffff' stroke='%23dcd2bd' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center bottom;
  margin-top: 1rem;
}

/* ---------- gallery sections ---------- */
.gallery-section {
  padding: 3.5rem 1.5rem 4rem;
  max-width: 74rem;
  margin: 0 auto;
}

.section-tint {
  max-width: none;
  background: var(--sea-pale);
}
.section-tint > * { max-width: 71rem; margin-left: auto; margin-right: auto; }

.section-head {
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
}

.section-sub {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.sub-head {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sea);
  margin: 2.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.sub-head::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--sand-deep);
}

/* ---------- photo grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 0.9rem;
}

.g {
  position: relative;
  grid-column: span 2;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--sand-deep);
}
.g.wide { grid-column: span 4; }
.g.tall { grid-row: span 2; }

.g img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 300ms ease;
}
.g.wide img { aspect-ratio: 21 / 10; }
.g.tall img { aspect-ratio: auto; }

@media (hover: hover) {
  .g:hover img { transform: scale(1.03); }
}

.g figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 0.9rem 0.6rem;
  background: linear-gradient(180deg, rgba(30,58,95,0) 0%, rgba(30,58,95,0.72) 100%);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 200ms ease;
}
.g:hover figcaption, .g:focus-within figcaption { opacity: 1; }

/* touch screens have no hover — captions always on */
@media (hover: none) {
  .g figcaption { opacity: 1; }
}

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(6, 1fr); }
  .g.wide { grid-column: span 4; }
  .g.tall { grid-column: span 2; }
}

/* ---------- book ---------- */
.book {
  background: var(--ink);
  color: var(--sand);
  text-align: center;
  padding: 4.5rem 1.5rem;
}

.book h2 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.book p { max-width: 30rem; margin: 0 auto; }

.book-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn-book {
  background: var(--butter);
  color: var(--ink);
}
.btn-book:hover { background: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--sand);
  box-shadow: inset 0 0 0 2px var(--sand);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ---------- footer ---------- */
.footer {
  background: #16294a;
  color: var(--sand);
  text-align: center;
  padding: 1.75rem 1.5rem;
  font-size: 0.9rem;
}
.footer a { color: var(--butter); }
.footer-fine { margin-top: 0.6rem; opacity: 0.65; font-size: 0.8rem; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 28, 48, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lb-stage {
  max-width: min(94vw, 90rem);
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lb-stage img {
  max-width: 94vw;
  max-height: 86vh;
  max-height: 86dvh;
  object-fit: contain;
  border-radius: 6px;
}

.lb-stage figcaption {
  color: var(--sand);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.8rem 1rem 0;
  text-align: center;
}
#lb-count { opacity: 0.6; margin-left: 0.5rem; }

.lb-btn {
  position: absolute;
  z-index: 101;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); }

.lb-close {
  top: calc(1rem + env(safe-area-inset-top, 0px));
  right: calc(1rem + env(safe-area-inset-right, 0px));
}
.lb-prev { left: calc(0.75rem + env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: calc(0.75rem + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }

/* ---------- reveal on scroll ---------- */
.g { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .g {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms ease, transform 500ms ease;
  }
  .reveal-ready .g.in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g img, .btn { transition: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  html { scroll-padding-top: 6.75rem; }
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem 0.5rem;
  }
  .nav-brand { text-align: center; font-size: 1.15rem; }
  .nav-links {
    -webkit-overflow-scrolling: touch;
    /* fade hint that the pill row scrolls */
    mask-image: linear-gradient(90deg, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
    padding-right: 1.25rem;
  }
  .nav-links a { padding: 0.5rem 0.7rem; }
}

@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .g, .g.wide, .g.tall { grid-column: span 1; grid-row: auto; }
  .g img, .g.wide img { aspect-ratio: 3 / 2; }
  .hero-sub { font-size: 1rem; }
  .intro { font-size: 1.08rem; padding-top: 2.75rem; }
  .gallery-section { padding: 2.75rem 1rem 3.25rem; }
  .facts { gap: 0.4rem 1.4rem; padding: 0.9rem 1rem; }
  .book-btns .btn { width: 100%; text-align: center; }
  .lb-prev { left: max(0.4rem, env(safe-area-inset-left)); }
  .lb-next { right: max(0.4rem, env(safe-area-inset-right)); }
}
