/* Pepeekeo Point Lot 88 — values transcribed from reference/design-tokens.json
   and live computed styles (reference/build-outline.md). */

@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Tangerine"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/tangerine-700.woff2") format("woff2"); }

:root {
  --font-body: "Poppins", system-ui, sans-serif;
  --font-script: "Tangerine", cursive;
  --color-text: #000;
  --color-bg: #f8f9fa;
  --color-black: #000;
  --color-white: #fff;
  --color-agent-bg: #ececec;
  --color-accent: #1789ca;
  --color-input-bg: #f7f7f7;
  --color-input-border: #c7cfde;
  --container: 1200px;
  --gutter: 40px;
  --header-h: 145px;
}

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

html { scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

img, video, iframe { display: block; max-width: 100%; }
img[width][height] { height: auto; }

a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--color-white); padding: .5rem 1rem;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-black);
  color: var(--color-white);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 4px;
  padding: 14px 16px;
  text-align: center;
}
.site-header__phone { font-weight: 700; text-decoration: none; }
.site-header__contact p { font-size: 12px; line-height: 18px; }
.site-header__spacer { display: none; }

.site-title {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  color: var(--color-white);
}
.site-title a { text-decoration: none; }

/* ---------- Hero (layered: bg image + overlay + video) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: 48px 16px 56px;
  overflow: hidden;
}
.hero img.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, .7);
}
.hero__video { width: 100%; max-width: 1020px; margin-inline: auto; }
.hero__video video { width: 100%; height: auto; background: #000; }

/* ---------- Listing ---------- */
.listing { padding-top: 35px; padding-bottom: 55px; }
.listing__head {
  display: grid;
  gap: 16px;
  padding-block: 15px;
}
.listing h2 { font-size: 26px; font-weight: 500; line-height: 1.3; }
.listing__address { font-size: 16px; line-height: 24px; }
.listing__stats {
  display: flex; flex-wrap: wrap; gap: 8px 60px;
  font-size: 24px; font-weight: 600; line-height: 42px;
}
.listing__body { display: grid; gap: 36px; }
.listing__copy p { font-size: 18px; line-height: 1.8; }
.listing__copy p + p { margin-top: 32px; }
.listing__features-title { font-size: 18px; font-weight: 500; line-height: 27px; }
.listing__features ul { margin: 20px 0 0; padding-left: 32px; list-style: disc; }
.listing__features li { line-height: 24px; }

/* ---------- Galleries ---------- */
.gallery-section { padding-block: 15px; }
.gallery-section--pad { padding-bottom: 55px; }
.gallery-section--main { padding-block: 45px; }

.gallery-note { text-align: center; font-size: 18px; line-height: 27px; margin-block: 12px; }

.gallery { display: grid; gap: 6px; }
.g-item {
  display: block;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 0 4px rgba(0, 0, 0, .15);
  cursor: zoom-in;
}
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.g-item:hover img { transform: scale(1.03); }

.gallery--survey .g-item {
  max-width: 930px; margin-inline: auto; padding: 20px; box-shadow: none;
}
.gallery--survey .g-item img { height: auto; object-fit: contain; }

.gallery--asym { grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery--asym .g-item { aspect-ratio: 6 / 5; }
.gallery--asym .g-item:first-child,
.gallery--asym .g-item:nth-child(4) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }

