/* =========================================
   HAPUN VENTURE STUDIO - FINAL MASTER CSS
   ========================================= */

:root {
  --forest: #0F3B2E;
  --deep-forest: #0F2A22;
  --sage: #5E8C6F;
  --mist: #9BBBA6;
  --cream: #F5F2EA;
  --font-heading: 'Lora', serif;
  --font-body: 'Outfit', sans-serif;
  --max-width: 1200px;
  --nav-height: 88px;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: var(--cream); }
body {
  font-family: var(--font-body);
  color: var(--deep-forest);
  background-color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Accessibility */
.skip-link {
  position: absolute; top: -100px; left: 10px;
  background: var(--forest); color: var(--cream);
  padding: 12px 24px; z-index: 9999; transition: top 0.3s;
}
.skip-link:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; color: var(--deep-forest); }
p { font-size: 1.125rem; color: var(--deep-forest); opacity: 0.85; }
a { text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }

.h1-hero { font-size: clamp(3rem, 5vw, 4.5rem); letter-spacing: -0.02em; margin-bottom: 24px; text-wrap: balance; }
.h2-section { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.01em; margin-bottom: 16px; text-wrap: balance; }
.eyebrow { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-bottom: 16px; }
.text-center { text-align: center; }
.text-cream { color: var(--cream) !important; }
.text-mist { color: var(--mist) !important; }

/* Layout & Grids */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; border-radius: 8px; white-space: nowrap;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: all 0.3s ease; border: 1px solid transparent;
}
.btn-primary { background-color: var(--forest); color: var(--cream); }
.btn-primary:hover { background-color: var(--deep-forest); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(15, 59, 46, 0.15); }
.btn-secondary { background-color: transparent; color: var(--forest); border-color: rgba(15, 59, 46, 0.3); }
.btn-secondary:hover { background-color: rgba(15, 59, 46, 0.04); border-color: var(--forest); transform: translateY(-2px); }
.btn-cream { background-color: var(--cream); color: var(--forest); }
.btn-cream:hover { background-color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.btn-outline-cream { background-color: transparent; color: var(--cream); border-color: rgba(245, 242, 234, 0.4); }
.btn-outline-cream:hover { background-color: var(--cream); color: var(--forest); transform: translateY(-2px); }

/* Header & Navigation */
header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height);
  background-color: rgba(245, 242, 234, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 59, 46, 0.08);
  z-index: 1000; display: flex; align-items: center;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }
.logo { flex-shrink: 0; }
.logo img { height: 40px; width: auto; display: block; }

.desktop-nav { display: none; align-items: center; gap: 32px; }
.nav-item-dropdown { position: relative; display: inline-block; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--deep-forest); opacity: 0.85; position: relative; white-space: nowrap; display: flex; align-items: center; gap: 6px; padding: 10px 0; }
.nav-link:hover, .nav-link.active { opacity: 1; color: var(--forest); font-weight: 600; }

.dropdown-menu {
  position: absolute; top: 100%; left: -16px; min-width: 220px;
  background: rgba(245, 242, 234, 0.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 59, 46, 0.08); border-radius: 8px; padding: 12px 0;
  box-shadow: 0 24px 48px rgba(15, 59, 46, 0.1);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1000;
}
.nav-item-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-link { display: block; padding: 12px 24px; font-size: 0.95rem; font-weight: 500; color: var(--deep-forest); transition: background 0.2s ease, color 0.2s ease; }
.dropdown-link:hover { background-color: rgba(15, 59, 46, 0.04); color: var(--forest); font-weight: 600; }

.mobile-menu-btn { display: block; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background-color: var(--deep-forest); margin: 5px 0; transition: 0.3s; }

.mobile-nav {
  position: fixed; top: var(--nav-height); left: 0; width: 100%; height: calc(100vh - var(--nav-height));
  background-color: var(--cream); padding: 32px; display: flex; flex-direction: column; gap: 24px;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 999; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
body.no-scroll { overflow: hidden; }

.mobile-nav-group { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }
.mobile-nav-heading { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sage); margin-bottom: 4px; }
.mobile-nav a.nav-link { font-size: 1.1rem; padding: 4px 0; }

