﻿/* ============================================================
   PropBrain — main.css
   AI-Powered Property Intelligence
   Accent: #10b981 | Theme: dark
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:             #0d0f18;
  --surface:        #151825;
  --surface-alt:    #1c2030;
  --text:           #e8eaf0;
  --text-muted:     #8892a4;
  --accent:         #10b981;
  --accent-dark:    #0d9668;
  --border:         rgba(255,255,255,0.08);
  --radius:         12px;
  --gap:            3em;
  --nav-height:     72px;
  --funding-bar-h:  0px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg) !important;
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px !important;
  line-height: 1.9 !important;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: 61px !important; font-weight: 700; line-height: 1.1; color: var(--text); }
h2 { font-size: 43px !important; font-weight: 700; line-height: 1.2; color: var(--text); }
h3 { font-size: 28px !important; font-weight: 600; line-height: 1.3; color: var(--text); }
h4 { font-size: 18px !important; font-weight: 600; color: var(--text); }
p, li { font-size: 18px !important; line-height: 1.9 !important; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

.page-top { padding-top: var(--nav-height, 72px); }

/* ── Funding Bar ─────────────────────────────────────────────── */
#funding-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  background: var(--accent);
  color: #fff;
  font-size: 14px !important;
  font-weight: 600;
  padding: 10px 2em;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  text-align: center;
  flex-wrap: wrap;
}
#funding-bar a { color: #fff; text-decoration: underline; }
#funding-bar-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px !important;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.4em;
  opacity: 0.8;
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
}

/* ── Navbar ──────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(13,15,24,0.97);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: top 0.3s;
}
#site-nav .nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
}
.nav-brand svg { flex-shrink: 0; }
.nav-brand-name {
  font-size: 20px !important;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-brand-name span { color: var(--accent); }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2em;
  list-style: none;
}
.nav-menu li a {
  font-size: 15px !important;
  color: var(--text-muted);
  padding: 0.45em 0.9em;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  font-weight: 500;
  display: block;
}
.nav-menu li a:hover,
.nav-menu li.active a {
  color: var(--text);
  background: rgba(16,185,129,0.1);
}
.nav-menu li.active a { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5em 1.2em !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Hero ────────────────────────────────────────────────────── */
#hero {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
                    url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  min-height: 620px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
#hero .hero-tag {
  display: inline-block;
  background: rgba(16,185,129,0.15);
  color: var(--accent);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 100px;
  font-size: 13px !important;
  font-weight: 600;
  padding: 0.35em 1em;
  margin-bottom: 1.2em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#hero h1 { margin-bottom: 0.5em; }
#hero .hero-sub {
  font-size: 20px !important;
  color: var(--text-muted);
  margin-bottom: 2em;
  max-width: 560px;
  line-height: 1.7 !important;
}
.hero-actions { display: flex; gap: 1em; flex-wrap: wrap; }

