/*
 * FailUp Capital — Main Stylesheet
 * Theme: dark | Accent: #f39c12
 */

/* ── CSS Variables ──────────────────────────────────── */
:root {
  --accent: #f39c12;
  --accent-dark: #d68910;
  --bg: #0d0f18;
  --bg-surface: #161926;
  --bg-card: #1c2030;
  --text: #e8eaf0;
  --text-muted: #8a90a4;
  --border: rgba(255,255,255,0.08);
  --radius: 10px;
  --nav-height: 72px;
  --sidebar-w: 0px;
}

/* ── Reset / Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }

body {
  font-family: "Open Sans", sans-serif;
  font-size: 18px !important;
  line-height: 1.85;
  color: var(--text) !important;
  background-color: var(--bg) !important;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ── Dark theme container overrides ────────────────── */
#page-wrapper,
#wrapper,
#main {
  background-color: var(--bg) !important;
}

h1 { font-size: 61px !important; line-height: 1.1; font-weight: 800; }
h2 { font-size: 43px !important; line-height: 1.2; font-weight: 700; }
h3 { font-size: 28px !important; line-height: 1.3; font-weight: 600; }
h4 { font-size: 18px !important; font-weight: 600; }

h1, h2, h3, h4 { color: #ffffff; }

p { line-height: 1.85; margin-bottom: 1.2rem; color: rgba(255,255,255,0.88); }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; text-decoration: none; }

.page-top { padding-top: var(--nav-height); }

/* ── Container ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Global img guard ──────────────────────────────── */
img { max-width: 100%; display: block; }

/* ── Funding Bar ───────────────────────────────────── */
#funding-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: var(--accent-dark);
  color: #ffffff !important;
  padding: 10px 5%;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
