﻿/* ===================================================
   Bricklayer.ai — main.css
   Theme: dark | Accent: #f97316
   =================================================== */

/* --- Root Variables --- */
:root {
  --bg: #0a0604;
  --surface: #14100c;
  --text: #e8e4e0;
  --text-muted: #8a8078;
  --accent: #f97316;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --gap: 3em;
  --sidebar-w: 0px;
  --funding-bar-h: 0px;
  --nav-height: 4.5em;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg) !important;
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.9;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

img { max-width: 100%; height: auto; }
.img-wrap { overflow: hidden; width: 100%; }
.img-wrap img { width: 100%; object-fit: cover; }

/* --- Typography Scale --- */
h1 { font-size: 58px; font-weight: 700; line-height: 1.1; color: #ffffff; }
h2 { font-size: 40px; font-weight: 700; line-height: 1.3; color: #ffffff; }
h3 { font-size: 1.6rem; font-weight: 600; line-height: 1.4; color: #ffffff; }
h4 { font-size: 18px; font-weight: 600; line-height: 1.5; color: #ffffff; }
p, li { font-size: 18px; line-height: 1.9; }

/* --- Container & Grid --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2em; }
.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; }

/* --- Section padding --- */
.section { padding: 6em 2em; }
.section-header { text-align: center; margin-bottom: 3.5em; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 1em auto 0; font-size: 18px; }
.label-tag { color: var(--accent); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 1em; display: block; }

/* --- Navigation --- */
#nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 2.5em !important;
  position: fixed !important;
  top: var(--funding-bar-h, 0px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-height: 4.5em !important;
  z-index: 9999 !important;
  background-color: var(--bg) !important;
  border-bottom: 1px solid var(--border) !important;
  box-sizing: border-box !important;
  transition: top 0.3s ease;
}
#nav #logo {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  position: static !important;
  top: auto !important;
  text-align: left !important;
}
#nav #logo h1 { margin: 0 !important; font-size: 1em !important; }
#nav > ul {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
}
#nav > ul > li > a {
  display: flex !important;
  align-items: center !important;
  height: 4.5em !important;
  padding: 0 1.2em !important;
  color: rgba(255,255,255,0.75) !important;
  font-size: 15px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  transition: color 0.2s !important;
}
#nav > ul > li > a:hover,
#nav > ul > li.current > a { color: #ffffff !important; }
#page-wrapper { padding-top: 4.5em !important; }

/* --- Funding Bar --- */
#funding-bar { color: #fff !important; }
#header, #nav { top: var(--funding-bar-h, 0px); }

/* --- Hero Section --- */
#hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--bg);
  padding: 8em 4em 6em;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-main.jpg') center/cover no-repeat;
  z-index: 0;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
  pointer-events: none;
}
#hero > .hero-inner { position: relative; z-index: 2; }
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6em;
  align-items: center;
}
.hero-left .hero-label {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5em;
}
.hero-left h1 { color: #ffffff; margin-bottom: 1em; }
.hero-left .hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 18px;
  line-height: 1.7;
  max-width: 480px;
}
.hero-right p {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 2.5em;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: flex-start;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.9em 2.2em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  transition: opacity 0.2s;
  text-decoration: none;
}
.btn-primary:hover { opacity: 0.88; color: #fff; }
.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  padding: 0.9em 2.2em;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* --- Feature Cards --- */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--accent); }
.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(249,115,22,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2em;
  font-size: 1.4rem;
  color: var(--accent);
}
.feature-card h3 { margin-bottom: 0.6em; font-size: 1.2rem; }
.feature-card p { color: var(--text-muted); font-size: 16px; line-height: 1.75; margin: 0; }

