/* ===================================================
   BLUEROCK CAPITAL — Main Stylesheet
   Design: Modern, Premium Finance / VC Fund
   Colors:
     Navy Primary:  #0A1628
     Navy Mid:      #12243F
     Navy Light:    #1A3461
     Gold Accent:   #C9A84C
     Gold Light:    #E8C97A
     White:         #FFFFFF
     Off-White:     #F5F7FA
     Light Blue:    #EBF0F9
     Text Dark:     #1A1A2E
     Text Mid:      #4A5568
     Text Light:    #718096
=================================================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0A1628;
  --navy-mid:    #12243F;
  --navy-light:  #1A3461;
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --white:       #FFFFFF;
  --off-white:   #F5F7FA;
  --light-blue:  #EBF0F9;
  --text-dark:   #1A1A2E;
  --text-mid:    #4A5568;
  --text-light:  #718096;
  --border:      rgba(255,255,255,0.1);
  --shadow-sm:   0 2px 8px rgba(10,22,40,0.08);
  --shadow-md:   0 8px 32px rgba(10,22,40,0.12);
  --shadow-lg:   0 20px 60px rgba(10,22,40,0.18);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --transition:  0.3s ease;
  --max-width:   1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-mid); font-size: 1rem; line-height: 1.8; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-title--white { color: var(--white); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 640px;
  line-height: 1.85;
}

.section-desc--white { color: rgba(255,255,255,0.8); }

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.35);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* === HEADER / NAVBAR === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* When mobile nav is open, disable backdrop-filter so the header no longer
   creates a stacking context that traps the nav menu behind page content. */
.header.nav-open {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.header:not(.scrolled) { background: transparent; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 4px;
  box-shadow: 0 0 0 2px rgba(201,168,76,0.4);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
}

.nav-logo-text .brand-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.9rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  width: 0; height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  background: var(--gold);
  color: var(--navy) !important;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
}

.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* === PAGE BANNER (inner pages) === */
.page-banner {
  min-height: 220px;
  padding: 5rem 0 3rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, rgba(201,168,76,0.15) 100%);
}

.page-banner .banner-content {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.page-banner .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.page-banner .breadcrumb a { color: var(--gold); }
.page-banner .breadcrumb span { color: rgba(255,255,255,0.4); }

/* === DECORATIVE LINES === */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.divider--center { margin-left: auto; margin-right: auto; }

/* === CARDS === */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* === STATS STRIP === */
.stats-strip {
  background: var(--navy);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item { padding: 1rem; }

.stat-item .stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-item .stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* === FOOTER === */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 70px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--navy);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  align-items: flex-start;
}

.footer-contact-item i {
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin: 0; }

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--gold); }

.footer-disclaimer {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* === REGULATORY BADGES === */
.reg-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-light);
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-up   { animation: fadeUp   0.7s ease forwards; }
.animate-in   { animation: fadeIn   0.7s ease forwards; }
.animate-scale { animation: scaleIn  0.7s ease forwards; }

[data-anim] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-anim].visible { opacity: 1; transform: translateY(0); }

/* === SCROLL TO TOP === */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 500;
  box-shadow: 0 4px 15px rgba(201,168,76,0.4);
}

.scroll-top.show { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--gold-light); transform: translateY(-3px); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Hero adjustments */
  .hero { min-height: 90vh; min-height: 90svh; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px; left: 0; right: 0;
    bottom: 0;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(12px);
    padding: 2rem;
    gap: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1100;
  }
  .nav-links.open a { padding: 1rem 1rem; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle { display: flex; }

  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  /* Page banner on mobile */
  .page-banner { padding: 4.5rem 0 2.5rem; }
  .page-banner h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  /* Stats strip */
  .stats-strip { padding: 2.5rem 0; }
  .stat-item .stat-value { font-size: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-banner { padding: 4rem 0 2rem; }

  /* Hero at very small screens */
  .hero { min-height: 100svh; }
  .hero-content { padding-top: 80px; padding-bottom: 2rem; }

  /* Buttons full width in action groups */
  .btn { white-space: nowrap; }

  /* Nav logo text hide subtitle on very small */
  .nav-logo-text .brand-sub { display: none; }

  /* Footer improvements */
  .footer-contact-item { font-size: 0.82rem; }
  .reg-badges { gap: 0.6rem; }

  /* Ensure images don't cause overflow */
  .about-img { height: auto !important; }
}

@media (max-width: 768px) {
  .about-img { height: auto !important; }
  /* Hide nav subtitle at tablet — it's 0.75rem and can feel cramped */
  .nav-logo-text .brand-sub { display: none; }
}

/* === ADDITIONAL MOBILE REFINEMENTS (480px) === */
@media (max-width: 480px) {
  /* G-04: Raise section-label from 12px to 13px on small screens */
  .section-label { font-size: 0.8rem; letter-spacing: 0.15em; }

  /* CSS-03: Further reduce section whitespace on phones */
  section { padding: 3rem 0; }

  /* CSS-04: Ensure stats labels don't overflow at 320px */
  .stat-item .stat-label { font-size: 0.72rem; }

  /* G-10: Reduce button side padding on phones */
  .btn { padding: 0.875rem 1.5rem; }

  /* I-02: Hide scroll indicator on very short screens (landscape) */
  @media (max-height: 500px) {
    .hero-indicators { display: none; }
  }
}

/* === G-11: Respect prefers-reduced-motion === */
@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-bg { transition: none !important; transform: none !important; }
  .animate-up, .animate-in, .animate-scale { animation: none !important; opacity: 1 !important; }
}
