/*
 * CloudWorx Capital — main.css
 * Template base: 2103 Central (Bootstrap 4 + jQuery)
 * Theme: dark | Accent: #1abc9c
 */

/* ── CSS Variables ──────────────────────────────────── */
:root {
  --accent:       #1abc9c;
  --accent-dark:  #148f77;
  --bg:           #0d1a2e;
  --bg2:          #0a1422;
  --surface:      #132237;
  --surface2:     #1a2d45;
  --border:       rgba(255,255,255,0.08);
  --text:         #e8eaf0;
  --text-muted:   #8fa3ba;
  --nav-height:   72px;
  --radius:       8px;
}

/* ── Base Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }

body {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 18px !important;
  font-weight: 400;
  line-height: 1.9;
  background-color: var(--bg) !important;
  color: var(--text) !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1 { font-size: 61px !important; line-height: 1.1; font-weight: 700; color: #ffffff; }
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: 19px !important; font-weight: 600; color: #ffffff; }
p  { line-height: 1.9; color: var(--text); }

a { color: var(--accent); transition: color 0.2s; }
a:hover, a:focus { color: var(--accent-dark); }

/* ── Page top padding for non-index pages ────────────── */
.page-top { padding-top: var(--nav-height, 72px); }

/* ── Container ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── Typography override ─────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 17px !important;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0.75rem auto 0;
}

/* ── Funding Bar ─────────────────────────────────────── */
#funding-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background-color: var(--accent-dark) !important;
  color: #ffffff !important;
  padding: 10px 5%;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 14px;
  font-weight: 500;
}
#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;
}

