/* Horizon Estate: calm, expensive, local. Mobile first. No framework. */
:root {
  --off-white: #FAF7F2;
  --sand: #E8DDC9;
  --sand-deep: #CDB893;
  --sea: #123F5F;
  --sea-deep: #0B2B42;
  --ink: #1B1A18;
  --mute: #6B655C;
  --line: #E3DACA;
  --white: #FFFFFF;
  --ok: #1F6B4F;
  --warn: #9C6A1E;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--off-white); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }
.eyebrow { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); font-weight: 400; margin-bottom: 0.9em; }
.eyebrow.light { color: rgba(255,255,255,0.82); }
.muted { color: var(--mute); }
.small { font-size: 0.9rem; }
.lead { font-size: 1.2rem; line-height: 1.5; max-width: 42rem; }
.link { border-bottom: 1px solid var(--sand-deep); padding-bottom: 1px; transition: border-color 0.2s; }
.link:hover { border-color: var(--sea); }

/* Header: cream and sticky on every page; transparent over the hero on the home page until the visitor scrolls */
.site-header {
  display: flex; align-items: center; gap: 14px;
  height: 64px; padding: 0 var(--gutter); background: var(--off-white); color: var(--ink);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.site-header .brand { margin-right: auto; }
.site-nav { display: none; gap: 28px; align-items: center; font-size: 0.88rem; font-weight: 400; }
.site-nav a { padding: 6px 0; white-space: nowrap; border-bottom: 1px solid transparent; }
.site-nav a[aria-current="page"] { border-color: currentColor; }

.page-home .site-header { position: fixed; left: 0; right: 0; background: transparent; color: var(--white); border-bottom-color: transparent; }
.page-home .site-header.is-solid, .menu-open .page-home .site-header, .page-home.menu-open .site-header { background: var(--off-white); color: var(--ink); border-bottom-color: var(--line); }
.menu-open .site-header { background: transparent !important; border-bottom-color: transparent !important; color: var(--ink) !important; }

/* Menu icon: two 1px lines, 24px wide, 44px touch area; turns into a thin cross */
.menu-btn { position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.menu-btn span { position: absolute; left: 10px; width: 24px; height: 1px; background: currentColor; transition: transform 0.3s ease, top 0.3s ease; }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }
.menu-btn:focus-visible { outline: 1px solid currentColor; outline-offset: -4px; }

/* Full-screen menu */
.menu-overlay {
  position: fixed; inset: 0; z-index: 40; background: var(--off-white); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 64px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.menu-open .menu-overlay { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
.menu-links { display: grid; gap: 18px; text-align: center; margin: auto 0; }
.menu-links a { font-family: var(--serif); font-size: clamp(2.2rem, 10vw, 3rem); font-weight: 500; line-height: 1.1; }
.menu-links a[aria-current="page"] { color: var(--sea); }
.menu-contact { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 0.85rem; font-weight: 400; color: var(--mute); }
.menu-contact a { padding: 6px 0; }
html.menu-open, html.menu-open body { overflow: hidden; }

@media (min-width: 760px) {
  .site-nav { display: flex; }
  .menu-btn, .menu-overlay { display: none; }
}

/* Floating WhatsApp button (same family as the MeetMe and GoBoat buttons: WhatsApp green, official mark, soft green shadow) */
.wa-float {
  --wa: #25D366;
  position: fixed; z-index: 30; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; height: 56px; min-width: 56px; border-radius: 28px;
  background: var(--wa); color: var(--white);
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, 0.65), 0 4px 12px rgba(11, 43, 66, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  -webkit-tap-highlight-color: transparent;
  animation: wa-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s backwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.wa-float .wa-icon { width: 56px; height: 56px; flex: 0 0 56px; display: flex; align-items: center; justify-content: center; }
.wa-float .wa-label { display: none; padding-right: 22px; font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  animation: wa-halo 2.2s ease-out 1.1s 2;
}
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 18px 34px -10px rgba(37, 211, 102, 0.7), 0 6px 16px rgba(11, 43, 66, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.wa-float:active { transform: scale(0.97); }
.wa-float:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
@keyframes wa-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes wa-halo { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); } 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
@media (min-width: 760px) {
  .wa-float { right: 28px; bottom: 28px; }
  .wa-float .wa-icon { width: 52px; flex-basis: 52px; padding-left: 4px; }
  .wa-float .wa-label { display: inline; }
}
.menu-open .wa-float { opacity: 0; pointer-events: none; transform: scale(0.9); animation: none; }

/* Buttons and tags */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 400; letter-spacing: 0.03em; border-radius: 2px;
  border: 1px solid var(--sea); cursor: pointer; transition: background 0.2s, color 0.2s; text-align: center;
}
.btn-primary { background: var(--sea); color: var(--white); }
.btn-primary:hover { background: var(--sea-deep); }
.btn-line { background: transparent; color: var(--sea); }
.btn-line:hover { background: rgba(18,63,95,0.06); }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: 0.84rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.ctas .btn { flex: 1 1 200px; }
.hero .ctas .btn-line { color: var(--white); border-color: rgba(255,255,255,0.7); }
.hero .ctas .btn-line:hover { background: rgba(255,255,255,0.12); }
.tag { display: inline-block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; padding: 5px 9px; border-radius: 2px; }
.tag-available { background: var(--sea); color: var(--white); }
.tag-reserved { background: var(--sand); color: var(--warn); }
.tag-sold { background: var(--ink); color: var(--white); }
.tag-sample { background: var(--white); color: var(--mute); border: 1px solid var(--line); }
.tags .tag + .tag { margin-left: 6px; }

/* Sections */
.section { padding: 48px var(--gutter); max-width: var(--max); margin: 0 auto; }
.page-top { padding-top: 32px; }
.section-head { max-width: 40rem; margin-bottom: 24px; }
.section-foot { margin-top: 28px; }

/* Hero */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 520px;
  display: flex; align-items: center; color: var(--white); background: var(--sea-deep);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(11,43,66,0.38) 0%, rgba(11,43,66,0) 22%),
    linear-gradient(to top, rgba(11,43,66,0.78) 0%, rgba(11,43,66,0.5) 38%, rgba(11,43,66,0.18) 66%, rgba(11,43,66,0) 88%);
}
.hero-text { position: relative; z-index: 1; padding: 64px var(--gutter) 16svh; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero h1 { color: var(--white); max-width: 18ch; font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.1; }

/* Cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 28px 24px; }
.card { display: block; background: var(--white); border: 1px solid var(--line); transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(11,43,66,0.5); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.card-body { padding: 16px 18px 20px; }
.card h3 { margin-bottom: 4px; }
.card .eyebrow { margin-bottom: 8px; }
.card-meta { font-weight: 400; margin-bottom: 6px; }
.card-hook { color: var(--mute); font-size: 0.95rem; margin: 0; }
.no-photo { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--mute); font-size: 0.85rem; letter-spacing: 0.1em; }
.card[hidden] { display: none; }

/* Why / About us */
.why { border-top: 1px solid var(--line); }
.why-grid { display: grid; gap: 24px; }
.why-item h3 { font-size: 1.35rem; }
.why-item p { color: var(--mute); margin: 0; }
.intro { border-top: 1px solid var(--line); }
.intro-text { max-width: 640px; }
.photo-placeholder { aspect-ratio: 4 / 5; background: var(--sand); display: flex; align-items: center; justify-content: center; color: var(--mute); font-size: 0.8rem; letter-spacing: 0.12em; max-width: 360px; }
.photo-placeholder.wide { aspect-ratio: 16 / 9; max-width: none; }
.photo-placeholder.tall { max-width: 320px; }

/* Filters */
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; margin-bottom: 14px; }
.filters label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); display: grid; gap: 4px; }
.filters select {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 16px; font-weight: 300; border-radius: 2px;
}
.filters select:focus { outline: 2px solid var(--sea); outline-offset: 1px; }
.filters button { align-self: end; }
.filter-count { color: var(--mute); font-size: 0.9rem; margin-bottom: 20px; }
.filter-empty { padding: 32px 0; color: var(--mute); }

