/* Solara Bay Real Estate — homepage redesign
   Layout language inspired by rioproperty.co.za (giant uppercase display type, split
   meta columns, audience cards, horizontal carousel, rule grid, bold contact block),
   expressed in Solara Bay's own identity: navy + sky blue from the logo, Marcellus
   (the site's display face, close to the logo lettering) and Manrope. */

@font-face { font-family: "Marcellus"; src: url("assets/fonts/Marcellus-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --navy: #123461;
  --navy-deep: #0c2547;
  --sky: #5ba8de;
  --sky-soft: #e8f2fa;
  --paper: #fbfaf7;
  --ink: #24324a;
  --mist: #66768c;
  --line: rgba(18, 52, 97, .14);
  --display: "Marcellus", "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 3.2vw, 44px);
  --max: 1440px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--navy);
  font-size: clamp(30px, 4.4vw, 64px); line-height: 1.04; letter-spacing: .01em; margin: 0 0 18px; max-width: 16ch;
}
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin: 0 0 32px; }
.kicker.center { text-align: center; }
.tlink {
  display: inline-flex; gap: 8px; align-items: center; margin-top: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
  border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: color .25s, gap .25s var(--ease);
}
.tlink:hover { color: var(--sky); gap: 12px; }
.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 64px; } }

/* ---------- Header ---------- */
.nav {
  position: fixed; inset: 12px var(--gutter) auto; z-index: 50; height: 64px;
  display: flex; align-items: center; gap: 24px; padding: 0 10px 0 18px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 999px; box-shadow: 0 6px 30px rgba(12, 37, 71, .10); transition: transform .4s var(--ease);
}
.nav.hide { transform: translateY(-120%); }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: none; gap: 26px; margin: 0 auto; font-size: 14px; font-weight: 600; color: var(--navy); }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--sky); transition: right .3s var(--ease); }
.nav-links a:hover::after { right: 0; }
.nav-cta {
  display: none; margin-left: auto; background: var(--navy); color: #fff; border-radius: 999px;
  padding: 11px 20px; font-size: 13px; font-weight: 700; letter-spacing: .04em; transition: background .25s;
}
.nav-cta:hover { background: var(--sky); }
.nav-burger {
  margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sky-soft);
  display: grid; place-content: center; gap: 6px;
}
.nav-burger span { display: block; width: 18px; height: 1.6px; background: var(--navy); transition: transform .3s var(--ease); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
@media (min-width: 1100px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-block; margin-left: 0; }
  .nav-burger { margin-left: 0; }
}
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--navy-deep); color: #fff;
  padding: 110px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font-family: var(--display); text-transform: uppercase; font-size: clamp(30px, 6vw, 56px); line-height: 1.12; transition: color .2s, padding .3s var(--ease); }
