/* ============================================================
   OBSIDIAN GATE CAPITALS — STYLESHEET
   Dark premium family office aesthetic
   ============================================================ */

/* ── Variables ── */
:root {
  --bg:          #09090B;
  --bg-alt:      #0F0F12;
  --bg-card:     #141417;
  --text:        #EDE8E1;
  --text-2:      #8C8880;
  --text-3:      #4A4845;
  --gold:        #C8A96A;
  --gold-dim:    rgba(200, 169, 106, 0.18);
  --gold-border: rgba(200, 169, 106, 0.22);
  --line:        rgba(237, 232, 225, 0.06);
  --serif:       'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:        'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --radius:      2px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Language logic ── */
body.lang-en [data-lang="de"] { display: none !important; }
body.lang-de [data-lang="en"] { display: none !important; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--sans); }


/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 0;
  transition: background 0.35s, padding 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 18px 0;
  border-bottom-color: var(--line);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu li { display: flex; align-items: center; }

.nav-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--gold); }

.lang-btn {
  background: none;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  transition: background 0.2s, color 0.2s;
  border-radius: var(--radius);
}
.lang-btn:hover { background: var(--gold); color: var(--bg); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(200, 169, 106, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(200, 169, 106, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 36px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 52px;
  line-height: 1.8;
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 38px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  border-radius: var(--radius);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}


/* ============================================================
   SECTIONS — BASE
   ============================================================ */
.section {
  padding: 128px 48px;
}
.section-alt {
  background: var(--bg-alt);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 80px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.section-head h2 em {
  font-style: italic;
  color: var(--gold);
}

.section-note {
  font-size: 14px;
  color: var(--text-3);
  max-width: 520px;
  margin: 18px auto 0;
  line-height: 1.8;
}


/* ============================================================
   PRINCIPLE
   ============================================================ */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.p-card {
  background: var(--bg);
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.p-card:hover { background: var(--bg-card); }

.p-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.p-card:hover::after { opacity: 0.5; }

.p-num {
  display: block;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: 20px;
}

.p-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
}

.p-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.85;
}


/* ============================================================
   DISCIPLINES
   ============================================================ */
.disc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 72px;
}

.disc-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 2px solid rgba(200, 169, 106, 0.35);
  padding: 52px 48px;
  position: relative;
}

.disc-num {
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 300;
  color: rgba(200, 169, 106, 0.08);
  line-height: 1;
  margin-bottom: -16px;
}

.disc-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
}

.disc-card > p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 28px;
}

.disc-list {
  margin-bottom: 28px;
}
.disc-list li {
  font-size: 13px;
  color: var(--text-2);
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.disc-list li:first-child { border-top: 1px solid var(--line); }
.disc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.55;
}

.disc-quote {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  line-height: 1.6;
  opacity: 0.85;
}

/* Process */
.process {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 48px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.p-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.p-step-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.p-step-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.p-arrow {
  font-size: 18px;
  color: var(--gold);
  opacity: 0.25;
  padding-bottom: 20px;
}


/* ============================================================
   SUBSTANCE
   ============================================================ */
.sub-contrast {
  display: flex;
  margin-bottom: 80px;
  border: 1px solid var(--line);
}

.sub-col {
  flex: 1;
  padding: 52px 48px;
}

.sub-col-muted h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-3);
  margin-bottom: 14px;
}
.sub-col-muted p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.85;
}

.sub-vs {
  display: flex;
  align-items: center;
  padding: 0 28px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--gold-border);
  font-style: italic;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.sub-col-accent {
  background: rgba(200, 169, 106, 0.025);
}
.sub-col-accent h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
}
.sub-col-accent p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.85;
}

.sub-forms {
  margin-bottom: 72px;
}

.sub-forms h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  text-align: center;
  color: var(--text-2);
  margin-bottom: 44px;
}

.sub-forms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.sub-form-item {
  background: var(--bg);
  text-align: center;
  padding: 44px 32px;
}

.sub-diamond {
  display: block;
  font-size: 10px;
  color: var(--gold);
  margin-bottom: 18px;
  letter-spacing: 0.3em;
}