/* Property page */
.property { padding: 20px var(--gutter) 40px; max-width: var(--max); margin: 0 auto; }
.crumbs { font-size: 0.85rem; color: var(--mute); margin-bottom: 14px; }
.crumbs a { border-bottom: 1px solid var(--line); }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 88%; margin: 0; scroll-snap-align: start; aspect-ratio: 3 / 2; background: var(--sand); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-hint { font-size: 0.8rem; color: var(--mute); margin: 8px 0 0; }
.property-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: flex-end; margin-top: 24px; }
.property-head h1 { margin-bottom: 8px; }
.price { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; margin: 0; }
.price-usd { color: var(--mute); margin: 0; }
.property .lead { margin-top: 18px; }
.facts { margin-top: 40px; }
.facts dl { margin: 0; border-top: 1px solid var(--line); }
.facts dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.facts dd { margin: 0; }
.pdf-link { margin-top: 16px; }
.map { margin-top: 40px; }
.map-static { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.map-static img { position: absolute; width: 33.334%; height: 50%; max-width: none; }
.map-pin { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--sea); border: 2px solid var(--white); box-shadow: 0 0 0 8px rgba(18,63,95,0.22); }
.map-attr { position: absolute; right: 0; bottom: 0; font-size: 0.62rem; padding: 2px 6px; background: rgba(255,255,255,0.8); color: var(--mute); }
.video { margin-top: 40px; }
.video-frame { aspect-ratio: 16 / 9; background: var(--ink); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.description { margin-top: 40px; max-width: 42rem; }
.who-for { margin-top: 20px; padding: 14px 16px; background: var(--sand); }

/* Request form: one column, 560px, centred */
.request { background: var(--sea-deep); color: var(--white); padding: 48px var(--gutter); scroll-margin-top: 64px; }
.request-inner { max-width: 560px; margin: 0 auto; }
.request .eyebrow { color: rgba(255,255,255,0.7); }
.request-intro { color: rgba(255,255,255,0.8); margin-bottom: 0; }
.lead-form { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.lead-form input, .lead-form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(255,255,255,0.25); background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 16px; font-weight: 300; border-radius: 2px; }
.lead-form textarea { min-height: 0; resize: vertical; }
.lead-form :is(input, textarea):focus { outline: 2px solid var(--sand-deep); outline-offset: 1px; }
.lead-form [aria-invalid="true"] { outline: 2px solid #E8A08A; outline-offset: 1px; }
.btn-send { width: 100%; background: var(--sand-deep); border-color: var(--sand-deep); color: var(--ink); font-size: 1rem; }
.btn-send:hover { background: var(--sand); border-color: var(--sand); }
.btn-send[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; color: #F3C9B9; min-height: 0; }
.form-status:empty { display: none; }
.form-alt { margin: 0; text-align: center; font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.form-alt a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-thanks { margin-top: 24px; padding: 24px; border: 1px solid rgba(255,255,255,0.25); }
.form-thanks h3 { color: var(--white); }

/* Footer */
.site-footer { padding: 40px var(--gutter) calc(88px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; }
.footer-grid { display: grid; gap: 20px; }
.footer-line { margin: 0 0 4px; color: var(--mute); font-size: 0.95rem; }
.footer-line a { border-bottom: 1px solid var(--line); }
.footer-nav { display: flex; gap: 16px; font-size: 0.9rem; }
.footer-legal { margin-top: 28px; font-size: 0.78rem; color: var(--mute); max-width: 50rem; }

/* Prose pages */
.prose { padding: 32px var(--gutter) 40px; max-width: 46rem; margin: 0 auto; }
.prose h2 { margin-top: 2em; }
.prose ol, .prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.7em; }
.prose li strong { font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1em 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); font-weight: 400; }
.closing { margin-top: 2.5em; padding-top: 1.5em; border-top: 1px solid var(--line); }
.disclaimer { margin-top: 2.5em; font-size: 0.85rem; color: var(--mute); padding: 14px 16px; background: var(--sand); }
.about-photo { margin: 2em 0; }
.how-grid { display: grid; gap: 18px; }
.how-item { padding: 18px; border: 1px solid var(--line); background: var(--white); }
.how-item h3 { font-size: 1.3rem; }
.how-item p { margin: 0; color: var(--mute); }
.quotes { display: grid; gap: 16px; }
.quotes blockquote { margin: 0; padding: 18px; background: var(--sand); font-family: var(--serif); font-size: 1.2rem; }
.quotes cite { display: block; font-family: var(--sans); font-style: normal; font-size: 0.85rem; color: var(--mute); margin-top: 8px; }

/* Larger screens */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(3, 1fr) auto; }
  .gallery-item { flex-basis: 70%; }
  .why-grid, .how-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .facts dl > div { grid-template-columns: 160px 1fr; }
  .ctas .btn { flex: 0 1 auto; min-width: 220px; }
  .quotes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  :root { --gutter: 48px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 72px var(--gutter); }
  .gallery-item { flex-basis: 58%; }
  .map iframe { height: 420px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .site-header, .menu-overlay, .menu-btn span, .wa-float { transition: none !important; } .wa-float, .wa-float::after { animation: none !important; } }
