/* ==========================================================================
   Richland Properties — Maldives Island & Resort Investments
   Design language: quiet luxury, private-banking restraint.
   Signature motif: the horizon line — the single boundary that defines
   every private island. It reappears as section dividers, the hero's
   ambient gradient seam, and the loading/scroll reveal.
   ========================================================================== */

:root {
  --sand: #EDE7DA;
  --sand-deep: #E2D9C7;
  --card: #F7F4EC;
  --ink: #1C2430;
  --navy: #16222E;
  --navy-mist: #4A5C6B;
  --brass: #af7d3b;
  --brass-light: #e1a048; 
  --brass-soft: rgba(169, 130, 79, 0.35);
  --line: rgba(28, 36, 48, 0.14);
  --line-on-navy: rgba(237, 231, 218, 0.16);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1180px;
  --max-narrow: 640px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow--on-navy { color: var(--brass); }

/* -------------------- Reveal-on-scroll -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* -------------------- Horizon rule (signature element) -------------------- */
.horizon {
  position: relative;
  height: 1px;
  width: 100%;
  background: var(--line);
  overflow: hidden;
}
.horizon span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.4s cubic-bezier(.16,.84,.44,1);
}
.horizon.is-visible span { transform: scaleX(1); }
.horizon--on-navy { background: var(--line-on-navy); }

/* -------------------- Nav -------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 231, 218, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.02em;
}
.brand em { font-style: italic; color: var(--brass); }
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-mist);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
  color: var(--ink);
  opacity: 0.72;
  transition: opacity 0.25s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
}
.nav-cta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 10px 20px;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--sand); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 1px; background: var(--ink);
  position: relative; transition: 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; width: 22px; }
.nav-toggle span::after { position: absolute; top: 7px; width: 22px; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 82px 0 0 0; height: calc(100vh - 82px);
    background: var(--sand); flex-direction: column; align-items: flex-start;
    padding: 40px 32px; gap: 22px; font-size: 20px; font-family: var(--serif);
    transform: translateX(100%); transition: transform 0.35s ease; overflow-y: auto; }
  .nav-links.is-open { transform: translateX(0); }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* -------------------- Hero (photographic) -------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 32px 100px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: var(--sand);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,24,32,0.62) 0%, rgba(16,24,32,0.32) 42%, rgba(16,24,32,0.30) 58%, rgba(16,24,32,0.7) 100%);
  z-index: 1;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 46%;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, var(--brass) 50%, transparent 96%);
  opacity: 0.7;
  z-index: 2;
  animation: driftline 14s ease-in-out infinite;
}
@keyframes driftline {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(-3px); opacity: 0.85; }
}
.hero > * { position: relative; z-index: 3; }
.hero-eyebrow { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.12;
  max-width: 920px;
  font-weight: 300;
  color: var(--sand);
  text-shadow: 0px 5px 7px rgb(0 0 0 / 50%);
}
.hero .sub {
  margin-top: 26px;
  max-width: 540px;
  font-size: clamp(17px, 2vw, 20px);
  font-style: italic;
  font-family: var(--serif);
  color: rgba(237,231,218,0.92);
  line-height: 1.5;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(237,231,218,0.75);
  z-index: 3;
}

/* page (interior) hero — shorter, photographic, for non-home pages */
.page-hero {
  position: relative;
  padding: 168px 32px 84px;
  text-align: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: var(--sand);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,24,32,0.68) 0%, rgba(16,24,32,0.42) 55%, rgba(16,24,32,0.72) 100%);
  z-index: 1;
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero .eyebrow { display: block; margin-bottom: 20px; }
.page-hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 300;
  max-width: 760px;
  margin: 0 auto;
  color: var(--sand);
  text-shadow: 1px 5px 4px rgba(0, 0, 0, 0.4);
}
.page-hero .lede {
  max-width: 560px;
  margin: 22px auto 0;
  font-size: 17px;
  color: rgba(237,231,218,0.9);
  font-family: var(--serif);
  font-style: italic;
}

