/*
Theme Name: Royal Legacy Investments
Theme URI: https://rlegacyi.com
Author: Royal Legacy Investments, LLC
Description: A high-converting dark luxury theme for Royal Legacy Investments — property renovation, co-living, bookkeeping, and real estate investment.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: royal-legacy
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #141425;
  --bg-surface: #1a1a2e;
  --bg-card: #1e1e35;
  --fg: #ede8d8;
  --fg-muted: #7a7a8e;
  --gold: #c5a04e;
  --gold-light: #d4b566;
  --gold-dark: #a6853a;
  --border: #2a2a40;
  --radius: 0.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--fg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Utilities */
.text-gradient-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bg-gradient-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.bg-gradient-surface { background: linear-gradient(180deg, var(--bg-surface), var(--bg-card)); }
.shadow-gold { box-shadow: 0 0 30px -5px rgba(197,160,78,0.2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 2rem; border-radius: var(--radius); font-weight: 600; font-size: 0.875rem; cursor: pointer; border: none; transition: all 0.3s; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--bg); }
.btn-gold:hover { opacity: 0.9; box-shadow: 0 0 30px -5px rgba(197,160,78,0.3); }
.btn-gold-outline { border: 2px solid var(--gold); background: transparent; color: var(--gold); }
.btn-gold-outline:hover { background: rgba(197,160,78,0.1); }
.badge-new { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(197,160,78,0.15); color: var(--gold); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.5rem 1rem; border-radius: 999px; }
.badge-new .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: all 0.3s; }
.card:hover { border-color: rgba(197,160,78,0.4); box-shadow: 0 0 30px -5px rgba(197,160,78,0.2); }
.icon-box { width: 48px; height: 48px; border-radius: var(--radius); background: rgba(197,160,78,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.icon-box svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.section-title { font-size: 2rem; font-weight: 700; margin-top: 0.5rem; }
.section-desc { color: var(--fg-muted); max-width: 600px; margin: 1rem auto 0; }
.text-center { text-align: center; }

/* Form */
.form-input { width: 100%; padding: 0.75rem 1rem; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); font-size: 0.875rem; font-family: inherit; }
.form-input:focus { outline: none; border-color: var(--gold); }
.form-input::placeholder { color: var(--fg-muted); }
textarea.form-input { resize: none; min-height: 80px; }

/* Nav */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(20,20,37,0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.navbar .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.875rem; color: var(--fg-muted); transition: color 0.3s; }
.nav-links a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; color: var(--fg); cursor: pointer; }
.mobile-menu { display: none; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem; }
.mobile-menu.active { display: block; }
.mobile-menu a { display: block; padding: 0.5rem 0; font-size: 0.875rem; color: var(--fg-muted); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .services-grid { grid-template-columns: 1fr !important; }
  .why-grid { grid-template-columns: 1fr !important; }
  .gallery-grid { grid-template-columns: 1fr !important; }
  .reasons-grid { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .section-title { font-size: 1.5rem; }
  .spotlight-decor { display: none !important; }
  .decor-img { display: none !important; }
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight-features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* FAQ */
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; transition: box-shadow 0.3s; }
.faq-item.active { box-shadow: 0 0 30px -5px rgba(197,160,78,0.2); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; background: none; border: none; color: var(--fg); font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1rem; cursor: pointer; text-align: left; }
.faq-question:hover { color: var(--gold); }
.faq-question .chevron { transition: transform 0.3s; font-size: 1.25rem; color: var(--fg-muted); }
.faq-item.active .chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 1.5rem 1.25rem; }
.faq-answer p { color: var(--fg-muted); line-height: 1.7; }

/* Gallery placeholders */
.gallery-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 256px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--bg-card); transition: border-color 0.3s; }
.gallery-placeholder:hover { border-color: rgba(197,160,78,0.4); }
.gallery-placeholder svg { width: 40px; height: 40px; stroke: var(--fg-muted); margin-bottom: 0.75rem; }
.gallery-placeholder:hover svg { stroke: var(--gold); }