.menu nav a:hover { color: var(--sky); padding-left: 10px; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; color: var(--sky); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; color: #fff; overflow: hidden; display: flex; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.08); will-change: transform; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,37,71,.58) 0%, rgba(12,37,71,.30) 32%, rgba(12,37,71,.46) 55%, rgba(12,37,71,.88) 100%);
}
.hero-inner {
  position: relative; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 120px var(--gutter) 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
}
.hero-meta { display: grid; gap: 18px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-tags li::before { content: "•"; color: var(--sky); margin-right: 8px; }
.hero-intro { margin: 0; max-width: 38ch; line-height: 1.55; }
.hero-intro u { text-decoration-color: var(--sky); text-underline-offset: 4px; }
@media (min-width: 900px) {
  .hero-meta { grid-template-columns: 1fr 1fr; align-items: start; }
  .hero-tags { flex-direction: column; gap: 4px; }
  .hero-tags li::before { content: none; }
}
.hero-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; margin: 0;
  font-size: clamp(46px, 10.2vw, 172px); line-height: .92; letter-spacing: -.005em;
}
.hero-title > span { display: block; }
.hero-title .l2 { display: flex; flex-wrap: wrap; column-gap: .45em; }
.hero-title .l3 { text-align: right; }
@media (min-width: 900px) { .hero-title .l2 { justify-content: space-between; } .hero-title .push { color: var(--sky); } }
@media (max-width: 899px) { .hero-title .push { color: var(--sky); } }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid rgba(255,255,255,.28); padding-top: 18px; }
.licence { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .03em; transition: background .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
/* WhatsApp buttons use the official WhatsApp green (#25D366, hover #128C7E) */
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #128c7e; }
.wa-ico { width: 20px; height: 20px; flex: none; }

/* ---------- Founder note ---------- */
.intro { padding: clamp(80px, 11vw, 160px) 0 clamp(56px, 7vw, 100px); }
.intro .display { max-width: 18ch; }
.intro-body { font-size: 16px; color: var(--ink); max-width: 46ch; }
.intro-body p { margin: 0 0 14px; }
.intro-body .sig { font-family: var(--display); font-size: 18px; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; margin-top: 20px; }

/* ---------- Developer logos ---------- */
.devs { padding: 24px 0 clamp(70px, 9vw, 120px); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(40px, 6vw, 88px); width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; height: 56px; display: grid; place-items: center; }
.marquee-track img { max-height: 34px; max-width: 170px; width: auto; filter: grayscale(1); opacity: .72; transition: filter .3s, opacity .3s; }
.marquee-track li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Audience cards ---------- */
.aud { padding: 0 0 clamp(80px, 10vw, 140px); }
.aud-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .aud-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .aud-grid { grid-template-columns: repeat(4, 1fr); align-items: start; } .aud-card:nth-child(even) { margin-top: 64px; } }
.aud-card { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); color: #fff; isolation: isolate; }
.aud-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); z-index: -2; }
.aud-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,37,71,0) 35%, rgba(12,37,71,.88) 100%); transition: background .5s var(--ease); }
.aud-card:hover img { transform: scale(1.06); }
.aud-card:hover::after { background: linear-gradient(180deg, rgba(12,37,71,.25) 0%, rgba(12,37,71,.94) 70%); }
.aud-label { position: absolute; left: 20px; bottom: 18px; font-family: var(--display); font-size: clamp(30px, 3vw, 40px); text-transform: uppercase; transition: transform .5s var(--ease); }
.aud-copy {
  position: absolute; left: 20px; right: 20px; bottom: 18px; font-size: 14.5px; line-height: 1.5;
  opacity: 0; transform: translateY(16px); transition: opacity .45s, transform .5s var(--ease);
}
.aud-copy b { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; color: var(--sky-soft); }
.aud-card:hover .aud-label, .aud-card:focus-visible .aud-label { transform: translateY(-150px); }
.aud-card:hover .aud-copy, .aud-card:focus-visible .aud-copy { opacity: 1; transform: none; }
@media (hover: none) {               /* touch: show copy without hover */
  .aud-card { aspect-ratio: 4 / 4.6; }
  .aud-label { bottom: auto; top: 16px; }
  .aud-copy { opacity: 1; transform: none; }
  .aud-card::after { background: linear-gradient(180deg, rgba(12,37,71,.35) 0%, rgba(12,37,71,.1) 30%, rgba(12,37,71,.9) 100%); }
}

/* ---------- Communities carousel ---------- */
.areas { padding: clamp(80px, 10vw, 140px) 0; background: #fff; border-top: 1px solid var(--line); }
.split-end { align-items: end; }
.carousel-ctrl { display: none; gap: 10px; justify-self: end; }
@media (min-width: 900px) { .carousel-ctrl { display: flex; } }
.cbtn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 18px; transition: background .25s, color .25s; }
.cbtn:hover { background: var(--navy); color: #fff; }
.carousel { margin-top: 40px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; padding: 0 var(--gutter); cursor: grab; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel-track { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 18px; width: max-content; }
@media (min-width: 1500px) { .carousel { padding-left: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.carousel-track li { scroll-snap-align: start; width: min(78vw, 340px); }
.area { display: grid; gap: 10px; }
.area img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--radius); transition: transform .8s var(--ease), filter .5s; -webkit-user-drag: none; }
.area:hover img { filter: saturate(1.15); }
.area-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.tag-new { color: var(--sky); }
.area-name { font-family: var(--display); font-size: 26px; text-transform: uppercase; color: var(--navy); line-height: 1.1; }
.area-desc { font-size: 14.5px; color: var(--ink); margin-top: -4px; min-height: 2.9em; }   /* 2 lines, keeps rows level */
.lifestyles { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .lifestyles { grid-template-columns: repeat(4, 1fr); } }
.lifestyles li { padding: 22px 18px 6px 0; display: grid; gap: 2px; }
.lifestyles b { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); color: var(--navy); line-height: 1; }
.lifestyles span { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }

/* ---------- Principles grid ---------- */
.rules { padding: clamp(80px, 10vw, 140px) 0; }
.rules-viewport { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.rules-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .rules-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .rules-grid { grid-template-columns: repeat(3, 1fr); } }
.rules-grid li { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
@media (min-width: 700px) { .rules-grid li { padding-left: 24px; border-left: 1px solid var(--line); } }
.rules-grid b { font-weight: 600; font-size: 18px; line-height: 1.38; color: var(--navy); }
.rules-grid span { font-size: 14.5px; color: var(--mist); }
.rules-grid li { transition: background .3s; }
.rules-grid li:hover { background: var(--sky-soft); }

/* ---------- Golden Visa ---------- */
.visa { padding: 0 0 clamp(80px, 10vw, 140px); }
.visa-grid { display: grid; gap: 36px; }
@media (min-width: 960px) { .visa-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; } }
.visa-img { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3.2; }
.visa-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.visa .sub { font-size: 18px; font-weight: 500; color: var(--sky); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 24px; line-height: 1.45; }
.visa-list { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line); }
.visa-list li { padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); position: relative; font-weight: 600; color: var(--navy); }
.visa-list li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--sky); }
.small { font-size: 14.5px; color: var(--mist); max-width: 52ch; }