.sub-form-item h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.sub-form-item p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.8;
}

.sub-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 30px);
  font-style: italic;
  font-weight: 300;
  color: var(--text-2);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}


/* ============================================================
   PORTFOLIO
   ============================================================ */
.port-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.port-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 52px 48px;
  position: relative;
  transition: border-color 0.3s;
}

.port-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.port-card:hover { border-color: var(--gold-border); }
.port-card:hover::after { opacity: 0.5; }

.port-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 4px 12px;
  margin-bottom: 24px;
  border-radius: var(--radius);
}

.port-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
}

.port-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 32px;
}

.port-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.meta-row:first-child { border-top: 1px solid var(--line); }

.meta-k {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
}

.meta-v {
  font-size: 14px;
  color: var(--text-2);
  text-align: right;
}

.meta-active {
  color: var(--gold) !important;
  font-weight: 400;
}

.meta-open {
  color: #7EB8A0 !important;
  font-weight: 400;
}

/* Open / Co-Investment cards */
.port-card-open {
  border-color: rgba(126, 184, 160, 0.15);
  background: rgba(126, 184, 160, 0.03);
}
.port-card-open:hover {
  border-color: rgba(126, 184, 160, 0.3);
}
.port-card-open::after {
  background: linear-gradient(90deg, transparent, #7EB8A0, transparent);
}

.port-tag-open {
  color: #7EB8A0;
  border-color: rgba(126, 184, 160, 0.3);
}

.port-cta {
  display: inline-block;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7EB8A0;
  border: 1px solid rgba(126, 184, 160, 0.3);
  padding: 10px 24px;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s;
}
.port-cta:hover {
  background: #7EB8A0;
  color: var(--bg);
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: start;
}

.c-item {
  margin-bottom: 40px;
}

.c-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.c-email {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold);
  transition: opacity 0.2s;
}
.c-email:hover { opacity: 0.65; }

.c-value {
  font-size: 15px;
  color: var(--text-2);
}

.c-note {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.85;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.f-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f-group label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.f-group input,
.f-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.25s;
  resize: none;
}
.f-group input::placeholder,
.f-group textarea::placeholder { color: var(--text-3); }
.f-group input:focus,
.f-group textarea:focus { border-color: var(--gold-border); }

.form-success {
  font-size: 14px;
  color: #7EB8A0;
  padding: 14px 18px;
  border: 1px solid rgba(126, 184, 160, 0.25);
  border-radius: 2px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.form-error {
  font-size: 14px;
  color: #C87070;
  padding: 14px 18px;
  border: 1px solid rgba(200, 112, 112, 0.25);
  border-radius: 2px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.btn-submit {
  align-self: flex-start;
  background: none;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: var(--radius);
  transition: background 0.25s, color 0.25s;
}
.btn-submit:hover { background: var(--gold); color: var(--bg); }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 40px 48px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-2);
}

.footer-nav {
  display: flex;
  gap: 32px;
}
.footer-nav a {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
}


/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .principle-grid { grid-template-columns: 1fr; }
  .disc-grid { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .sub-forms-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  /* Nav mobile */
  .nav-wrap { padding: 0 24px; }
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 99;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { flex-direction: column; align-items: center; }

  /* Sections */
  .section { padding: 88px 24px; }
  .hero { padding: 120px 24px 80px; }
  .section-head { margin-bottom: 52px; }

  /* Principle */
  .p-card { padding: 36px 28px; }

  /* Discipline */
  .disc-card { padding: 36px 28px; }

  /* Substance */
  .sub-contrast {
    flex-direction: column;
  }
  .sub-vs {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 16px;
    justify-content: center;
  }
  .sub-col { padding: 36px 28px; }

  /* Portfolio */
  .port-card { padding: 36px 28px; }

  /* Process */
  .process { padding: 36px 24px; gap: 16px; }
  .p-arrow { display: none; }

  /* Contact */
  .btn-submit { width: 100%; text-align: center; justify-content: center; }

  /* Footer */
  .footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 20px; }
}
