/* ============================================================
   4 Winds Court — style.css
   Community-First Digital Home
   Pridelands / Sabaki, Athi River, Kenya
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  /* Palette: warm earth, terracotta, deep olive */
  --earth:       #2C2416;   /* deep warm brown — headlines */
  --olive:       #3D4A2E;   /* deep forest olive — primary */
  --olive-mid:   #5A6B42;   /* mid olive */
  --olive-light: #8A9E6A;   /* sage green */
  --terra:       #C4622D;   /* terracotta — warmth accent */
  --terra-light: #E07848;   /* lighter terracotta */
  --amber:       #D4972A;   /* warm amber — secondary accent */
  --cream:       #FBF6EE;   /* warm cream background */
  --linen:       #F2EAD8;   /* linen — card backgrounds */
  --sand:        #E8DCC8;   /* sand — borders, dividers */
  --parchment:   #EDE4CF;   /* parchment — section bg */
  --text:        #2C2416;   /* body text */
  --text-mid:    #4A3F2F;   /* mid tone */
  --text-muted:  #7A6A52;   /* muted */
  --white:       #FFFDF9;   /* warm white */

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  /* Sizes */
  --nav-h:  72px;
  --max-w:  1180px;
  --radius: 4px;
  --radius-lg: 12px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--earth); }

.display-xl { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.display-lg { font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 700; line-height: 1.1; }
.display-md { font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.2; }
.display-sm { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 700; line-height: 1.25; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--terra);
  display: inline-block;
  margin-bottom: 14px;
}
.eyebrow::before { content: '— '; }

.lead { font-size: 1.12rem; line-height: 1.8; color: var(--text-mid); font-weight: 400; }
.body-copy { font-size: .95rem; line-height: 1.82; color: var(--text-mid); font-weight: 400; }
.caption { font-size: .78rem; color: var(--text-muted); font-weight: 400; letter-spacing: .04em; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 5vw; }
.section { padding: clamp(64px, 9vw, 120px) 5vw; }
.section-narrow { padding: clamp(48px, 7vw, 96px) 5vw; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.text-center { text-align: center; }

/* ── SECTION HEADER ── */
.section-header { margin-bottom: clamp(36px, 5vw, 60px); }
.section-header.center { text-align: center; }
.section-header.center .lead { max-width: 600px; margin: 0 auto; }

/* ── DIVIDER ── */
.divider { width: 48px; height: 3px; background: var(--terra); margin: 18px 0 28px; border-radius: 2px; }
.divider.center { margin: 18px auto 28px; }
.divider.amber { background: var(--amber); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  transition: all .25s ease;
  border: none;
}
.btn-terra { background: var(--terra); color: var(--white); }
.btn-terra:hover { background: var(--terra-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196, 98, 45, .3); }
.btn-olive { background: var(--olive); color: var(--white); }
.btn-olive:hover { background: var(--olive-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(61, 74, 46, .3); }
.btn-outline-cream { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline-cream:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn-outline-terra { background: transparent; color: var(--terra); border: 1.5px solid var(--terra); }
.btn-outline-terra:hover { background: var(--terra); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-mid); padding: 12px 0; }
.btn-ghost:hover { color: var(--terra); }
.btn-ghost svg { transition: transform .2s; }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  transition: background .3s, box-shadow .3s, height .3s;
}
#nav.transparent { background: transparent; }
#nav.solid { background: rgba(44, 36, 22, .97); backdrop-filter: blur(16px); box-shadow: 0 2px 24px rgba(0,0,0,.18); height: 62px; }
#nav.light-solid { background: rgba(251, 246, 238, .97); backdrop-filter: blur(16px); box-shadow: 0 1px 16px rgba(44,36,22,.08); height: 62px; }

.nav-logo { display: flex; align-items: center; gap: 13px; }
.nav-logo-icon { width: 44px; height: 44px; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--white); letter-spacing: .01em; transition: color .3s; }
.nav-logo-sub { font-size: .58rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(212, 151, 42, .9); margin-top: 3px; transition: color .3s; }
#nav.light-solid .nav-logo-name { color: var(--earth); }
#nav.light-solid .nav-logo-sub { color: var(--terra); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: .78rem; font-weight: 500; letter-spacing: .05em; color: rgba(255,255,255,.82); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--amber); }
#nav.light-solid .nav-links a { color: var(--text-mid); }
#nav.light-solid .nav-links a:hover { color: var(--terra); }