/* Page Sections */
.hero { padding-top: calc(var(--nav-height) + 80px); padding-bottom: 100px; }
.hero-layout { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }

.dashboard-card {
  background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 16px; padding: 32px;
  box-shadow: 0 24px 48px rgba(15, 59, 46, 0.08);
}
.dashboard-card h4 { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sage); margin-bottom: 24px; border-bottom: 1px solid rgba(15,59,46,0.1); padding-bottom: 12px; }
.dash-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(15,59,46,0.05); }
.dash-row:last-child { border-bottom: none; padding-bottom: 0; }
.dash-label { font-size: 1rem; font-weight: 500; color: var(--deep-forest); }
.dash-value { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--forest); }
.dash-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; margin-right: 8px; box-shadow: 0 0 8px #4ade80; }

.philosophy { background-color: var(--forest); color: var(--cream); }
.philosophy h2, .philosophy h3 { color: var(--cream); }
.philosophy p { color: var(--mist); }
.philosophy blockquote { font-family: var(--font-heading); font-size: 1.5rem; color: var(--cream); border-left: 3px solid var(--sage); padding-left: 24px; margin-top: 40px; font-style: italic; }

.card {
  background: #fff; padding: 40px 32px; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(15, 59, 46, 0.04); border: 1px solid rgba(15, 59, 46, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(15, 59, 46, 0.08); }
.card h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; color: var(--forest); margin-bottom: 12px; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

/* Timeline */
.timeline-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 64px; position: relative; }
.timeline-grid::before { content: ''; position: absolute; top: 0; left: 24px; width: 2px; height: 100%; background: rgba(15, 59, 46, 0.1); z-index: 0; }
.timeline-step { position: relative; padding-left: 64px; z-index: 1; }
.timeline-dot { position: absolute; left: 16px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background-color: var(--cream); border: 3px solid var(--forest); z-index: 2; }
.timeline-step h4 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--forest); margin-bottom: 8px; }
.timeline-step p { font-size: 1rem; color: var(--deep-forest); opacity: 0.85; }

/* Application Form */
.form-section { background-color: var(--cream); padding: 100px 0; }
.application-form-wrapper { background: #fff; border: 1px solid rgba(15, 59, 46, 0.05); border-radius: 16px; padding: 56px; max-width: 850px; margin: 0 auto; box-shadow: 0 24px 64px rgba(15, 42, 34, 0.06); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.95rem; font-weight: 600; color: var(--forest); letter-spacing: -0.01em; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 16px 20px; border: 1px solid rgba(15, 59, 46, 0.15); border-radius: 8px; background-color: #fafafa; font-family: var(--font-body); font-size: 1rem; color: var(--deep-forest); transition: all 0.3s ease; appearance: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #9ca3af; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--forest); background-color: #fff; box-shadow: 0 0 0 4px rgba(15, 59, 46, 0.1); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select { background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230F3B2E%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 20px top 50%; background-size: 12px auto; padding-right: 48px; }
.checkbox-group { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; margin-bottom: 32px; }
.checkbox-group input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--forest); cursor: pointer; border-radius: 4px; }
.checkbox-group label { font-size: 0.9rem; color: var(--deep-forest); opacity: 0.8; font-weight: 400; line-height: 1.5; cursor: pointer; }
.form-success-message { display: none; text-align: center; padding: 40px 20px; }
.form-success-message h3 { color: var(--forest); font-size: 1.8rem; margin-bottom: 16px; }
.form-success-message p { font-size: 1.1rem; color: var(--deep-forest); opacity: 0.8; }

/* FAQ */
.faq-container { max-width: 800px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid rgba(15, 59, 46, 0.1); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 24px 0; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--forest); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-family: var(--font-body); font-size: 1.5rem; font-weight: 400; color: var(--sage); transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding-bottom: 24px; margin: 0; font-size: 1rem; color: var(--deep-forest); opacity: 0.85; }

