/* ============================================================
   HOME PAGE + SITEWIDE COMPONENT STYLES
   ============================================================ */

/* ---- Nav ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(245,240,229,0);
  transition: background .3s ease, height .3s ease, box-shadow .3s ease;
}
.navbar.scrolled { background: rgba(245,240,229,.92); backdrop-filter: blur(10px); height: 68px; box-shadow: 0 1px 0 var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.nav-logo span { color: var(--verdigris); }
.nav-links { display: flex; gap: 2.2rem; font-weight: 600; font-size: .92rem; }
.nav-links a { position: relative; padding-bottom: 4px; }
.nav-links a.active, .nav-links a:hover { color: var(--verdigris); }
.nav-links a.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--brass); }
.nav-cta { display: flex; align-items: center; gap: 1.2rem; }
.nav-phone { font-size: .85rem; font-weight: 600; }
.nav-btn { padding: .65rem 1.35rem; font-size: .85rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }

/* ---- Ticker (Feature 7) ---- */
.ticker-wrap { position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 400; background: var(--ink); color: var(--parchment); overflow: hidden; padding: .55rem 0; font-size: .82rem; }
.ticker-track { display: flex; gap: 4rem; white-space: nowrap; animation: ticker 22s linear infinite; }
.ticker-track span { padding-right: 4rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Hero ---- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 2.5rem); overflow: hidden; background: linear-gradient(180deg, #101815, var(--ink)); }
#skyline-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 3rem; align-items: end; padding-bottom: 4rem; }
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 4rem); color: var(--marble); max-width: 620px; }
.hero-copy h1 em { color: var(--brass); font-style: normal; }
.hero-lede { color: rgba(250,249,246,.72); max-width: 520px; margin-top: 1.2rem; font-size: 1.05rem; }
.hero-cta-row { display: flex; gap: 1rem; margin-top: 2rem; }
.hero .btn-outline { border-color: var(--parchment); color: var(--parchment); }
.hero .btn-outline:hover { background: var(--parchment); color: var(--ink); }
.stat-row { display: flex; gap: 2.5rem; margin-top: 3rem; }
.stat-row strong { display: block; font-size: 1.8rem; color: var(--brass); }
.stat-row span { color: rgba(250,249,246,.6); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---- Mini AI card (Feature 16) ---- */
.hero-ai-card { background: rgba(250,249,246,.06); border: 1px solid rgba(250,249,246,.16); backdrop-filter: blur(14px); border-radius: var(--radius-lg); padding: 1.4rem; color: var(--marble); }
.ai-card-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin-bottom: .9rem; font-size: .92rem; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ED598; box-shadow: 0 0 0 4px rgba(62,213,152,.2); }
.ai-card-body { min-height: 70px; max-height: 160px; overflow-y: auto; font-size: .9rem; }
.ai-msg { background: rgba(255,255,255,.08); padding: .65rem .9rem; border-radius: 10px; margin-bottom: .5rem; }
.visitor-msg { background: var(--verdigris); color: white; padding: .65rem .9rem; border-radius: 10px; margin-bottom: .5rem; margin-left: 20%; }
.ai-card-input { display: flex; gap: .5rem; margin-top: .8rem; }
.ai-card-input input { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: .6rem .8rem; color: var(--marble); font-size: .85rem; }
.ai-card-input button { background: var(--brass); border: none; border-radius: 8px; width: 38px; color: var(--ink); font-weight: 700; cursor: pointer; }

/* ---- Proof bar (Feature 8) ---- */
.proof-bar { background: var(--marble); border-bottom: 1px solid var(--border); padding: .75rem 0; }
.proof-inner { display: flex; justify-content: center; gap: 3rem; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: .4rem; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }

/* ---- Project cards ---- */
.project-card { display: block; }
.project-card-img { height: 210px; background-size: cover; background-position: center; background-color: #ccc; position: relative; display: flex; align-items: flex-start; padding: 1rem; }
.project-card-body { padding: 1.4rem; }
.project-locality { color: var(--verdigris); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.project-card-body h3 { font-size: 1.3rem; margin-top: .35rem; }
.project-developer { color: var(--muted); font-size: .88rem; margin-top: .2rem; }
.project-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1rem; }
.price { font-weight: 600; color: var(--ink); }
.center-cta { text-align: center; margin-top: 3rem; }

/* ---- Timeline (Feature 18) ---- */
.timeline-section { background: var(--marble); }
.v-timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 2rem; }
.v-timeline::before { content:''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.v-item { display: flex; gap: 1.5rem; margin-bottom: 2.6rem; align-items: flex-start; }
.v-marker { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--brass); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .9rem; }
.v-content h4 { font-size: 1.15rem; margin-bottom: .3rem; }
.v-content p { color: var(--muted); font-size: .93rem; max-width: 460px; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: rgba(250,249,246,.75); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { color: var(--marble); font-size: 1.2rem; margin-bottom: .8rem; }
.footer-logo span { color: var(--brass); }
.footer-grid h5 { color: var(--marble); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-grid a { display: block; margin-bottom: .6rem; font-size: .9rem; color: rgba(250,249,246,.65); }
.footer-grid a:hover { color: var(--brass); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid rgba(250,249,246,.12); font-size: .78rem; color: rgba(250,249,246,.45); }

/* ---- Cookie bar (Feature 14) ---- */
.cookie-bar { position: fixed; bottom: -120px; left: 1.5rem; right: 1.5rem; max-width: 620px; margin: 0 auto; background: var(--ink); color: var(--marble); padding: 1.2rem 1.4rem; border-radius: var(--radius-lg); display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; z-index: 800; transition: bottom .4s ease; box-shadow: var(--shadow); }
.cookie-bar.show { bottom: 1.5rem; }
.cookie-bar p { font-size: .85rem; }
.cookie-bar a { text-decoration: underline; }
.cookie-bar div { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-bar .btn-primary, .cookie-bar .btn-outline { padding: .55rem 1.1rem; font-size: .82rem; }
.cookie-bar .btn-outline { border-color: rgba(250,249,246,.4); color: var(--marble); }

/* ---- Modals (Features 11, 13) ---- */
.fc-modal-overlay { position: fixed; inset: 0; background: rgba(18,24,31,.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.fc-modal { background: var(--marble); border-radius: var(--radius-lg); padding: 2.2rem; max-width: 400px; width: 90%; position: relative; box-shadow: var(--shadow); }
.fc-modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--muted); }
.fc-modal h3 { margin-bottom: .6rem; }
.fc-modal p { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.fc-modal form { display: flex; gap: .6rem; }
.fc-modal input { flex: 1; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 6px; font-size: .9rem; }

/* ---- Chat widget (Features 26/27/29) ---- */
.chat-fab { position: fixed; bottom: 1.8rem; right: 1.8rem; width: 58px; height: 58px; border-radius: 50%; background: var(--verdigris); color: white; border: none; font-size: 1.4rem; cursor: pointer; box-shadow: var(--shadow); z-index: 900; }
.chat-panel { position: fixed; bottom: 6rem; right: 1.8rem; width: 340px; max-height: 480px; background: var(--marble); border-radius: var(--radius-lg); box-shadow: var(--shadow); z-index: 900; display: flex; flex-direction: column; transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none; transition: .25s ease; }
.chat-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }
.chat-panel-head { background: var(--ink); color: var(--marble); padding: 1rem 1.2rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .9rem; }
.chat-panel-head div { display: flex; gap: .8rem; align-items: center; }
.chat-panel-head button { background: none; border: none; color: var(--marble); cursor: pointer; }
.lang-toggle { font-size: .72rem; background: rgba(255,255,255,.12) !important; padding: .3rem .6rem; border-radius: 6px; }
.chat-panel-body { flex: 1; padding: 1rem 1.2rem; overflow-y: auto; font-size: .87rem; }
.chat-panel-input { display: flex; gap: .5rem; padding: .9rem; border-top: 1px solid var(--border); }
.chat-panel-input input { flex: 1; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 8px; font-size: .85rem; }
.chat-panel-input button { background: var(--verdigris); color: white; border: none; padding: .6rem 1rem; border-radius: 8px; font-size: .82rem; cursor: pointer; }

/* ---- Scroll-to-top (Feature 10) ---- */
#scrollTopBtn { position: fixed; bottom: 1.8rem; left: 1.8rem; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--brass); border: none; cursor: pointer; opacity: 0; pointer-events: none; transition: .3s; z-index: 800; }
#scrollTopBtn.show { opacity: 1; pointer-events: all; }

/* ---- Toasts (Feature 3) ---- */
#toast-container { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 1100; display: flex; flex-direction: column; gap: .6rem; }
.toast { background: var(--ink); color: var(--marble); padding: .9rem 1.3rem; border-radius: 8px; font-size: .85rem; box-shadow: var(--shadow); transform: translateX(120%); transition: transform .3s ease; }
.toast.show { transform: translateX(0); }

@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--marble); flex-direction: column; padding: 1.5rem; gap: 1.2rem; transform: translateY(-120%); transition: .3s; box-shadow: var(--shadow); }
  .nav-links.open { transform: translateY(0); }
  .hamburger { display: flex; }
  .nav-phone { display: none; }
  .stat-row { gap: 1.4rem; flex-wrap: wrap; }
}