#funding-bar a,
#funding-bar strong,
#funding-bar span { color: #ffffff !important; }
#funding-bar button {
  color: rgba(255,255,255,0.85) !important;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 13px;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* ── Navbar ─────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,15,24,0.97);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: top 0.3s ease;
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo img { height: 36px; width: auto; display: inline-block; }
.nav-logo span {
  font-size: 18px !important;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  font-size: 15px !important;
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  font-weight: 500;
}
.nav-links li a:hover,
.nav-links li.active a {
  color: var(--accent);
  background: rgba(243,156,18,0.08);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px !important;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    background: #0d0f18;
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 0.75rem 2rem; display: block; }
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  background-image: url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(5,10,30,0.35);
  background-blend-mode: multiply;
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero-label {
  display: inline-block;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero h1 { color: #ffffff; margin-bottom: 1.2rem; }
.hero p { color: rgba(255,255,255,0.88); font-size: 18px !important; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.btn-primary {
  background: var(--accent);
  color: #ffffff !important;
  padding: 0.8em 2em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px !important;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff !important; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: #ffffff !important;
  padding: 0.8em 2em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px !important;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(243,156,18,0.1); color: #fff !important; }

/* ── Stats Bar ──────────────────────────────────────── */
.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 35px !important;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1.1;
}
.stat-item .stat-label {
  font-size: 14px !important;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 600px) { .stats-inner { grid-template-columns: repeat(2, 1fr); } }

/* ── Section Generic ────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { padding: 80px 0; background: var(--bg-surface); }
.section-dark { padding: 80px 0; background: #0a0c14; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  font-size: 12px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title { color: #ffffff; margin-bottom: 1rem; }
.section-subtitle {
  font-size: 16px !important;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Cards ──────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(243,156,18,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon i { color: var(--accent); font-size: 22px !important; }
.card h3 { color: #ffffff; margin-bottom: 0.75rem; font-size: 18px !important; }
.card p { color: var(--text-muted); font-size: 15px !important; margin-bottom: 0; line-height: 1.7; }

/* ── Portfolio ──────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.portfolio-company {
  font-size: 19px !important;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.portfolio-amount {
  font-size: 24px !important;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.portfolio-stage {
  font-size: 13px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.portfolio-desc {
  font-size: 15px !important;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ── Team ───────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em 1.5em;
  text-align: center;
}
.team-card img {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 10%;
  display: block;
  margin: 0 auto 1.2rem;
}
.team-card h3 { color: #ffffff; margin-bottom: 0.25rem; font-size: 18px !important; }
.team-role { font-size: 14px !important; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.team-bio { font-size: 14px !important; color: var(--text-muted); line-height: 1.65; margin-bottom: 0; }

/* ── Page Hero (inner pages) ────────────────────────── */
.page-hero {
  background-image: url('../images/page-hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(5,10,30,0.4);
  background-blend-mode: multiply;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero-content { width: 100%; }
.page-hero h1 { color: #ffffff; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 18px !important; margin-bottom: 0; }

/* ── About Page ─────────────────────────────────────── */
.about-hero {
  background-image: url('../images/about-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(5,10,30,0.4);
  background-blend-mode: multiply;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
}
.about-hero > * { position: relative; z-index: 2; }

.spotlight-section {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4em;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4em 2em;
}
.story-img {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}
.story-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  display: block;
}
@media (max-width: 768px) {
  .spotlight-section { grid-template-columns: 1fr; }
}

/* ── Insights Cards ─────────────────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.insight-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.insight-thumb {
  width: 100%;
  overflow: hidden;
}
.insight-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}
.insight-body { padding: 1.5rem; }
.insight-meta { font-size: 13px !important; color: var(--text-muted); margin-bottom: 0.5rem; }
.insight-card h3 { color: #ffffff; font-size: 16px !important; margin-bottom: 0.5rem; }
.insight-card p { font-size: 14px !important; color: var(--text-muted); margin-bottom: 0; line-height: 1.6; }

/* ── Contact Form ───────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { color: #ffffff; margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail i { color: var(--accent); font-size: 18px !important; margin-top: 0.15rem; flex-shrink: 0; }
.contact-detail-text p { margin-bottom: 0.1rem; color: var(--text); }
.contact-detail-text span { font-size: 14px !important; color: var(--text-muted); }
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label { display: block; font-size: 14px !important; color: var(--text-muted); margin-bottom: 0.4rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 16px !important;
  font-family: inherit;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

/* ── Footer ─────────────────────────────────────────── */
#footer {
  background-color: #090b12;
  border-top: 1px solid var(--border);
  padding: 4em 2em 2em;
  width: 100%;
}
#footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3em;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4em;
  align-items: start;
  box-sizing: border-box;
}
#footer h2 {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 600;
  margin: 0 0 1em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
#footer p {
  color: var(--text-muted);
  font-size: 16px !important;
  line-height: 1.7;
  margin: 0;
}
.footer-brand-logo { height: 32px; width: auto; margin-bottom: 1rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.5em; }
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px !important;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #ffffff; }
#footer .copyright {
  color: var(--text-muted);
  font-size: 15px !important;
  text-align: center;
  margin: 2.5em auto 0;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
  max-width: 1100px;
}
@media (max-width: 768px) { #footer .inner { grid-template-columns: 1fr 1fr; padding: 0 1rem; } }
@media (max-width: 480px) { #footer .inner { grid-template-columns: 1fr; } }

/* ── Cookie Banner ──────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10003;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: none;
}
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-inner p { margin-bottom: 0; color: var(--text-muted); font-size: 14px !important; flex: 1; }
.cookie-inner p a { color: var(--accent); }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
#cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#cookie-decline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
}

/* ── CTA Section ────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(243,156,18,0.12) 0%, rgba(214,137,16,0.06) 100%);
  border: 1px solid rgba(243,156,18,0.2);
  border-radius: var(--radius);
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin: 0 auto;
  max-width: 700px;
}
.cta-section h2 { color: #ffffff !important; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 1.75rem; }

/* ── Legal Pages ────────────────────────────────────── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.legal-content h1 { font-size: 40px !important; margin-bottom: 0.5rem; }
.legal-content h2 { font-size: 24px !important; margin-top: 2rem; margin-bottom: 0.75rem; }
.legal-content p,
.legal-content li { color: rgba(255,255,255,0.82); line-height: 1.8; }
.legal-content ul { padding-left: 1.5rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-date { font-size: 14px !important; color: var(--text-muted); margin-bottom: 2rem; }

/* ── Investor Badge ─────────────────────────────────── */
.investor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.75rem;
  margin-top: 1.5rem;
}
.investor-badge span { color: var(--text-muted); font-size: 14px !important; }
.investor-badge strong { color: var(--accent); font-size: 16px !important; }

/* ── Thesis / Focus Areas ───────────────────────────── */
.thesis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.thesis-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.thesis-card h3 { color: #ffffff; margin-bottom: 0.5rem; font-size: 17px !important; }
.thesis-card p { color: var(--text-muted); font-size: 15px !important; margin-bottom: 0; }

/* ── Utilities ──────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
