/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }

/* ===== BASE ===== */
body { font-family: 'DM Sans', sans-serif; background: #fff; }

/* ===== ANCHOR OFFSETS (sticky nav clearance) ===== */
#riveria-projects, #floor-plans, #why-riveria, #reviews, #about,
#other-ksl-projects, #e-brochure, .proj-card[id] { scroll-margin-top: 110px; }

/* ===== SHARED SECTION STYLES ===== */
.sec-eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: #3B6D11; text-align: center; margin-bottom: .75rem; }
.sec-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 500; text-align: center; color: #0a1a12; margin-bottom: 1rem; }
.sec-sub { font-size: 14px; line-height: 1.9; color: #666; text-align: center; max-width: 600px; margin: 0 auto 1.5rem; }
.sec-divider { width: 40px; height: 2px; background: #c8d8a8; margin: 0 auto 3rem; }

/* ===== HEADER: DISCLOSURE + NAV + HERO + STATS ===== */
.ksl-wrap { font-family: 'DM Sans', sans-serif; color: #f0ede6; }
.ksl-disclosure { background: #c8d8a8; color: #0a1a12; font-size: 11px; line-height: 1.6; text-align: center; padding: 7px 16px; letter-spacing: 0.3px; }
.ksl-disclosure strong { font-weight: 500; }
.ksl-nav { display: flex; align-items: center; justify-content: center; gap: 2rem; padding: 1.2rem 2rem; border-bottom: 0.5px solid rgba(255,255,255,0.15); background: rgba(5,18,8,0.95); position: sticky; top: 0; z-index: 9999; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ksl-nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; flex-wrap: wrap; justify-content: center; }
.ksl-nav-links a { font-size: 11px; color: rgba(255,255,255,0.7); text-decoration: none; letter-spacing: 0.8px; text-transform: uppercase; transition: color 0.2s; }
.ksl-nav-links a:hover { color: #c8d8a8; }
.ksl-nav-cta { background: #c8d8a8; color: #0a1a12 !important; font-size: 11px; font-weight: 500; padding: 8px 16px; border-radius: 4px; text-decoration: none; display: inline-block; }
.ksl-hero { position: relative; min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; overflow: hidden; }
@keyframes kslZoom { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }
.ksl-hero-img { position: absolute; inset: 0; background: url('../assets/images/hero-bg.jpg') center center / cover no-repeat; z-index: 0; animation: kslZoom 8s ease-out forwards; }
.ksl-hero-overlay { position: absolute; inset: 0; background: rgba(5,18,8,0.62); z-index: 1; }
.ksl-hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.ksl-eyebrow { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #c8d8a8; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 10px; justify-content: center; }
.ksl-eyebrow::before, .ksl-eyebrow::after { content: ''; display: inline-block; width: 24px; height: 1px; background: #c8d8a8; }
.ksl-hero-title { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 500; line-height: 1.2; color: #f0ede6; margin-bottom: 1rem; max-width: 600px; }
.ksl-hero-title span { color: #c8d8a8; }
.ksl-hero-sub { font-size: 14px; line-height: 1.9; color: rgba(240,237,230,0.75); margin-bottom: 1.2rem; max-width: 520px; }
.ksl-hero-attr { font-size: 11px; letter-spacing: 0.5px; color: rgba(240,237,230,0.55); margin-bottom: 2rem; }
.ksl-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2.5rem; justify-content: center; }
.ksl-badge { font-size: 11px; padding: 5px 14px; border-radius: 20px; border: 0.5px solid rgba(200,216,168,0.5); color: #c8d8a8; letter-spacing: 0.5px; background: rgba(0,0,0,0.25); }
.ksl-btn { background: #c8d8a8; color: #0a1a12; font-size: 13px; font-weight: 500; padding: 13px 28px; border-radius: 4px; text-decoration: none; display: inline-block; border: none; cursor: pointer; transition: all 0.3s ease; }
.ksl-btn:hover { background: #8fa86e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.ksl-stats { display: flex; justify-content: center; align-items: center; border-top: 0.5px solid rgba(255,255,255,0.12); background: rgba(5,18,8,0.95); padding: 0 2rem; flex-wrap: wrap; }
.ksl-stat { padding: 1.2rem 2.5rem; border-right: 0.5px solid rgba(255,255,255,0.08); text-align: center; }
.ksl-stat:last-child { border-right: none; }
.ksl-stat-num { font-family: 'Playfair Display', serif; font-size: 20px; color: #c8d8a8; font-weight: 500; }
.ksl-stat-label { font-size: 11px; color: rgba(240,237,230,0.45); margin-top: 2px; }

/* ===== PROJECT CARDS ===== */
.proj-wrap { font-family: 'DM Sans', sans-serif; padding: 5rem 2rem; background: #f8f8f5; }
.proj-inner { max-width: 1200px; margin: 0 auto; }
.oproj-wrap { font-family: 'DM Sans', sans-serif; padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.proj-card { background: #fff; border: 0.5px solid #e8e8e0; border-radius: 12px; overflow: hidden; transition: transform .2s, border-color .2s; }
.proj-card:hover { transform: translateY(-4px); border-color: #c8d8a8; }
.proj-img-wrap { position: relative; overflow: hidden; }
.proj-img-wrap img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform .4s ease; }
.proj-card:hover .proj-img-wrap img { transform: scale(1.04); }
.proj-badges { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.pbadge { font-size: 10px; font-weight: 500; padding: 3px 10px; border-radius: 20px; letter-spacing: .5px; text-transform: uppercase; }
.pbadge-loc { background: #0a1a12; color: #c8d8a8; }
.pbadge-fh { background: #3B6D11; color: #fff; }
.pbadge-lh { background: #854F0B; color: #fff; }
.pbadge-type { background: rgba(255,255,255,.9); color: #0a1a12; }
.proj-body { padding: 1.5rem; }
.proj-name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; color: #0a1a12; margin-bottom: .5rem; }
.oproj-wrap .proj-name { font-size: 17px; font-weight: 500; }
.proj-price { font-size: 16px; font-weight: 600; color: #1a5c0a; margin-bottom: 1rem; }
.proj-details { display: flex; flex-direction: column; gap: 4px; margin-bottom: 1.25rem; }
.proj-detail { font-size: 13px; color: #444; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.proj-detail::before { content: ''; display: inline-block; width: 4px; height: 4px; background: #c8d8a8; border-radius: 50%; flex-shrink: 0; }
.btn-wa { display: block; width: 100%; text-align: center; background: #25D366; color: #fff !important; font-size: 12px; font-weight: 500; letter-spacing: .5px; padding: 11px; border-radius: 4px; text-decoration: none; transition: background .3s, transform .2s; }
.btn-wa:hover { background: #128C7E !important; transform: translateY(-2px); }

/* ===== FLOOR PLANS ===== */
.sec-wrap { font-family: 'DM Sans', sans-serif; padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.layout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.layout-card { border: 0.5px solid #e8e8e0; border-radius: 12px; overflow: hidden; background: #fff; }
.layout-card-header { padding: 1.25rem 1.5rem; border-bottom: 0.5px solid #e8e8e0; }
.layout-card-title { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; color: #3B6D11; }
.layout-card img { width: 100%; height: 320px; object-fit: cover; display: block; }
.layout-card-footer { padding: 1.25rem 1.5rem; }
.btn-brochure { display: block; width: 100%; text-align: center; background: #0a1a12; color: #c8d8a8; font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; padding: 12px; border-radius: 4px; text-decoration: none; transition: opacity .2s; }
.btn-brochure:hover { opacity: .8; }

/* ===== WHY RIVERIA ===== */
.why-wrap { font-family: 'DM Sans', sans-serif; padding: 5rem 2rem; background: #f8f8f5; }
.why-inner { max-width: 1200px; margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-card { background: #fff; border: 0.5px solid #e8e8e0; border-radius: 12px; padding: 2rem 1.5rem; transition: border-color .2s, transform .2s; }
.why-card:hover { border-color: #c8d8a8; transform: translateY(-4px); }
.why-icon { font-size: 28px; margin-bottom: 1rem; display: block; }
.why-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 500; color: #0a1a12; margin-bottom: .75rem; }
.why-text { font-size: 13px; line-height: 1.8; color: #666; }

/* ===== REVIEWS ===== */
.rev-wrap { font-family: 'DM Sans', sans-serif; padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.sec-agent { font-size: 13px; color: #888; text-align: center; margin-bottom: 1.5rem; }
.sec-agent span { color: #3B6D11; font-weight: 500; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.review-card { background: #fff; border: 0.5px solid #e8e8e0; border-radius: 12px; padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.review-title { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 500; color: #0a1a12; }
.review-text { font-size: 13px; line-height: 1.8; color: #666; flex: 1; }
.review-stars { color: #d4af37; font-size: 14px; letter-spacing: 2px; }
.rev-note { font-size: 11px; color: #999; text-align: center; margin-top: 2rem; line-height: 1.7; }

/* ===== ABOUT ===== */
.about-wrap { font-family: 'DM Sans', sans-serif; padding: 5rem 2rem; background: #0a1a12; }
.about-inner { max-width: 1000px; margin: 0 auto; }
.about-eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: #c8d8a8; text-align: center; margin-bottom: .75rem; }
.about-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 500; text-align: center; color: #f0ede6; margin-bottom: 1rem; }
.about-divider { width: 40px; height: 2px; background: #c8d8a8; margin: 0 auto 3rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.about-id-card { background: rgba(200,216,168,0.06); border: 0.5px solid rgba(200,216,168,0.3); border-radius: 12px; padding: 2rem 1.5rem; text-align: left; }
.about-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 1.25rem; border: 2px solid rgba(200,216,168,0.5); }
.about-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 500; color: #f0ede6; margin-bottom: .25rem; }
.about-legal { font-size: 12px; color: rgba(240,237,230,0.55); margin-bottom: 1.25rem; }
.about-id-row { display: flex; flex-direction: column; gap: 10px; }
.about-id-item { font-size: 13px; color: rgba(240,237,230,0.7); line-height: 1.7; display: flex; gap: 8px; align-items: flex-start; }
.about-id-item::before { content: '✓'; color: #c8d8a8; font-weight: 500; flex-shrink: 0; }
.about-verify-btn { display: inline-block; background: transparent; color: #c8d8a8; font-size: 11px; font-weight: 500; letter-spacing: .5px; padding: 7px 14px; border-radius: 4px; border: 0.5px solid rgba(200,216,168,0.5); text-decoration: none; margin-top: 1.25rem; transition: all .2s; }
.about-verify-btn:hover { background: #c8d8a8; color: #0a1a12; }
.about-body { color: rgba(240,237,230,0.7); }
.about-body h3 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 500; color: #f0ede6; margin-bottom: .75rem; }
.about-body p { font-size: 14px; line-height: 1.95; margin-bottom: 1.25rem; }
.about-body strong { color: #c8d8a8; font-weight: 500; }
.about-wa { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; font-size: 13px; font-weight: 500; padding: 12px 24px; border-radius: 4px; text-decoration: none; letter-spacing: .5px; transition: opacity .2s; }
.about-wa:hover { opacity: .85; }

/* ===== E-BROCHURE FORM ===== */
.eb-section { background: #0a1a12; padding: 5rem 2rem; }
.eb-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.eb-eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: #c8d8a8; margin-bottom: .75rem; }
.eb-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 500; color: #f0ede6; margin-bottom: 1rem; line-height: 1.2; }
.eb-sub { font-size: 14px; line-height: 1.9; color: rgba(240,237,230,0.6); margin-bottom: 2rem; }
.eb-img { width: 100%; border-radius: 8px; opacity: .9; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 12px; color: rgba(240,237,230,0.6); margin-bottom: 6px; letter-spacing: .5px; }
.form-input { width: 100%; background: rgba(255,255,255,0.08); border: 0.5px solid rgba(200,216,168,0.3); border-radius: 4px; padding: 11px 14px; font-size: 14px; color: #f0ede6; font-family: 'DM Sans', sans-serif; transition: border-color .2s; outline: none; }
.form-input:focus { border-color: #c8d8a8; }
.form-input::placeholder { color: rgba(240,237,230,0.3); }
.form-input.error { border-color: #e07070; }
.field-error { font-size: 11px; color: #e07070; margin-top: 4px; display: none; }
.field-error.show { display: block; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 1.5rem; }
.form-check input { margin-top: 3px; flex-shrink: 0; accent-color: #c8d8a8; }
.form-check label { font-size: 11px; color: rgba(240,237,230,0.5); line-height: 1.6; }
.form-check a { color: #c8d8a8; text-decoration: underline; }
.btn-submit { width: 100%; background: #c8d8a8; color: #0a1a12; font-size: 13px; font-weight: 500; padding: 14px; border-radius: 4px; border: none; cursor: pointer; letter-spacing: .5px; font-family: 'DM Sans', sans-serif; transition: opacity .2s; }
.btn-submit:hover { opacity: .85; }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }
.success-box { display: none; text-align: center; padding: 2.5rem 1.5rem; background: rgba(200,216,168,0.07); border: 0.5px solid rgba(200,216,168,0.3); border-radius: 8px; }
.success-box.show { display: block; animation: fadeIn .4s ease; }
.success-icon { font-size: 40px; margin-bottom: 1rem; }
.success-title { font-family: 'Playfair Display', serif; font-size: 22px; color: #f0ede6; margin-bottom: .75rem; }
.success-msg { font-size: 13px; color: rgba(240,237,230,0.6); line-height: 1.8; margin-bottom: 1.5rem; }
.success-highlight { color: #c8d8a8; font-weight: 500; }
.btn-wa-chat { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; font-size: 13px; font-weight: 500; padding: 13px 24px; border-radius: 4px; text-decoration: none; letter-spacing: .5px; font-family: 'DM Sans', sans-serif; transition: opacity .2s; }
.btn-wa-chat:hover { opacity: .85; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== FOOTER ===== */
.footer { background: #060f08; padding: 2.5rem 2rem; text-align: center; }
.footer-agent { font-size: 13px; font-weight: 500; color: #c8d8a8; margin-bottom: .4rem; }
.footer-company { font-size: 12px; color: rgba(240,237,230,0.5); margin-bottom: .4rem; line-height: 1.8; }
.footer-contact { font-size: 12px; color: rgba(240,237,230,0.5); margin-bottom: 1.5rem; line-height: 1.8; }
.footer-contact a { color: rgba(240,237,230,0.6); text-decoration: none; }
.footer-verify { font-size: 12px; color: rgba(240,237,230,0.5); margin-bottom: 1rem; line-height: 1.8; }
.btn-verify { display: inline-block; background: #c8d8a8; color: #0a1a12; font-size: 12px; font-weight: 500; letter-spacing: .5px; padding: 10px 22px; border-radius: 4px; text-decoration: none; margin-bottom: 1.5rem; transition: opacity .2s; }
.btn-verify:hover { opacity: .85; }
.footer-disclaimer { font-size: 11px; color: rgba(240,237,230,0.3); max-width: 800px; margin: 0 auto 1.5rem; line-height: 1.9; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; }
.footer-links a { font-size: 11px; color: rgba(240,237,230,0.4); text-decoration: none; }
.footer-links a:hover { color: #c8d8a8; }

/* ===== LEGAL PAGES (privacy-policy.html / terms.html) ===== */
.nav { display: flex; align-items: center; justify-content: center; gap: 2rem; padding: 1.2rem 2rem; background: rgba(5,18,8,0.97); position: sticky; top: 0; z-index: 9999; border-bottom: 0.5px solid rgba(255,255,255,0.1); }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 16px; color: #c8d8a8; text-decoration: none; font-weight: 500; }
.nav-back { font-size: 11px; color: rgba(255,255,255,0.6); text-decoration: none; letter-spacing: 0.8px; text-transform: uppercase; }
.nav-back:hover { color: #c8d8a8; }
.page-hero { background: #0a1a12; padding: 5rem 2rem 4rem; text-align: center; }
.page-eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: #c8d8a8; margin-bottom: 1rem; }
.page-title { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 500; color: #f0ede6; margin-bottom: 1rem; }
.page-meta { font-size: 12px; color: rgba(240,237,230,0.4); letter-spacing: 0.5px; }
.content-wrap { max-width: 800px; margin: 0 auto; padding: 4rem 2rem; }
.section-block { background: #fff; border: 0.5px solid #e8e8e0; border-radius: 12px; padding: 2.5rem; margin-bottom: 1.5rem; }
.section-block h2 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 500; color: #0a1a12; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 0.5px solid #e8e8e0; }
.section-block p { font-size: 13px; line-height: 1.9; color: #555; margin-bottom: 1rem; }
.section-block p:last-child { margin-bottom: 0; }
.section-block ul { list-style: none; margin-bottom: 1rem; }
.section-block ul li { font-size: 13px; line-height: 1.9; color: #555; padding-left: 1.2rem; position: relative; margin-bottom: .4rem; }
.section-block ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; background: #c8d8a8; border-radius: 50%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .ksl-disclosure { font-size: 9.5px; padding: 6px 10px; }
  .ksl-nav { padding: .8rem 1rem; gap: .5rem; }
  .ksl-nav-links { gap: .5rem; justify-content: center; }
  .ksl-nav-links li a:not(.ksl-nav-cta) { font-size: 9px; letter-spacing: .4px; }
  .ksl-nav-cta { font-size: 9px; padding: 6px 10px; letter-spacing: .3px; }
  .ksl-hero-title { font-size: 28px; }
  .ksl-stat { flex: 0 0 50%; border-right: none; border-bottom: 0.5px solid rgba(255,255,255,0.08); }
  .ksl-hero-sub { font-size: 13px; }
  .projects-grid { grid-template-columns: 1fr; }
  .layout-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .eb-inner { grid-template-columns: 1fr; gap: 2rem; }
  .eb-img { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .page-title { font-size: 28px; }
  .content-wrap { padding: 2rem 1rem; }
  .section-block { padding: 1.5rem; }
}
@media (max-width: 400px) {
  .ksl-nav-links li a:not(.ksl-nav-cta) { font-size: 8px; letter-spacing: .2px; }
  .ksl-nav-cta { font-size: 8px; padding: 5px 8px; }
  .ksl-nav { padding: .6rem .5rem; }
  .ksl-nav-links { gap: .3rem; }
}
