/* ==========================================================================
   JAM Ventures - Custom Styles
   Built on top of Tailwind CSS (loaded via CDN in HTML)
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables (edit these to change the palette site-wide) ---------- */
:root {
  --color-primary: #1a1a2e;      /* Dark navy */
  --color-accent: #e63946;       /* JAM red */
  --color-accent-hover: #c62d39;
  --color-text: #2d2d2d;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-border: #e5e7eb;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
}

/* ---------- Navigation ---------- */
.nav-link {
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover {
  color: var(--color-accent);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu.open {
  max-height: 400px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 50%, #0f3460 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.08);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.05);
  pointer-events: none;
}

/* ---------- Section ---------- */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Portfolio logo cards */
.portfolio-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.portfolio-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(230, 57, 70, 0.1);
}

/* Portfolio card — acquired badge */
.portfolio-card .badge-acquired {
  display: inline-block;
  background: #16a34a;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* Portfolio card — active badge */
.portfolio-card .badge-active {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* Portfolio card — advisory badge */
.portfolio-card .badge-advisory {
  display: inline-block;
  background: #2563eb;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* Portfolio card logo area */
.portfolio-card .logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  margin-bottom: 1rem;
}
.portfolio-card .logo-wrap img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--color-accent);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn-outline {
  border: 2px solid white;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-outline:hover {
  background: white;
  color: var(--color-primary);
}

/* ---------- Footer ---------- */
footer a:hover {
  color: var(--color-accent);
}

/* ---------- Placeholder images ---------- */
.placeholder-img {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive adjustments ---------- */
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  h1 { font-size: 2.25rem !important; }
  h2 { font-size: 1.75rem !important; }
}
