/* ===== MAIN STYLESHEET - CVB INVESTMENTS LLC =====
   Unique palette: deep near-black + warm off-white + lime + deep cyan
   NOT from any forbidden combo */

:root {
  --dark: #121118;
  --light: #FDFCF8;
  --lime: #84CC16;
  --lime-hover: #6DA80F;
  --cyan: #0B7D8E;
  --cyan-hover: #095F6C;
  --text: #2D2A26;
  --muted: #5A5550;
  --border: #E8E4DC;
  --card: #FFFFFF;
  --footer-bg: #0A0A10;
  --section-alt: #F4F2EE;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--lime);
}

/* ===== NAVIGATION (class selector .navbar, NOT bare nav) ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(18, 17, 24, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(18, 17, 24, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo:hover {
  color: var(--lime-hover);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: #C5C3BD;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--lime);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #C5C3BD;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION (.hero-section class) ===== */
.hero-section {
  background: var(--dark);
  color: var(--light);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(132,204,22,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(11,125,142,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: rgba(132,204,22,0.12);
  color: var(--lime);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-section h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-section h1 span {
  color: var(--lime);
}

.hero-section p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #B0AEA5;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--lime);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--lime-hover);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(132,204,22,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--light);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 4px;
}

.hero-stat p {
  font-size: 0.85rem;
  color: #8A8580;
  margin: 0;
}

/* ===== ABOUT SECTION (.about-section class) ===== */
.about-section {
  padding: 100px 0;
  background: var(--light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--dark) 0%, #1E1C28 50%, var(--dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 16px;
}

.about-image-placeholder::after {
  content: '\25B6';
  font-size: 3rem;
  color: #84CC16;
}

.about-image-pattern {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(132, 204, 22, 0.3);
  border-radius: 12px;
  pointer-events: none;
}

.about-image-pattern2 {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(11, 125, 142, 0.25);
  border-radius: 14px;
  pointer-events: none;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: inline-block;
}

.about-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.about-section .about-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 16px;
}

.about-features {
  list-style: none;
  margin-top: 28px;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text);
}

.about-features li::before {
  content: '\2714';
  color: var(--lime);
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== SERVICES SECTION (.services-section class) ===== */
.services-section {
  padding: 100px 0;
  background: var(--section-alt);
}

.services-section .section-label {
  text-align: center;
  display: block;
}

.services-section h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.services-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--card);
  border-radius: 12px;
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(132,204,22,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--lime);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ===== STATS SECTION (.stats-section class) ===== */
.stats-section {
  padding: 80px 0;
  background: var(--dark);
  color: var(--light);
}

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

.stat-item .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: #8A8580;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CONTACT SECTION (.contact-section class) ===== */
.contact-section {
  padding: 100px 0;
  background: var(--light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.contact-info p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(132,204,22,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--lime);
}

.contact-detail h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.contact-detail span {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--light);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--lime);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--lime);
  color: var(--dark);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.form-submit:hover {
  background: var(--lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(132,204,22,0.3);
}

.form-feedback {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-feedback.success {
  display: block;
  color: var(--lime);
}

.form-feedback.error {
  display: block;
  color: #EF4444;
}

/* ===== FOOTER (.site-footer class) ===== */
.site-footer {
  background: var(--footer-bg);
  color: #8A8580;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #6A6660;
  line-height: 1.65;
}

.footer-links h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #C5C3BD;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #8A8580;
  font-size: 0.9rem;
  transition: color 0.3s;
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--lime);
  font-weight: 500;
}

/* ===== SCROLL-REVEAL ANIMATION ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18,17,24,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.4s;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-section {
    padding: 120px 0 64px;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-section h2,
  .services-section h2,
  .contact-info h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }
}
