/* RiseChain Ventures - Main Stylesheet */

/* ---- VARIABLES ---- */
:root {
  --accent: #00b4d8;
  --accent-dark: #0096b8;
  --bg: #0d1117;
  --bg-surface: #161b27;
  --bg-card: #1a2236;
  --text: #e8edf5;
  --text-muted: #7a8aa0;
  --border: rgba(255,255,255,0.08);
  --radius: 10px;
  --nav-height: 72px;
  --font-main: 'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }

body {
  font-family: var(--font-main);
  font-size: 18px !important;
  line-height: 1.9;
  background-color: var(--bg) !important;
  color: var(--text) !important;
  margin: 0;
  padding: 0;
}

h1 { font-size: 61px !important; line-height: 1.1; font-weight: 700; color: #ffffff; letter-spacing: -1px; }
h2 { font-size: 43px !important; line-height: 1.2; font-weight: 700; color: #ffffff; }
h3 { font-size: 28px !important; line-height: 1.3; font-weight: 600; color: #ffffff; }
h4 { font-size: 22px; font-weight: 600; color: #ffffff; }
h5 { font-size: 18px; font-weight: 600; color: #ffffff; }

p { color: rgba(255,255,255,0.82); font-size: 18px !important; line-height: 1.8; }
ul li { color: rgba(255,255,255,0.82); font-size: 18px !important; }

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

/* ---- DARK THEME APPLY ---- */
#page-wrapper, #wrapper, #main { background-color: var(--bg) !important; }

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

/* ---- PAGE-TOP (non-index pages) ---- */
.page-top { padding-top: var(--nav-height); }

/* ---- FUNDING BAR ---- */
#funding-bar {
  display: none;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 10010;
  background: linear-gradient(90deg, #0096b8, #00b4d8);
  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 {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85) !important;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
#funding-bar a.fb-link {
  text-decoration: underline;
  margin-left: 8px;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  background: rgba(13,17,23,0.96) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 20px !important;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none;
}
.navbar-brand img { height: 36px; width: auto; }

.navbar-toggler { display: none; }
.navbar-collapse { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.navbar-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; gap: 4px; }
.navbar-nav .nav-item { display: inline-block; }
.navbar-nav .nav-link {
  font-size: 15px !important;
  font-weight: 500;
  color: rgba(255,255,255,0.75) !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffffff !important;
  background: rgba(0,180,216,0.12) !important;
}
.navbar-nav .nav-link.active { color: var(--accent) !important; }

.navbar-toggler {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
}

@media (max-width: 991px) {
  .navbar-toggler { display: block; }
  .navbar-collapse {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(13,17,23,0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 5%;
  }
  .navbar-collapse.show { display: block; }
  .navbar-nav { flex-direction: column; gap: 4px; }
  .navbar-nav .nav-link { display: block; }
}

/* ---- HERO ---- */
.hero-main {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(10,15,40,0.35);
  background-blend-mode: multiply;
  overflow: hidden;
}
.hero-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
  pointer-events: none;
}
.hero-main > * { position: relative; z-index: 2; }

.hero-content { padding: 120px 0 80px; }
.hero-eyebrow {
  font-size: 13px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent) !important;
  margin-bottom: 16px;
  display: block;
}
.hero-content h1 { color: #ffffff; margin-bottom: 20px; }
.hero-content p {
  color: rgba(255,255,255,0.82) !important;
  font-size: 20px !important;
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary-custom {
  display: inline-block;
  background: var(--accent);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary-custom:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-outline-custom {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.9) !important;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline-custom:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

/* ---- PAGE HERO ---- */
.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  background-image: url('../images/page-hero.jpg');
  background-size: cover;
  background-position: center;
  background-color: rgba(10,15,40,0.35);
  background-blend-mode: multiply;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.60);
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero-content { padding: 100px 0 60px; }
.page-hero h1 { font-size: 48px !important; color: #ffffff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.80) !important; max-width: 560px; }
.breadcrumb-custom { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; font-size: 14px; color: rgba(255,255,255,0.6); }
.breadcrumb-custom a { color: var(--accent); }
.breadcrumb-custom span { color: rgba(255,255,255,0.4); }

/* ---- SECTION BASE ---- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-surface); }
.section-dark { background: #0a0e18; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  font-size: 13px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-subtitle {
  color: var(--text-muted) !important;
  font-size: 18px !important;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {}
.stat-value { font-size: 42px !important; font-weight: 700; color: var(--accent); line-height: 1.1; margin-bottom: 6px; }
.stat-label { font-size: 14px !important; font-weight: 500; color: var(--text-muted) !important; text-transform: uppercase; letter-spacing: 0.08em; }

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- CARDS ---- */
.card-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 2rem; }

.card-custom {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card-custom:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  border-color: var(--accent);
}
.card-custom h3 { color: #ffffff; margin-bottom: 12px; }
.card-custom p { color: rgba(255,255,255,0.72) !important; margin: 0; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: rgba(0,180,216,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 22px;
}

/* ---- PORTFOLIO ---- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); border-color: var(--accent); }
.portfolio-company { font-size: 22px; font-weight: 700; color: #ffffff; margin-bottom: 4px; }
.portfolio-amount { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.portfolio-stage {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(0,180,216,0.15);
  color: var(--accent);
  margin-bottom: 12px;
}
.portfolio-desc { color: rgba(255,255,255,0.70) !important; font-size: 16px !important; margin: 0; }

/* ---- TEAM ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 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;
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }

.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 { font-size: 22px !important; color: #ffffff; margin-bottom: 4px; }
.team-role { font-size: 14px !important; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.team-bio { color: rgba(255,255,255,0.70) !important; font-size: 16px !important; line-height: 1.7; margin: 0; }

/* ---- ABOUT PAGE ---- */
.about-hero { background-image: url('../images/about-hero.jpg'); }

.spotlight-section {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4em;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4em 2em;
}
@media (max-width: 768px) { .spotlight-section { grid-template-columns: 1fr; } }

.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;
}

/* ---- INSIGHTS ---- */
.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 12px 32px rgba(0,0,0,0.3); }
.insight-card-thumb {
  width: 100%; overflow: hidden;
}
.insight-card-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  display: block;
}
.insight-card-body { padding: 1.5rem; }
.insight-card-date { font-size: 13px !important; color: var(--text-muted) !important; margin-bottom: 8px; }
.insight-card-title { font-size: 20px !important; font-weight: 600; color: #ffffff; margin-bottom: 8px; line-height: 1.4; }
.insight-card-title a { color: #ffffff; }
.insight-card-title a:hover { color: var(--accent); }
.insight-card-excerpt { color: rgba(255,255,255,0.65) !important; font-size: 15px !important; margin: 0; }

/* ---- CONTACT ---- */
.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-form-wrap {}
.contact-info-wrap {}
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-info-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 8px;
  background: rgba(0,180,216,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 18px;
}
.contact-info-text h4 { font-size: 16px !important; font-weight: 600; color: #ffffff; margin-bottom: 4px; }
.contact-info-text p { font-size: 15px !important; color: rgba(255,255,255,0.65) !important; margin: 0; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px !important; font-weight: 500; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.form-control-custom {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 16px;
  padding: 12px 16px;
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-control-custom::placeholder { color: var(--text-muted); }
.form-control-custom:focus { border-color: var(--accent); }
textarea.form-control-custom { resize: vertical; min-height: 140px; }

/* ---- INVESTOR / ANCHOR ---- */
.anchor-section { text-align: center; padding: 48px 0; }
.anchor-label { font-size: 12px !important; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted) !important; margin-bottom: 20px; }
.anchor-name { font-size: 28px; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: -0.5px; }

/* ---- CTA SECTION ---- */
.cta-section {
  background: linear-gradient(135deg, rgba(0,100,130,0.3) 0%, rgba(0,180,216,0.1) 100%);
  border: 1px solid rgba(0,180,216,0.2);
  border-radius: 16px;
  padding: 64px 48px;
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
}
.cta-section h2 { color: #ffffff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.80) !important; max-width: 560px; margin: 0 auto 32px; }

/* ---- FOOTER ---- */
#footer {
  background-color: #080c14;
  border-top: 1px solid var(--border);
  padding: 4em 2em 2em;
  text-align: left;
  width: 100%;
}
#footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3em;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3em;
  align-items: start;
  box-sizing: border-box;
}
#footer h2 {
  color: #ffffff;
  font-size: 14px !important;
  font-weight: 600;
  margin: 0 0 1.2em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#footer .footer-brand-desc { color: var(--text-muted) !important; font-size: 15px !important; line-height: 1.7; margin: 0; max-width: 320px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.5em; }
.footer-nav a { color: var(--text-muted) !important; text-decoration: none; font-size: 15px !important; transition: color 0.2s; }
.footer-nav a:hover { color: #ffffff !important; }
#footer .copyright {
  color: var(--text-muted) !important;
  font-size: 13px !important;
  text-align: center;
  margin: 2.5em auto 0;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
  max-width: 1200px;
}
@media (max-width: 768px) { #footer .inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { #footer .inner { grid-template-columns: 1fr; } }

/* ---- COOKIE BANNER ---- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10020;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
#cookie-banner p { font-size: 14px !important; color: rgba(255,255,255,0.80) !important; margin: 0; flex: 1; min-width: 200px; }
#cookie-banner p a { color: var(--accent); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
#cookie-accept {
  background: var(--accent); color: #fff; border: none; border-radius: 4px;
  padding: 10px 24px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
#cookie-accept:hover { background: var(--accent-dark); }
#cookie-decline {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 4px; padding: 10px 20px; font-size: 14px; cursor: pointer;
}

/* ---- TYPOGRAPHY UTILITY ---- */
.text-accent { color: var(--accent) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.text-white { color: #ffffff !important; }

/* ---- MISC ---- */
.divider { height: 1px; background: var(--border); margin: 0; }
.badge-accent {
  display: inline-block;
  background: rgba(0,180,216,0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  h1 { font-size: 48px !important; }
  h2 { font-size: 36px !important; }
  h3 { font-size: 26px !important; }
  .hero-content h1 { font-size: 44px !important; }
  .page-hero h1 { font-size: 36px !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }
  .section { padding: 64px 0; }
  .hero-content { padding: 100px 0 60px; }
  .hero-content p { font-size: 17px !important; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .card-grid-2, .contact-grid { grid-template-columns: 1fr; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .cta-section { padding: 40px 24px; }
  #footer .inner { padding: 0 1em; }
}
