/* Edge 112 landing page. Editorial coastal-golf look: sand ground, deep green
   accents, serif display type. Mobile-first; min-width queries only. */

:root {
  --sand: #F3EDE2;
  --sand-2: #E9E0CF;
  --paper: #FBF8F2;
  --green: #14392B;
  --green-2: #1F5A43;
  --moss: #7FA58C;
  --ink: #1C1F1B;
  --muted: #5A5F58;
  --brass: #B08D57;
  --brass-ink: #7A5C2E;
  --cream: #EDE6D6;
  --cream-2: #D9C9A5;
  --line: rgba(20, 57, 43, .18);
  --line-light: rgba(243, 237, 226, .22);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", Helvetica, sans-serif;
  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums; /* Cormorant's old-style 1 reads as a capital I */
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -.01em;
  text-wrap: balance;
}
p { margin: 0 0 1rem; }
a { color: var(--green); }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.hero :focus-visible, .golf :focus-visible, .final :focus-visible { outline-color: var(--brass); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- utilities ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 100;
  background: var(--green); color: #fff; padding: .75rem 1rem; border-radius: .25rem;
}
.skip:focus { top: 1rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--brass-ink); margin: 0 0 1.25rem;
}
.eyebrow .num { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0; color: var(--green); line-height: 1; }
.eyebrow::after { content: ""; height: 1px; width: 3rem; background: currentColor; opacity: .6; }
.eyebrow--light { color: var(--cream-2); }
.eyebrow--light .num { color: var(--brass); }
.eyebrow--center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .9rem 1.75rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 1.1rem; height: 1.1rem; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-2); }
.btn--light { background: var(--sand); color: var(--green); }
.btn--light:hover { background: #fff; }
.btn--small { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: .9rem; }
.cta-long { display: none; }

/* ---------- photo boxes: 4:3 slots reserved before lazy images load; any photo ratio crops to fit (hero excluded) ---------- */
.unit__grid img, .course__fig img, .estate__figs img {
  aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; background: var(--sand);
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 237, 226, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--green); line-height: 1.1; padding: .4rem 0; }
.brand__mark { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .02em; }
.brand__sub { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-ink); }
.masthead__nav { display: none; }
@media (min-width: 48em) {
  .cta-short { display: none; }
  .cta-long { display: inline; }
  .masthead__nav { display: flex; gap: 1.75rem; }
  .masthead__nav a {
    color: var(--green); text-decoration: none; font-size: .9rem; font-weight: 500;
    padding: .9rem 0; border-bottom: 1px solid transparent;
  }
  .masthead__nav a:hover { border-color: var(--brass); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100vh - 3.75rem, 52rem);
  min-height: min(100svh - 3.75rem, 52rem);
  display: flex; align-items: flex-end;
  background: var(--green); color: #fff;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 30, 22, .94) 0, rgba(10, 30, 22, .58) 45%, rgba(10, 30, 22, .18) 100%);
}
.hero__content { padding-block: clamp(3rem, 10vh, 6rem) clamp(2.5rem, 7vh, 4rem); max-width: 48rem; }
.hero h1 { font-size: clamp(2.7rem, 6vw + 1rem, 5.75rem); color: #fff; }
.hero__dek {
  font-size: clamp(1.05rem, 1.2vw + .65rem, 1.35rem); line-height: 1.5;
  max-width: 36rem; color: var(--cream); margin: 1.25rem 0 1.75rem;
}
.hero__cta { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.hero__meta { font-size: .9rem; color: var(--cream-2); margin: 0; }
@media (min-width: 48em) {
  .hero__cta { flex-direction: row; align-items: center; gap: 1.5rem; }
}

/* ---------- lede ---------- */
.lede { padding-block: clamp(3rem, 8vw, 6rem); }
.lede__grid { display: grid; gap: 2.5rem; }
.lede__text { font-size: clamp(1.1rem, 1vw + .75rem, 1.3rem); line-height: 1.6; }
.lede__text p { margin-bottom: 1.25rem; }
.drop::first-letter {
  font-family: var(--serif); font-weight: 600; font-size: 4.4em;
  float: left; line-height: .78; padding: .1em .14em 0 0; color: var(--green);
}
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; margin: 0; border-top: 1px solid var(--green); padding-top: 1.5rem; }
.facts dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: .3rem 0 0; font-family: var(--serif); font-size: 1.75rem; color: var(--green); font-weight: 600; line-height: 1.1; }
@media (min-width: 64em) {
  .lede__grid { grid-template-columns: 7fr 4fr; gap: 5rem; align-items: start; }
  .facts { grid-template-columns: 1fr; position: sticky; top: 5.5rem; }
}