/* --- Stats Bar --- */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3em 2em;
}
.stats-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2em; text-align: center; }
.stat-num { font-size: 45px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 0.3em; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* --- About Page --- */
body.page-about #banner { background-image: url('assets/images/about-hero.jpg') !important; }

.spotlight-section { padding: 6em 2em; background: var(--bg); }
.spotlight-inner {
  display: flex;
  gap: 4em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.story-img { flex-shrink: 0; width: 45%; }
.story-img img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.story-text { flex: 1; }
.story-text h2 { margin-bottom: 1em; }
.story-text p { color: var(--text-muted); margin-bottom: 1.2em; font-size: 1.05rem; }

/* --- Team Cards --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
}
.team-card { text-align: center; }
.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--border);
  margin-bottom: 1em;
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 0.3em; }
.team-card .title { color: var(--accent); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8em; }
.team-card p { color: var(--text-muted); font-size: 15px; line-height: 1.75; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-info h3 { font-size: 18px; color: var(--accent); margin-bottom: 0.5em; margin-top: 1.5em; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { color: var(--text-muted); font-size: 16px; line-height: 1.75; margin: 0; }
.contact-info a { color: var(--text-muted); }
.contact-info a:hover { color: var(--accent); }
.contact-message { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5em; }
.contact-message h3 { margin-bottom: 1em; }
.contact-message p { color: var(--text-muted); margin-bottom: 2em; font-size: 16px; }
.contact-message a.btn-primary { color: #fff; }

/* --- Platform / Product Page --- */
.platform-hero {
  background: var(--bg);
  padding: 10em 2em 6em;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.platform-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/platform-feature-1.jpg') center/cover no-repeat;
  opacity: 0.12;
  z-index: 0;
}
.platform-hero > .container { position: relative; z-index: 2; }
.platform-hero h1 { margin-bottom: 1em; }
.platform-hero p { color: rgba(255,255,255,0.72); max-width: 600px; margin: 0 auto 2.5em; font-size: 18px; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5em 2em;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row-text h2 { margin-bottom: 1em; }
.feature-row-text p { color: var(--text-muted); margin-bottom: 1.5em; font-size: 1.05rem; }
.feature-row-image { border-radius: var(--radius); overflow: hidden; min-height: 320px; }
.feature-row-image img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); }

.how-it-works { background: var(--surface); padding: 6em 2em; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto;
  counter-reset: steps;
}
.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
  text-align: center;
  counter-increment: steps;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #fff;
  margin: 0 auto 1em;
}
.step-card h3 { font-size: 18px; margin-bottom: 0.5em; }
.step-card p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* --- Blog index page --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.blog-card:hover { border-color: var(--accent); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.5em; }
.blog-card-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.6em; }
.blog-card h3 { font-size: 18px; margin-bottom: 0.6em; color: #fff; }
.blog-card h3 a { color: #fff; }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 1em; }
.blog-card .read-more { color: var(--accent); font-size: 0.9rem; }

/* --- Investors / About section --- */
.investors-section { background: var(--surface); padding: 5em 2em; text-align: center; }
.vc-badge {
  display: inline-flex;
  align-items: center;
  gap: 1em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5em 3em;
  margin: 2em auto 0;
}
.vc-badge .vc-icon { font-size: 2rem; color: var(--accent); }
.vc-badge .vc-name { font-size: 1.3rem; font-weight: 700; color: #fff; }
.vc-badge .vc-round { color: var(--text-muted); font-size: 0.9rem; }

/* --- Page Hero Banner (inner pages) --- */
.page-hero {
  background: var(--surface);
  padding: 8em 2em 4em;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-top: 0;
}
.page-hero h1 { margin-bottom: 0.5em; }
.page-hero p { color: var(--text-muted); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* --- Footer --- */
#footer {
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
#footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3em 4em;
  gap: 3em;
}
.footer-brand h3 { font-size: 18px; margin-bottom: 0.5em; color: #fff; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.5em; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 1em; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.6em; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9em; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }

/* --- Cookie Banner --- */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10003;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.2em 2em;
}
.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; }
.cookie-text strong { font-size: 16px; color: var(--text); }
.cookie-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0.4em 0 0;
  line-height: 1.6;
}
.cookie-text a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 0.8em; flex-shrink: 0; }
#cookie-decline {
  padding: 0.6em 1.4em;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
#cookie-accept {
  padding: 0.6em 1.4em;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
}
.testimonial-card blockquote {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 1.5em;
  border: none;
  padding: 0;
}
.testimonial-author { color: #fff; font-weight: 600; font-size: 15px; }
.testimonial-role { color: var(--text-muted); font-size: 0.85rem; }

/* --- CTA section --- */
.cta-section {
  background: var(--surface);
  padding: 6em 2em;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-section h2 { margin-bottom: 0.8em; }
.cta-section p { color: var(--text-muted); max-width: 560px; margin: 0 auto 2.5em; font-size: 1.05rem; }
.cta-buttons { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; }

/* --- Favicon link (ensure correct path) --- */
/* favicon is assets/images/favicon.ico or favicon.svg - generated separately */

/* --- Article typography --- */
.article-body, .post-content, article .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: 40px; }
.article-body h3, article h3 { margin-top: 1.8em; margin-bottom: 0.6em; font-size: 1.6rem; }
.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: 980px) {
  #nav > ul { display: none !important; }
}
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 3em; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  body { font-size: 16px; }
  .spotlight-inner { flex-direction: column; }
  .story-img { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  #footer .inner { grid-template-columns: 1fr; padding: 2em; }
  .feature-row { grid-template-columns: 1fr; direction: ltr !important; }
  .platform-hero { padding: 8em 1.5em 4em; }
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }
}
@media (max-width: 480px) {
  #hero { padding: 7em 1.5em 4em; }
  .stats-bar .container { grid-template-columns: 1fr 1fr; }
  .vc-badge { flex-direction: column; text-align: center; padding: 1.5em; }
}
