/* ═══════════════════════════════════════════════════════════
   FALSE BAY COLLECTION — SHARED DESIGN SYSTEM
   Typography: Fraunces (display serif) + Plus Jakarta Sans
   Palette: Warm, sunny, coastal — light and human
═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:       #FDFAF4;    /* warm white */
  --cream:    #F4EDD8;    /* warm cream */
  --sand:     #DFC9A0;    /* sandy mid */
  --stone:    #9A8A72;    /* muted warm grey */
  --charcoal: #25201A;    /* headings / dark */
  --ocean:    #4A7B94;    /* muted warm ocean */
  --sage:     #66785A;    /* coastal green */
  --amber:    #C47A3C;    /* warm terracotta accent */
  --white:    #FEFEFC;

  --f-serif: 'Fraunces', Georgia, serif;
  --f-sans:  'Plus Jakarta Sans', system-ui, sans-serif;

  --nav-h:    68px;
  --pad-x:    clamp(1.5rem, 5vw, 5rem);
  --section-y: clamp(5rem, 10vw, 10rem);
  --article-max: 740px;
}

/* ─── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--charcoal);
  font-family: var(--f-sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ─── TYPOGRAPHY UTILITIES ───────────────────────────── */
.u-label {
  font-family: var(--f-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.u-label--stone  { color: var(--stone); }
.u-label--sand   { color: var(--sand); }
.u-label--cream  { color: rgba(253,250,244,0.55); }
.u-label--amber  { color: var(--amber); }

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  transition: background 0.28s, color 0.28s, border-color 0.28s;
}
.btn--dark        { background: var(--charcoal); color: var(--white); }
.btn--dark:hover  { background: var(--ocean); }
.btn--outline     { border: 1px solid var(--charcoal); color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: var(--white); }
.btn--ocean       { background: var(--ocean); color: var(--white); }
.btn--ocean:hover { background: #3d677c; }
.btn--white       { background: var(--white); color: var(--charcoal); }
.btn--white:hover { background: var(--cream); }
.btn--ghost       { border: 1px solid rgba(253,250,244,0.25); color: rgba(253,250,244,0.7); }
.btn--ghost:hover { border-color: rgba(253,250,244,0.55); color: var(--white); }

/* ─── REVEAL ANIMATIONS ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1),
              transform 1s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.22s; }
.reveal[data-delay="3"] { transition-delay: 0.34s; }

/* ─── NAVIGATION ─────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  transition: background 0.4s, border-color 0.4s;
}
.nav.--scrolled {
  background: var(--bg);
  border-bottom: 1px solid rgba(223,201,160,0.4);
}
.nav__brand {
  font-family: var(--f-serif);
  font-size: 1rem;
  font-weight: 300;
  color: white;
  letter-spacing: 0.04em;
  transition: color 0.4s;
  font-optical-sizing: auto;
}
.nav.--scrolled .nav__brand { color: var(--charcoal); }

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav__links a {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: opacity 0.25s, color 0.4s;
}
.nav.--scrolled .nav__links a { color: var(--charcoal); }
.nav__links a:hover { opacity: 0.55; }

.nav__book {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.5rem 1.25rem;
  transition: background 0.28s, color 0.4s, border-color 0.4s;
}
.nav.--scrolled .nav__book { color: var(--charcoal); border-color: var(--charcoal); }
.nav__book:hover { background: rgba(255,255,255,0.12); }
.nav.--scrolled .nav__book:hover { background: var(--charcoal); color: var(--white); }

/* Scrolled state for pages that start solid (sub-pages) */
.nav.--solid {
  background: var(--bg);
  border-bottom: 1px solid rgba(223,201,160,0.4);
}
.nav.--solid .nav__brand { color: var(--charcoal); }
.nav.--solid .nav__links a { color: var(--charcoal); }
.nav.--solid .nav__book { color: var(--charcoal); border-color: var(--charcoal); }

/* ─── HERO (INDEX) ───────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  max-height: 1000px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,  rgba(15,11,7,0.42) 0%,  rgba(15,11,7,0.05) 28%, transparent 50%),
    linear-gradient(to top,     rgba(15,11,7,0.50) 0%,  rgba(15,11,7,0.06) 32%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(0,0,0,0.14) 0%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}
.hero__eyebrow-line { width: 28px; height: 1px; background: rgba(255,255,255,0.38); }
.hero__h1 {
  font-family: var(--f-serif);
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: white;
  margin-bottom: 2rem;
  font-optical-sizing: auto;
}
.hero__sub {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.62);
  max-width: 360px;
  line-height: 1.72;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: var(--pad-x);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}
.hero__scroll-label {
  writing-mode: vertical-rl;
  font-size: 0.5rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.hero__scroll-line {
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ─── ARTICLE HERO (SUB-PAGES) ───────────────────────── */
.article-hero {
  position: relative;
  height: 80dvh;
  min-height: 500px;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--nav-h) var(--pad-x) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.article-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.article-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(28,20,12,0.78) 0%,
    rgba(28,20,12,0.25) 55%,
    rgba(28,20,12,0.08) 100%);
}
.article-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.article-hero__section {
  display: block;
  margin-bottom: 1.5rem;
}
.article-hero__h1 {
  font-family: var(--f-serif);
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 1.5rem;
  font-optical-sizing: auto;
}
.article-hero__intro {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  line-height: 1.72;
}