/* lede photo mosaic: pool large, bedroom tall, two small stacked (two columns on phones) */
.lede__photos { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(8.5rem, 30vw, 11rem); gap: .6rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.lede__photo { margin: 0; overflow: hidden; border-radius: .375rem; }
.lede__photo img { width: 100%; height: 100%; object-fit: cover; }
.lede__photo--pool { grid-column: 1 / -1; grid-row: span 2; }
.lede__photo--tall { grid-row: span 2; }
@media (min-width: 48em) {
  .lede__photos { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: clamp(10rem, 17vw, 15rem); gap: .75rem; }
  .lede__photo--pool { grid-column: auto; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head h2 { font-size: clamp(2.1rem, 3.4vw + .8rem, 3.75rem); }
.section__head--split { max-width: none; display: grid; gap: 1.5rem; }
.section__intro { font-size: 1.1rem; line-height: 1.6; margin: 0; max-width: 34rem; }
@media (min-width: 64em) {
  .section__head--split { grid-template-columns: 7fr 5fr; align-items: end; gap: 4rem; }
}

/* ---------- the apartment ---------- */
.unit { background: var(--paper); border-top: 1px solid var(--line); }
.unit__grid { display: grid; gap: 1.5rem; }
.unit__grid img { width: 100%; border-radius: .375rem; }
.unit__copy p { font-size: 1.05rem; }
.specs {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.25rem; font-size: .95rem;
}
.specs li { display: flex; align-items: center; gap: .65rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.specs svg { width: 1.3rem; height: 1.3rem; flex: none; stroke: var(--green); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.unit__small { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.unit__small figure:nth-child(5) { grid-column: 1 / -1; }
@media (min-width: 64em) {
  .unit__grid { grid-template-columns: repeat(12, 1fr); gap: 2rem 2.5rem; }
  .unit__fig--lead { grid-column: 1 / 8; }
  .unit__copy { grid-column: 8 / 13; align-self: center; }
  .unit__small { grid-column: 1 / 13; grid-template-columns: repeat(5, 1fr); gap: 2rem; margin-top: .5rem; }
  .unit__small figure:nth-child(5) { grid-column: auto; }
  .unit__small figure:nth-child(even) { margin-top: 2.5rem; }
}

/* ---------- golf ---------- */
.golf { background: var(--green); color: var(--cream); }
.golf h2, .golf h3 { color: #fff; }
.golf .section__intro { color: var(--cream-2); }
.courses { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem; }
.course { display: grid; gap: 1.25rem; padding-top: 2rem; border-top: 1px solid var(--line-light); }
.course__fig img { border-radius: .375rem; width: 100%; }
.course__meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.1rem; margin: 0 0 .75rem;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-2); font-weight: 600;
}
.course__n { font-family: var(--serif); font-size: 2.2rem; letter-spacing: 0; color: var(--brass); font-weight: 500; line-height: 1; }
.course__drive { display: inline-flex; align-items: center; gap: .45rem; }
.course__drive::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--brass); }
.course__km { color: #B9C9BE; font-weight: 500; }
.course__name { font-size: clamp(1.7rem, 1.8vw + .9rem, 2.5rem); margin-bottom: .75rem; }
.course__blurb { margin: 0; max-width: 38rem; line-height: 1.6; }
.fineprint { font-size: .85rem; color: #B9C9BE; max-width: 46rem; margin: 2.5rem 0 0; }
.golf__cta { margin-top: 2.5rem; }
@media (min-width: 48em) {
  .course { grid-template-columns: 5fr 7fr; gap: 2.5rem; align-items: center; }
  .course:nth-child(even) .course__fig { order: 2; }
}
@media (min-width: 64em) {
  .course { grid-template-columns: 5fr 6fr; gap: 4rem; }
  .course:nth-child(even) { grid-template-columns: 6fr 5fr; }
  .course:nth-child(even) .course__body { padding-left: 2rem; }
}

/* ---------- estate and coast ---------- */
.estate__grid { display: grid; gap: 2.5rem; }
.estate__copy p { font-size: 1.05rem; }
.estate__figs { display: grid; gap: 1.5rem; }
.estate__figs img { border-radius: .375rem; width: 100%; }
.estate__figs figcaption { font-size: .8rem; color: var(--muted); margin-top: .6rem; letter-spacing: .04em; }
.pull {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 1.6vw + .9rem, 2.3rem); line-height: 1.25; color: var(--green);
  border-left: 3px solid var(--brass); padding-left: 1.25rem; margin: 2rem 0;
}
.getaround { margin: 2.5rem 0 0; }
.getaround div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.getaround dt { font-weight: 500; }
.getaround dd { margin: 0; color: var(--muted); text-align: right; flex: none; }
@media (min-width: 64em) {
  .estate__grid { grid-template-columns: 6fr 5fr; gap: 5rem; align-items: start; }
  .estate__figs { padding-top: 3rem; }
  .estate__figs figure:nth-child(2) { margin-left: -4rem; width: calc(100% + 4rem); }
}

/* ---------- rates ---------- */
.rates { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rates__grid { display: grid; gap: 2.5rem; }
.price { display: flex; flex-direction: column; gap: .35rem; }
.price__usd { font-family: var(--serif); font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: .95; color: var(--green); font-weight: 600; }
.price__usd small { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-left: .5rem; }
.price__zar { font-size: 1.15rem; margin: 0; }
.price__note { font-size: .85rem; color: var(--muted); letter-spacing: .03em; margin: 0; }
.price__note::first-letter { text-transform: uppercase; }
.rates__copy p { font-size: 1.05rem; }
.rates__copy .btn { margin-top: .5rem; }
@media (min-width: 64em) {
  .rates__grid { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: center; }
}

/* ---------- reviews ---------- */
.reviews__grid { display: grid; gap: 1.5rem; }
.review {
  margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: .375rem;
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem;
}
.placeholder-tag {
  display: inline-block; align-self: flex-start; margin: 0;
  background: #B33A2B; color: #fff; font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 700; padding: .3rem .6rem; border-radius: .2rem;
}
.review blockquote { margin: 0; }
.review blockquote p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; color: var(--green); margin: 0; font-style: italic; }
.review figcaption { font-size: .85rem; color: var(--muted); margin-top: auto; }
.reviews__note { font-size: .85rem; color: var(--muted); margin: 1.5rem 0 0; }
@media (min-width: 48em) {
  .reviews__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- final call ---------- */
.final { background: var(--green); color: var(--cream); text-align: center; }
.final h2 { color: #fff; font-size: clamp(2.2rem, 3.6vw + .9rem, 4rem); max-width: 22ch; margin-inline: auto; }
.final .btn { margin-top: 2rem; }
.final p { margin: 1.5rem 0 0; }
.final a:not(.btn) { color: var(--cream-2); }

/* ---------- footer ---------- */
.footer { padding-block: 2.5rem; font-size: .85rem; color: var(--muted); }
.footer__row { display: grid; gap: 1.25rem; }
.footer address { font-style: normal; }
.footer p { margin: 0 0 .5rem; }
.footer a { color: var(--green); }
@media (min-width: 48em) {
  .footer__row { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer__right { text-align: right; }
}

/* Cookie consent bar (only shown when a pixel ID is configured) */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50; max-width: 44rem; margin: 0 auto; padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: space-between; background: var(--paper); color: var(--ink); border: 1px solid var(--brass); border-radius: .75rem; box-shadow: 0 12px 40px rgba(20, 57, 43, .25); }
.consent p { margin: 0; flex: 1 1 18rem; font-size: .92rem; line-height: 1.45; }
.consent__btns { display: flex; gap: .6rem; }
.consent .btn--light { border: 1px solid var(--green); }