/* -------------------- Photo cards / gallery strip -------------------- */
.card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.card:hover .card-photo img { transform: scale(1.045); }

.type-photo { aspect-ratio: 5/4; overflow: hidden; border: 1px solid var(--line); }
.type-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
@media (max-width: 760px) { .gallery-strip { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .g-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 16px 14px;
  background: linear-gradient(0deg, rgba(16,24,32,0.72), transparent);
  color: var(--sand);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* -------------------- Sections -------------------- */
section { padding: 110px 0; }
.section--tight { padding: 70px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 300;
  margin-top: 16px;
}
.section-head p {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--navy-mist);
  font-size: 16px;
}

.statement {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink);
}
.statement + .statement { margin-top: 22px; }

/* -------------------- Navy band (philosophy / trust) -------------------- */
.band-navy {
  background: var(--navy);
  color: var(--sand);
}
.band-navy .statement { color: var(--sand); }
.band-navy .statement em { color: var(--brass); font-style: italic; }
.band-navy .eyebrow { color: var(--brass); text-align: center; display: block; margin-bottom: 20px; }

/* -------------------- Property / opportunity grid -------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.img-placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #DCD3BE 0%, #EDE7DA 55%, #D8CDB4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-placeholder svg { width: 46px; height: 46px; opacity: 0.5; }
.img-placeholder .ph-label {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-mist);
  background: rgba(247,244,236,0.82);
  padding: 6px 8px;
}
.card-body { padding: 26px 24px 28px; }
.card-body .tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.card-body h3 {
  font-size: 20px;
  font-weight: 400;
  margin-top: 10px;
}
.card-body p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--navy-mist);
}
.card-foot {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* -------------------- Services / list columns -------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.services .service {
  padding: 8px 40px;
  border-left: 1px solid var(--line);
}
.services .service:first-child { border-left: none; padding-left: 0; }
.services .service:last-child { padding-right: 0; }
.service .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 14px;
}
.service h3 { font-size: 19px; font-weight: 400; margin-top: 14px; }
.service p { margin-top: 12px; font-size: 14.5px; color: var(--navy-mist); }
@media (max-width: 800px) {
  .services { grid-template-columns: 1fr; gap: 40px; }
  .services .service { border-left: none; padding: 0 !important; border-top: 1px solid var(--line); padding-top: 32px !important; }
  .services .service:first-child { border-top: none; padding-top: 0 !important; }
}

/* -------------------- Buttons / links -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  transition: background 0.25s ease, color 0.25s ease, border-color .25s ease;
}
.btn:hover { background: var(--ink); color: var(--sand); }
.btn--on-navy { border-color: var(--sand); }
.btn--on-navy:hover { background: var(--sand); color: var(--navy); }
.btn--brass { border-color: var(--brass); color: var(--brass); }
.btn--brass:hover { background: var(--brass); color: var(--sand); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; }
.link-arrow svg { transition: transform 0.25s ease; }
.link-arrow:hover svg { transform: translateX(5px); }

.cta-center { text-align: center; margin-top: 44px; }

/* -------------------- About / bio -------------------- */
.bio {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 800px) { .bio { grid-template-columns: 1fr; gap: 36px; } }
.bio-portrait {
  aspect-ratio: 3/4;
  background: linear-gradient(165deg, #DCD3BE, #EDE7DA 60%, #D2C7AC);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.bio-portrait svg { width: 54px; height: 54px; opacity: 0.5; }
.bio-name { margin-top: 20px; font-size: 20px; }
.bio-title { margin-top: 4px; font-size: 13px; color: var(--navy-mist); letter-spacing: 0.02em; }
.bio-copy p { margin-bottom: 18px; font-size: 15.5px; color: var(--ink); }
.bio-copy p:last-child { margin-bottom: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 44px; } }
.expertise-list, .why-list { list-style: none; margin: 20px 0 0; padding: 0; }
.expertise-list li, .why-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  display: flex;
  gap: 14px;
}
.expertise-list li:last-child, .why-list li:last-child { border-bottom: 1px solid var(--line); }
.expertise-list li::before, .why-list li::before {
  content: "—";
  color: var(--brass);
  flex-shrink: 0;
}