.nav-cta-btn { background: var(--terra); color: var(--white) !important; padding: 9px 22px; border-radius: 50px; font-size: .75rem !important; font-weight: 600 !important; transition: all .2s !important; }
.nav-cta-btn:hover { background: var(--terra-light) !important; color: var(--white) !important; transform: translateY(-1px); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s; }
#nav.light-solid .nav-hamburger span { background: var(--earth); }

.nav-mobile {
  display: none; flex-direction: column;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(44, 36, 22, .98); backdrop-filter: blur(16px);
  padding: 24px 5vw 36px; z-index: 499;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,.8); padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); transition: color .2s; }
.nav-mobile a:hover { color: var(--amber); }
.nav-mobile .nav-cta-btn { margin-top: 18px; text-align: center; padding: 13px; font-size: .82rem !important; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  position: relative; min-height: 52vh;
  display: flex; align-items: flex-end;
  overflow: hidden; background: var(--olive);
  padding: 0 5vw clamp(40px, 6vw, 72px);
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(44,36,22,.85) 30%, rgba(44,36,22,.3) 100%); }
.page-hero-content { position: relative; max-width: var(--max-w); width: 100%; margin: 0 auto; padding-top: calc(var(--nav-h) + 40px); }
.page-hero-content .eyebrow { color: var(--amber); }
.page-hero-content .display-lg { color: var(--white); }
.page-hero-content .display-lg em { font-style: italic; color: rgba(212,151,42,.9); }

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--linen); border-bottom: 1px solid var(--sand); padding: 10px 5vw; }
.breadcrumb-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--text-muted); }
.breadcrumb a { color: var(--olive-mid); }
.breadcrumb a:hover { color: var(--terra); }
.breadcrumb sep { color: var(--terra); font-size: .6rem; }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--sand);
  transition: transform .32s ease, box-shadow .32s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(44,36,22,.1); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; }
.card-tag { font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; display: block; }
.card-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--earth); margin-bottom: 8px; line-height: 1.3; }
.card-body .body-copy { font-size: .88rem; line-height: 1.7; }

/* ── STORY BLOCKS ── */
.story-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.story-block.reverse { direction: rtl; }
.story-block.reverse > * { direction: ltr; }
.story-img { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.story-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.story-img-caption { position: absolute; bottom: 16px; left: 16px; right: 16px; background: rgba(44,36,22,.82); backdrop-filter: blur(8px); padding: 10px 14px; border-radius: var(--radius); border-left: 3px solid var(--terra); }
.story-img-caption p { font-size: .76rem; color: rgba(255,255,255,.85); line-height: 1.5; font-style: italic; }

/* ── QUOTE BLOCKS ── */
.pull-quote { position: relative; padding: 28px 32px 28px 48px; border-radius: var(--radius-lg); background: var(--linen); border-left: 4px solid var(--terra); }
.pull-quote::before { content: '\201C'; position: absolute; top: 8px; left: 14px; font-family: var(--font-display); font-size: 3.5rem; color: var(--terra); opacity: .35; line-height: 1; }
.pull-quote p { font-family: var(--font-display); font-size: clamp(1rem, 1.8vw, 1.25rem); font-style: italic; color: var(--earth); line-height: 1.7; margin-bottom: 12px; }
.pull-quote cite { font-size: .78rem; font-weight: 600; color: var(--terra); letter-spacing: .06em; font-style: normal; }

/* ── STAT PILLS ── */
.stat-pill { display: flex; flex-direction: column; align-items: center; padding: 24px 20px; background: var(--olive); border-radius: var(--radius-lg); text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 700; color: var(--amber); line-height: 1; }
.stat-label { font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: 7px; }

/* ── VALUE CARDS ── */
.value-card { padding: 28px 24px; border-radius: var(--radius-lg); background: var(--white); border-top: 3px solid var(--terra); }
.value-card .icon-wrap { width: 48px; height: 48px; border-radius: 50%; background: rgba(196, 98, 45, .1); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.value-card h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--earth); margin-bottom: 8px; font-weight: 700; }
.value-card p { font-size: .87rem; color: var(--text-muted); line-height: 1.72; font-weight: 400; }