/* ── Navbar ──────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,26,46,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 5%;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.5rem;
}
.nav-brand img { height: 36px; width: auto; }
.nav-brand span {
  font-size: 18px !important;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  align-items: center;
}
.nav-links li a {
  font-size: 15px !important;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-links li a:hover,
.nav-links li.active a {
  color: var(--accent);
  background: rgba(26,188,156,0.08);
}
.nav-cta a {
  background: var(--accent) !important;
  color: #ffffff !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 5px !important;
}
.nav-cta a:hover { background: var(--accent-dark) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg2);
    flex-direction: column;
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; padding: 0.65rem 0; width: 100%; }
}

/* ── Hero Section ────────────────────────────────────── */
.hero-section {
  background-image: url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(30,5,40,0.30);
  background-blend-mode: multiply;
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
  pointer-events: none;
}
.hero-section > * { position: relative; z-index: 1; }
.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 5%;
}
.hero-section h1 { color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.hero-section p { color: rgba(255,255,255,0.88); font-size: 18px !important; }
.hero-badge {
  display: inline-block;
  background: rgba(26,188,156,0.15);
  border: 1px solid rgba(26,188,156,0.4);
  color: var(--accent);
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 32px !important;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.hero-stat-label {
  font-size: 14px !important;
  color: rgba(255,255,255,0.7);
  margin-top: 0.2rem;
}

/* ── Page Hero (inner pages) ─────────────────────────── */
.page-hero {
  background-color: var(--bg2);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,188,156,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { font-size: 43px !important; margin-bottom: 1rem; }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary-cta {
  display: inline-block;
  background: var(--accent);
  color: #ffffff !important;
  padding: 0.75em 2em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px !important;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  color: #ffffff !important;
}
.btn-outline-cta {
  display: inline-block;
  background: transparent;
  color: #ffffff !important;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 0.7em 1.9em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px !important;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-cta:hover {
  border-color: var(--accent);
  background: rgba(26,188,156,0.1);
  color: var(--accent) !important;
}

/* ── Section layout ──────────────────────────────────── */
.section { padding: 90px 0; }
.section-dark { background: var(--bg2); }
.section-alt { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 1rem; }

/* ── Feature cards ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(26,188,156,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-size: 22px !important;
}
.feature-card h3 { font-size: 28px !important; margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: 15px !important; line-height: 1.7; }

/* ── Stats bar ───────────────────────────────────────── */
.stats-section {
  background: var(--surface2);
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item {}
.stat-num {
  font-size: 40px !important;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 14px !important;
  color: var(--text-muted);
  margin-top: 0.35rem;
  letter-spacing: 0.04em;
}

/* ── Two-column spotlight ────────────────────────────── */
.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;
}

/* ── Portfolio cards ─────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.portfolio-company {
  font-size: 19px !important;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}
.portfolio-amount {
  font-size: 24px !important;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.portfolio-round {
  display: inline-block;
  background: rgba(26,188,156,0.12);
  color: var(--accent);
  font-size: 12px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.portfolio-desc { color: var(--text-muted); font-size: 15px !important; line-height: 1.7; }

/* ── Team cards (VC — rounded rect avatars) ──────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.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: 28px !important; margin-bottom: 0.3rem; }
.team-role {
  color: var(--accent);
  font-size: 14px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.team-card .bio { color: var(--text-muted); font-size: 15px !important; line-height: 1.7; }
.initial-avatar {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px !important;
  font-weight: 700;
  margin: 0 auto 1.2rem;
}

/* ── Insights/Blog listing ───────────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.card-thumb {
  width: 100%;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}
.card-body { padding: 1.5rem; }
.card-meta {
  font-size: 13px !important;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.card-body h3 {
  font-size: 18px !important;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.card-body p { color: var(--text-muted); font-size: 14px !important; line-height: 1.6; }
.card-read-more {
  display: inline-block;
  color: var(--accent);
  font-size: 14px !important;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.75rem;
}
.card-read-more:hover { color: var(--accent-dark); }

/* ── Contact page ────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-form .form-control {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 5px;
  font-size: 16px !important;
  padding: 0.75rem 1rem;
  width: 100%;
  margin-bottom: 1rem;
}
.contact-form .form-control:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,188,156,0.15);
}
.contact-form .form-control::placeholder { color: var(--text-muted); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(26,188,156,0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px !important;
}
.contact-info-text h4 { margin: 0 0 0.2rem; font-size: 14px !important; color: #ffffff; }
.contact-info-text p { margin: 0; font-size: 14px !important; color: var(--text-muted); line-height: 1.5; }

/* ── CTA section ─────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--accent-dark) 0%, #0e7a60 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { color: #ffffff; }
.cta-section p { color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 2rem; }
.btn-cta-white {
  display: inline-block;
  background: #ffffff;
  color: var(--accent-dark) !important;
  padding: 0.75em 2em;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-cta-white:hover { background: rgba(255,255,255,0.9); color: var(--accent-dark) !important; }

/* ── Footer ──────────────────────────────────────────── */
#footer {
  background-color: var(--bg2);
  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: 1400px;
  margin: 0 auto;
  padding: 0 4em;
  align-items: start;
  box-sizing: border-box;
}
#footer h2 {
  color: #ffffff !important;
  font-size: 14px !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-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 1em; } }
@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(--surface2);
  border-top: 1px solid var(--border);
  padding: 1.25rem 5%;
  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: 0; font-size: 14px !important; color: var(--text-muted); flex: 1; min-width: 200px; }
.cookie-inner a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
#cookie-accept, .cookie-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cookie-btn.decline, #cookie-decline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
#cookie-accept:hover { background: var(--accent-dark); }
#cookie-decline:hover { color: var(--text); }

/* ── Misc ────────────────────────────────────────────── */
.investors-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}
.investor-name {
  font-weight: 700;
  font-size: 18px !important;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.thesis-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.thesis-item h4 { color: #ffffff; margin-bottom: 0.5rem; font-size: 16px !important; }
.thesis-item p { color: var(--text-muted); font-size: 14px !important; margin: 0; line-height: 1.6; }

.page-hero-bg {
  background-image: url('../images/about-hero.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  background-color: rgba(30,5,40,0.30);
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
  pointer-events: none;
}
.page-hero-bg > * { position: relative; z-index: 1; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 992px) {
  h1 { font-size: 46px !important; }
  h2 { font-size: 34px !important; }
  .hero-stats { gap: 2rem; }
}
@media (max-width: 576px) {
  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }
  .hero-inner { padding: 60px 5%; }
  .hero-cta { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