/* ---------- Let's talk ---------- */
.talk { padding: 0 var(--gutter) clamp(60px, 7vw, 100px); }
.talk-box {
  max-width: var(--max); margin: 0 auto; background: var(--navy); color: #fff; border-radius: 6px;
  padding: clamp(28px, 5vw, 72px); display: grid; gap: 40px; position: relative; overflow: hidden;
}
.talk-box::before {               /* brand sun arc echo */
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1.5px solid rgba(91,168,222,.35);
  left: -170px; bottom: -330px; pointer-events: none;
}
@media (min-width: 960px) { .talk-box { grid-template-columns: 1fr 1.25fr; gap: 80px; } }
.talk-head .display { color: var(--sky); font-size: clamp(48px, 7vw, 104px); margin-bottom: 14px; }
.talk-head p { margin: 0; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; max-width: 30ch; line-height: 1.6; }
.talk-head .talk-note { margin-top: 18px; color: rgba(255,255,255,.65); text-transform: none; letter-spacing: 0; font-weight: 500; }
.talk-form { display: grid; gap: 22px; position: relative; }
.field { display: grid; gap: 4px; }
.field span, .chips legend { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); color: #fff;
  font: 500 17px/1.4 var(--body); padding: 8px 0 10px; border-radius: 0; resize: vertical; transition: border-color .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 10px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 8px 15px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.chips input:checked + span { background: var(--sky); border-color: var(--sky); color: var(--navy-deep); }
.chips input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.talk-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-msg { margin: 0; font-size: 14px; color: var(--sky-soft); min-height: 1.2em; }
.send {
  margin-left: auto; border: 0; background: var(--sky); color: var(--navy-deep); border-radius: 999px; min-height: 52px;
  padding: 0 26px; font-weight: 700; letter-spacing: .04em; transition: background .25s, transform .25s var(--ease);
}
.send:hover { background: #fff; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.foot { background: var(--sky-soft); padding: clamp(60px, 8vw, 110px) 0 28px; color: var(--navy); }
.foot-mail {
  display: inline-flex; flex-wrap: wrap; gap: .3em; font-family: var(--display); text-transform: uppercase;
  font-size: clamp(30px, 6.4vw, 104px); line-height: 1; color: var(--navy); word-break: break-word; transition: color .3s;
}
.foot-mail:hover { color: var(--sky); }
.foot-grid { margin-top: clamp(40px, 6vw, 80px); display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 960px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 960px) { .foot-brand { grid-column: auto; } }
.foot-brand img { width: 190px; margin-bottom: 14px; }
.foot-brand p { margin: 0; max-width: 34ch; font-size: 14.5px; color: var(--ink); }
.foot-grid h3 { font: 700 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin: 0 0 14px; }
.foot-grid > div:not(.foot-brand) { display: grid; gap: 8px; align-content: start; font-size: 14.5px; font-weight: 500; }
.foot-grid > div a:hover { color: var(--sky); }
.foot-grid p { margin: 6px 0 0; color: var(--ink); font-size: 14px; }
.foot-base { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 12.5px; color: var(--mist); }
.foot-base p { margin: 0; }
@media (min-width: 960px) { .foot-base { grid-template-columns: auto auto; justify-content: space-between; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(18,140,126,.35);
  transition: transform .3s var(--ease), background .25s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); background: #128c7e; }
.wa-float { opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .35s, transform .35s var(--ease), visibility .35s, background .25s; }
.wa-float.show { opacity: 1; visibility: visible; transform: none; }   /* appears once the hero's WhatsApp button scrolls away */
.no-js .wa-float { opacity: 1; visibility: visible; transform: none; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-line { opacity: 0; transform: translateY(40%); animation: rise 1.1s var(--ease) forwards; }
.hero-title .l2 { animation-delay: .12s; }
.hero-title .l3 { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-line { opacity: 1; transform: none; }
  .hero-media img, .visa-img img { transform: none; }
}