/* ── AMENITY ITEMS ── */
.amenity-item { display: flex; gap: 16px; padding: 20px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--sand); transition: border-color .2s; align-items: flex-start; }
.amenity-item:hover { border-color: var(--terra); }
.amenity-icon { width: 46px; height: 46px; border-radius: 10px; background: rgba(196,98,45,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.amenity-icon svg { color: var(--terra); }
.amenity-name { font-size: .9rem; font-weight: 600; color: var(--earth); margin-bottom: 3px; }
.amenity-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.55; font-weight: 400; }

/* ── NOTICE CARDS ── */
.notice { background: var(--white); border-radius: var(--radius-lg); padding: 20px 22px; border-left: 4px solid var(--olive); border: 1px solid var(--sand); border-left-width: 4px; }
.notice-date { font-size: .67rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--terra); margin-bottom: 7px; }
.notice h4 { font-size: .95rem; font-weight: 600; color: var(--earth); margin-bottom: 5px; }
.notice p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--sand); }
.faq-q { padding: 20px 0; font-size: .96rem; font-weight: 600; color: var(--earth); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; user-select: none; }
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--terra); font-weight: 300; line-height: 1; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding-bottom .3s; font-size: .88rem; color: var(--text-mid); line-height: 1.78; font-weight: 400; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* ── FORM ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 1.5px solid var(--sand); border-radius: var(--radius); font-family: var(--font-body); font-size: .9rem; color: var(--text); background: var(--white); transition: border .2s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--olive-light); }
.form-group textarea { height: 130px; resize: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── CONTACT INFO ── */
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-item-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(61,74,46,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { color: var(--olive); }
.contact-item strong { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); margin-bottom: 3px; }
.contact-item span, .contact-item a { font-size: .9rem; color: var(--text-mid); line-height: 1.55; }
.contact-item a:hover { color: var(--terra); }

/* ── FOOTER ── */
#footer { background: var(--earth); color: rgba(255,255,255,.55); padding: clamp(48px, 7vw, 80px) 5vw 28px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 52px); max-width: var(--max-w); margin: 0 auto 48px; }
.footer-brand .footer-tagline { font-family: var(--font-display); font-size: 1rem; font-style: italic; color: rgba(212,151,42,.8); margin: 14px 0 10px; line-height: 1.5; }
.footer-brand p { font-size: .82rem; line-height: 1.7; font-weight: 300; }
.footer-col h5 { font-size: .65rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: .82rem; font-weight: 300; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .72rem; }
.footer-social { display: flex; gap: 9px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-size: .74rem; color: rgba(255,255,255,.4); transition: all .2s; }
.footer-social a:hover { border-color: var(--amber); color: var(--amber); }

/* ── WHATSAPP FLOAT ── */
.wa-btn { position: fixed; bottom: 28px; right: 28px; z-index: 400; width: 54px; height: 54px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: transform .2s; }
.wa-btn:hover { transform: scale(1.1); }
.wa-btn svg { color: #fff; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .72s ease, transform .72s ease; }
.reveal.up { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }

/* ── TEXTURE OVERLAY ── */
.grain::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; opacity: .45;
}

/* ── TESTIMONIAL ── */
.testimonial { background: var(--linen); border-radius: var(--radius-lg); padding: 28px; position: relative; }
.testimonial::before { content: '\201C'; position: absolute; top: 12px; left: 18px; font-family: var(--font-display); font-size: 3.2rem; color: var(--terra); opacity: .25; line-height: 1; }
.testimonial-text { font-family: var(--font-display); font-size: 1rem; font-style: italic; color: var(--earth); line-height: 1.72; margin-bottom: 16px; padding-left: 8px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sand); background: var(--sand); flex-shrink: 0; }
.testimonial-name { font-size: .84rem; font-weight: 600; color: var(--earth); }
.testimonial-role { font-size: .74rem; color: var(--text-muted); }

/* ── HERO SCROLL INDICATOR ── */
.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.5); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.scroll-hint-line { width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.4)); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100%{opacity:.3;transform:scaleY(.6)}50%{opacity:1;transform:scaleY(1)} }

/* ── SECTION BG VARIANTS ── */
.bg-cream    { background: var(--cream); }
.bg-linen    { background: var(--linen); }
.bg-parchment{ background: var(--parchment); }
.bg-olive    { background: var(--olive); }
.bg-earth    { background: var(--earth); }

/* ── INLINE HIGHLIGHT ── */
em.warm { font-style: italic; color: var(--terra); }
em.green { font-style: italic; color: var(--olive-mid); }

/* ── HORIZONTAL RULE ── */
hr.fancy { border: none; height: 1px; background: linear-gradient(to right, transparent, var(--sand), transparent); margin: 48px 0; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-links, .nav-cta-btn { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .story-block { grid-template-columns: 1fr; }
  .story-block.reverse { direction: ltr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