.gallery--two { grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery--two .g-item { aspect-ratio: 1; box-shadow: none; }

.gallery--grid { grid-template-columns: repeat(2, 1fr); }
.gallery--grid .g-item { aspect-ratio: 1; }

/* ---------- Coast section (layered bg + card) ---------- */
.coast { position: relative; isolation: isolate; background: #7c7c7d; padding-bottom: 120px; }
.coast img.coast__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.coast .container { padding-inline: 16px; }
.coast__card {
  max-width: 600px;
  padding: 30px 24px 40px;
  background: rgba(0, 0, 0, .74);
  color: var(--color-white);
}
.coast__card h3 { font-size: 26px; font-weight: 500; line-height: 1.45; margin-bottom: 16px; }
.coast__map { width: 100%; height: 282px; border: 0; margin-top: 16px; }

/* ---------- Agent strip ---------- */
.agent { background: var(--color-agent-bg); padding-block: 45px 55px; }
.agent__inner {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 20px;
  text-align: center;
}
.agent__photo { width: 188px; height: 188px; object-fit: cover; }
.agent__text p { line-height: 32px; }
.agent__text a { text-decoration: none; }
.agent__brokerage { font-weight: 600; }
.agent__name { font-size: 18px; font-weight: 500; line-height: 36px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; border: 0; border-radius: 10px;
  font: inherit; text-decoration: none; cursor: pointer;
}
.btn--dark {
  width: 199px; min-height: 58px; padding: 0 20px;
  background: var(--color-black); color: var(--color-white);
  font-size: 12px; font-weight: 400;
}
.btn--light {
  width: 280px; min-height: 44px; margin: 28px auto 0; border-radius: 999px;
  background: var(--color-white); color: var(--color-black);
  font-size: 16px; font-weight: 700;
}

.tour-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  width: 150px; height: 45px; border: 0; border-radius: 10px;
  background: var(--color-accent); color: var(--color-white);
  font: 400 15px/1 var(--font-body); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
  font-size: 14px;
  padding: 90px 16px 40px;
}
.site-footer a { text-decoration: none; }
.site-footer__brokerage { font-weight: 600; }
.site-footer__phone { font-weight: 500; line-height: 28px; }
.site-footer__copy { font-size: 10px; line-height: 28px; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(143, 149, 162, .5); }

.dialog-close {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 44px; height: 44px; border: 0; background: none;
  color: var(--color-white); font-size: 32px; line-height: 1; cursor: pointer;
}

.contact-dialog {
  width: min(607px, calc(100vw - 32px));
  border-radius: 5px;
  padding: 56px 24px 48px;
  color: var(--color-white);
  background:
    linear-gradient(rgba(26, 36, 48, .88), rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .8)),
    #1b2733 url("/images/pepeekeo-point-aerial-23-640.webp") center / cover no-repeat;
}
.contact-dialog h2 {
  text-align: center; font-size: 30px; font-weight: 300; line-height: 1.3;
  margin-bottom: 40px;
}
.contact-form { display: grid; gap: 16px; max-width: 420px; margin-inline: auto; }
.contact-form input,
.contact-form textarea {
  width: 100%; min-height: 44px; padding: 8px 10px;
  border: 1px solid var(--color-input-border); border-radius: 0;
  background: var(--color-input-bg); color: var(--color-text);
  font: 400 16px/1.5 var(--font-body);
}
.contact-form textarea { min-height: 80px; resize: vertical; }
.contact-form ::placeholder { color: #666; }
.form-count { margin-top: -10px; font-size: 14px; text-align: right; }
.form-count.at-limit { font-weight: 700; }
.form-status { min-height: 24px; text-align: center; font-weight: 400; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  background: rgba(0, 0, 0, .92);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox__img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 64px; border: 0; background: rgba(0, 0, 0, .4);
  color: var(--color-white); font-size: 40px; cursor: pointer;
}
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

/* ---------- 404 ---------- */
.not-found { padding-block: 80px; text-align: center; }
.not-found h1 { font-size: 30px; font-weight: 500; margin-bottom: 16px; }
.not-found .btn { margin-top: 24px; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 768px) {
  .site-header__inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: stretch;
    padding: 12px 15px 15px 155px;
    min-height: var(--header-h);
    text-align: left;
  }
  .site-header__contact p { max-width: 300px; }
  .site-header__spacer { display: block; }
  .site-title { font-size: 48px; line-height: 72px; text-align: center; }

  /* Hero fills exactly one screen below the sticky header; video scales to fit */
  .hero {
    display: grid;
    place-items: center;
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    min-height: 420px;
    padding: 48px 40px;
  }
  .hero__video { width: min(1020px, 100%, (100svh - var(--header-h) - 96px) * 16 / 9); }

  .listing__head { grid-template-columns: minmax(0, 600px) minmax(0, 1fr); align-items: start; }
  .listing h2 { font-size: 30px; }
  .listing__stats { font-size: 28px; justify-content: flex-end; }
  .listing__body { grid-template-columns: 2fr 1fr; }

  /* Duda "asymetric3" masonry: wide left tile over 2 rows, 2 tiles top right, 1 wide bottom right */
  .gallery--asym {
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 2 / 1;
    gap: 10px;
  }
  .gallery--asym .g-item { aspect-ratio: auto; }
  .gallery--asym .g-item:first-child { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; }
  .gallery--asym .g-item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .gallery--asym .g-item:nth-child(3) { grid-column: 3; grid-row: 1; }
  .gallery--asym .g-item:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; aspect-ratio: auto; }

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

  .coast { padding-bottom: 222px; }
  .coast .container { padding-inline: var(--gutter); }
  .coast__card { padding: 30px 30px 40px; }
  .coast__card h3 { font-size: 30px; }

  .agent__inner {
    grid-template-columns: 188px 1fr auto;
    justify-items: start;
    align-items: start;
    gap: 17px;
    text-align: left;
  }
  .agent .btn { margin-left: 24px; }

  .tour-btn { right: 40px; bottom: 40px; }

  .contact-dialog { padding: 64px 40px 56px; }
}

@media (min-width: 900px) {
  .hero { padding: 48px 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