/* =========================================
   VENTURE SPECIFIC STYLES (UPDATED WITH LOGOS)
   ========================================= */
.venture-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border: 1px solid rgba(15,59,46,0.1);
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(15,59,46,0.03);
}

.venture-monogram {
  width: 64px; height: 64px; border-radius: 12px; background: var(--cream);
  border: 1px solid rgba(15,59,46,0.1); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 2rem; color: var(--forest); font-weight: 700;
  margin-bottom: 16px;
}

.venture-card { background: #fff; border: 1px solid rgba(15,59,46,0.05); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(15,59,46,0.03); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.venture-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(15,59,46,0.08); }
.venture-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.venture-name { font-size: 1.35rem; color: var(--forest); margin-bottom: 4px; }
.venture-sector { font-size: 0.85rem; color: var(--sage); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.stage-badge { font-size: 0.75rem; font-weight: 600; padding: 6px 12px; border-radius: 40px; text-transform: uppercase; letter-spacing: 0.05em; }
.stage-exploring { background: rgba(155, 187, 166, 0.2); color: var(--sage); border: 1px solid rgba(94, 140, 111, 0.3); }
.stage-validating { background: rgba(15, 59, 46, 0.08); color: var(--forest); border: 1px solid rgba(15, 59, 46, 0.2); }
.stage-building { background: var(--forest); color: var(--cream); border: 1px solid var(--forest); }
.stage-launched { background: var(--deep-forest); color: var(--mist); border: 1px solid var(--deep-forest); }
.venture-thesis { font-size: 0.95rem; color: var(--deep-forest); opacity: 0.85; line-height: 1.6; flex-grow: 1; margin-bottom: 24px; }
.venture-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(15,59,46,0.08); padding-top: 20px; margin-top: auto; }
.venture-need { font-size: 0.85rem; color: var(--deep-forest); font-weight: 500; }
.venture-need span { color: var(--sage); }
.venture-link { font-size: 0.9rem; font-weight: 600; color: var(--forest); display: inline-flex; align-items: center; transition: color 0.2s ease; }
.venture-link::after { content: '→'; margin-left: 6px; transition: transform 0.3s ease; }
.venture-card:hover .venture-link::after { transform: translateX(4px); }

.hero-venture { display: grid; grid-template-columns: 1fr; gap: 48px; background: var(--forest); border-radius: 16px; padding: 48px; align-items: center; box-shadow: 0 24px 48px rgba(15,59,46,0.15); margin-bottom: 64px; border: 1px solid rgba(255,255,255,0.1); }
.hero-venture h2, .hero-venture h3 { color: var(--cream); }
.hero-venture p { color: var(--mist); }

/* Footer */
footer { background-color: var(--deep-forest); color: var(--cream); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 48px; margin-bottom: 64px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 24px; }
.footer-brand p { color: var(--mist); font-size: 0.95rem; max-width: 300px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--mist); transition: color 0.2s ease; }
.footer-social a:hover { color: var(--cream); }
.footer-social svg { width: 24px; height: 24px; fill: currentColor; }

.footer-heading { display: block; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-bottom: 24px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--mist); font-size: 0.95rem; font-weight: 500; }
.footer-links a:hover { color: var(--cream); }

.footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); gap: 16px; }
.footer-bottom p { font-size: 0.85rem; color: var(--mist); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.85rem; color: var(--mist); }
.footer-legal a:hover { color: var(--cream); }

/* Utilities */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Media Queries */
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-layout { grid-template-columns: 1fr 1fr; gap: 64px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .timeline-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; margin-top: 80px; }
  .timeline-grid::before { top: 9px; left: 0; width: 100%; height: 2px; }
  .timeline-step { padding-left: 0; padding-top: 48px; }
  .timeline-dot { left: 50%; top: 0; transform: translateX(-50%); }
  .hero-venture { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .mobile-menu-btn { display: none; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}