/* ─── ARTICLE BODY (SUB-PAGES) ───────────────────────── */
.article-body {
  padding: var(--section-y) var(--pad-x);
  max-width: calc(var(--article-max) + var(--pad-x) * 2);
}
.article-body p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--stone);
  margin-bottom: 1.75rem;
}
.article-body p:first-child { color: var(--charcoal); font-size: 1.15rem; }
.article-body h2 {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--charcoal);
  margin: 3rem 0 1.25rem;
  font-optical-sizing: auto;
}
.article-body h3 {
  font-family: var(--f-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 2.5rem 0 0.75rem;
}
.article-pull {
  font-family: var(--f-serif);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.38;
  color: var(--charcoal);
  padding: 2.5rem 0;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  margin: 3rem 0;
  font-optical-sizing: auto;
}
.article-img-break {
  width: 100%;
  height: clamp(280px, 45vw, 500px);
  overflow: hidden;
  margin: 3rem 0;
}
.article-img-break img { transition: transform 12s ease; }

/* ─── LANDSCAPE BREAK ────────────────────────────────── */
.landscape {
  height: clamp(300px, 52vh, 560px);
  overflow: hidden;
  position: relative;
}
.landscape img { object-position: center 30%; }
.landscape__cap {
  position: absolute;
  bottom: 1.75rem;
  right: var(--pad-x);
}

/* ─── SECTION HEADER UTILITY ─────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(2.5rem, 4vw, 4.5rem);
  gap: 2rem;
}
.section-h2 {
  font-family: var(--f-serif);
  font-size: clamp(2.25rem, 4.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
.section-sub {
  max-width: 280px;
  text-align: right;
  font-size: 0.9375rem;
  color: var(--stone);
  line-height: 1.72;
}

/* ─── PROPERTY MINI CARDS (reusable) ─────────────────── */
.prop-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--sand);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  font-family: var(--f-sans);
  font-weight: 400;
}

/* ─── RELATED SECTION (SUB-PAGES) ────────────────────── */
.related {
  padding: var(--section-y) var(--pad-x);
  background: var(--cream);
}
.related__h2 {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 300;
  margin-bottom: 2.5rem;
  font-optical-sizing: auto;
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.related-card { display: flex; flex-direction: column; gap: 0.875rem; }
.related-card__img {
  height: 200px;
  overflow: hidden;
  background: var(--sand);
}
.related-card__img img { transition: transform 0.8s ease; }
.related-card:hover .related-card__img img { transform: scale(1.04); }
.related-card__title {
  font-family: var(--f-serif);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.3;
  color: var(--charcoal);
  font-optical-sizing: auto;
}
.related-card__link {
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}
.related-card__link::after { content: ' →'; }

/* ─── BOOK CTA (shared) ──────────────────────────────── */
.book-cta {
  padding: var(--section-y) var(--pad-x);
  text-align: center;
  background: var(--charcoal);
}
.book-cta__eyebrow { margin-bottom: 2rem; }
.book-cta__h2 {
  font-family: var(--f-serif);
  font-size: clamp(2.25rem, 5vw, 5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  font-optical-sizing: auto;
}
.book-cta__body {
  font-size: 0.9375rem;
  color: rgba(253,250,244,0.45);
  line-height: 1.8;
  max-width: 380px;
  margin: 0 auto 3rem;
}
.book-cta__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  padding: clamp(3.5rem,5vw,5rem) var(--pad-x);
  border-top: 1px solid rgba(223,201,160,0.4);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.footer__brand-name {
  font-family: var(--f-serif);
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  font-optical-sizing: auto;
}
.footer__tagline {
  font-size: 0.9375rem;
  color: var(--stone);
  line-height: 1.62;
}
.footer__col-title {
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  font-family: var(--f-sans);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.875rem; }
.footer__links a { font-size: 0.9375rem; color: var(--charcoal); transition: color 0.25s; }
.footer__links a:hover { color: var(--stone); }
.footer__contact { font-size: 0.9375rem; color: var(--stone); line-height: 1.72; }
.footer__contact a { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid rgba(223,201,160,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy { font-size: 0.75rem; color: var(--stone); }
.footer__social { display: flex; gap: 2rem; }
.footer__social a {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.25s;
}
.footer__social a:hover { color: var(--charcoal); }

/* ─── RESPONSIVE (SHARED) ────────────────────────────── */
@media (max-width: 1024px) {
  .footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__links, .nav__book { display: none; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .section-sub { text-align: left; max-width: none; }
  .related__grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; gap: 2.5rem; }
  .book-cta__actions { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .hero__h1 { letter-spacing: -0.02em; }
}