/* Page Hero */
.page-hero {
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  min-height: 320px;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: 0.4em; }
.page-hero p { font-size: 18px !important; color: var(--text-muted); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 15px !important;
  font-weight: 600;
  padding: 0.75em 1.8em;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Section Headers ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .label {
  display: inline-block;
  background: rgba(16,185,129,0.12);
  color: var(--accent);
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3em 1em;
  border-radius: 100px;
  margin-bottom: 1em;
}
.section-header h2 { margin-bottom: 0.5em; }
.section-header p {
  font-size: 18px !important;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Feature Cards ───────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3em; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 2em; }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(16,185,129,0.35);
  transform: translateY(-3px);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(16,185,129,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2em;
}
.feature-icon i { font-size: 22px !important; color: var(--accent); }
.feature-card h3 { margin-bottom: 0.6em; font-size: 20px !important; }
.feature-card p { color: var(--text-muted); font-size: 16px !important; }

/* ── Stats ───────────────────────────────────────────────────── */
.stats-section { background: var(--surface); }
.stat-item { text-align: center; padding: 2em 1em; }
.stat-number {
  font-size: 48px !important;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3em;
}
.stat-label { font-size: 16px !important; color: var(--text-muted); font-weight: 500; }

/* ── Platform Feature Split ──────────────────────────────────── */
.platform-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.platform-feature.reverse .platform-feature-image { order: 2; }
.platform-feature.reverse .platform-feature-text { order: 1; }
.platform-feature-image { border-radius: var(--radius); overflow: hidden; }
.platform-feature-image img { width: 100%; border-radius: var(--radius); }
.platform-feature-text h3 { margin-bottom: 0.8em; }
.platform-feature-text p { color: var(--text-muted); margin-bottom: 1.5em; }
.feature-list { list-style: none; }
.feature-list li {
  padding: 0.4em 0;
  color: var(--text-muted);
  font-size: 16px !important;
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
}
.feature-list li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ── Team Cards ──────────────────────────────────────────────── */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
  text-align: center;
  transition: border-color 0.2s;
}
.team-card:hover { border-color: rgba(16,185,129,0.3); }
.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.2em;
  border: 3px solid rgba(16,185,129,0.3);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.initial-avatar {
  width: 100%;
  height: 100%;
  background: var(--accent);
  color: #fff;
  font-size: 28px !important;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
.team-card h3 { margin-bottom: 0.2em; font-size: 20px !important; }
.team-card .role {
  color: var(--accent);
  font-size: 14px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8em;
}
.team-card p { color: var(--text-muted); font-size: 15px !important; }

/* ── Blog Cards ──────────────────────────────────────────────── */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover { border-color: rgba(16,185,129,0.3); transform: translateY(-3px); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 1.5em; }
.blog-tag {
  display: inline-block;
  background: rgba(16,185,129,0.1);
  color: var(--accent);
  font-size: 12px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25em 0.7em;
  border-radius: 4px;
  margin-bottom: 0.8em;
}
.blog-card h3 { font-size: 20px !important; margin-bottom: 0.6em; }
.blog-card p { color: var(--text-muted); font-size: 15px !important; margin-bottom: 1em; }
.blog-meta { font-size: 13px !important; color: var(--text-muted); }
.blog-meta span + span::before { content: " · "; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4em; }
.contact-info h3 { margin-bottom: 1.5em; }
.contact-info-item {
  display: flex;
  gap: 1em;
  margin-bottom: 1.5em;
  align-items: flex-start;
}
.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(16,185,129,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .icon i { color: var(--accent); font-size: 18px !important; }
.contact-info-item .text p { color: var(--text-muted); font-size: 15px !important; margin: 0; }
.contact-info-item .text strong { color: var(--text); font-size: 15px !important; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5em; }
.form-group { margin-bottom: 1.5em; }
.form-group label { display: block; font-size: 14px !important; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5em; letter-spacing: 0.04em; text-transform: uppercase; }
.form-control {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 16px !important;
  padding: 0.75em 1em;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }

/* ── Solutions ───────────────────────────────────────────────── */
.solution-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
  transition: border-color 0.2s, transform 0.2s;
}
.solution-card:hover { border-color: rgba(16,185,129,0.3); transform: translateY(-3px); }
.solution-card .icon {
  width: 56px;
  height: 56px;
  background: rgba(16,185,129,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2em;
}
.solution-card .icon i { font-size: 24px !important; color: var(--accent); }
.solution-card h3 { margin-bottom: 0.6em; font-size: 22px !important; }
.solution-card p { color: var(--text-muted); font-size: 16px !important; }

/* ── About ───────────────────────────────────────────────────── */
.about-story { background: var(--surface-alt); }
.about-story .grid-2 img { border-radius: var(--radius); }
.about-mission { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 3em; text-align: center; }
.vc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 100px;
  padding: 0.5em 1.2em;
  font-size: 14px !important;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5em;
}
.vc-badge i { color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 70px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3em;
  padding-bottom: 50px;
}
.footer-brand p { color: var(--text-muted); font-size: 15px !important; margin-top: 1em; max-width: 280px; }
.footer-col h4 { font-size: 14px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 1.2em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6em; }
.footer-col ul li a { color: var(--text-muted); font-size: 14px !important; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5em 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
}
.footer-bottom p { color: var(--text-muted); font-size: 13px !important; margin: 0; }
.footer-legal { display: flex; gap: 1.5em; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); font-size: 13px !important; }
.footer-legal a:hover { color: var(--accent); }

/* ── Cookie Banner ───────────────────────────────────────────── */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 9999;
  padding: 1.2em 2em;
}
#cookie-accept,
.cookie-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px !important;
  font-weight: 600;
  cursor: pointer;
}
.cookie-btn.decline,
#cookie-decline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px !important;
  cursor: pointer;
}

/* ── Article ─────────────────────────────────────────────────── */
.article-body, .post-content { max-width: 720px; margin: 0 auto; }
.article-body p, article p { margin-bottom: 1.4em; line-height: 1.9; }
.article-body h2, article h2 { margin-top: 2.2em; margin-bottom: 0.8em; font-size: 43px !important; }
.article-body h3, article h3 { margin-top: 1.8em; margin-bottom: 0.6em; font-size: 28px !important; }
.article-body ul, .article-body ol, article ul, article ol { margin-bottom: 1.4em; padding-left: 1.8em; }
.article-body li, article li { margin-bottom: 0.5em; line-height: 1.85; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .platform-feature { grid-template-columns: 1fr; gap: 2em; }
  .platform-feature.reverse .platform-feature-image { order: 0; }
  .platform-feature.reverse .platform-feature-text { order: 0; }
}

@media (max-width: 768px) {
  h1 { font-size: 38px !important; }
  h2 { font-size: 30px !important; }
  h3 { font-size: 22px !important; }
  body { font-size: 16px !important; }
  p, li { font-size: 16px !important; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 1em 0; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .stat-number { font-size: 36px !important; }
  .section { padding: 60px 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.bg-surface { background: var(--surface); }
.bg-alt { background: var(--surface-alt); }
.mt-1 { margin-top: 1em; }
.mb-1 { margin-bottom: 1em; }
.mb-2 { margin-bottom: 2em; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 1em; }
.img-wrap { overflow: hidden; width: 100%; }
.img-wrap img { width: 100%; object-fit: cover; }


/* Generated icon images */
.fa-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
}
.feature-icon img,
.feature-icon .fa-icon-img {
  width: 32px;
  height: 32px;
}
.hero img.fa-icon-img,
.hero-content img.fa-icon-img {
  width: 48px;
  height: 48px;
}