/* -------------------- Property type detail rows -------------------- */
.type-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.type-row:first-of-type { border-top: none; padding-top: 0; }
.type-row:nth-of-type(even) { direction: rtl; }
.type-row:nth-of-type(even) > * { direction: ltr; }
@media (max-width: 860px) {
  .type-row, .type-row:nth-of-type(even) { grid-template-columns: 1fr; direction: ltr; gap: 28px; padding: 48px 0; }
}
.type-copy .eyebrow { margin-bottom: 14px; }
.type-copy h3 { font-size: 27px; font-weight: 300; }
.type-copy p { margin-top: 16px; font-size: 15.5px; color: var(--navy-mist); }
.type-copy ul { margin: 20px 0 0; padding: 0; list-style: none; }
.type-copy li { font-size: 14px; padding: 8px 0 8px 20px; position: relative; border-top: 1px solid var(--line); }
.type-copy li::before { content: "·"; position: absolute; left: 0; color: var(--brass); font-size: 20px; line-height: 0.6; }
.type-visual { aspect-ratio: 5/4; background: linear-gradient(150deg, #DCD3BE, #EDE7DA 55%, #D2C7AC); border: 1px solid var(--line); display:flex; align-items:center; justify-content:center; }
.type-visual svg { width: 50px; height: 50px; opacity: .5; }

/* -------------------- Testimonials -------------------- */
.testimonial {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 34px 30px;
}
.testimonial p.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}
.testimonial .attr {
  margin-top: 20px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--navy-mist);
  text-transform: uppercase;
}
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .testimonial-grid { grid-template-columns: 1fr; } }
.placeholder-note {
  text-align: center;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--navy-mist);
  font-style: italic;
}

/* -------------------- Contact -------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-mist);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--brass);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12px; color: var(--navy-mist); margin-top: 14px; }

.office-block { padding: 26px 0; border-top: 1px solid var(--line); }
.office-block:first-child { border-top: none; padding-top: 0; }
.office-block h3 { font-size: 18px; font-weight: 400; }
.office-block .addr { margin-top: 10px; font-size: 14.5px; color: var(--navy-mist); line-height: 1.7; }
.office-block .direct-links { margin-top: 14px; display: flex; gap: 22px; font-size: 13px; }
.map-frame {
  margin-top: 26px;
  border: 1px solid var(--line);
  filter: grayscale(0.35) sepia(0.08);
}
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

/* -------------------- Footer -------------------- */
footer {
  background: var(--navy);
  color: var(--sand);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-family: var(--sans);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-grid p, .footer-grid a { font-size: 14px; color: rgba(237,231,218,0.72); }
.footer-grid nav a { display: block; margin-bottom: 10px; transition: color 0.2s ease; }
.footer-grid nav a:hover { color: var(--sand); }
.footer-brand { font-family: var(--serif); font-size: 20px; color: var(--sand); }
.footer-brand span { display:block; font-family: var(--sans); font-size: 12px; letter-spacing: 0.05em; color: rgba(237,231,218,0.55); margin-top: 10px; line-height: 1.6; }
.social-row { display: flex; gap: 16px; margin-top: 16px; }
.social-row a { width: 34px; height: 34px; border: 1px solid var(--line-on-navy); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { border-color: var(--brass); }
.social-row svg { width: 15px; height: 15px; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-navy);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(237,231,218,0.5);
  flex-wrap: wrap;
  gap: 10px;
}

/* -------------------- WhatsApp floating button -------------------- */
.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--brass-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(22,34,46,0.28);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 24px; height: 24px; fill: var(--sand); }

@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  section { padding: 76px 0; }
  .hero { padding: 120px 22px 80px; }
}
